IsmEncryption

class aws_cdk.aws_mediapackagev2_alpha.IsmEncryption

Bases: EncryptionConfiguration

(experimental) Encryption configuration for ISM (Microsoft Smooth Streaming) segments.

ISM only supports CENC encryption with PlayReady DRM. Audio and video presets are always SHARED.

Use IsmEncryption.speke() to create an instance.

Stability:

experimental

ExampleMetadata:

infused

Example:

# channel: Channel
# speke_role: iam.IRole


OriginEndpoint(self, "IsmEndpoint",
    channel=channel,
    segment=Segment.ism(
        encryption=IsmEncryption.speke(
            resource_id="my-content-id",
            url="https://example.com/speke",
            role=speke_role
        )
    ),
    manifests=[Manifest.mss(manifest_name="index")]
)
Stability:

experimental

Static Methods

classmethod speke(*, resource_id, role, url, certificate=None, drm_systems=None)

(experimental) Create a SPEKE-based encryption configuration for ISM segments.

Parameters:
  • resource_id (str) – (experimental) The unique identifier for the content.

  • role (IRole) – (experimental) IAM role for accessing the key provider API.

  • url (str) – (experimental) URL of the SPEKE key provider.

  • certificate (Optional[ICertificate]) – (experimental) The ARN of the certificate that you imported to AWS Certificate Manager to add content key encryption to this endpoint. Default: - no content key encryption

  • drm_systems (Optional[Sequence[IsmDrmSystem]]) – (experimental) The DRM systems to use for content protection. Default: - [IsmDrmSystem.PLAYREADY]

Stability:

experimental

Return type:

IsmEncryption