Acknowledgment

class aws_cdk.Acknowledgment(*, id, reason)

Bases: object

An acknowledgment of a validation rule, used to suppress it from output.

Parameters:
  • id (str) – The rule ID to acknowledge.

  • reason (str) – The reason for acknowledging this rule.

ExampleMetadata:

infused

Example:

Annotations.of(self).acknowledge_warning("IAM:Group:MaxPoliciesExceeded", "Account has quota increased to 20")

# Because Annotations ultimately become Validations, you can also acknowledge the Validation
Validations.of(self).acknowledge(
    id="Construct-Annotations::IAM:Group:MaxPoliciesExceeded",
    reason="Account has quota increased to 20"
)

Attributes

id

The rule ID to acknowledge.

reason

The reason for acknowledging this rule.