Class CfnConfigurationRecorder.RecordingGroupProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConfigurationRecorder.RecordingGroupProperty>
- Enclosing interface:
CfnConfigurationRecorder.RecordingGroupProperty
CfnConfigurationRecorder.RecordingGroupProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallSupported
(Boolean allSupported) Sets the value ofCfnConfigurationRecorder.RecordingGroupProperty.getAllSupported()
allSupported
(IResolvable allSupported) Sets the value ofCfnConfigurationRecorder.RecordingGroupProperty.getAllSupported()
build()
Builds the configured instance.includeGlobalResourceTypes
(Boolean includeGlobalResourceTypes) includeGlobalResourceTypes
(IResolvable includeGlobalResourceTypes) resourceTypes
(List<String> resourceTypes) Sets the value ofCfnConfigurationRecorder.RecordingGroupProperty.getResourceTypes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allSupported
@Stability(Stable) public CfnConfigurationRecorder.RecordingGroupProperty.Builder allSupported(Boolean allSupported) Sets the value ofCfnConfigurationRecorder.RecordingGroupProperty.getAllSupported()
- Parameters:
allSupported
- Specifies whether AWS Config records configuration changes for all supported regional resource types. If you set this field totrue
, when AWS Config adds support for a new type of regional resource, AWS Config starts recording resources of that type automatically.If you set this field to
true
, you cannot enumerate specific resource types to record in theresourceTypes
field of RecordingGroup , or to exclude in theresourceTypes
field of ExclusionByResourceTypes .- Returns:
this
-
allSupported
@Stability(Stable) public CfnConfigurationRecorder.RecordingGroupProperty.Builder allSupported(IResolvable allSupported) Sets the value ofCfnConfigurationRecorder.RecordingGroupProperty.getAllSupported()
- Parameters:
allSupported
- Specifies whether AWS Config records configuration changes for all supported regional resource types. If you set this field totrue
, when AWS Config adds support for a new type of regional resource, AWS Config starts recording resources of that type automatically.If you set this field to
true
, you cannot enumerate specific resource types to record in theresourceTypes
field of RecordingGroup , or to exclude in theresourceTypes
field of ExclusionByResourceTypes .- Returns:
this
-
includeGlobalResourceTypes
@Stability(Stable) public CfnConfigurationRecorder.RecordingGroupProperty.Builder includeGlobalResourceTypes(Boolean includeGlobalResourceTypes) - Parameters:
includeGlobalResourceTypes
- Specifies whether AWS Config includes all supported types of global resources (for example, IAM resources) with the resources that it records. Before you can set this option totrue
, you must set theAllSupported
option totrue
.If you set this option to
true
, when AWS Config adds support for a new type of global resource, it starts recording resources of that type automatically.The configuration details for any global resource are the same in all regions. To prevent duplicate configuration items, you should consider customizing AWS Config in only one region to record global resources.
- Returns:
this
-
includeGlobalResourceTypes
@Stability(Stable) public CfnConfigurationRecorder.RecordingGroupProperty.Builder includeGlobalResourceTypes(IResolvable includeGlobalResourceTypes) - Parameters:
includeGlobalResourceTypes
- Specifies whether AWS Config includes all supported types of global resources (for example, IAM resources) with the resources that it records. Before you can set this option totrue
, you must set theAllSupported
option totrue
.If you set this option to
true
, when AWS Config adds support for a new type of global resource, it starts recording resources of that type automatically.The configuration details for any global resource are the same in all regions. To prevent duplicate configuration items, you should consider customizing AWS Config in only one region to record global resources.
- Returns:
this
-
resourceTypes
@Stability(Stable) public CfnConfigurationRecorder.RecordingGroupProperty.Builder resourceTypes(List<String> resourceTypes) Sets the value ofCfnConfigurationRecorder.RecordingGroupProperty.getResourceTypes()
- Parameters:
resourceTypes
- A comma-separated list that specifies the types of AWS resources for which AWS Config records configuration changes (for example,AWS::EC2::Instance
orAWS::CloudTrail::Trail
). To record all configuration changes, you must set theAllSupported
option tofalse
.If you set the
AllSupported
option to false and populate theResourceTypes
option with values, when AWS Config adds support for a new type of resource, it will not record resources of that type unless you manually add that type to your recording group.For a list of valid
resourceTypes
values, see the resourceType Value column in Supported AWS Resource Types .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConfigurationRecorder.RecordingGroupProperty>
- Returns:
- a new instance of
CfnConfigurationRecorder.RecordingGroupProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-