Enum TsEncryptionMethod

java.lang.Object
java.lang.Enum<TsEncryptionMethod>
software.amazon.awscdk.services.mediapackagev2.alpha.TsEncryptionMethod
All Implemented Interfaces:
Serializable, Comparable<TsEncryptionMethod>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-04-02T09:32:03.749Z") @Stability(Experimental) public enum TsEncryptionMethod extends Enum<TsEncryptionMethod>
(experimental) Encryption methods for TS container type.

Example:

 Channel channel;
 IRole spekeRole;
 OriginEndpoint.Builder.create(this, "TsEndpoint")
         .channel(channel)
         .segment(Segment.ts(TsSegmentProps.builder()
                 .encryption(TsEncryption.speke(TsSpekeEncryptionProps.builder()
                         .method(TsEncryptionMethod.SAMPLE_AES)
                         .resourceId("my-content-id")
                         .url("https://example.com/speke")
                         .role(spekeRole)
                         .build()))
                 .build()))
         .manifests(List.of(Manifest.hls(HlsManifestConfiguration.builder().manifestName("index").build())))
         .build();
 
  • Enum Constant Details

    • AES_128

      @Stability(Experimental) public static final TsEncryptionMethod AES_128
      (experimental) AES-128 encryption - requires Clear Key AES 128 DRM system.
    • SAMPLE_AES

      @Stability(Experimental) public static final TsEncryptionMethod SAMPLE_AES
      (experimental) Sample-level AES encryption - requires FairPlay DRM system.
  • Method Details

    • values

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