Class: AWSCDK::Connect::CfnTrafficDistributionGroupProps

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

Overview

Properties for defining a CfnTrafficDistributionGroup.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instance_arn:, name:, description: nil, tags: nil) ⇒ CfnTrafficDistributionGroupProps

Returns a new instance of CfnTrafficDistributionGroupProps.

Parameters:

  • instance_arn (String)

    The Amazon Resource Name (ARN).

  • name (String)

    The name of the traffic distribution group.

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

    The description of the traffic distribution group.

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

    The tags used to organize, track, or control access for this resource.



13
14
15
16
17
18
19
20
21
22
# File 'connect/cfn_traffic_distribution_group_props.rb', line 13

def initialize(instance_arn:, name:, description: nil, tags: nil)
  @instance_arn = instance_arn
  Jsii::Type.check_type(@instance_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceArn")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.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

#descriptionString? (readonly)

The description of the traffic distribution group.



38
39
40
# File 'connect/cfn_traffic_distribution_group_props.rb', line 38

def description
  @description
end

#instance_arnString (readonly)

The Amazon Resource Name (ARN).



28
29
30
# File 'connect/cfn_traffic_distribution_group_props.rb', line 28

def instance_arn
  @instance_arn
end

#nameString (readonly)

The name of the traffic distribution group.



33
34
35
# File 'connect/cfn_traffic_distribution_group_props.rb', line 33

def name
  @name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

The tags used to organize, track, or control access for this resource.

For example, {"key1":"value1", "key2":"value2" }.



45
46
47
# File 'connect/cfn_traffic_distribution_group_props.rb', line 45

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



47
48
49
50
51
52
53
54
# File 'connect/cfn_traffic_distribution_group_props.rb', line 47

def self.jsii_properties
  {
    :instance_arn => "instanceArn",
    :name => "name",
    :description => "description",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



56
57
58
59
60
61
62
63
64
65
# File 'connect/cfn_traffic_distribution_group_props.rb', line 56

def to_jsii
  result = {}
  result.merge!({
    "instanceArn" => @instance_arn,
    "name" => @name,
    "description" => @description,
    "tags" => @tags,
  })
  result.compact
end