Class CloudFormationStackDriftDetectionCheckProps.Builder
java.lang.Object
software.amazon.awscdk.services.config.CloudFormationStackDriftDetectionCheckProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudFormationStackDriftDetectionCheckProps>
- Enclosing interface:
CloudFormationStackDriftDetectionCheckProps
@Stability(Stable)
public static final class CloudFormationStackDriftDetectionCheckProps.Builder
extends Object
implements software.amazon.jsii.Builder<CloudFormationStackDriftDetectionCheckProps>
A builder for
CloudFormationStackDriftDetectionCheckProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.configRuleName
(String configRuleName) Sets the value ofRuleProps.getConfigRuleName()
description
(String description) Sets the value ofRuleProps.getDescription()
inputParameters
(Map<String, ? extends Object> inputParameters) Sets the value ofRuleProps.getInputParameters()
maximumExecutionFrequency
(MaximumExecutionFrequency maximumExecutionFrequency) Sets the value ofRuleProps.getMaximumExecutionFrequency()
ownStackOnly
(Boolean ownStackOnly) Sets the value ofCloudFormationStackDriftDetectionCheckProps.getOwnStackOnly()
Sets the value ofCloudFormationStackDriftDetectionCheckProps.getRole()
Sets the value ofRuleProps.getRuleScope()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ownStackOnly
@Stability(Stable) public CloudFormationStackDriftDetectionCheckProps.Builder ownStackOnly(Boolean ownStackOnly) Sets the value ofCloudFormationStackDriftDetectionCheckProps.getOwnStackOnly()
- Parameters:
ownStackOnly
- Whether to check only the stack where this rule is deployed.- Returns:
this
-
role
Sets the value ofCloudFormationStackDriftDetectionCheckProps.getRole()
- Parameters:
role
- The IAM role to use for this rule. It must have permissions to detect drift for AWS CloudFormation stacks. Ensure to attachconfig.amazonaws.com
trusted permissions andReadOnlyAccess
policy permissions. For specific policy permissions, refer to https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html.- Returns:
this
-
configRuleName
@Stability(Stable) public CloudFormationStackDriftDetectionCheckProps.Builder configRuleName(String configRuleName) Sets the value ofRuleProps.getConfigRuleName()
- Parameters:
configRuleName
- A name for the AWS Config rule.- Returns:
this
-
description
@Stability(Stable) public CloudFormationStackDriftDetectionCheckProps.Builder description(String description) Sets the value ofRuleProps.getDescription()
- Parameters:
description
- A description about this AWS Config rule.- Returns:
this
-
inputParameters
@Stability(Stable) public CloudFormationStackDriftDetectionCheckProps.Builder inputParameters(Map<String, ? extends Object> inputParameters) Sets the value ofRuleProps.getInputParameters()
- Parameters:
inputParameters
- Input parameter values that are passed to the AWS Config rule.- Returns:
this
-
maximumExecutionFrequency
@Stability(Stable) public CloudFormationStackDriftDetectionCheckProps.Builder maximumExecutionFrequency(MaximumExecutionFrequency maximumExecutionFrequency) Sets the value ofRuleProps.getMaximumExecutionFrequency()
- Parameters:
maximumExecutionFrequency
- The maximum frequency at which the AWS Config rule runs evaluations.- Returns:
this
-
ruleScope
@Stability(Stable) public CloudFormationStackDriftDetectionCheckProps.Builder ruleScope(RuleScope ruleScope) Sets the value ofRuleProps.getRuleScope()
- Parameters:
ruleScope
- Defines which resources trigger an evaluation for an AWS Config rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CloudFormationStackDriftDetectionCheckProps>
- Returns:
- a new instance of
CloudFormationStackDriftDetectionCheckProps
- Throws:
NullPointerException
- if any required attribute was not provided
-