Interface CfnConfigurationRecorder.RecordingStrategyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnConfigurationRecorder.RecordingStrategyProperty.Jsii$Proxy
- Enclosing class:
CfnConfigurationRecorder
Valid values include: ALL_SUPPORTED_RESOURCE_TYPES , INCLUSION_BY_RESOURCE_TYPES , and EXCLUSION_BY_RESOURCE_TYPES .
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.*;
RecordingStrategyProperty recordingStrategyProperty = RecordingStrategyProperty.builder()
.useOnly("useOnly")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnConfigurationRecorder.RecordingStrategyPropertystatic final classAn implementation forCfnConfigurationRecorder.RecordingStrategyProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The recording strategy for the configuration recorder.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getUseOnly
The recording strategy for the configuration recorder.- If you set this option to
ALL_SUPPORTED_RESOURCE_TYPES, AWS Config records configuration changes for all supported regionally recorded resource types. You also must set theallSupportedfield of AWS::Config::ConfigurationRecorder RecordingGroup totrue. When AWS Config adds support for a new regionally recorded resource, AWS Config automatically starts recording resources of that type. For a list of supported resource types, see Supported Resource Types in the AWS Config developer guide . - If you set this option to
INCLUSION_BY_RESOURCE_TYPES, AWS Config records configuration changes for only the resource types that you specify in theresourceTypesfield of [AWS::Config::ConfigurationRecorder RecordingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-conew type of regional resourcenfigurationrecorder-recordinggroup.html) . - If you set this option to
EXCLUSION_BY_RESOURCE_TYPES, AWS Config records configuration changes for all supported resource types, except the resource types that you specify to exclude from being recorded in theresourceTypesfield of AWS::Config::ConfigurationRecorder ExclusionByResourceTypes .
Required and optional fields
The
recordingStrategyfield is optional when you set theallSupportedfield of AWS::Config::ConfigurationRecorder RecordingGroup totrue.The
recordingStrategyfield is optional when you list resource types in theresourceTypesfield of AWS::Config::ConfigurationRecorder RecordingGroup .The
recordingStrategyfield is required if you list resource types to exclude from recording in theresourceTypesfield of AWS::Config::ConfigurationRecorder ExclusionByResourceTypes . > Overriding fieldsIf you choose
EXCLUSION_BY_RESOURCE_TYPESfor the recording strategy, theexclusionByResourceTypesfield will override other properties in the request.For example, even if you set
includeGlobalResourceTypesto false, global resource types will still be automatically recorded in this option unless those resource types are specifically listed as exclusions in theresourceTypesfield ofexclusionByResourceTypes. > Global resource types and the exclusion recording strategyBy default, if you choose the
EXCLUSION_BY_RESOURCE_TYPESrecording 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.In addition, unless specifically listed as exclusions,
AWS::RDS::GlobalClusterwill 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 automatically in all enabled AWS Config Regions where AWS Config was available before February 2022. This list does not include the following Regions:- Asia Pacific (Hyderabad)
- Asia Pacific (Melbourne)
- Europe (Spain)
- Europe (Zurich)
- Israel (Tel Aviv)
- Middle East (UAE)
- See Also:
- If you set this option to
-
builder
-