Class CfnDeliveryChannel
- All Implemented Interfaces:
IInspectable,IDeliveryChannelRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
Before you can create a delivery channel, you must create a configuration recorder. You can use this action to change the Amazon S3 bucket or an Amazon topic of the existing delivery channel. To change the Amazon S3 bucket or an Amazon topic, call this action and specify the changed values for the S3 bucket and the SNS topic. If you specify a different value for either the S3 bucket or the SNS topic, this action will keep the existing value for the parameter that is not changed.
In the China (Beijing) Region, when you call this action, the Amazon S3 bucket must also be in the China (Beijing) Region. In all the other regions, AWS Config supports cross-region and cross-account delivery channels.
You can have only one delivery channel per region per AWS account, and the delivery channel is required to use AWS Config .
AWS Config does not support the delivery channel to an Amazon S3 bucket bucket where object lock is enabled. For more information, see How S3 Object Lock works .
When you create the delivery channel, you can specify; how often AWS Config delivers configuration snapshots to your Amazon S3 bucket (for example, 24 hours), the S3 bucket to which AWS Config sends configuration snapshots and configuration history files, and the Amazon topic to which AWS Config sends notifications about configuration changes, such as updated resources, AWS Config rule evaluations, and when AWS Config delivers the configuration snapshot to your S3 bucket. For more information, see Deliver Configuration Items in the AWS Config Developer Guide.
To enable AWS Config , you must create a configuration recorder and a delivery channel. If you want to create the resources separately, you must create a configuration recorder before you can create a delivery channel. AWS Config uses the configuration recorder to capture configuration changes to your resources. For more information, see AWS::Config::ConfigurationRecorder .
For more information, see Managing the Delivery Channel in the AWS Config Developer Guide.
Example:
// 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.*;
CfnDeliveryChannel cfnDeliveryChannel = CfnDeliveryChannel.Builder.create(this, "MyCfnDeliveryChannel")
.s3BucketName("s3BucketName")
// the properties below are optional
.configSnapshotDeliveryProperties(ConfigSnapshotDeliveryPropertiesProperty.builder()
.deliveryFrequency("deliveryFrequency")
.build())
.name("name")
.s3KeyPrefix("s3KeyPrefix")
.s3KmsKeyArn("s3KmsKeyArn")
.snsTopicArn("snsTopicArn")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDeliveryChannel.static interfaceProvides options for how often AWS Config delivers configuration snapshots to the Amazon S3 bucket in your delivery channel.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.config.IDeliveryChannelRef
IDeliveryChannelRef.Jsii$Default, IDeliveryChannelRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDeliveryChannel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDeliveryChannel(software.amazon.jsii.JsiiObjectRef objRef) CfnDeliveryChannel(software.constructs.Construct scope, String id, CfnDeliveryChannelProps props) Create a newAWS::Config::DeliveryChannel. -
Method Summary
Modifier and TypeMethodDescriptionThe options for how often AWS Config delivers configuration snapshots to the Amazon S3 bucket.A reference to a DeliveryChannel resource.getName()A name for the delivery channel.The name of the Amazon S3 bucket to which AWS Config delivers configuration snapshots and configuration history files.The prefix for the specified Amazon S3 bucket.The Amazon Resource Name (ARN) of the AWS Key Management Service ( AWS ) AWS KMS key (KMS key) used to encrypt objects delivered by AWS Config .The Amazon Resource Name (ARN) of the Amazon SNS topic to which AWS Config sends notifications about configuration changes.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnDeliveryChannel.renderProperties(Map<String, Object> props) voidThe options for how often AWS Config delivers configuration snapshots to the Amazon S3 bucket.voidsetConfigSnapshotDeliveryProperties(CfnDeliveryChannel.ConfigSnapshotDeliveryPropertiesProperty value) The options for how often AWS Config delivers configuration snapshots to the Amazon S3 bucket.voidA name for the delivery channel.voidsetS3BucketName(String value) The name of the Amazon S3 bucket to which AWS Config delivers configuration snapshots and configuration history files.voidsetS3KeyPrefix(String value) The prefix for the specified Amazon S3 bucket.voidsetS3KmsKeyArn(String value) The Amazon Resource Name (ARN) of the AWS Key Management Service ( AWS ) AWS KMS key (KMS key) used to encrypt objects delivered by AWS Config .voidsetSnsTopicArn(String value) The Amazon Resource Name (ARN) of the Amazon SNS topic to which AWS Config sends notifications about configuration changes.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDeliveryChannel
protected CfnDeliveryChannel(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDeliveryChannel
protected CfnDeliveryChannel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDeliveryChannel
@Stability(Stable) public CfnDeliveryChannel(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDeliveryChannelProps props) Create a newAWS::Config::DeliveryChannel.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnDeliveryChannel
Checks whether the given object is a CfnDeliveryChannel.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDeliveryChannelRef
A reference to a DeliveryChannel resource.- Specified by:
getDeliveryChannelRefin interfaceIDeliveryChannelRef
-
getS3BucketName
The name of the Amazon S3 bucket to which AWS Config delivers configuration snapshots and configuration history files. -
setS3BucketName
The name of the Amazon S3 bucket to which AWS Config delivers configuration snapshots and configuration history files. -
getConfigSnapshotDeliveryProperties
The options for how often AWS Config delivers configuration snapshots to the Amazon S3 bucket.Returns union: either
IResolvableorCfnDeliveryChannel.ConfigSnapshotDeliveryPropertiesProperty -
setConfigSnapshotDeliveryProperties
The options for how often AWS Config delivers configuration snapshots to the Amazon S3 bucket. -
setConfigSnapshotDeliveryProperties
@Stability(Stable) public void setConfigSnapshotDeliveryProperties(@Nullable CfnDeliveryChannel.ConfigSnapshotDeliveryPropertiesProperty value) The options for how often AWS Config delivers configuration snapshots to the Amazon S3 bucket. -
getName
A name for the delivery channel. -
setName
A name for the delivery channel. -
getS3KeyPrefix
The prefix for the specified Amazon S3 bucket. -
setS3KeyPrefix
The prefix for the specified Amazon S3 bucket. -
getS3KmsKeyArn
The Amazon Resource Name (ARN) of the AWS Key Management Service ( AWS ) AWS KMS key (KMS key) used to encrypt objects delivered by AWS Config . -
setS3KmsKeyArn
The Amazon Resource Name (ARN) of the AWS Key Management Service ( AWS ) AWS KMS key (KMS key) used to encrypt objects delivered by AWS Config . -
getSnsTopicArn
The Amazon Resource Name (ARN) of the Amazon SNS topic to which AWS Config sends notifications about configuration changes. -
setSnsTopicArn
The Amazon Resource Name (ARN) of the Amazon SNS topic to which AWS Config sends notifications about configuration changes.
-