Class: AWSCDK::MediaPackagev2::CfnOriginEndpoint::EncryptionContractConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaPackagev2::CfnOriginEndpoint::EncryptionContractConfigurationProperty
- Defined in:
- media_packagev2/cfn_origin_endpoint.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 which content keys are 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.
Instance Attribute Summary collapse
-
#preset_speke20_audio ⇒ String
readonly
A collection of audio encryption presets.
-
#preset_speke20_video ⇒ String
readonly
The SPEKE Version 2.0 preset video associated with the encryption contract configuration of the origin endpoint.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(preset_speke20_audio:, preset_speke20_video:) ⇒ EncryptionContractConfigurationProperty
constructor
A new instance of EncryptionContractConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(preset_speke20_audio:, preset_speke20_video:) ⇒ EncryptionContractConfigurationProperty
Returns a new instance of EncryptionContractConfigurationProperty.
1397 1398 1399 1400 1401 1402 |
# File 'media_packagev2/cfn_origin_endpoint.rb', line 1397 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_audio ⇒ String (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.
1416 1417 1418 |
# File 'media_packagev2/cfn_origin_endpoint.rb', line 1416 def preset_speke20_audio @preset_speke20_audio end |
#preset_speke20_video ⇒ String (readonly)
The SPEKE Version 2.0 preset video associated with the encryption contract configuration of the origin endpoint.
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.
1436 1437 1438 |
# File 'media_packagev2/cfn_origin_endpoint.rb', line 1436 def preset_speke20_video @preset_speke20_video end |
Class Method Details
.jsii_properties ⇒ Object
1438 1439 1440 1441 1442 1443 |
# File 'media_packagev2/cfn_origin_endpoint.rb', line 1438 def self.jsii_properties { :preset_speke20_audio => "presetSpeke20Audio", :preset_speke20_video => "presetSpeke20Video", } end |
Instance Method Details
#to_jsii ⇒ Object
1445 1446 1447 1448 1449 1450 1451 1452 |
# File 'media_packagev2/cfn_origin_endpoint.rb', line 1445 def to_jsii result = {} result.merge!({ "presetSpeke20Audio" => @preset_speke20_audio, "presetSpeke20Video" => @preset_speke20_video, }) result.compact end |