Interface CloudFormationStackDriftDetectionCheckProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, RuleProps
All Known Implementing Classes:
CloudFormationStackDriftDetectionCheckProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:28.652Z") @Stability(Stable) public interface CloudFormationStackDriftDetectionCheckProps extends software.amazon.jsii.JsiiSerializable, RuleProps
Construction properties for a CloudFormationStackDriftDetectionCheck.

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();
 
  • Method Details

    • getOwnStackOnly

      @Stability(Stable) @Nullable default Boolean getOwnStackOnly()
      Whether to check only the stack where this rule is deployed.

      Default: false

    • getRole

      @Stability(Stable) @Nullable default IRole getRole()
      The IAM role to use for this rule.

      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

    • builder

      @Stability(Stable) static CloudFormationStackDriftDetectionCheckProps.Builder builder()
      Returns:
      a CloudFormationStackDriftDetectionCheckProps.Builder of CloudFormationStackDriftDetectionCheckProps