Interface CfnOriginEndpoint.HlsEncryptionProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnOriginEndpoint.HlsEncryptionProperty.Jsii$Proxy
Enclosing class:
CfnOriginEndpoint

@Stability(Stable) public static interface CfnOriginEndpoint.HlsEncryptionProperty extends software.amazon.jsii.JsiiSerializable
Holds encryption information so that access to the content can be controlled by a DRM solution.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.mediapackage.*;
 HlsEncryptionProperty hlsEncryptionProperty = HlsEncryptionProperty.builder()
         .spekeKeyProvider(SpekeKeyProviderProperty.builder()
                 .resourceId("resourceId")
                 .roleArn("roleArn")
                 .systemIds(List.of("systemIds"))
                 .url("url")
                 // the properties below are optional
                 .certificateArn("certificateArn")
                 .encryptionContractConfiguration(EncryptionContractConfigurationProperty.builder().build())
                 .build())
         // the properties below are optional
         .constantInitializationVector("constantInitializationVector")
         .encryptionMethod("encryptionMethod")
         .keyRotationIntervalSeconds(123)
         .repeatExtXKey(false)
         .build();
 
  • Method Details

    • getSpekeKeyProvider

      @Stability(Stable) @NotNull Object getSpekeKeyProvider()
      Parameters for the SPEKE key provider.
    • getConstantInitializationVector

      @Stability(Stable) @Nullable default String getConstantInitializationVector()
      A 128-bit, 16-byte hex value represented by a 32-character string, used with the key for encrypting blocks.
    • getEncryptionMethod

      @Stability(Stable) @Nullable default String getEncryptionMethod()
      HLS encryption type.
    • getKeyRotationIntervalSeconds

      @Stability(Stable) @Nullable default Number getKeyRotationIntervalSeconds()
      Number of seconds before AWS Elemental MediaPackage rotates to a new key.

      By default, rotation is set to 60 seconds. Set to 0 to disable key rotation.

    • getRepeatExtXKey

      @Stability(Stable) @Nullable default Object getRepeatExtXKey()
      Repeat the EXT-X-KEY directive for every media segment.

      This might result in an increase in client requests to the DRM server.

    • builder

      @Stability(Stable) static CfnOriginEndpoint.HlsEncryptionProperty.Builder builder()
      Returns:
      a CfnOriginEndpoint.HlsEncryptionProperty.Builder of CfnOriginEndpoint.HlsEncryptionProperty