Class CfnOriginEndpoint.CmafEncryptionProperty
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.Lib.dll
Syntax (csharp)
public class CmafEncryptionProperty : Object, CfnOriginEndpoint.ICmafEncryptionProperty
Syntax (vb)
Public Class CmafEncryptionProperty
Inherits Object
Implements CfnOriginEndpoint.ICmafEncryptionProperty
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 cmafEncryptionProperty = new CmafEncryptionProperty {
SpekeKeyProvider = new SpekeKeyProviderProperty {
ResourceId = "resourceId",
RoleArn = "roleArn",
SystemIds = new [] { "systemIds" },
Url = "url",
// the properties below are optional
CertificateArn = "certificateArn",
EncryptionContractConfiguration = new EncryptionContractConfigurationProperty {
PresetSpeke20Audio = "presetSpeke20Audio",
PresetSpeke20Video = "presetSpeke20Video"
}
},
// the properties below are optional
ConstantInitializationVector = "constantInitializationVector",
EncryptionMethod = "encryptionMethod",
KeyRotationIntervalSeconds = 123
};
Synopsis
Constructors
CmafEncryptionProperty() |
Properties
ConstantInitializationVector | An optional 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting blocks. |
EncryptionMethod | The encryption method to use. |
KeyRotationIntervalSeconds | Number of seconds before AWS Elemental MediaPackage rotates to a new key. |
SpekeKeyProvider | Parameters for the SPEKE key provider. |
Constructors
CmafEncryptionProperty()
public CmafEncryptionProperty()
Properties
ConstantInitializationVector
An optional 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting blocks.
public string ConstantInitializationVector { get; set; }
Property Value
System.String
Remarks
If you don't specify a value, then AWS Elemental MediaPackage creates the constant initialization vector (IV).
EncryptionMethod
The encryption method to use.
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.
SpekeKeyProvider
Parameters for the SPEKE key provider.
public object SpekeKeyProvider { get; set; }
Property Value
System.Object