Class: AWSCDK::MediaLive::CfnChannelPlacementGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaLive::CfnChannelPlacementGroupProps
- Defined in:
- media_live/cfn_channel_placement_group_props.rb
Overview
Properties for defining a CfnChannelPlacementGroup.
Instance Attribute Summary collapse
-
#cluster_id ⇒ String?
readonly
The ID of the cluster the node is on.
-
#name ⇒ String?
readonly
The name of the channel placement group.
-
#nodes ⇒ Array<String>?
readonly
List of nodes added to the channel placement group.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A collection of key-value pairs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster_id: nil, name: nil, nodes: nil, tags: nil) ⇒ CfnChannelPlacementGroupProps
constructor
A new instance of CfnChannelPlacementGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cluster_id: nil, name: nil, nodes: nil, tags: nil) ⇒ CfnChannelPlacementGroupProps
Returns a new instance of CfnChannelPlacementGroupProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'media_live/cfn_channel_placement_group_props.rb', line 13 def initialize(cluster_id: nil, name: nil, nodes: nil, tags: nil) @cluster_id = cluster_id Jsii::Type.check_type(@cluster_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterId") unless @cluster_id.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @nodes = nodes Jsii::Type.check_type(@nodes, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "nodes") unless @nodes.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
#cluster_id ⇒ String? (readonly)
The ID of the cluster the node is on.
28 29 30 |
# File 'media_live/cfn_channel_placement_group_props.rb', line 28 def cluster_id @cluster_id end |
#name ⇒ String? (readonly)
The name of the channel placement group.
33 34 35 |
# File 'media_live/cfn_channel_placement_group_props.rb', line 33 def name @name end |
#nodes ⇒ Array<String>? (readonly)
List of nodes added to the channel placement group.
38 39 40 |
# File 'media_live/cfn_channel_placement_group_props.rb', line 38 def nodes @nodes end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A collection of key-value pairs.
43 44 45 |
# File 'media_live/cfn_channel_placement_group_props.rb', line 43 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'media_live/cfn_channel_placement_group_props.rb', line 45 def self.jsii_properties { :cluster_id => "clusterId", :name => "name", :nodes => "nodes", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'media_live/cfn_channel_placement_group_props.rb', line 54 def to_jsii result = {} result.merge!({ "clusterId" => @cluster_id, "name" => @name, "nodes" => @nodes, "tags" => @tags, }) result.compact end |