Class: AWSCDK::IVS::CfnStreamKeyProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ivs/cfn_stream_key_props.rb

Overview

Properties for defining a CfnStreamKey.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel_arn:, tags: nil) ⇒ CfnStreamKeyProps

Returns a new instance of CfnStreamKeyProps.

Parameters:



11
12
13
14
15
16
# File 'ivs/cfn_stream_key_props.rb', line 11

def initialize(channel_arn:, tags: nil)
  @channel_arn = channel_arn
  Jsii::Type.check_type(@channel_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19pdnMuSUNoYW5uZWxSZWYifV19fQ==")), "channelArn")
  @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_arnString, AWSCDK::Interfaces::AWSIVS::IChannelRef (readonly)

Channel ARN for the stream.



22
23
24
# File 'ivs/cfn_stream_key_props.rb', line 22

def channel_arn
  @channel_arn
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

An array of key-value pairs to apply to this resource.

For more information, see Tag .



29
30
31
# File 'ivs/cfn_stream_key_props.rb', line 29

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



31
32
33
34
35
36
# File 'ivs/cfn_stream_key_props.rb', line 31

def self.jsii_properties
  {
    :channel_arn => "channelArn",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



38
39
40
41
42
43
44
45
# File 'ivs/cfn_stream_key_props.rb', line 38

def to_jsii
  result = {}
  result.merge!({
    "channelArn" => @channel_arn,
    "tags" => @tags,
  })
  result.compact
end