@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.722Z") @Stability(value=Stable) public class CfnConfigurationRecorder extends CfnResource implements IInspectable
The AWS::Config::ConfigurationRecorder resource describes the AWS resource types for which AWS Config records configuration changes. The configuration recorder stores the configurations of the supported 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)
.includeGlobalResourceTypes(false)
.resourceTypes(List.of("resourceTypes"))
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnConfigurationRecorder.Builder
A fluent builder for
CfnConfigurationRecorder. |
static interface |
CfnConfigurationRecorder.RecordingGroupProperty
Specifies the types of AWS resource for which AWS Config records configuration changes.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnConfigurationRecorder(software.constructs.Construct scope,
String id,
CfnConfigurationRecorderProps props)
Create a new `AWS::Config::ConfigurationRecorder`.
|
protected |
CfnConfigurationRecorder(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnConfigurationRecorder(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getName()
A name for the configuration recorder.
|
Object |
getRecordingGroup()
Indicates whether to record configurations for all supported resources or for a list of resource types.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of the IAM (IAM) role that is used to make read or write requests to the delivery channel that you specify and to get configuration details for supported AWS resources.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setName(String value)
A name for the configuration recorder.
|
void |
setRecordingGroup(CfnConfigurationRecorder.RecordingGroupProperty value)
Indicates whether to record configurations for all supported resources or for a list of resource types.
|
void |
setRecordingGroup(IResolvable value)
Indicates whether to record configurations for all supported resources or for a list of resource types.
|
void |
setRoleArn(String value)
The Amazon Resource Name (ARN) of the IAM (IAM) role that is used to make read or write requests to the delivery channel that you specify and to get configuration details for supported AWS resources.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnConfigurationRecorder(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnConfigurationRecorder(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnConfigurationRecorder(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnConfigurationRecorderProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getRoleArn()
For more information, see Permissions for the IAM Role Assigned to AWS Config in the AWS Config Developer Guide.
@Stability(value=Stable)
public void setRoleArn(@NotNull
String value)
For more information, see Permissions for the IAM Role Assigned to AWS Config in the AWS Config Developer Guide.
@Stability(value=Stable) @Nullable public String getName()
If you don't specify a name, AWS CloudFormation CloudFormation generates a unique physical ID and uses that ID for the configuration recorder name. For more information, see Name Type .
After you create a configuration recorder, you cannot rename it. If you don't want a name that AWS CloudFormation generates, specify a value for this property.
Updates are not supported.
@Stability(value=Stable)
public void setName(@Nullable
String value)
If you don't specify a name, AWS CloudFormation CloudFormation generates a unique physical ID and uses that ID for the configuration recorder name. For more information, see Name Type .
After you create a configuration recorder, you cannot rename it. If you don't want a name that AWS CloudFormation generates, specify a value for this property.
Updates are not supported.
@Stability(value=Stable) @Nullable public Object getRecordingGroup()
The resource types that you list must be supported by AWS Config .
@Stability(value=Stable)
public void setRecordingGroup(@Nullable
CfnConfigurationRecorder.RecordingGroupProperty value)
The resource types that you list must be supported by AWS Config .
@Stability(value=Stable)
public void setRecordingGroup(@Nullable
IResolvable value)
The resource types that you list must be supported by AWS Config .
Copyright © 2022. All rights reserved.