# CfnStackSetConstraintProps

Properties for defining a `CfnStackSetConstraint`.

Used as props by: [CfnStackSetConstraint](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_servicecatalog.CfnStackSetConstraint.html)

- Source: Generated at build time

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_servicecatalog as servicecatalog } from 'aws-cdk-lib';
const cfnStackSetConstraintProps: servicecatalog.CfnStackSetConstraintProps = {
  accountList: ['accountList'],
  adminRole: 'adminRole',
  description: 'description',
  executionRole: 'executionRole',
  portfolioId: 'portfolioId',
  productId: 'productId',
  regionList: ['regionList'],
  stackInstanceControl: 'stackInstanceControl',

  // the properties below are optional
  acceptLanguage: 'acceptLanguage',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_servicecatalog as servicecatalog

cfn_stack_set_constraint_props = servicecatalog.CfnStackSetConstraintProps(
    account_list=["accountList"],
    admin_role="adminRole",
    description="description",
    execution_role="executionRole",
    portfolio_id="portfolioId",
    product_id="productId",
    region_list=["regionList"],
    stack_instance_control="stackInstanceControl",

    # the properties below are optional
    accept_language="acceptLanguage"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.servicecatalog.*;

CfnStackSetConstraintProps cfnStackSetConstraintProps = CfnStackSetConstraintProps.builder()
        .accountList(List.of("accountList"))
        .adminRole("adminRole")
        .description("description")
        .executionRole("executionRole")
        .portfolioId("portfolioId")
        .productId("productId")
        .regionList(List.of("regionList"))
        .stackInstanceControl("stackInstanceControl")

        // the properties below are optional
        .acceptLanguage("acceptLanguage")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Servicecatalog;

var cfnStackSetConstraintProps = new CfnStackSetConstraintProps {
    AccountList = new [] { "accountList" },
    AdminRole = "adminRole",
    Description = "description",
    ExecutionRole = "executionRole",
    PortfolioId = "portfolioId",
    ProductId = "productId",
    RegionList = new [] { "regionList" },
    StackInstanceControl = "stackInstanceControl",

    // the properties below are optional
    AcceptLanguage = "acceptLanguage"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnStackSetConstraintProps := &CfnStackSetConstraintProps{
	AccountList: []*string{
		jsii.String("accountList"),
	},
	AdminRole: jsii.String("adminRole"),
	Description: jsii.String("description"),
	ExecutionRole: jsii.String("executionRole"),
	PortfolioId: jsii.String("portfolioId"),
	ProductId: jsii.String("productId"),
	RegionList: []*string{
		jsii.String("regionList"),
	},
	StackInstanceControl: jsii.String("stackInstanceControl"),

	// the properties below are optional
	AcceptLanguage: jsii.String("acceptLanguage"),
}
```

## Properties

- `acceptLanguage`: string — The language code.

  - `jp` - Japanese
  - `zh` - Chinese

- `accountList`: string[] (required) — One or more AWS accounts that will have access to the provisioned product.

- `adminRole`: string (required) — AdminRole ARN.

- `description`: string (required) — The description of the constraint.

- `executionRole`: string (required) — ExecutionRole name.

- `portfolioId`: string (required) — The portfolio identifier.

- `productId`: string (required) — The product identifier.

- `regionList`: string[] (required) — One or more AWS Regions where the provisioned product will be available.

  Applicable only to a `CFN_STACKSET` provisioned product type.

  The specified Regions should be within the list of Regions from the `STACKSET` constraint. To get the list of Regions in the `STACKSET` constraint, use the `DescribeProvisioningParameters` operation.

  If no values are specified, the default value is all Regions from the `STACKSET` constraint.

- `stackInstanceControl`: string (required) — Permission to create, update, and delete stack instances.

  Choose from ALLOWED and NOT_ALLOWED.
