CfnLoggingConfigurationProps Struct
Properties for defining a CfnLoggingConfiguration.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ivschat as ivschat } from 'aws-cdk-lib';
const cfnLoggingConfigurationProps: ivschat.CfnLoggingConfigurationProps = {
destinationConfiguration: {
cloudWatchLogs: {
logGroupName: 'logGroupName',
},
firehose: {
deliveryStreamName: 'deliveryStreamName',
},
s3: {
bucketName: 'bucketName',
},
},
// the properties below are optional
name: 'name',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ivschat as ivschat
cfn_logging_configuration_props = ivschat.CfnLoggingConfigurationProps(
destination_configuration=ivschat.CfnLoggingConfiguration.DestinationConfigurationProperty(
cloud_watch_logs=ivschat.CfnLoggingConfiguration.CloudWatchLogsDestinationConfigurationProperty(
log_group_name="logGroupName"
),
firehose=ivschat.CfnLoggingConfiguration.FirehoseDestinationConfigurationProperty(
delivery_stream_name="deliveryStreamName"
),
s3=ivschat.CfnLoggingConfiguration.S3DestinationConfigurationProperty(
bucket_name="bucketName"
)
),
# the properties below are optional
name="name",
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ivschat.*;
CfnLoggingConfigurationProps cfnLoggingConfigurationProps = CfnLoggingConfigurationProps.builder()
.destinationConfiguration(DestinationConfigurationProperty.builder()
.cloudWatchLogs(CloudWatchLogsDestinationConfigurationProperty.builder()
.logGroupName("logGroupName")
.build())
.firehose(FirehoseDestinationConfigurationProperty.builder()
.deliveryStreamName("deliveryStreamName")
.build())
.s3(S3DestinationConfigurationProperty.builder()
.bucketName("bucketName")
.build())
.build())
// the properties below are optional
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IVSChat;
var cfnLoggingConfigurationProps = new CfnLoggingConfigurationProps {
DestinationConfiguration = new DestinationConfigurationProperty {
CloudWatchLogs = new CloudWatchLogsDestinationConfigurationProperty {
LogGroupName = "logGroupName"
},
Firehose = new FirehoseDestinationConfigurationProperty {
DeliveryStreamName = "deliveryStreamName"
},
S3 = new S3DestinationConfigurationProperty {
BucketName = "bucketName"
}
},
// the properties below are optional
Name = "name",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnLoggingConfigurationProps := &CfnLoggingConfigurationProps{
DestinationConfiguration: &DestinationConfigurationProperty{
CloudWatchLogs: &CloudWatchLogsDestinationConfigurationProperty{
LogGroupName: jsii.String("logGroupName"),
},
Firehose: &FirehoseDestinationConfigurationProperty{
DeliveryStreamName: jsii.String("deliveryStreamName"),
},
S3: &S3DestinationConfigurationProperty{
BucketName: jsii.String("bucketName"),
},
},
// the properties below are optional
Name: jsii.String("name"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
destinationConfigurationIResolvable | CfnLoggingConfiguration.destination_configurationtyping.Union[IResolvable, DestinationConfigurationProperty]destinationConfigurationIResolvableDestinationConfigurationIResolvableDestinationConfigurationinterface{} required #The DestinationConfiguration is a complex type that contains information about where chat content will be logged.
Logging-configuration name.
The value does not need to be unique.