@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:50.782Z") public interface CloudFormationStackDriftDetectionCheckProps extends RuleProps
Example:
// compliant if stack's status is 'IN_SYNC' // non-compliant if the stack's drift status is 'DRIFTED' // compliant if stack's status is 'IN_SYNC' // non-compliant if the stack's drift status is 'DRIFTED' CloudFormationStackDriftDetectionCheck.Builder.create(this, "Drift") .ownStackOnly(true) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CloudFormationStackDriftDetectionCheckProps.Builder
A builder for
CloudFormationStackDriftDetectionCheckProps |
static class |
CloudFormationStackDriftDetectionCheckProps.Jsii$Proxy
An implementation for
CloudFormationStackDriftDetectionCheckProps |
Modifier and Type | Method and Description |
---|---|
static CloudFormationStackDriftDetectionCheckProps.Builder |
builder() |
default java.lang.Boolean |
getOwnStackOnly()
Whether to check only the stack where this rule is deployed.
|
default IRole |
getRole()
The IAM role to use for this rule.
|
getConfigRuleName, getDescription, getInputParameters, getMaximumExecutionFrequency, getRuleScope
default java.lang.Boolean getOwnStackOnly()
Default: false
default IRole getRole()
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
static CloudFormationStackDriftDetectionCheckProps.Builder builder()
builder
in interface RuleProps
CloudFormationStackDriftDetectionCheckProps.Builder
of CloudFormationStackDriftDetectionCheckProps