CfnDeliveryChannelProps Struct
Properties for defining a CfnDeliveryChannel.
| Source |
|---|
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_config as config } from 'aws-cdk-lib';
const cfnDeliveryChannelProps: config.CfnDeliveryChannelProps = {
s3BucketName: 's3BucketName',
// the properties below are optional
configSnapshotDeliveryProperties: {
deliveryFrequency: 'deliveryFrequency',
},
name: 'name',
s3KeyPrefix: 's3KeyPrefix',
s3KmsKeyArn: 's3KmsKeyArn',
snsTopicArn: 'snsTopicArn',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_config as config
cfn_delivery_channel_props = config.CfnDeliveryChannelProps(
s3_bucket_name="s3BucketName",
# the properties below are optional
config_snapshot_delivery_properties=config.CfnDeliveryChannel.ConfigSnapshotDeliveryPropertiesProperty(
delivery_frequency="deliveryFrequency"
),
name="name",
s3_key_prefix="s3KeyPrefix",
s3_kms_key_arn="s3KmsKeyArn",
sns_topic_arn="snsTopicArn"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.config.*;
CfnDeliveryChannelProps cfnDeliveryChannelProps = CfnDeliveryChannelProps.builder()
.s3BucketName("s3BucketName")
// the properties below are optional
.configSnapshotDeliveryProperties(ConfigSnapshotDeliveryPropertiesProperty.builder()
.deliveryFrequency("deliveryFrequency")
.build())
.name("name")
.s3KeyPrefix("s3KeyPrefix")
.s3KmsKeyArn("s3KmsKeyArn")
.snsTopicArn("snsTopicArn")
.build();
// 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.Config;
var cfnDeliveryChannelProps = new CfnDeliveryChannelProps {
S3BucketName = "s3BucketName",
// the properties below are optional
ConfigSnapshotDeliveryProperties = new ConfigSnapshotDeliveryPropertiesProperty {
DeliveryFrequency = "deliveryFrequency"
},
Name = "name",
S3KeyPrefix = "s3KeyPrefix",
S3KmsKeyArn = "s3KmsKeyArn",
SnsTopicArn = "snsTopicArn"
};
// 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"
cfnDeliveryChannelProps := &CfnDeliveryChannelProps{
S3BucketName: jsii.String("s3BucketName"),
// the properties below are optional
ConfigSnapshotDeliveryProperties: &ConfigSnapshotDeliveryPropertiesProperty{
DeliveryFrequency: jsii.String("deliveryFrequency"),
},
Name: jsii.String("name"),
S3KeyPrefix: jsii.String("s3KeyPrefix"),
S3KmsKeyArn: jsii.String("s3KmsKeyArn"),
SnsTopicArn: jsii.String("snsTopicArn"),
}
Properties
configSnapshotDeliveryPropertiesoptionalIResolvable | CfnDeliveryChannel.config_snapshot_delivery_propertiesoptionaltyping.Union[IResolvable, ConfigSnapshotDeliveryPropertiesProperty]configSnapshotDeliveryPropertiesoptionalIResolvableConfigSnapshotDeliveryPropertiesoptionalIResolvableConfigSnapshotDeliveryPropertiesoptionalinterface{} #notes
If you don't specify a name, CloudFormation generates a unique physical ID and uses that ID for the delivery channel name. For more information, see Name Type .
Updates are not supported. To change the name, you must run two separate updates. In the first update, delete this resource, and then recreate it with a new name in the second update.
s3BucketNamestrings3_bucket_namestrs3BucketNameStringS3BucketNamestringS3BucketName*string required #notes
If you specify a bucket that belongs to another AWS account , that bucket must have policies that grant access permissions to AWS Config . For more information, see Permissions for the Amazon S3 Bucket in the AWS Config Developer Guide .
s3KeyPrefixoptionalstrings3_key_prefixoptionalstrs3KeyPrefixoptionalStringS3KeyPrefixoptionalstringS3KeyPrefixoptional*string #s3KmsKeyArnoptionalstrings3_kms_key_arnoptionalstrs3KmsKeyArnoptionalStringS3KmsKeyArnoptionalstringS3KmsKeyArnoptional*string #Must belong to the same Region as the destination S3 bucket.
snsTopicArnoptionalstringsns_topic_arnoptionalstrsnsTopicArnoptionalStringSnsTopicArnoptionalstringSnsTopicArnoptional*string #notes
If you choose a topic from another account, the topic must have policies that grant access permissions to AWS Config . For more information, see Permissions for the Amazon SNS Topic in the AWS Config Developer Guide .