CdnAuthConfiguration

class aws_cdk.aws_mediapackagev2_alpha.CdnAuthConfiguration(*, secrets, role=None)

Bases: object

(experimental) Options for configuring CDN Authorization Configuration.

Parameters:
  • secrets (Sequence[ISecret]) – (experimental) Secrets to use for CDN authorization. Each secret must be a JSON object with a MediaPackageV2CDNIdentifier key whose value is the CDN-Identifier header value. See the {@link https://docs.aws.amazon.com/mediapackage/latest/userguide/cdn-auth-setup.html MediaPackage CDN authorization docs}.

  • role (Optional[IRole]) – (experimental) Role to use for reading the secrets. If not provided, a role will be created automatically with the required permissions (secretsmanager:GetSecretValue, secretsmanager:DescribeSecret, secretsmanager:BatchGetSecretValue, and kms:Decrypt if the secret uses a customer-managed KMS key). Default: - a new role is created

See:

https://docs.aws.amazon.com/mediapackage/latest/userguide/cdn-auth.html

Stability:

experimental

ExampleMetadata:

infused

Example:

from aws_cdk.aws_mediapackagev2_alpha import CdnAuthConfiguration
import aws_cdk.aws_secretsmanager as secretsmanager

# channel: Channel
# my_secret: secretsmanager.ISecret


OriginEndpoint(self, "OriginEndpoint",
    channel=channel,
    segment=Segment.ts(),
    manifests=[Manifest.hls(manifest_name="index")],
    cdn_auth=CdnAuthConfiguration(
        secrets=[my_secret]
    )
)

Attributes

role

(experimental) Role to use for reading the secrets.

If not provided, a role will be created automatically with the required permissions (secretsmanager:GetSecretValue, secretsmanager:DescribeSecret, secretsmanager:BatchGetSecretValue, and kms:Decrypt if the secret uses a customer-managed KMS key).

Default:
  • a new role is created

Stability:

experimental

secrets

(experimental) Secrets to use for CDN authorization.

Each secret must be a JSON object with a MediaPackageV2CDNIdentifier key whose value is the CDN-Identifier header value. See the {@link https://docs.aws.amazon.com/mediapackage/latest/userguide/cdn-auth-setup.html MediaPackage CDN authorization docs}.

Stability:

experimental