MDAA TS Docs
    Preparing search index...

    Interface BuildPolicyConfig

    Policy configuration for the build role. Supports managed policy ARNs or inline policy documents (mutually exclusive per entry).

    interface BuildPolicyConfig {
        policyArn?: string;
        policyDocument?: BuildPolicyDocumentConfig;
        suppressions?: BuildPolicySuppressionConfig[];
    }
    Index

    Properties

    policyArn?: string

    ARN of an existing managed policy to attach to the build role. Mutually exclusive with policyDocument. The deployer is responsible for ensuring the referenced policy follows least-privilege principles — CDK Nag cannot inspect imported policies.

    policyDocument?: BuildPolicyDocumentConfig

    Inline policy document. The construct creates a managed policy from these statements. Mutually exclusive with policyArn.

    CDK Nag suppressions for rules triggered by this policy. Required when policyDocument uses wildcard resources. Deployers are responsible for ensuring suppression reasons are specific and auditable.