Class CfnConfigurationRecorder
The AWS::Config::ConfigurationRecorder
resource type describes the AWS resource types that AWS Config records for configuration changes.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Config
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnConfigurationRecorder : CfnResource, IInspectable
Syntax (vb)
Public Class CfnConfigurationRecorder
Inherits CfnResource
Implements IInspectable
Remarks
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.
CloudformationResource: AWS::Config::ConfigurationRecorder
ExampleMetadata: fixture=_generated
Examples
// 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 cfnConfigurationRecorder = new CfnConfigurationRecorder(this, "MyCfnConfigurationRecorder", new CfnConfigurationRecorderProps {
RoleArn = "roleArn",
// the properties below are optional
Name = "name",
RecordingGroup = new RecordingGroupProperty {
AllSupported = false,
ExclusionByResourceTypes = new ExclusionByResourceTypesProperty {
ResourceTypes = new [] { "resourceTypes" }
},
IncludeGlobalResourceTypes = false,
RecordingStrategy = new RecordingStrategyProperty {
UseOnly = "useOnly"
},
ResourceTypes = new [] { "resourceTypes" }
},
RecordingMode = new RecordingModeProperty {
RecordingFrequency = "recordingFrequency",
// the properties below are optional
RecordingModeOverrides = new [] { new RecordingModeOverrideProperty {
RecordingFrequency = "recordingFrequency",
ResourceTypes = new [] { "resourceTypes" },
// the properties below are optional
Description = "description"
} }
}
});
Synopsis
Constructors
Cfn |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cfn |
Used by jsii to construct an instance of this class from DeputyProps |
Cfn |
Properties
Attr |
|
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
Cfn |
|
Name | The name of the configuration recorder. |
Recording |
Specifies which resource types AWS Config records for configuration changes. |
Recording |
Specifies the default recording frequency for the configuration recorder. |
Role |
Amazon Resource Name (ARN) of the IAM role assumed by AWS Config and used by the configuration recorder. |
Methods
Inspect(Tree |
Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnConfigurationRecorder(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnConfigurationRecorder(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
CfnConfigurationRecorder(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnConfigurationRecorder(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
CfnConfigurationRecorder(Construct, String, ICfnConfigurationRecorderProps)
public CfnConfigurationRecorder(Construct scope, string id, ICfnConfigurationRecorderProps props)
Parameters
- scope Constructs.
Construct Scope in which this resource is defined.
- id System.
String Construct identifier for this resource (unique in its scope).
- props ICfn
Configuration Recorder Props Resource properties.
Properties
AttrId
public virtual string AttrId { get; }
Property Value
System.
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.
Overrides
Name
The name of the configuration recorder.
public virtual string Name { get; set; }
Property Value
System.
Remarks
AWS Config automatically assigns the name of "default" when creating the configuration recorder.
RecordingGroup
Specifies which resource types AWS Config records for configuration changes.
public virtual object RecordingGroup { get; set; }
Property Value
System.
RecordingMode
Specifies the default recording frequency for the configuration recorder.
public virtual object RecordingMode { get; set; }
Property Value
System.
Remarks
AWS Config supports Continuous recording and Daily recording .
RoleArn
Amazon Resource Name (ARN) of the IAM role assumed by AWS Config and used by the configuration recorder.
public virtual string RoleArn { get; set; }
Property Value
System.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector Tree
Inspector tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.
Collections. <System.Generic. IDictionary String , System.Object >
Returns
System.