accountIdsproperty, which lets you define a list of allowed accounts to deploy a stack. It accepts a single account id or a list of account ids.
accountIdsproperty can be defined in stack and stack group configuration files. If specified in a stack group, the stack group's children and stacks inherit the value. Stack groups and stacks can override the value they have inherited from their parent.
accountIdsproperty must satisfy these requirements: