Class: AWSCDK::Connect::CfnUserHierarchyGroupProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_user_hierarchy_group_props.rb

Overview

Properties for defining a CfnUserHierarchyGroup.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instance_arn:, name:, parent_group_arn: nil, tags: nil) ⇒ CfnUserHierarchyGroupProps

Returns a new instance of CfnUserHierarchyGroupProps.

Parameters:

  • instance_arn (String, AWSCDK::Interfaces::AWSConnect::IInstanceRef)

    The Amazon Resource Name (ARN) of the user hierarchy group.

  • name (String)

    The name of the user hierarchy group.

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

    The Amazon Resource Name (ARN) of the parent group.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    An array of key-value pairs to apply to this resource.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#instance_arnString, 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

#nameString (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_arnString? (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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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