Class: AWSCDK::IVS::CfnStreamKeyProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IVS::CfnStreamKeyProps
- Defined in:
- ivs/cfn_stream_key_props.rb
Overview
Properties for defining a CfnStreamKey.
Instance Attribute Summary collapse
-
#channel_arn ⇒ String, AWSCDK::Interfaces::AWSIVS::IChannelRef
readonly
Channel ARN for the stream.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(channel_arn:, tags: nil) ⇒ CfnStreamKeyProps
constructor
A new instance of CfnStreamKeyProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(channel_arn:, tags: nil) ⇒ CfnStreamKeyProps
Returns a new instance of CfnStreamKeyProps.
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 = .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_arn ⇒ String, 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 |
#tags ⇒ Array<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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |