Interface CfnOriginEndpoint.CmafEncryptionProperty

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

@Stability(Stable) public static interface CfnOriginEndpoint.CmafEncryptionProperty 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.*;
 CmafEncryptionProperty cmafEncryptionProperty = CmafEncryptionProperty.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)
         .build();
 
  • Method Details

    • getSpekeKeyProvider

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

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

      If you don't specify a value, then AWS Elemental MediaPackage creates the constant initialization vector (IV).

    • getEncryptionMethod

      @Stability(Stable) @Nullable default String getEncryptionMethod()
      The encryption method to use.
    • 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.

    • builder

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