Class StackSetsConstraintOptions
Properties for deploying with Stackset, which creates a StackSet constraint.
Inheritance
Namespace: Amazon.CDK.AWS.ServiceCatalog
Assembly: Amazon.CDK.AWS.ServiceCatalog.dll
Syntax (csharp)
public class StackSetsConstraintOptions : Object, IStackSetsConstraintOptions, ICommonConstraintOptions
Syntax (vb)
Public Class StackSetsConstraintOptions
Inherits Object
Implements IStackSetsConstraintOptions, 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
Constructors
StackSetsConstraintOptions() |
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. |
Description | The description of the constraint. |
ExecutionRoleName | IAM role used to provision the products in the Stacks. |
MessageLanguage | The language code. |
Regions | List of regions to deploy stacks to. |
Constructors
StackSetsConstraintOptions()
public StackSetsConstraintOptions()
Properties
Accounts
List of accounts to deploy stacks to.
public string[] Accounts { get; set; }
Property Value
System.String[]
AdminRole
IAM role used to administer the StackSets configuration.
public IRole AdminRole { get; set; }
Property Value
AllowStackSetInstanceOperations
Wether to allow end users to create, update, and delete stacks.
public Nullable<bool> AllowStackSetInstanceOperations { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
Description
The description of the constraint.
public string Description { get; set; }
Property Value
System.String
Remarks
Default: - No description provided
ExecutionRoleName
IAM role used to provision the products in the Stacks.
public string ExecutionRoleName { get; set; }
Property Value
System.String
MessageLanguage
The language code.
public Nullable<MessageLanguage> MessageLanguage { get; set; }
Property Value
System.Nullable<MessageLanguage>
Remarks
Configures the language for error messages from service catalog.
Default: - English
Regions
List of regions to deploy stacks to.
public string[] Regions { get; set; }
Property Value
System.String[]