class MediaPackageV2Origin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaPackageV2.Alpha.MediaPackageV2Origin |
Go | github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2#MediaPackageV2Origin |
Java | software.amazon.awscdk.services.mediapackagev2.alpha.MediaPackageV2Origin |
Python | aws_cdk.aws_mediapackagev2_alpha.MediaPackageV2Origin |
TypeScript (source) | @aws-cdk/aws-mediapackagev2-alpha ยป MediaPackageV2Origin |
Implements
IOrigin
Extends
Origin
A CloudFront Origin for AWS Elemental MediaPackage V2 endpoints.
Automatically creates an OAC and wires the origin endpoint policy to grant the CloudFront distribution access.
Uses addToResourcePolicy() on the origin endpoint, which is compatible
with other policy statements added to the same endpoint. Do not use this
alongside a manually created OriginEndpointPolicy construct for the same endpoint.
Example
declare const endpoint: OriginEndpoint;
declare const group: ChannelGroup;
new cloudfront.Distribution(this, 'Dist', {
defaultBehavior: {
origin: new MediaPackageV2Origin(endpoint, {
channelGroup: group,
}),
},
});
Initializer
new MediaPackageV2Origin(endpoint: IOriginEndpoint, props: MediaPackageV2OriginProps)
Parameters
- endpoint
IOriginEndpoint - props
MediaPackage V2 Origin Props
Methods
| Name | Description |
|---|---|
| bind(scope, options) | Binds the origin to the associated Distribution. |
| protected render |
bind(scope, options)
public bind(scope: Construct, options: OriginBindOptions): OriginBindConfig
Parameters
- scope
Construct - options
OriginBind Options
Returns
Binds the origin to the associated Distribution.
Can be used to grant permissions, create dependent resources, etc.
protected renderCustomOriginConfig()
protected renderCustomOriginConfig(): CustomOriginConfigProperty
Returns

.NET
Go
Java
Python
TypeScript (