Class: AWSCDK::MediaPackage::CfnPackagingConfiguration::MssPackageProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_package/cfn_packaging_configuration.rb

Overview

Parameters for a packaging configuration that uses Microsoft Smooth Streaming (MSS) packaging.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mss_manifests:, encryption: nil, segment_duration_seconds: nil) ⇒ MssPackageProperty

Returns a new instance of MssPackageProperty.

Parameters:



1313
1314
1315
1316
1317
1318
1319
1320
# File 'media_package/cfn_packaging_configuration.rb', line 1313

def initialize(mss_manifests:, encryption: nil, segment_duration_seconds: nil)
  @mss_manifests = mss_manifests
  Jsii::Type.check_type(@mss_manifests, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbWVkaWFwYWNrYWdlLkNmblBhY2thZ2luZ0NvbmZpZ3VyYXRpb24uTXNzTWFuaWZlc3RQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "mssManifests")
  @encryption = encryption.is_a?(Hash) ? ::AWSCDK::MediaPackage::CfnPackagingConfiguration::MssEncryptionProperty.new(**encryption.transform_keys(&:to_sym)) : encryption
  Jsii::Type.check_type(@encryption, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYXBhY2thZ2UuQ2ZuUGFja2FnaW5nQ29uZmlndXJhdGlvbi5Nc3NFbmNyeXB0aW9uUHJvcGVydHkifV19fQ==")), "encryption") unless @encryption.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?
end

Instance Attribute Details

#encryptionAWSCDK::IResolvable, ... (readonly)

Parameters for encrypting content.



1331
1332
1333
# File 'media_package/cfn_packaging_configuration.rb', line 1331

def encryption
  @encryption
end

#mss_manifestsAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::MediaPackage::CfnPackagingConfiguration::MssManifestProperty> (readonly)

A list of Microsoft Smooth manifest configurations that are available from this endpoint.



1326
1327
1328
# File 'media_package/cfn_packaging_configuration.rb', line 1326

def mss_manifests
  @mss_manifests
end

#segment_duration_secondsNumeric? (readonly)

Duration (in seconds) of each fragment.

Actual fragments are rounded to the nearest multiple of the source fragment duration.



1338
1339
1340
# File 'media_package/cfn_packaging_configuration.rb', line 1338

def segment_duration_seconds
  @segment_duration_seconds
end

Class Method Details

.jsii_propertiesObject



1340
1341
1342
1343
1344
1345
1346
# File 'media_package/cfn_packaging_configuration.rb', line 1340

def self.jsii_properties
  {
    :mss_manifests => "mssManifests",
    :encryption => "encryption",
    :segment_duration_seconds => "segmentDurationSeconds",
  }
end

Instance Method Details

#to_jsiiObject



1348
1349
1350
1351
1352
1353
1354
1355
1356
# File 'media_package/cfn_packaging_configuration.rb', line 1348

def to_jsii
  result = {}
  result.merge!({
    "mssManifests" => @mss_manifests,
    "encryption" => @encryption,
    "segmentDurationSeconds" => @segment_duration_seconds,
  })
  result.compact
end