Interface IStackSetsConstraintOptions
Properties for deploying with Stackset, which creates a StackSet constraint.
Namespace: Amazon.CDK.AWS.ServiceCatalog
Assembly: Amazon.CDK.AWS.ServiceCatalog.dll
Syntax (csharp)
public interface IStackSetsConstraintOptions : ICommonConstraintOptions
Syntax (vb)
Public Interface IStackSetsConstraintOptions
Inherits ICommonConstraintOptions
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.IAM;
Portfolio portfolio;
CloudFormationProduct product;
var adminRole = new Role(this, "AdminRole", new RoleProps {
AssumedBy = new AccountRootPrincipal()
});
portfolio.DeployWithStackSets(product, new StackSetsConstraintOptions {
Accounts = new [] { "012345678901", "012345678902", "012345678903" },
Regions = new [] { "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
});
Synopsis
Properties
Accounts | List of accounts to deploy stacks to. |
AdminRole | IAM role used to administer the StackSets configuration. |
AllowStackSetInstanceOperations | Wether to allow end users to create, update, and delete stacks. |
ExecutionRoleName | IAM role used to provision the products in the Stacks. |
Regions | List of regions to deploy stacks to. |
Properties
Accounts
List of accounts to deploy stacks to.
string[] Accounts { get; }
Property Value
System.String[]
AdminRole
IAM role used to administer the StackSets configuration.
IRole AdminRole { get; }
Property Value
AllowStackSetInstanceOperations
Wether to allow end users to create, update, and delete stacks.
virtual Nullable<bool> AllowStackSetInstanceOperations { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
ExecutionRoleName
IAM role used to provision the products in the Stacks.
string ExecutionRoleName { get; }
Property Value
System.String
Regions
List of regions to deploy stacks to.
string[] Regions { get; }
Property Value
System.String[]