Interface MediaPackageV2OriginProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, OriginOptions, OriginProps
All Known Implementing Classes:
MediaPackageV2OriginProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.129.0 (build eaca441)", date="2026-05-13T16:55:33.484Z") @Stability(Experimental) public interface MediaPackageV2OriginProps extends software.amazon.jsii.JsiiSerializable, OriginProps
(experimental) Properties for a MediaPackage V2 Origin with OAC.

Example:

 OriginEndpoint endpoint;
 ChannelGroup group;
 Distribution.Builder.create(this, "Distribution")
         .defaultBehavior(BehaviorOptions.builder()
                 .origin(MediaPackageV2Origin.Builder.create(endpoint)
                         .channelGroup(group)
                         .build())
                 .build())
         .build();
 
  • Method Details

    • getChannelGroup

      @Stability(Experimental) @NotNull IChannelGroup getChannelGroup()
      (experimental) The channel group that the origin endpoint belongs to.

      Used to derive the egress domain for the CloudFront origin.

    • getCdnAuth

      @Stability(Experimental) @Nullable default CdnAuthConfiguration getCdnAuth()
      (experimental) Optional CDN authorization configuration.

      If you need CDN auth on this endpoint, provide it here so it is configured on the first addToResourcePolicy call. If CDN auth is added separately after this origin is bound, it will be ignored.

      Default: - no CDN authorization

    • getOriginAccessControl

      @Stability(Experimental) @Nullable default IOriginAccessControlRef getOriginAccessControl()
      (experimental) An optional Origin Access Control.

      Default: - an Origin Access Control will be created automatically.

    • builder

      @Stability(Experimental) static MediaPackageV2OriginProps.Builder builder()
      Returns:
      a MediaPackageV2OriginProps.Builder of MediaPackageV2OriginProps