Class: AWSCDK::MediaTailor::CfnLiveSourceProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaTailor::CfnLiveSourceProps
- Defined in:
- media_tailor/cfn_live_source_props.rb
Overview
Properties for defining a CfnLiveSource.
Instance Attribute Summary collapse
-
#http_package_configurations ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::MediaTailor::CfnLiveSource::HttpPackageConfigurationProperty>
readonly
The HTTP package configurations for the live source.
-
#live_source_name ⇒ String
readonly
The name that's used to refer to a live source.
-
#source_location_name ⇒ String
readonly
The name of the source location.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags assigned to the live source.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(http_package_configurations:, live_source_name:, source_location_name:, tags: nil) ⇒ CfnLiveSourceProps
constructor
A new instance of CfnLiveSourceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(http_package_configurations:, live_source_name:, source_location_name:, tags: nil) ⇒ CfnLiveSourceProps
Returns a new instance of CfnLiveSourceProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'media_tailor/cfn_live_source_props.rb', line 13 def initialize(http_package_configurations:, live_source_name:, source_location_name:, tags: nil) @http_package_configurations = http_package_configurations Jsii::Type.check_type(@http_package_configurations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbWVkaWF0YWlsb3IuQ2ZuTGl2ZVNvdXJjZS5IdHRwUGFja2FnZUNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "httpPackageConfigurations") @live_source_name = live_source_name Jsii::Type.check_type(@live_source_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "liveSourceName") @source_location_name = source_location_name Jsii::Type.check_type(@source_location_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceLocationName") @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
#http_package_configurations ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::MediaTailor::CfnLiveSource::HttpPackageConfigurationProperty> (readonly)
The HTTP package configurations for the live source.
28 29 30 |
# File 'media_tailor/cfn_live_source_props.rb', line 28 def http_package_configurations @http_package_configurations end |
#live_source_name ⇒ String (readonly)
The name that's used to refer to a live source.
33 34 35 |
# File 'media_tailor/cfn_live_source_props.rb', line 33 def live_source_name @live_source_name end |
#source_location_name ⇒ String (readonly)
The name of the source location.
38 39 40 |
# File 'media_tailor/cfn_live_source_props.rb', line 38 def source_location_name @source_location_name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags assigned to the live source.
Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources .
45 46 47 |
# File 'media_tailor/cfn_live_source_props.rb', line 45 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'media_tailor/cfn_live_source_props.rb', line 47 def self.jsii_properties { :http_package_configurations => "httpPackageConfigurations", :live_source_name => "liveSourceName", :source_location_name => "sourceLocationName", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'media_tailor/cfn_live_source_props.rb', line 56 def to_jsii result = {} result.merge!({ "httpPackageConfigurations" => @http_package_configurations, "liveSourceName" => @live_source_name, "sourceLocationName" => @source_location_name, "tags" => @tags, }) result.compact end |