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 Constants
    Enum Constant
    Description
    (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 Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • PRESET_AUDIO_1

      @Stability(Experimental) public static final PresetSpeke20Audio PRESET_AUDIO_1
      (experimental) Use one content key to encrypt all of the audio tracks in your stream.
    • PRESET_AUDIO_2

      @Stability(Experimental) public static final PresetSpeke20Audio 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

      @Stability(Experimental) public static final PresetSpeke20Audio 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

      @Stability(Experimental) public static final PresetSpeke20Audio SHARED
      (experimental) Use the same content key for all of the audio and video tracks in your stream.
    • UNENCRYPTED

      @Stability(Experimental) public static final PresetSpeke20Audio UNENCRYPTED
      (experimental) Don't encrypt any of the audio tracks in your stream.
  • Method Details

    • values

      public static PresetSpeke20Audio[] 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

      public static PresetSpeke20Audio valueOf(String name)
      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 name
      NullPointerException - if the argument is null