Class: AWSCDK::MediaLive::CfnChannelPlacementGroupProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_live/cfn_channel_placement_group_props.rb

Overview

Properties for defining a CfnChannelPlacementGroup.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster_id: nil, name: nil, nodes: nil, tags: nil) ⇒ CfnChannelPlacementGroupProps

Returns a new instance of CfnChannelPlacementGroupProps.

Parameters:

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

    The ID of the cluster the node is on.

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

    The name of the channel placement group.

  • nodes (Array<String>, nil) (defaults to: nil)

    List of nodes added to the channel placement group.

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

    A collection of key-value pairs.



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 = 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

#cluster_idString? (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

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

#nodesArray<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

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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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