Class CfnConfigurationRecorderProps.Builder
java.lang.Object
software.amazon.awscdk.services.config.CfnConfigurationRecorderProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConfigurationRecorderProps>
- Enclosing interface:
CfnConfigurationRecorderProps
@Stability(Stable)
public static final class CfnConfigurationRecorderProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConfigurationRecorderProps>
A builder for
CfnConfigurationRecorderProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnConfigurationRecorderProps.getName()
recordingGroup
(IResolvable recordingGroup) Sets the value ofCfnConfigurationRecorderProps.getRecordingGroup()
recordingGroup
(CfnConfigurationRecorder.RecordingGroupProperty recordingGroup) Sets the value ofCfnConfigurationRecorderProps.getRecordingGroup()
Sets the value ofCfnConfigurationRecorderProps.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCfnConfigurationRecorderProps.getRoleArn()
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the IAM (IAM) role that is used to make read or write requests to the delivery channel that you specify and to get configuration details for supported AWS resources. This parameter is required. For more information, see Permissions for the IAM Role Assigned to AWS Config in the AWS Config Developer Guide.- Returns:
this
-
name
Sets the value ofCfnConfigurationRecorderProps.getName()
- Parameters:
name
- A name for the configuration recorder. If you don't specify a name, AWS CloudFormation CloudFormation generates a unique physical ID and uses that ID for the configuration recorder name. For more information, see Name Type .After you create a configuration recorder, you cannot rename it. If you don't want a name that AWS CloudFormation generates, specify a value for this property.
Updates are not supported.
- Returns:
this
-
recordingGroup
@Stability(Stable) public CfnConfigurationRecorderProps.Builder recordingGroup(IResolvable recordingGroup) Sets the value ofCfnConfigurationRecorderProps.getRecordingGroup()
- Parameters:
recordingGroup
- Indicates whether to record configurations for all supported resources or for a list of resource types. The resource types that you list must be supported by AWS Config .- Returns:
this
-
recordingGroup
@Stability(Stable) public CfnConfigurationRecorderProps.Builder recordingGroup(CfnConfigurationRecorder.RecordingGroupProperty recordingGroup) Sets the value ofCfnConfigurationRecorderProps.getRecordingGroup()
- Parameters:
recordingGroup
- Indicates whether to record configurations for all supported resources or for a list of resource types. The resource types that you list must be supported by AWS Config .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConfigurationRecorderProps>
- Returns:
- a new instance of
CfnConfigurationRecorderProps
- Throws:
NullPointerException
- if any required attribute was not provided
-