Class CfnConfigurationRecorder.RecordingStrategyProperty
Specifies the recording strategy of the configuration recorder.
Inheritance
Namespace: Amazon.CDK.AWS.Config
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RecordingStrategyProperty : Object, CfnConfigurationRecorder.IRecordingStrategyProperty
Syntax (vb)
Public Class RecordingStrategyProperty
Inherits Object
Implements CfnConfigurationRecorder.IRecordingStrategyProperty
Remarks
Valid values include: ALL_SUPPORTED_RESOURCE_TYPES
, INCLUSION_BY_RESOURCE_TYPES
, and EXCLUSION_BY_RESOURCE_TYPES
.
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 recordingStrategyProperty = new RecordingStrategyProperty {
UseOnly = "useOnly"
};
Synopsis
Constructors
RecordingStrategyProperty() |
Properties
UseOnly | The recording strategy for the configuration recorder. |
Constructors
RecordingStrategyProperty()
public RecordingStrategyProperty()
Properties
UseOnly
The recording strategy for the configuration recorder.
public string UseOnly { get; set; }
Property Value
System.String
Remarks
Required and optional fields
The recordingStrategy
field is optional when you set the AllSupported
field of RecordingGroup to true
.
The recordingStrategy
field is optional when you list resource types in the ResourceTypes
field of RecordingGroup .
The recordingStrategy
field is required if you list resource types to exclude from recording in the ResourceTypes
field of ExclusionByResourceTypes . > Overriding fields
If you choose EXCLUSION_BY_RESOURCE_TYPES
for the recording strategy, the ExclusionByResourceTypes
field will override other properties in the request.
For example, even if you set IncludeGlobalResourceTypes
to false, global IAM resource types will still be automatically recorded in this option unless those resource types are specifically listed as exclusions in the ResourceTypes
field of ExclusionByResourceTypes
. > Global resource types and the exclusion recording strategy
By default, if you choose the EXCLUSION_BY_RESOURCE_TYPES
recording strategy, when AWS Config adds support for a new resource type in the Region where you set up the configuration recorder, including global resource types, AWS Config starts recording resources of that type automatically.
Unless specifically listed as exclusions, AWS::RDS::GlobalCluster
will be recorded automatically in all supported AWS Config Regions were the configuration recorder is enabled.
IAM users, groups, roles, and customer managed policies will be recorded in the Region where you set up the configuration recorder if that is a Region where AWS Config was available before February 2022. You cannot be record the global IAM resouce types in Regions supported by AWS Config after February 2022. This list where you cannot record the global IAM resource types includes the following Regions: