Class: AWSCDK::Connect::CfnUserHierarchyGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnUserHierarchyGroupProps
- Defined in:
- connect/cfn_user_hierarchy_group_props.rb
Overview
Properties for defining a CfnUserHierarchyGroup.
Instance Attribute Summary collapse
-
#instance_arn ⇒ String, AWSCDK::Interfaces::AWSConnect::IInstanceRef
readonly
The Amazon Resource Name (ARN) of the user hierarchy group.
-
#name ⇒ String
readonly
The name of the user hierarchy group.
-
#parent_group_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the parent group.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(instance_arn:, name:, parent_group_arn: nil, tags: nil) ⇒ CfnUserHierarchyGroupProps
constructor
A new instance of CfnUserHierarchyGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(instance_arn:, name:, parent_group_arn: nil, tags: nil) ⇒ CfnUserHierarchyGroupProps
Returns a new instance of CfnUserHierarchyGroupProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'connect/cfn_user_hierarchy_group_props.rb', line 13 def initialize(instance_arn:, name:, parent_group_arn: nil, tags: nil) @instance_arn = instance_arn Jsii::Type.check_type(@instance_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19jb25uZWN0LklJbnN0YW5jZVJlZiJ9XX19")), "instanceArn") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @parent_group_arn = parent_group_arn Jsii::Type.check_type(@parent_group_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parentGroupArn") unless @parent_group_arn.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#instance_arn ⇒ String, AWSCDK::Interfaces::AWSConnect::IInstanceRef (readonly)
The Amazon Resource Name (ARN) of the user hierarchy group.
28 29 30 |
# File 'connect/cfn_user_hierarchy_group_props.rb', line 28 def instance_arn @instance_arn end |
#name ⇒ String (readonly)
The name of the user hierarchy group.
33 34 35 |
# File 'connect/cfn_user_hierarchy_group_props.rb', line 33 def name @name end |
#parent_group_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the parent group.
38 39 40 |
# File 'connect/cfn_user_hierarchy_group_props.rb', line 38 def parent_group_arn @parent_group_arn end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
43 44 45 |
# File 'connect/cfn_user_hierarchy_group_props.rb', line 43 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'connect/cfn_user_hierarchy_group_props.rb', line 45 def self.jsii_properties { :instance_arn => "instanceArn", :name => "name", :parent_group_arn => "parentGroupArn", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'connect/cfn_user_hierarchy_group_props.rb', line 54 def to_jsii result = {} result.merge!({ "instanceArn" => @instance_arn, "name" => @name, "parentGroupArn" => @parent_group_arn, "tags" => @tags, }) result.compact end |