Class CfnOriginEndpoint.HlsEncryptionProperty
Holds encryption information so that access to the content can be controlled by a DRM solution.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.MediaPackage
Assembly: Amazon.CDK.AWS.MediaPackage.dll
Syntax (csharp)
public class HlsEncryptionProperty : Object, CfnOriginEndpoint.IHlsEncryptionProperty
Syntax (vb)
Public Class HlsEncryptionProperty
Inherits Object
Implements CfnOriginEndpoint.IHlsEncryptionProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaPackage;
var hlsEncryptionProperty = new HlsEncryptionProperty {
SpekeKeyProvider = new SpekeKeyProviderProperty {
ResourceId = "resourceId",
RoleArn = "roleArn",
SystemIds = new [] { "systemIds" },
Url = "url",
// the properties below are optional
CertificateArn = "certificateArn",
EncryptionContractConfiguration = new EncryptionContractConfigurationProperty { }
},
// the properties below are optional
ConstantInitializationVector = "constantInitializationVector",
EncryptionMethod = "encryptionMethod",
KeyRotationIntervalSeconds = 123,
RepeatExtXKey = false
};
Synopsis
Constructors
HlsEncryptionProperty() |
Properties
ConstantInitializationVector | A 128-bit, 16-byte hex value represented by a 32-character string, used with the key for encrypting blocks. |
EncryptionMethod | HLS encryption type. |
KeyRotationIntervalSeconds | Number of seconds before AWS Elemental MediaPackage rotates to a new key. |
RepeatExtXKey | Repeat the |
SpekeKeyProvider | Parameters for the SPEKE key provider. |
Constructors
HlsEncryptionProperty()
public HlsEncryptionProperty()
Properties
ConstantInitializationVector
A 128-bit, 16-byte hex value represented by a 32-character string, used with the key for encrypting blocks.
public string ConstantInitializationVector { get; set; }
Property Value
System.String
Remarks
EncryptionMethod
HLS encryption type.
public string EncryptionMethod { get; set; }
Property Value
System.String
Remarks
KeyRotationIntervalSeconds
Number of seconds before AWS Elemental MediaPackage rotates to a new key.
public Nullable<double> KeyRotationIntervalSeconds { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
By default, rotation is set to 60 seconds. Set to 0
to disable key rotation.
RepeatExtXKey
Repeat the EXT-X-KEY
directive for every media segment.
public object RepeatExtXKey { get; set; }
Property Value
System.Object
Remarks
This might result in an increase in client requests to the DRM server.
SpekeKeyProvider
Parameters for the SPEKE key provider.
public object SpekeKeyProvider { get; set; }
Property Value
System.Object