Class CfnConfigurationRecorder
- All Implemented Interfaces:
IInspectable,IConfigurationRecorderRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
AWS::Config::ConfigurationRecorder resource type describes the AWS resource types that AWS Config records for configuration changes.
The configuration recorder stores the configuration changes of the specified resources in your account as configuration items.
To enable AWS Config , you must create a configuration recorder and a delivery channel.
AWS Config uses the delivery channel to deliver the configuration changes to your Amazon S3 bucket or Amazon SNS topic. For more information, see AWS::Config::DeliveryChannel .
AWS CloudFormation starts the recorder as soon as the delivery channel is available.
To stop the recorder and delete it, delete the configuration recorder from your stack. To stop the recorder without deleting it, call the StopConfigurationRecorder action of the AWS Config API directly.
For more information, see Configuration Recorder 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.*;
CfnConfigurationRecorder cfnConfigurationRecorder = CfnConfigurationRecorder.Builder.create(this, "MyCfnConfigurationRecorder")
.roleArn("roleArn")
// the properties below are optional
.name("name")
.recordingGroup(RecordingGroupProperty.builder()
.allSupported(false)
.exclusionByResourceTypes(ExclusionByResourceTypesProperty.builder()
.resourceTypes(List.of("resourceTypes"))
.build())
.includeGlobalResourceTypes(false)
.recordingStrategy(RecordingStrategyProperty.builder()
.useOnly("useOnly")
.build())
.resourceTypes(List.of("resourceTypes"))
.build())
.recordingMode(RecordingModeProperty.builder()
.recordingFrequency("recordingFrequency")
// the properties below are optional
.recordingModeOverrides(List.of(RecordingModeOverrideProperty.builder()
.recordingFrequency("recordingFrequency")
.resourceTypes(List.of("resourceTypes"))
// the properties below are optional
.description("description")
.build()))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnConfigurationRecorder.static interfaceSpecifies whether the configuration recorder excludes certain resource types from being recorded.static interfaceSpecifies which resource types AWS Config records for configuration changes.static interfaceAn object for you to specify your overrides for the recording mode.static interfaceSpecifies the default recording frequency that AWS Config uses to record configuration changes.static interfaceSpecifies the recording strategy of the configuration recorder.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.config.IConfigurationRecorderRef
IConfigurationRecorderRef.Jsii$Default, IConfigurationRecorderRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested 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
ConstructorsModifierConstructorDescriptionprotectedCfnConfigurationRecorder(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnConfigurationRecorder(software.amazon.jsii.JsiiObjectRef objRef) CfnConfigurationRecorder(software.constructs.Construct scope, String id, CfnConfigurationRecorderProps props) -
Method Summary
Modifier and TypeMethodDescriptionA reference to a ConfigurationRecorder resource.getName()The name of the configuration recorder.Specifies which resource types AWS Config records for configuration changes.Specifies the default recording frequency for the configuration recorder.Amazon Resource Name (ARN) of the IAM role assumed by AWS Config and used by the configuration recorder.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe name of the configuration recorder.voidsetRecordingGroup(IResolvable value) Specifies which resource types AWS Config records for configuration changes.voidSpecifies which resource types AWS Config records for configuration changes.voidsetRecordingMode(IResolvable value) Specifies the default recording frequency for the configuration recorder.voidSpecifies the default recording frequency for the configuration recorder.voidsetRoleArn(String value) Amazon Resource Name (ARN) of the IAM role assumed by AWS Config and used by the configuration recorder.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, 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.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnConfigurationRecorder
protected CfnConfigurationRecorder(software.amazon.jsii.JsiiObjectRef objRef) -
CfnConfigurationRecorder
protected CfnConfigurationRecorder(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnConfigurationRecorder
@Stability(Stable) public CfnConfigurationRecorder(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnConfigurationRecorderProps props) - 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
-
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
-
getConfigurationRecorderRef
A reference to a ConfigurationRecorder resource.- Specified by:
getConfigurationRecorderRefin interfaceIConfigurationRecorderRef
-
getRoleArn
Amazon Resource Name (ARN) of the IAM role assumed by AWS Config and used by the configuration recorder. -
setRoleArn
Amazon Resource Name (ARN) of the IAM role assumed by AWS Config and used by the configuration recorder. -
getName
The name of the configuration recorder.AWS Config automatically assigns the name of "default" when creating the configuration recorder.
-
setName
The name of the configuration recorder.AWS Config automatically assigns the name of "default" when creating the configuration recorder.
-
getRecordingGroup
Specifies which resource types AWS Config records for configuration changes.Returns union: either
IResolvableorCfnConfigurationRecorder.RecordingGroupProperty -
setRecordingGroup
Specifies which resource types AWS Config records for configuration changes. -
setRecordingGroup
@Stability(Stable) public void setRecordingGroup(@Nullable CfnConfigurationRecorder.RecordingGroupProperty value) Specifies which resource types AWS Config records for configuration changes. -
getRecordingMode
Specifies the default recording frequency for the configuration recorder.AWS Config supports Continuous recording and Daily recording .
Returns union: either
IResolvableorCfnConfigurationRecorder.RecordingModeProperty -
setRecordingMode
Specifies the default recording frequency for the configuration recorder.AWS Config supports Continuous recording and Daily recording .
-
setRecordingMode
@Stability(Stable) public void setRecordingMode(@Nullable CfnConfigurationRecorder.RecordingModeProperty value) Specifies the default recording frequency for the configuration recorder.AWS Config supports Continuous recording and Daily recording .
-