@pulumi/policy - v1.21.0
    Preparing search index...

    Interface StackValidationArgs

    StackValidationArgs is the argument bag passed to a stack validation.

    interface StackValidationArgs {
        resources: PolicyResource[];
        stackTags: ReadonlyMap<string, string>;
        getConfig<T extends object>(): T;
        notApplicable(reason?: string): never;
    }
    Index

    Properties

    resources: PolicyResource[]

    The resources in the stack.

    stackTags: ReadonlyMap<string, string>

    Tags associated with the stack.

    Methods

    • Returns configuration for the policy.

      Type Parameters

      • T extends object

      Returns T

    • Marks the policy as not applicable.

      Parameters

      • Optionalreason: string

        An optional reason why the policy is not applicable.

      Returns never