Class: AWSCDK::ServiceCatalog::StackSetsConstraintOptions
- Inherits:
-
CommonConstraintOptions
- Object
- CommonConstraintOptions
- AWSCDK::ServiceCatalog::StackSetsConstraintOptions
- Defined in:
- service_catalog/stack_sets_constraint_options.rb
Overview
Properties for deploying with Stackset, which creates a StackSet constraint.
Instance Attribute Summary collapse
-
#accounts ⇒ Array<String>
readonly
List of accounts to deploy stacks to.
-
#admin_role ⇒ AWSCDK::Interfaces::AWSIAM::IRoleRef
readonly
IAM role used to administer the StackSets configuration.
-
#allow_stack_set_instance_operations ⇒ Boolean?
readonly
Whether to allow end users to create, update, and delete stacks.
-
#description ⇒ String?
readonly
The description of the constraint.
-
#execution_role_name ⇒ String
readonly
IAM role used to provision the products in the Stacks.
-
#message_language ⇒ AWSCDK::ServiceCatalog::MessageLanguage?
readonly
The language code.
-
#regions ⇒ Array<String>
readonly
List of regions to deploy stacks to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(description: nil, message_language: nil, accounts:, admin_role:, execution_role_name:, regions:, allow_stack_set_instance_operations: nil) ⇒ StackSetsConstraintOptions
constructor
A new instance of StackSetsConstraintOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(description: nil, message_language: nil, accounts:, admin_role:, execution_role_name:, regions:, allow_stack_set_instance_operations: nil) ⇒ StackSetsConstraintOptions
Returns a new instance of StackSetsConstraintOptions.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'service_catalog/stack_sets_constraint_options.rb', line 14 def initialize(description: nil, message_language: nil, accounts:, admin_role:, execution_role_name:, regions:, allow_stack_set_instance_operations: nil) @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @message_language = Jsii::Type.check_type(@message_language, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VydmljZWNhdGFsb2cuTWVzc2FnZUxhbmd1YWdlIn0=")), "messageLanguage") unless @message_language.nil? @accounts = accounts Jsii::Type.check_type(@accounts, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "accounts") @admin_role = admin_role Jsii::Type.check_type(@admin_role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19pYW0uSVJvbGVSZWYifQ==")), "adminRole") @execution_role_name = execution_role_name Jsii::Type.check_type(@execution_role_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "executionRoleName") @regions = regions Jsii::Type.check_type(@regions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "regions") @allow_stack_set_instance_operations = allow_stack_set_instance_operations Jsii::Type.check_type(@allow_stack_set_instance_operations, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "allowStackSetInstanceOperations") unless @allow_stack_set_instance_operations.nil? end |
Instance Attribute Details
#accounts ⇒ Array<String> (readonly)
List of accounts to deploy stacks to.
46 47 48 |
# File 'service_catalog/stack_sets_constraint_options.rb', line 46 def accounts @accounts end |
#admin_role ⇒ AWSCDK::Interfaces::AWSIAM::IRoleRef (readonly)
IAM role used to administer the StackSets configuration.
50 51 52 |
# File 'service_catalog/stack_sets_constraint_options.rb', line 50 def admin_role @admin_role end |
#allow_stack_set_instance_operations ⇒ Boolean? (readonly)
Default: false
Whether to allow end users to create, update, and delete stacks.
63 64 65 |
# File 'service_catalog/stack_sets_constraint_options.rb', line 63 def allow_stack_set_instance_operations @allow_stack_set_instance_operations end |
#description ⇒ String? (readonly)
Default: - No description provided
The description of the constraint.
35 36 37 |
# File 'service_catalog/stack_sets_constraint_options.rb', line 35 def description @description end |
#execution_role_name ⇒ String (readonly)
IAM role used to provision the products in the Stacks.
54 55 56 |
# File 'service_catalog/stack_sets_constraint_options.rb', line 54 def execution_role_name @execution_role_name end |
#message_language ⇒ AWSCDK::ServiceCatalog::MessageLanguage? (readonly)
Default: - English
The language code.
Configures the language for error messages from service catalog.
42 43 44 |
# File 'service_catalog/stack_sets_constraint_options.rb', line 42 def @message_language end |
#regions ⇒ Array<String> (readonly)
List of regions to deploy stacks to.
58 59 60 |
# File 'service_catalog/stack_sets_constraint_options.rb', line 58 def regions @regions end |
Class Method Details
.jsii_properties ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 |
# File 'service_catalog/stack_sets_constraint_options.rb', line 65 def self.jsii_properties { :description => "description", :message_language => "messageLanguage", :accounts => "accounts", :admin_role => "adminRole", :execution_role_name => "executionRoleName", :regions => "regions", :allow_stack_set_instance_operations => "allowStackSetInstanceOperations", } end |
Instance Method Details
#to_jsii ⇒ Object
77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'service_catalog/stack_sets_constraint_options.rb', line 77 def to_jsii result = {} result.merge!(super) result.merge!({ "description" => @description, "messageLanguage" => @message_language, "accounts" => @accounts, "adminRole" => @admin_role, "executionRoleName" => @execution_role_name, "regions" => @regions, "allowStackSetInstanceOperations" => @allow_stack_set_instance_operations, }) result.compact end |