public static final class CloudFormationStackDriftDetectionCheck.Builder
extends java.lang.Object
CloudFormationStackDriftDetectionCheck
.Modifier and Type | Method and Description |
---|---|
CloudFormationStackDriftDetectionCheck |
build() |
CloudFormationStackDriftDetectionCheck.Builder |
configRuleName(java.lang.String configRuleName)
A name for the AWS Config rule.
|
static CloudFormationStackDriftDetectionCheck.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
CloudFormationStackDriftDetectionCheck.Builder |
description(java.lang.String description)
A description about this AWS Config rule.
|
CloudFormationStackDriftDetectionCheck.Builder |
inputParameters(java.util.Map<java.lang.String,? extends java.lang.Object> inputParameters)
Input parameter values that are passed to the AWS Config rule.
|
CloudFormationStackDriftDetectionCheck.Builder |
maximumExecutionFrequency(MaximumExecutionFrequency maximumExecutionFrequency)
The maximum frequency at which the AWS Config rule runs evaluations.
|
CloudFormationStackDriftDetectionCheck.Builder |
ownStackOnly(java.lang.Boolean ownStackOnly)
Whether to check only the stack where this rule is deployed.
|
CloudFormationStackDriftDetectionCheck.Builder |
role(IRole role)
The IAM role to use for this rule.
|
CloudFormationStackDriftDetectionCheck.Builder |
ruleScope(RuleScope ruleScope)
Defines which resources trigger an evaluation for an AWS Config rule.
|
public static CloudFormationStackDriftDetectionCheck.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.CloudFormationStackDriftDetectionCheck.Builder
.public CloudFormationStackDriftDetectionCheck.Builder configRuleName(java.lang.String configRuleName)
Default: - CloudFormation generated name
configRuleName
- A name for the AWS Config rule. This parameter is required.this
public CloudFormationStackDriftDetectionCheck.Builder description(java.lang.String description)
Default: - No description
description
- A description about this AWS Config rule. This parameter is required.this
public CloudFormationStackDriftDetectionCheck.Builder inputParameters(java.util.Map<java.lang.String,? extends java.lang.Object> inputParameters)
Default: - No input parameters
inputParameters
- Input parameter values that are passed to the AWS Config rule. This parameter is required.this
public CloudFormationStackDriftDetectionCheck.Builder maximumExecutionFrequency(MaximumExecutionFrequency maximumExecutionFrequency)
Default: MaximumExecutionFrequency.TWENTY_FOUR_HOURS
maximumExecutionFrequency
- The maximum frequency at which the AWS Config rule runs evaluations. This parameter is required.this
public CloudFormationStackDriftDetectionCheck.Builder ruleScope(RuleScope ruleScope)
Default: - evaluations for the rule are triggered when any resource in the recording group changes.
ruleScope
- Defines which resources trigger an evaluation for an AWS Config rule. This parameter is required.this
public CloudFormationStackDriftDetectionCheck.Builder ownStackOnly(java.lang.Boolean ownStackOnly)
Default: false
ownStackOnly
- Whether to check only the stack where this rule is deployed. This parameter is required.this
public CloudFormationStackDriftDetectionCheck.Builder role(IRole role)
It must have permissions to detect drift
for AWS CloudFormation stacks. Ensure to attach config.amazonaws.com
trusted
permissions and ReadOnlyAccess
policy permissions. For specific policy permissions,
refer to https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html.
Default: - A role will be created
role
- The IAM role to use for this rule. This parameter is required.this
public CloudFormationStackDriftDetectionCheck build()