Class: AWSCDK::MediaPackage::CfnOriginEndpoint::MssPackageProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaPackage::CfnOriginEndpoint::MssPackageProperty
- Defined in:
- media_package/cfn_origin_endpoint.rb
Overview
Parameters for Microsoft Smooth Streaming packaging.
Instance Attribute Summary collapse
-
#encryption ⇒ AWSCDK::IResolvable, ...
readonly
Parameters for encrypting content.
-
#manifest_window_seconds ⇒ Numeric?
readonly
Time window (in seconds) contained in each manifest.
-
#segment_duration_seconds ⇒ Numeric?
readonly
Duration (in seconds) of each fragment.
-
#stream_selection ⇒ AWSCDK::IResolvable, ...
readonly
Limitations for outputs from the endpoint, based on the video bitrate.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(encryption: nil, manifest_window_seconds: nil, segment_duration_seconds: nil, stream_selection: nil) ⇒ MssPackageProperty
constructor
A new instance of MssPackageProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(encryption: nil, manifest_window_seconds: nil, segment_duration_seconds: nil, stream_selection: nil) ⇒ MssPackageProperty
Returns a new instance of MssPackageProperty.
1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 |
# File 'media_package/cfn_origin_endpoint.rb', line 1674 def initialize(encryption: nil, manifest_window_seconds: nil, segment_duration_seconds: nil, stream_selection: nil) @encryption = encryption.is_a?(Hash) ? ::AWSCDK::MediaPackage::CfnOriginEndpoint::MssEncryptionProperty.new(**encryption.transform_keys(&:to_sym)) : encryption Jsii::Type.check_type(@encryption, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYXBhY2thZ2UuQ2ZuT3JpZ2luRW5kcG9pbnQuTXNzRW5jcnlwdGlvblByb3BlcnR5In1dfX0=")), "encryption") unless @encryption.nil? @manifest_window_seconds = manifest_window_seconds Jsii::Type.check_type(@manifest_window_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "manifestWindowSeconds") unless @manifest_window_seconds.nil? @segment_duration_seconds = segment_duration_seconds Jsii::Type.check_type(@segment_duration_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "segmentDurationSeconds") unless @segment_duration_seconds.nil? @stream_selection = stream_selection.is_a?(Hash) ? ::AWSCDK::MediaPackage::CfnOriginEndpoint::StreamSelectionProperty.new(**stream_selection.transform_keys(&:to_sym)) : stream_selection Jsii::Type.check_type(@stream_selection, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYXBhY2thZ2UuQ2ZuT3JpZ2luRW5kcG9pbnQuU3RyZWFtU2VsZWN0aW9uUHJvcGVydHkifV19fQ==")), "streamSelection") unless @stream_selection.nil? end |
Instance Attribute Details
#encryption ⇒ AWSCDK::IResolvable, ... (readonly)
Parameters for encrypting content.
1689 1690 1691 |
# File 'media_package/cfn_origin_endpoint.rb', line 1689 def encryption @encryption end |
#manifest_window_seconds ⇒ Numeric? (readonly)
Time window (in seconds) contained in each manifest.
1694 1695 1696 |
# File 'media_package/cfn_origin_endpoint.rb', line 1694 def manifest_window_seconds @manifest_window_seconds end |
#segment_duration_seconds ⇒ Numeric? (readonly)
Duration (in seconds) of each fragment.
Actual fragments are rounded to the nearest multiple of the source fragment duration.
1701 1702 1703 |
# File 'media_package/cfn_origin_endpoint.rb', line 1701 def segment_duration_seconds @segment_duration_seconds end |
#stream_selection ⇒ AWSCDK::IResolvable, ... (readonly)
Limitations for outputs from the endpoint, based on the video bitrate.
1706 1707 1708 |
# File 'media_package/cfn_origin_endpoint.rb', line 1706 def stream_selection @stream_selection end |
Class Method Details
.jsii_properties ⇒ Object
1708 1709 1710 1711 1712 1713 1714 1715 |
# File 'media_package/cfn_origin_endpoint.rb', line 1708 def self.jsii_properties { :encryption => "encryption", :manifest_window_seconds => "manifestWindowSeconds", :segment_duration_seconds => "segmentDurationSeconds", :stream_selection => "streamSelection", } end |
Instance Method Details
#to_jsii ⇒ Object
1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 |
# File 'media_package/cfn_origin_endpoint.rb', line 1717 def to_jsii result = {} result.merge!({ "encryption" => @encryption, "manifestWindowSeconds" => @manifest_window_seconds, "segmentDurationSeconds" => @segment_duration_seconds, "streamSelection" => @stream_selection, }) result.compact end |