Class: AWSCDK::MediaPackagev2::CfnChannelGroupProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_packagev2/cfn_channel_group_props.rb

Overview

Properties for defining a CfnChannelGroup.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel_group_name:, description: nil, tags: nil) ⇒ CfnChannelGroupProps

Returns a new instance of CfnChannelGroupProps.

Parameters:

  • channel_group_name (String)

    The name of the channel group.

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

    The configuration for a MediaPackage V2 channel group.

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

    The tags associated with the channel group.



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

#channel_group_nameString (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

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

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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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