Class MediaPackageV2Origin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudfront.OriginBase
software.amazon.awscdk.services.mediapackagev2.alpha.MediaPackageV2Origin
- All Implemented Interfaces:
IOrigin,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-13T16:55:33.483Z")
@Stability(Experimental)
public class MediaPackageV2Origin
extends OriginBase
(experimental) 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:
OriginEndpoint endpoint;
ChannelGroup group;
Distribution.Builder.create(this, "Dist")
.defaultBehavior(BehaviorOptions.builder()
.origin(MediaPackageV2Origin.Builder.create(endpoint)
.channelGroup(group)
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forMediaPackageV2Origin.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudfront.IOrigin
IOrigin.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionMediaPackageV2Origin(IOriginEndpoint endpoint, MediaPackageV2OriginProps props) protectedMediaPackageV2Origin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedMediaPackageV2Origin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionbind(software.constructs.Construct scope, OriginBindOptions options) (experimental) Binds the origin to the associated Distribution.Methods inherited from class software.amazon.awscdk.services.cloudfront.OriginBase
renderS3OriginConfig, renderVpcOriginConfig, validateResponseCompletionTimeoutWithReadTimeout, validateResponseCompletionTimeoutWithReadTimeout, validateResponseCompletionTimeoutWithReadTimeoutMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
MediaPackageV2Origin
protected MediaPackageV2Origin(software.amazon.jsii.JsiiObjectRef objRef) -
MediaPackageV2Origin
protected MediaPackageV2Origin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
MediaPackageV2Origin
@Stability(Experimental) public MediaPackageV2Origin(@NotNull IOriginEndpoint endpoint, @NotNull MediaPackageV2OriginProps props) - Parameters:
endpoint- This parameter is required.props- This parameter is required.
-
-
Method Details
-
bind
@Stability(Experimental) @NotNull public OriginBindConfig bind(@NotNull software.constructs.Construct scope, @NotNull OriginBindOptions options) (experimental) Binds the origin to the associated Distribution.Can be used to grant permissions, create dependent resources, etc.
- Specified by:
bindin interfaceIOrigin- Overrides:
bindin classOriginBase- Parameters:
scope- This parameter is required.options- This parameter is required.
-
renderCustomOriginConfig
@Stability(Experimental) @Nullable protected CfnDistribution.CustomOriginConfigProperty renderCustomOriginConfig()- Overrides:
renderCustomOriginConfigin classOriginBase
-