Class: AWSCDK::MediaPackage::CfnPackagingConfiguration::EncryptionContractConfigurationProperty

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

Overview

Use encryptionContractConfiguration to configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0. The encryption contract defines the content keys used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use. For more information about these presets, see SPEKE Version 2.0 Presets .

Note the following considerations when using encryption_contract_configuration :

  • You can use encryption_contract_configuration for DASH endpoints that use SPEKE Version 2.0. SPEKE Version 2.0 relies on the CPIX Version 2.3 specification.
  • You cannot combine an UNENCRYPTED preset with UNENCRYPTED or SHARED presets across preset_speke20_audio and preset_speke20_video .
  • When you use a SHARED preset, you must use it for both preset_speke20_audio and preset_speke20_video .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(preset_speke20_audio:, preset_speke20_video:) ⇒ EncryptionContractConfigurationProperty

Returns a new instance of EncryptionContractConfigurationProperty.

Parameters:

  • preset_speke20_audio (String)

    A collection of audio encryption presets.

  • preset_speke20_video (String)

    A collection of video encryption presets.



943
944
945
946
947
948
# File 'media_package/cfn_packaging_configuration.rb', line 943

def initialize(preset_speke20_audio:, preset_speke20_video:)
  @preset_speke20_audio = preset_speke20_audio
  Jsii::Type.check_type(@preset_speke20_audio, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "presetSpeke20Audio")
  @preset_speke20_video = preset_speke20_video
  Jsii::Type.check_type(@preset_speke20_video, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "presetSpeke20Video")
end

Instance Attribute Details

#preset_speke20_audioString (readonly)

A collection of audio encryption presets.

Value description:

  • PRESET-AUDIO-1 - Use one content key to encrypt all of the audio tracks in your stream.
  • PRESET-AUDIO-2 - Use one content key to encrypt all of the stereo audio tracks and one content key to encrypt all of the multichannel audio tracks.
  • PRESET-AUDIO-3 - Use one content key to encrypt all of the stereo audio tracks, one content key to encrypt all of the multichannel audio tracks with 3 to 6 channels, and one content key to encrypt all of the multichannel audio tracks with more than 6 channels.
  • SHARED - Use the same content key for all of the audio and video tracks in your stream.
  • UNENCRYPTED - Don't encrypt any of the audio tracks in your stream.


962
963
964
# File 'media_package/cfn_packaging_configuration.rb', line 962

def preset_speke20_audio
  @preset_speke20_audio
end

#preset_speke20_videoString (readonly)

A collection of video encryption presets.

Value description:

  • PRESET-VIDEO-1 - Use one content key to encrypt all of the video tracks in your stream.
  • PRESET-VIDEO-2 - Use one content key to encrypt all of the SD video tracks and one content key for all HD and higher resolutions video tracks.
  • PRESET-VIDEO-3 - Use one content key to encrypt all of the SD video tracks, one content key for HD video tracks and one content key for all UHD video tracks.
  • PRESET-VIDEO-4 - Use one content key to encrypt all of the SD video tracks, one content key for HD video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.
  • PRESET-VIDEO-5 - Use one content key to encrypt all of the SD video tracks, one content key for HD1 video tracks, one content key for HD2 video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.
  • PRESET-VIDEO-6 - Use one content key to encrypt all of the SD video tracks, one content key for HD1 video tracks, one content key for HD2 video tracks and one content key for all UHD video tracks.
  • PRESET-VIDEO-7 - Use one content key to encrypt all of the SD+HD1 video tracks, one content key for HD2 video tracks and one content key for all UHD video tracks.
  • PRESET-VIDEO-8 - Use one content key to encrypt all of the SD+HD1 video tracks, one content key for HD2 video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.
  • SHARED - Use the same content key for all of the video and audio tracks in your stream.
  • UNENCRYPTED - Don't encrypt any of the video tracks in your stream.


980
981
982
# File 'media_package/cfn_packaging_configuration.rb', line 980

def preset_speke20_video
  @preset_speke20_video
end

Class Method Details

.jsii_propertiesObject



982
983
984
985
986
987
# File 'media_package/cfn_packaging_configuration.rb', line 982

def self.jsii_properties
  {
    :preset_speke20_audio => "presetSpeke20Audio",
    :preset_speke20_video => "presetSpeke20Video",
  }
end

Instance Method Details

#to_jsiiObject



989
990
991
992
993
994
995
996
# File 'media_package/cfn_packaging_configuration.rb', line 989

def to_jsii
  result = {}
  result.merge!({
    "presetSpeke20Audio" => @preset_speke20_audio,
    "presetSpeke20Video" => @preset_speke20_video,
  })
  result.compact
end