Class: AWSCDK::MediaLive::CfnChannel::AnywhereSettingsProperty

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel_placement_group_id: nil, cluster_id: nil) ⇒ AnywhereSettingsProperty

Returns a new instance of AnywhereSettingsProperty.

Parameters:

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


1087
1088
1089
1090
1091
1092
# File 'media_live/cfn_channel.rb', line 1087

def initialize(channel_placement_group_id: nil, cluster_id: nil)
  @channel_placement_group_id = channel_placement_group_id
  Jsii::Type.check_type(@channel_placement_group_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channelPlacementGroupId") unless @channel_placement_group_id.nil?
  @cluster_id = cluster_id
  Jsii::Type.check_type(@cluster_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterId") unless @cluster_id.nil?
end

Instance Attribute Details

#channel_placement_group_idString? (readonly)



1096
1097
1098
# File 'media_live/cfn_channel.rb', line 1096

def channel_placement_group_id
  @channel_placement_group_id
end

#cluster_idString? (readonly)



1099
1100
1101
# File 'media_live/cfn_channel.rb', line 1099

def cluster_id
  @cluster_id
end

Class Method Details

.jsii_propertiesObject



1101
1102
1103
1104
1105
1106
# File 'media_live/cfn_channel.rb', line 1101

def self.jsii_properties
  {
    :channel_placement_group_id => "channelPlacementGroupId",
    :cluster_id => "clusterId",
  }
end

Instance Method Details

#to_jsiiObject



1108
1109
1110
1111
1112
1113
1114
1115
# File 'media_live/cfn_channel.rb', line 1108

def to_jsii
  result = {}
  result.merge!({
    "channelPlacementGroupId" => @channel_placement_group_id,
    "clusterId" => @cluster_id,
  })
  result.compact
end