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.

  • 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:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_mediapackagev2_alpha as mediapackagev2_alpha
from aws_cdk import aws_iam as iam
from aws_cdk import aws_secretsmanager as secretsmanager

# role: iam.Role
# secret: secretsmanager.Secret

cdn_auth_configuration = mediapackagev2_alpha.CdnAuthConfiguration(
    secrets=[secret],

    # the properties below are optional
    role=role
)

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.

Stability:

experimental