Interface CloudFormationStackDriftDetectionCheckProps

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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-24T02:42:35.843Z") @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