Enum PresetSpeke20Audio
java.lang.Object
java.lang.Enum<PresetSpeke20Audio>
software.amazon.awscdk.services.mediapackagev2.alpha.PresetSpeke20Audio
- All Implemented Interfaces:
Serializable,Comparable<PresetSpeke20Audio>,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-02T21:55:36.086Z")
@Stability(Experimental)
public enum PresetSpeke20Audio
extends Enum<PresetSpeke20Audio>
(experimental) A collection of audio 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 audio tracks in your stream.(experimental) Use one content key to encrypt all of the stereo audio tracks and one content key to encrypt all of the multichannel audio tracks.(experimental) 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.(experimental) Use the same content key for all of the audio and video tracks in your stream.(experimental) Don't encrypt any of the audio tracks in your stream. -
Method Summary
Modifier and TypeMethodDescriptionstatic PresetSpeke20AudioReturns the enum constant of this type with the specified name.static PresetSpeke20Audio[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PRESET_AUDIO_1
(experimental) Use one content key to encrypt all of the audio tracks in your stream. -
PRESET_AUDIO_2
(experimental) 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
(experimental) 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
(experimental) Use the same content key for all of the audio and video tracks in your stream. -
UNENCRYPTED
(experimental) Don't encrypt any of the audio 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
-