Skip to content
v2.278.0

CfnStackSetConstraintProps Struct ​

Properties for defining a CfnStackSetConstraint.

Example ​

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
# 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
// 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();
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"
};
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 ​

acceptLanguageoptionalstringaccept_languageoptionalstracceptLanguageoptionalStringAcceptLanguageoptionalstringAcceptLanguageoptional*string #
The language code.
  • jp - Japanese
  • zh - Chinese
accountListstring[]account_listtyping.List[str]accountListList<String>AccountListstring[]AccountList*[]*string required #
One or more AWS accounts that will have access to the provisioned product.
adminRolestringadmin_rolestradminRoleStringAdminRolestringAdminRole*string required #
AdminRole ARN.
descriptionstringdescriptionstrdescriptionStringDescriptionstringDescription*string required #
The description of the constraint.
executionRolestringexecution_rolestrexecutionRoleStringExecutionRolestringExecutionRole*string required #
ExecutionRole name.
portfolioIdstringportfolio_idstrportfolioIdStringPortfolioIdstringPortfolioId*string required #
The portfolio identifier.
productIdstringproduct_idstrproductIdStringProductIdstringProductId*string required #
The product identifier.
regionListstring[]region_listtyping.List[str]regionListList<String>RegionListstring[]RegionList*[]*string required #
One or more AWS Regions where the provisioned product will be available.
notes

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.

stackInstanceControlstringstack_instance_controlstrstackInstanceControlStringStackInstanceControlstringStackInstanceControl*string required #
Permission to create, update, and delete stack instances.

Choose from ALLOWED and NOT_ALLOWED.