Enum PresetSpeke20Video
java.lang.Object
java.lang.Enum<PresetSpeke20Video>
software.amazon.awscdk.services.mediapackagev2.alpha.PresetSpeke20Video
- All Implemented Interfaces:
Serializable,Comparable<PresetSpeke20Video>,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-02T21:55:36.087Z")
@Stability(Experimental)
public enum PresetSpeke20Video
extends Enum<PresetSpeke20Video>
(experimental) The SPEKE Version 2.0 preset video associated with the encryption contract configuration of the origin endpoint.
A collection of video encryption presets.
Example:
Channel channel;
IRole spekeRole;
OriginEndpoint.Builder.create(this, "Endpoint")
.channel(channel)
.segment(Segment.cmaf(CmafSegmentProps.builder()
.encryption(CmafEncryption.speke(CmafSpekeEncryptionProps.builder()
.method(CmafEncryptionMethod.CBCS)
.drmSystems(List.of(CmafDrmSystem.FAIRPLAY, CmafDrmSystem.WIDEVINE))
.resourceId("my-content-id")
.url("https://example.com/speke")
.role(spekeRole)
.keyRotationInterval(Duration.seconds(300))
.audioPreset(PresetSpeke20Audio.PRESET_AUDIO_2)
.videoPreset(PresetSpeke20Video.PRESET_VIDEO_2)
.build()))
.build()))
.manifests(List.of(Manifest.hls(HlsManifestConfiguration.builder().manifestName("index").build())))
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription(experimental) Use one content key to encrypt all of the video tracks in your stream.(experimental) Use one content key to encrypt all of the SD video tracks and one content key for all HD and higher resolutions video tracks.(experimental) 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.(experimental) 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.(experimental) 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.(experimental) 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.(experimental) 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.(experimental) 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.(experimental) Use the same content key for all of the video and audio tracks in your stream.(experimental) Don't encrypt any of the video tracks in your stream. -
Method Summary
Modifier and TypeMethodDescriptionstatic PresetSpeke20VideoReturns the enum constant of this type with the specified name.static PresetSpeke20Video[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PRESET_VIDEO_1
(experimental) Use one content key to encrypt all of the video tracks in your stream. -
PRESET_VIDEO_2
(experimental) 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
(experimental) 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
(experimental) 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
(experimental) 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
(experimental) 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
(experimental) 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
(experimental) 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
(experimental) Use the same content key for all of the video and audio tracks in your stream. -
UNENCRYPTED
(experimental) Don't encrypt any of the video tracks in your stream.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-