Class: AWSCDK::ServiceCatalog::CfnStackSetConstraintProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
service_catalog/cfn_stack_set_constraint_props.rb

Overview

Properties for defining a CfnStackSetConstraint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_list:, admin_role:, description:, execution_role:, portfolio_id:, product_id:, region_list:, stack_instance_control:, accept_language: nil) ⇒ CfnStackSetConstraintProps

Returns a new instance of CfnStackSetConstraintProps.

Parameters:

  • account_list (Array<String>)

    One or more AWS accounts that will have access to the provisioned product.

  • admin_role (String)

    AdminRole ARN.

  • description (String)

    The description of the constraint.

  • execution_role (String)

    ExecutionRole name.

  • portfolio_id (String)

    The portfolio identifier.

  • product_id (String)

    The product identifier.

  • region_list (Array<String>)

    One or more AWS Regions where the provisioned product will be available.

  • stack_instance_control (String)

    Permission to create, update, and delete stack instances.

  • accept_language (String, nil) (defaults to: nil)

    The language code.



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'service_catalog/cfn_stack_set_constraint_props.rb', line 18

def initialize(account_list:, admin_role:, description:, execution_role:, portfolio_id:, product_id:, region_list:, stack_instance_control:, accept_language: nil)
  @account_list = 
  Jsii::Type.check_type(@account_list, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "accountList")
  @admin_role = admin_role
  Jsii::Type.check_type(@admin_role, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "adminRole")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description")
  @execution_role = execution_role
  Jsii::Type.check_type(@execution_role, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "executionRole")
  @portfolio_id = portfolio_id
  Jsii::Type.check_type(@portfolio_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "portfolioId")
  @product_id = product_id
  Jsii::Type.check_type(@product_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "productId")
  @region_list = region_list
  Jsii::Type.check_type(@region_list, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "regionList")
  @stack_instance_control = stack_instance_control
  Jsii::Type.check_type(@stack_instance_control, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "stackInstanceControl")
  @accept_language = accept_language
  Jsii::Type.check_type(@accept_language, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "acceptLanguage") unless @accept_language.nil?
end

Instance Attribute Details

#accept_languageString? (readonly)

The language code.

  • jp - Japanese
  • zh - Chinese


94
95
96
# File 'service_catalog/cfn_stack_set_constraint_props.rb', line 94

def accept_language
  @accept_language
end

#account_listArray<String> (readonly)

One or more AWS accounts that will have access to the provisioned product.



43
44
45
# File 'service_catalog/cfn_stack_set_constraint_props.rb', line 43

def 
  @account_list
end

#admin_roleString (readonly)

AdminRole ARN.



48
49
50
# File 'service_catalog/cfn_stack_set_constraint_props.rb', line 48

def admin_role
  @admin_role
end

#descriptionString (readonly)

The description of the constraint.



53
54
55
# File 'service_catalog/cfn_stack_set_constraint_props.rb', line 53

def description
  @description
end

#execution_roleString (readonly)

ExecutionRole name.



58
59
60
# File 'service_catalog/cfn_stack_set_constraint_props.rb', line 58

def execution_role
  @execution_role
end

#portfolio_idString (readonly)

The portfolio identifier.



63
64
65
# File 'service_catalog/cfn_stack_set_constraint_props.rb', line 63

def portfolio_id
  @portfolio_id
end

#product_idString (readonly)

The product identifier.



68
69
70
# File 'service_catalog/cfn_stack_set_constraint_props.rb', line 68

def product_id
  @product_id
end

#region_listArray<String> (readonly)

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.



79
80
81
# File 'service_catalog/cfn_stack_set_constraint_props.rb', line 79

def region_list
  @region_list
end

#stack_instance_controlString (readonly)

Permission to create, update, and delete stack instances.

Choose from ALLOWED and NOT_ALLOWED.



86
87
88
# File 'service_catalog/cfn_stack_set_constraint_props.rb', line 86

def stack_instance_control
  @stack_instance_control
end

Class Method Details

.jsii_propertiesObject



96
97
98
99
100
101
102
103
104
105
106
107
108
# File 'service_catalog/cfn_stack_set_constraint_props.rb', line 96

def self.jsii_properties
  {
    :account_list => "accountList",
    :admin_role => "adminRole",
    :description => "description",
    :execution_role => "executionRole",
    :portfolio_id => "portfolioId",
    :product_id => "productId",
    :region_list => "regionList",
    :stack_instance_control => "stackInstanceControl",
    :accept_language => "acceptLanguage",
  }
end

Instance Method Details

#to_jsiiObject



110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# File 'service_catalog/cfn_stack_set_constraint_props.rb', line 110

def to_jsii
  result = {}
  result.merge!({
    "accountList" => @account_list,
    "adminRole" => @admin_role,
    "description" => @description,
    "executionRole" => @execution_role,
    "portfolioId" => @portfolio_id,
    "productId" => @product_id,
    "regionList" => @region_list,
    "stackInstanceControl" => @stack_instance_control,
    "acceptLanguage" => @accept_language,
  })
  result.compact
end