Class: AWSCDK::MediaTailor::CfnSourceLocationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaTailor::CfnSourceLocationProps
- Defined in:
- media_tailor/cfn_source_location_props.rb
Overview
Properties for defining a CfnSourceLocation.
Instance Attribute Summary collapse
-
#access_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The access configuration for the source location.
-
#default_segment_delivery_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The default segment delivery configuration.
-
#http_configuration ⇒ AWSCDK::IResolvable, AWSCDK::MediaTailor::CfnSourceLocation::HttpConfigurationProperty
readonly
The HTTP configuration for the source location.
-
#segment_delivery_configurations ⇒ AWSCDK::IResolvable, ...
readonly
The segment delivery configurations for the source location.
-
#source_location_name ⇒ String
readonly
The name of the source location.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags assigned to the source location.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(http_configuration:, source_location_name:, access_configuration: nil, default_segment_delivery_configuration: nil, segment_delivery_configurations: nil, tags: nil) ⇒ CfnSourceLocationProps
constructor
A new instance of CfnSourceLocationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(http_configuration:, source_location_name:, access_configuration: nil, default_segment_delivery_configuration: nil, segment_delivery_configurations: nil, tags: nil) ⇒ CfnSourceLocationProps
Returns a new instance of CfnSourceLocationProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'media_tailor/cfn_source_location_props.rb', line 15 def initialize(http_configuration:, source_location_name:, access_configuration: nil, default_segment_delivery_configuration: nil, segment_delivery_configurations: nil, tags: nil) @http_configuration = http_configuration.is_a?(Hash) ? ::AWSCDK::MediaTailor::CfnSourceLocation::HttpConfigurationProperty.new(**http_configuration.transform_keys(&:to_sym)) : http_configuration Jsii::Type.check_type(@http_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYXRhaWxvci5DZm5Tb3VyY2VMb2NhdGlvbi5IdHRwQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "httpConfiguration") @source_location_name = source_location_name Jsii::Type.check_type(@source_location_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceLocationName") @access_configuration = access_configuration.is_a?(Hash) ? ::AWSCDK::MediaTailor::CfnSourceLocation::AccessConfigurationProperty.new(**access_configuration.transform_keys(&:to_sym)) : access_configuration Jsii::Type.check_type(@access_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYXRhaWxvci5DZm5Tb3VyY2VMb2NhdGlvbi5BY2Nlc3NDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "accessConfiguration") unless @access_configuration.nil? @default_segment_delivery_configuration = default_segment_delivery_configuration.is_a?(Hash) ? ::AWSCDK::MediaTailor::CfnSourceLocation::DefaultSegmentDeliveryConfigurationProperty.new(**default_segment_delivery_configuration.transform_keys(&:to_sym)) : default_segment_delivery_configuration Jsii::Type.check_type(@default_segment_delivery_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYXRhaWxvci5DZm5Tb3VyY2VMb2NhdGlvbi5EZWZhdWx0U2VnbWVudERlbGl2ZXJ5Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "defaultSegmentDeliveryConfiguration") unless @default_segment_delivery_configuration.nil? @segment_delivery_configurations = segment_delivery_configurations Jsii::Type.check_type(@segment_delivery_configurations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbWVkaWF0YWlsb3IuQ2ZuU291cmNlTG9jYXRpb24uU2VnbWVudERlbGl2ZXJ5Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "segmentDeliveryConfigurations") unless @segment_delivery_configurations.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
#access_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The access configuration for the source location.
44 45 46 |
# File 'media_tailor/cfn_source_location_props.rb', line 44 def access_configuration @access_configuration end |
#default_segment_delivery_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The default segment delivery configuration.
49 50 51 |
# File 'media_tailor/cfn_source_location_props.rb', line 49 def default_segment_delivery_configuration @default_segment_delivery_configuration end |
#http_configuration ⇒ AWSCDK::IResolvable, AWSCDK::MediaTailor::CfnSourceLocation::HttpConfigurationProperty (readonly)
The HTTP configuration for the source location.
34 35 36 |
# File 'media_tailor/cfn_source_location_props.rb', line 34 def http_configuration @http_configuration end |
#segment_delivery_configurations ⇒ AWSCDK::IResolvable, ... (readonly)
The segment delivery configurations for the source location.
54 55 56 |
# File 'media_tailor/cfn_source_location_props.rb', line 54 def segment_delivery_configurations @segment_delivery_configurations end |
#source_location_name ⇒ String (readonly)
The name of the source location.
39 40 41 |
# File 'media_tailor/cfn_source_location_props.rb', line 39 def source_location_name @source_location_name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags assigned to the source location.
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 .
61 62 63 |
# File 'media_tailor/cfn_source_location_props.rb', line 61 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
63 64 65 66 67 68 69 70 71 72 |
# File 'media_tailor/cfn_source_location_props.rb', line 63 def self.jsii_properties { :http_configuration => "httpConfiguration", :source_location_name => "sourceLocationName", :access_configuration => "accessConfiguration", :default_segment_delivery_configuration => "defaultSegmentDeliveryConfiguration", :segment_delivery_configurations => "segmentDeliveryConfigurations", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'media_tailor/cfn_source_location_props.rb', line 74 def to_jsii result = {} result.merge!({ "httpConfiguration" => @http_configuration, "sourceLocationName" => @source_location_name, "accessConfiguration" => @access_configuration, "defaultSegmentDeliveryConfiguration" => @default_segment_delivery_configuration, "segmentDeliveryConfigurations" => @segment_delivery_configurations, "tags" => @tags, }) result.compact end |