Class: AWSCDK::MediaPackage::CfnChannelProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaPackage::CfnChannelProps
- Defined in:
- media_package/cfn_channel_props.rb
Overview
Properties for defining a CfnChannel.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
Any descriptive information that you want to add to the channel for future identification purposes.
-
#egress_access_logs ⇒ AWSCDK::IResolvable, ...
readonly
Configures egress access logs.
-
#hls_ingest ⇒ AWSCDK::IResolvable, ...
readonly
The input URL where the source stream should be sent.
-
#id ⇒ String
readonly
Unique identifier that you assign to the channel.
-
#ingress_access_logs ⇒ AWSCDK::IResolvable, ...
readonly
Configures ingress access logs.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags to assign to the channel.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, description: nil, egress_access_logs: nil, hls_ingest: nil, ingress_access_logs: nil, tags: nil) ⇒ CfnChannelProps
constructor
A new instance of CfnChannelProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(id:, description: nil, egress_access_logs: nil, hls_ingest: nil, ingress_access_logs: nil, tags: nil) ⇒ CfnChannelProps
Returns a new instance of CfnChannelProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'media_package/cfn_channel_props.rb', line 15 def initialize(id:, description: nil, egress_access_logs: nil, hls_ingest: nil, ingress_access_logs: nil, tags: nil) @id = id Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @egress_access_logs = egress_access_logs.is_a?(Hash) ? ::AWSCDK::MediaPackage::CfnChannel::LogConfigurationProperty.new(**egress_access_logs.transform_keys(&:to_sym)) : egress_access_logs Jsii::Type.check_type(@egress_access_logs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYXBhY2thZ2UuQ2ZuQ2hhbm5lbC5Mb2dDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "egressAccessLogs") unless @egress_access_logs.nil? @hls_ingest = hls_ingest.is_a?(Hash) ? ::AWSCDK::MediaPackage::CfnChannel::HlsIngestProperty.new(**hls_ingest.transform_keys(&:to_sym)) : hls_ingest Jsii::Type.check_type(@hls_ingest, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYXBhY2thZ2UuQ2ZuQ2hhbm5lbC5IbHNJbmdlc3RQcm9wZXJ0eSJ9XX19")), "hlsIngest") unless @hls_ingest.nil? @ingress_access_logs = ingress_access_logs.is_a?(Hash) ? ::AWSCDK::MediaPackage::CfnChannel::LogConfigurationProperty.new(**ingress_access_logs.transform_keys(&:to_sym)) : ingress_access_logs Jsii::Type.check_type(@ingress_access_logs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYXBhY2thZ2UuQ2ZuQ2hhbm5lbC5Mb2dDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "ingressAccessLogs") unless @ingress_access_logs.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
#description ⇒ String? (readonly)
Any descriptive information that you want to add to the channel for future identification purposes.
39 40 41 |
# File 'media_package/cfn_channel_props.rb', line 39 def description @description end |
#egress_access_logs ⇒ AWSCDK::IResolvable, ... (readonly)
Configures egress access logs.
44 45 46 |
# File 'media_package/cfn_channel_props.rb', line 44 def egress_access_logs @egress_access_logs end |
#hls_ingest ⇒ AWSCDK::IResolvable, ... (readonly)
The input URL where the source stream should be sent.
49 50 51 |
# File 'media_package/cfn_channel_props.rb', line 49 def hls_ingest @hls_ingest end |
#id ⇒ String (readonly)
Unique identifier that you assign to the channel.
34 35 36 |
# File 'media_package/cfn_channel_props.rb', line 34 def id @id end |
#ingress_access_logs ⇒ AWSCDK::IResolvable, ... (readonly)
Configures ingress access logs.
54 55 56 |
# File 'media_package/cfn_channel_props.rb', line 54 def ingress_access_logs @ingress_access_logs end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags to assign to the channel.
59 60 61 |
# File 'media_package/cfn_channel_props.rb', line 59 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
61 62 63 64 65 66 67 68 69 70 |
# File 'media_package/cfn_channel_props.rb', line 61 def self.jsii_properties { :id => "id", :description => "description", :egress_access_logs => "egressAccessLogs", :hls_ingest => "hlsIngest", :ingress_access_logs => "ingressAccessLogs", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'media_package/cfn_channel_props.rb', line 72 def to_jsii result = {} result.merge!({ "id" => @id, "description" => @description, "egressAccessLogs" => @egress_access_logs, "hlsIngest" => @hls_ingest, "ingressAccessLogs" => @ingress_access_logs, "tags" => @tags, }) result.compact end |