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
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as mediapackagev2_alpha from '@aws-cdk/aws-mediapackagev2-alpha';
import { aws_iam as iam } from 'aws-cdk-lib';
import { aws_secretsmanager as secretsmanager } from 'aws-cdk-lib';
declare const role: iam.Role;
declare const secret: secretsmanager.Secret;
const cdnAuthConfiguration: mediapackagev2_alpha.CdnAuthConfiguration = {
secrets: [secret],
// the properties below are optional
role: role,
};
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.
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 (