Class: AWSCDK::Connect::CfnTrafficDistributionGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnTrafficDistributionGroupProps
- Defined in:
- connect/cfn_traffic_distribution_group_props.rb
Overview
Properties for defining a CfnTrafficDistributionGroup.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the traffic distribution group.
-
#instance_arn ⇒ String
readonly
The Amazon Resource Name (ARN).
-
#name ⇒ String
readonly
The name of the traffic distribution group.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags used to organize, track, or control access for this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(instance_arn:, name:, description: nil, tags: nil) ⇒ CfnTrafficDistributionGroupProps
constructor
A new instance of CfnTrafficDistributionGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(instance_arn:, name:, description: nil, tags: nil) ⇒ CfnTrafficDistributionGroupProps
Returns a new instance of CfnTrafficDistributionGroupProps.
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 = .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
#description ⇒ String? (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_arn ⇒ String (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 |
#name ⇒ String (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 |
#tags ⇒ Array<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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |