Class: AWSCDK::MediaPackagev2::CfnChannelGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaPackagev2::CfnChannelGroupProps
- Defined in:
- media_packagev2/cfn_channel_group_props.rb
Overview
Properties for defining a CfnChannelGroup.
Instance Attribute Summary collapse
-
#channel_group_name ⇒ String
readonly
The name of the channel group.
-
#description ⇒ String?
readonly
The configuration for a MediaPackage V2 channel group.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags associated with the channel group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(channel_group_name:, description: nil, tags: nil) ⇒ CfnChannelGroupProps
constructor
A new instance of CfnChannelGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(channel_group_name:, description: nil, tags: nil) ⇒ CfnChannelGroupProps
Returns a new instance of CfnChannelGroupProps.
12 13 14 15 16 17 18 19 |
# File 'media_packagev2/cfn_channel_group_props.rb', line 12 def initialize(channel_group_name:, description: nil, tags: nil) @channel_group_name = channel_group_name Jsii::Type.check_type(@channel_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channelGroupName") @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
#channel_group_name ⇒ String (readonly)
The name of the channel group.
25 26 27 |
# File 'media_packagev2/cfn_channel_group_props.rb', line 25 def channel_group_name @channel_group_name end |
#description ⇒ String? (readonly)
The configuration for a MediaPackage V2 channel group.
30 31 32 |
# File 'media_packagev2/cfn_channel_group_props.rb', line 30 def description @description end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags associated with the channel group.
35 36 37 |
# File 'media_packagev2/cfn_channel_group_props.rb', line 35 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'media_packagev2/cfn_channel_group_props.rb', line 37 def self.jsii_properties { :channel_group_name => "channelGroupName", :description => "description", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'media_packagev2/cfn_channel_group_props.rb', line 45 def to_jsii result = {} result.merge!({ "channelGroupName" => @channel_group_name, "description" => @description, "tags" => @tags, }) result.compact end |