interface CdnAuthConfiguration
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaPackageV2.Alpha.CdnAuthConfiguration |
Go | github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2#CdnAuthConfiguration |
Java | software.amazon.awscdk.services.mediapackagev2.alpha.CdnAuthConfiguration |
Python | aws_cdk.aws_mediapackagev2_alpha.CdnAuthConfiguration |
TypeScript (source) | @aws-cdk/aws-mediapackagev2-alpha ยป CdnAuthConfiguration |
Options for configuring CDN Authorization Configuration.
See also: https://docs.aws.amazon.com/mediapackage/latest/userguide/cdn-auth.html
Example
import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';
declare const channel: Channel;
declare const mySecret: secretsmanager.ISecret;
new OriginEndpoint(this, 'OriginEndpoint', {
channel,
segment: Segment.ts(),
manifests: [Manifest.hls({ manifestName: 'index' })],
cdnAuth: {
secrets: [mySecret],
},
});
Properties
| Name | Type | Description |
|---|---|---|
| secrets | ISecret[] | Secrets to use for CDN authorization. |
| role? | IRole | Role to use for reading the secrets. |
secrets
Type:
ISecret[]
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?
Type:
IRole
(optional, default: a new role is created)
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).

.NET
Go
Java
Python
TypeScript (