Interface ICloudFormationStackDriftDetectionCheckProps
Construction properties for a CloudFormationStackDriftDetectionCheck.
Inherited Members
Namespace: Amazon.CDK.AWS.Config
Assembly: Amazon.CDK.AWS.Config.dll
Syntax (csharp)
public interface ICloudFormationStackDriftDetectionCheckProps : IRuleProps
Syntax (vb)
Public Interface ICloudFormationStackDriftDetectionCheckProps
Inherits IRuleProps
Remarks
ExampleMetadata: infused
Examples
// 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'
new CloudFormationStackDriftDetectionCheck(this, "Drift", new CloudFormationStackDriftDetectionCheckProps {
OwnStackOnly = true
});
Synopsis
Properties
OwnStackOnly | Whether to check only the stack where this rule is deployed. |
Role | The IAM role to use for this rule. |
Properties
OwnStackOnly
Whether to check only the stack where this rule is deployed.
virtual Nullable<bool> OwnStackOnly { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
Role
The IAM role to use for this rule.
virtual IRole Role { get; }
Property Value
Remarks
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