Class: AWSCDK::MediaTailor::CfnVodSourceProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaTailor::CfnVodSourceProps
- Defined in:
- media_tailor/cfn_vod_source_props.rb
Overview
Properties for defining a CfnVodSource.
Instance Attribute Summary collapse
-
#http_package_configurations ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::MediaTailor::CfnVodSource::HttpPackageConfigurationProperty>
readonly
The HTTP package configurations for the VOD source.
-
#source_location_name ⇒ String
readonly
The name of the source location that the VOD source is associated with.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags assigned to the VOD source.
-
#vod_source_name ⇒ String
readonly
The name of the VOD source.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(http_package_configurations:, source_location_name:, vod_source_name:, tags: nil) ⇒ CfnVodSourceProps
constructor
A new instance of CfnVodSourceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(http_package_configurations:, source_location_name:, vod_source_name:, tags: nil) ⇒ CfnVodSourceProps
Returns a new instance of CfnVodSourceProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'media_tailor/cfn_vod_source_props.rb', line 13 def initialize(http_package_configurations:, source_location_name:, vod_source_name:, tags: nil) @http_package_configurations = http_package_configurations Jsii::Type.check_type(@http_package_configurations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbWVkaWF0YWlsb3IuQ2ZuVm9kU291cmNlLkh0dHBQYWNrYWdlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "httpPackageConfigurations") @source_location_name = source_location_name Jsii::Type.check_type(@source_location_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceLocationName") @vod_source_name = vod_source_name Jsii::Type.check_type(@vod_source_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vodSourceName") @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::CfnVodSource::HttpPackageConfigurationProperty> (readonly)
The HTTP package configurations for the VOD source.
28 29 30 |
# File 'media_tailor/cfn_vod_source_props.rb', line 28 def http_package_configurations @http_package_configurations end |
#source_location_name ⇒ String (readonly)
The name of the source location that the VOD source is associated with.
33 34 35 |
# File 'media_tailor/cfn_vod_source_props.rb', line 33 def source_location_name @source_location_name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags assigned to the VOD 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_vod_source_props.rb', line 45 def @tags end |
#vod_source_name ⇒ String (readonly)
The name of the VOD source.
38 39 40 |
# File 'media_tailor/cfn_vod_source_props.rb', line 38 def vod_source_name @vod_source_name end |
Class Method Details
.jsii_properties ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'media_tailor/cfn_vod_source_props.rb', line 47 def self.jsii_properties { :http_package_configurations => "httpPackageConfigurations", :source_location_name => "sourceLocationName", :vod_source_name => "vodSourceName", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'media_tailor/cfn_vod_source_props.rb', line 56 def to_jsii result = {} result.merge!({ "httpPackageConfigurations" => @http_package_configurations, "sourceLocationName" => @source_location_name, "vodSourceName" => @vod_source_name, "tags" => @tags, }) result.compact end |