

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::ServiceCatalog::StackSetConstraint
<a name="aws-resource-servicecatalog-stacksetconstraint"></a>

Specifies a StackSet constraint.

## Syntax
<a name="aws-resource-servicecatalog-stacksetconstraint-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-resource-servicecatalog-stacksetconstraint-syntax.json"></a>

```
{
  "Type" : "AWS::ServiceCatalog::StackSetConstraint",
  "Properties" : {
      "[AcceptLanguage](#cfn-servicecatalog-stacksetconstraint-acceptlanguage)" : String,
      "[AccountList](#cfn-servicecatalog-stacksetconstraint-accountlist)" : [ String, ... ],
      "[AdminRole](#cfn-servicecatalog-stacksetconstraint-adminrole)" : String,
      "[Description](#cfn-servicecatalog-stacksetconstraint-description)" : String,
      "[ExecutionRole](#cfn-servicecatalog-stacksetconstraint-executionrole)" : String,
      "[PortfolioId](#cfn-servicecatalog-stacksetconstraint-portfolioid)" : String,
      "[ProductId](#cfn-servicecatalog-stacksetconstraint-productid)" : String,
      "[RegionList](#cfn-servicecatalog-stacksetconstraint-regionlist)" : [ String, ... ],
      "[StackInstanceControl](#cfn-servicecatalog-stacksetconstraint-stackinstancecontrol)" : String
    }
}
```

### YAML
<a name="aws-resource-servicecatalog-stacksetconstraint-syntax.yaml"></a>

```
Type: AWS::ServiceCatalog::StackSetConstraint
Properties:
  [AcceptLanguage](#cfn-servicecatalog-stacksetconstraint-acceptlanguage): String
  [AccountList](#cfn-servicecatalog-stacksetconstraint-accountlist): 
    - String
  [AdminRole](#cfn-servicecatalog-stacksetconstraint-adminrole): String
  [Description](#cfn-servicecatalog-stacksetconstraint-description): String
  [ExecutionRole](#cfn-servicecatalog-stacksetconstraint-executionrole): String
  [PortfolioId](#cfn-servicecatalog-stacksetconstraint-portfolioid): String
  [ProductId](#cfn-servicecatalog-stacksetconstraint-productid): String
  [RegionList](#cfn-servicecatalog-stacksetconstraint-regionlist): 
    - String
  [StackInstanceControl](#cfn-servicecatalog-stacksetconstraint-stackinstancecontrol): String
```

## Properties
<a name="aws-resource-servicecatalog-stacksetconstraint-properties"></a>

`AcceptLanguage`  <a name="cfn-servicecatalog-stacksetconstraint-acceptlanguage"></a>
The language code.  
+ `jp` - Japanese
+ `zh` - Chinese
*Required*: No  
*Type*: String  
*Maximum*: `100`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`AccountList`  <a name="cfn-servicecatalog-stacksetconstraint-accountlist"></a>
One or more AWS accounts that will have access to the provisioned product.   
*Required*: Yes  
*Type*: Array of String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`AdminRole`  <a name="cfn-servicecatalog-stacksetconstraint-adminrole"></a>
AdminRole ARN  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Description`  <a name="cfn-servicecatalog-stacksetconstraint-description"></a>
The description of the constraint.  
*Required*: Yes  
*Type*: String  
*Maximum*: `2000`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ExecutionRole`  <a name="cfn-servicecatalog-stacksetconstraint-executionrole"></a>
ExecutionRole name  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`PortfolioId`  <a name="cfn-servicecatalog-stacksetconstraint-portfolioid"></a>
The portfolio identifier.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[a-zA-Z0-9_\-]*`  
*Minimum*: `1`  
*Maximum*: `100`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`ProductId`  <a name="cfn-servicecatalog-stacksetconstraint-productid"></a>
The product identifier.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[a-zA-Z0-9_\-]*`  
*Minimum*: `1`  
*Maximum*: `100`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`RegionList`  <a name="cfn-servicecatalog-stacksetconstraint-regionlist"></a>
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.  
*Required*: Yes  
*Type*: Array of String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`StackInstanceControl`  <a name="cfn-servicecatalog-stacksetconstraint-stackinstancecontrol"></a>
Permission to create, update, and delete stack instances. Choose from ALLOWED and NOT\$1ALLOWED.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-servicecatalog-stacksetconstraint-return-values"></a>

### Ref
<a name="aws-resource-servicecatalog-stacksetconstraint-return-values-ref"></a>

When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the identifier of the constraint.

For more information about using the `Ref` function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html).

### Fn::GetAtt
<a name="aws-resource-servicecatalog-stacksetconstraint-return-values-fn--getatt"></a>