Class CfnConfigurationRecorder
- All Implemented Interfaces:
IInspectable
,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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnConfigurationRecorder
.static interface
Specifies whether the configuration recorder excludes certain resource types from being recorded.static interface
Specifies which resource types AWS Config records for configuration changes.static interface
An object for you to specify your overrides for the recording mode.static interface
Specifies the default recording frequency that AWS Config uses to record configuration changes.static interface
Specifies the recording strategy of the configuration recorder.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnConfigurationRecorder
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnConfigurationRecorder
(software.amazon.jsii.JsiiObjectRef objRef) CfnConfigurationRecorder
(software.constructs.Construct scope, String id, CfnConfigurationRecorderProps props) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
The name of the configuration recorder.Specifies which resource types AWS Config records for configuration changes.Specifies the default recording frequency that AWS Config uses to record configuration changes.Amazon Resource Name (ARN) of the IAM role assumed by AWS Config and used by the configuration recorder.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The name of the configuration recorder.void
setRecordingGroup
(IResolvable value) Specifies which resource types AWS Config records for configuration changes.void
Specifies which resource types AWS Config records for configuration changes.void
setRecordingMode
(IResolvable value) Specifies the default recording frequency that AWS Config uses to record configuration changes.void
Specifies the default recording frequency that AWS Config uses to record configuration changes.void
setRoleArn
(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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
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. -
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 that AWS Config uses to record configuration changes. -
setRecordingMode
Specifies the default recording frequency that AWS Config uses to record configuration changes. -
setRecordingMode
@Stability(Stable) public void setRecordingMode(@Nullable CfnConfigurationRecorder.RecordingModeProperty value) Specifies the default recording frequency that AWS Config uses to record configuration changes.
-