# StackSetsConstraintOptions

Properties for deploying with Stackset, which creates a StackSet constraint.

Extends: StackSetsConstraintOptions
Extends: CommonConstraintOptions

- Source: [`aws-servicecatalog/lib/constraints.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-servicecatalog/lib/constraints.ts#L28)
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

```ts
declare const portfolio: servicecatalog.Portfolio;
declare const product: servicecatalog.CloudFormationProduct;

const adminRole = new iam.Role(this, 'AdminRole', {
  assumedBy: new iam.AccountRootPrincipal(),
});

portfolio.deployWithStackSets(product, {
  accounts: ['012345678901', '012345678902', '012345678903'],
  regions: ['us-west-1', 'us-east-1', 'us-west-2', 'us-east-1'],
  adminRole: adminRole,
  executionRoleName: 'SCStackSetExecutionRole', // Name of role deployed in end users accounts.
  allowStackSetInstanceOperations: true,
});
```

## Properties

- `accounts`: string[] (required) — List of accounts to deploy stacks to.

- `adminRole`: [IRoleRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_iam.IRoleRef.html) (required) — IAM role used to administer the StackSets configuration.

- `allowStackSetInstanceOperations`: boolean = false — Whether to allow end users to create, update, and delete stacks.

- `description`: string — The description of the constraint.

  **Default:** No description provided

- `executionRoleName`: string (required) — IAM role used to provision the products in the Stacks.

- `messageLanguage`: [MessageLanguage](/cdk/api/v2/docs/aws-cdk-lib.aws_servicecatalog.MessageLanguage.html) = English — The language code.

  Configures the language for error messages from service catalog.

- `regions`: string[] (required) — List of regions to deploy stacks to.
