Class: AWSCDK::Config::CfnConfigurationRecorder::RecordingStrategyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Config::CfnConfigurationRecorder::RecordingStrategyProperty
- Defined in:
- config/cfn_configuration_recorder.rb
Overview
Specifies the recording strategy of the configuration recorder.
Valid values include: ALL_SUPPORTED_RESOURCE_TYPES , INCLUSION_BY_RESOURCE_TYPES , and EXCLUSION_BY_RESOURCE_TYPES .
Instance Attribute Summary collapse
-
#use_only ⇒ String
readonly
The recording strategy for the configuration recorder.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(use_only:) ⇒ RecordingStrategyProperty
constructor
A new instance of RecordingStrategyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(use_only:) ⇒ RecordingStrategyProperty
Returns a new instance of RecordingStrategyProperty.
913 914 915 916 |
# File 'config/cfn_configuration_recorder.rb', line 913 def initialize(use_only:) @use_only = use_only Jsii::Type.check_type(@use_only, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "useOnly") end |
Instance Attribute Details
#use_only ⇒ String (readonly)
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 resource types, excluding the global IAM resource types. You also must set theAllSupportedfield of RecordingGroup totrue. When AWS Config adds support for a new resource type, 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 RecordingGroup . - 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 ExclusionByResourceTypes .
Required and optional fields
The
recording_strategyfield is optional when you set theAllSupportedfield of RecordingGroup totrue.The
recording_strategyfield is optional when you list resource types in theResourceTypesfield of RecordingGroup .The
recording_strategyfield is required if you list resource types to exclude from recording in theResourceTypesfield of 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 IAM 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.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 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:
- Asia Pacific (Hyderabad)
- Asia Pacific (Melbourne)
- Canada West (Calgary)
- Europe (Spain)
- Europe (Zurich)
- Israel (Tel Aviv)
- Middle East (UAE)
952 953 954 |
# File 'config/cfn_configuration_recorder.rb', line 952 def use_only @use_only end |
Class Method Details
.jsii_properties ⇒ Object
954 955 956 957 958 |
# File 'config/cfn_configuration_recorder.rb', line 954 def self.jsii_properties { :use_only => "useOnly", } end |
Instance Method Details
#to_jsii ⇒ Object
960 961 962 963 964 965 966 |
# File 'config/cfn_configuration_recorder.rb', line 960 def to_jsii result = {} result.merge!({ "useOnly" => @use_only, }) result.compact end |