Class OriginEndpoint
- All Implemented Interfaces:
IEnvironmentAware,IOriginEndpointRef,IResource,IOriginEndpoint,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
Example:
Channel channel;
IRole spekeRole;
OriginEndpoint.Builder.create(this, "TsEndpoint")
.channel(channel)
.segment(Segment.ts(TsSegmentProps.builder()
.encryption(TsEncryption.speke(TsSpekeEncryptionProps.builder()
.method(TsEncryptionMethod.SAMPLE_AES)
.resourceId("my-content-id")
.url("https://example.com/speke")
.role(spekeRole)
.build()))
.build()))
.manifests(List.of(Manifest.hls(HlsManifestConfiguration.builder().manifestName("index").build())))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forOriginEndpoint.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.mediapackagev2.alpha.IOriginEndpoint
IOriginEndpoint.Jsii$Default, IOriginEndpoint.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOriginEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedOriginEndpoint(software.amazon.jsii.JsiiObjectRef objRef) OriginEndpoint(software.constructs.Construct scope, String id, OriginEndpointProps props) -
Method Summary
Modifier and TypeMethodDescriptionaddToResourcePolicy(PolicyStatement statement) (experimental) Configure origin endpoint policy.addToResourcePolicy(PolicyStatement statement, CdnAuthConfiguration cdnAuth) (experimental) Configure origin endpoint policy.static IOriginEndpointfromOriginEndpointAttributes(software.constructs.Construct scope, String id, OriginEndpointAttributes attrs) (experimental) Creates an OriginEndpoint construct that represents an external (imported) Origin Endpoint.protected Boolean(experimental) Indicates if an origin endpoint resource policy should automatically be created upon the first call toaddToResourcePolicy.(experimental) The name of the channel group associated with the origin endpoint configuration.(experimental) The channel name associated with the origin endpoint.(experimental) The timestamp of the creation of the origin endpoint.(experimental) Array containing DASH Manifests created by the OriginEndpoint.(experimental) Array containing HLS Manifests created by the OriginEndpoint.(experimental) Array containing Low Latency HLS Manifests created by the OriginEndpoint.(experimental) The timestamp of the modification of the origin endpoint.(experimental) Array containing MSS Manifests created by the OriginEndpoint.(experimental) The Amazon Resource Name (ARN) of the origin endpoint.(experimental) The name of the origin endpoint associated with the origin endpoint configuration.(experimental) A reference to this Origin Endpoint resource.(experimental) The resource policy associated with this origin endpoint.protected SegmentConfiguration(experimental) Create a CloudWatch metric.metric(String metricName, MetricOptions props) (experimental) Create a CloudWatch metric.(experimental) Returns Metric for Egress Bytes.metricEgressBytes(MetricOptions props) (experimental) Returns Metric for Egress Bytes.(experimental) Returns Metric for Egress Request Count.(experimental) Returns Metric for Egress Request Count.(experimental) Returns Metric for Egress Response time.(experimental) Returns Metric for Egress Response time.(experimental) Returns Metric for Ingress Bytes.metricIngressBytes(MetricOptions props) (experimental) Returns Metric for Ingress Bytes.(experimental) Returns Metric for Ingress Request Count.(experimental) Returns Metric for Ingress Request Count.(experimental) Returns Metric for Ingress response time.(experimental) Returns Metric for Ingress response time.protected CfnOriginEndpoint.SegmentPropertysegmentValidation(ContainerType segmentContainerType) (experimental) Validate and modify Segment configuration for endpoint.protected CfnOriginEndpoint.SegmentPropertysegmentValidation(ContainerType segmentContainerType, SegmentConfiguration segment) (experimental) Validate and modify Segment configuration for endpoint.protected voidsetAutoCreatePolicy(Boolean value) (experimental) Indicates if an origin endpoint resource policy should automatically be created upon the first call toaddToResourcePolicy.protected voidprotected voidprotected voidprotected voidvoidsetPolicy(OriginEndpointPolicy value) (experimental) The resource policy associated with this origin endpoint.protected voidsetSegment(SegmentConfiguration value) Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource, withMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
OriginEndpoint
protected OriginEndpoint(software.amazon.jsii.JsiiObjectRef objRef) -
OriginEndpoint
protected OriginEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
OriginEndpoint
@Stability(Experimental) public OriginEndpoint(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull OriginEndpointProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromOriginEndpointAttributes
@Stability(Experimental) @NotNull public static IOriginEndpoint fromOriginEndpointAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull OriginEndpointAttributes attrs) (experimental) Creates an OriginEndpoint construct that represents an external (imported) Origin Endpoint.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
addToResourcePolicy
@Stability(Experimental) @NotNull public AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement, @Nullable CdnAuthConfiguration cdnAuth) (experimental) Configure origin endpoint policy.You can only add 1 OriginEndpointPolicy to an OriginEndpoint. If you have already defined one, it will append to the policy already created.
- Specified by:
addToResourcePolicyin interfaceIOriginEndpoint- Parameters:
statement-- The policy statement to add.
cdnAuth-- Optional CDN authorization configuration.
-
addToResourcePolicy
@Stability(Experimental) @NotNull public AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement) (experimental) Configure origin endpoint policy.You can only add 1 OriginEndpointPolicy to an OriginEndpoint. If you have already defined one, it will append to the policy already created.
- Specified by:
addToResourcePolicyin interfaceIOriginEndpoint- Parameters:
statement-- The policy statement to add.
-
metric
@Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) (experimental) Create a CloudWatch metric.- Specified by:
metricin interfaceIOriginEndpoint- Parameters:
metricName- name of the metric. This parameter is required.props- metric options.
-
metric
(experimental) Create a CloudWatch metric.- Specified by:
metricin interfaceIOriginEndpoint- Parameters:
metricName- name of the metric. This parameter is required.
-
metricEgressBytes
(experimental) Returns Metric for Egress Bytes.Default: - sum over 60 seconds
- Specified by:
metricEgressBytesin interfaceIOriginEndpoint- Parameters:
props-
-
metricEgressBytes
(experimental) Returns Metric for Egress Bytes.Default: - sum over 60 seconds
- Specified by:
metricEgressBytesin interfaceIOriginEndpoint
-
metricEgressRequestCount
@Stability(Experimental) @NotNull public Metric metricEgressRequestCount(@Nullable MetricOptions props) (experimental) Returns Metric for Egress Request Count.Default: - sum over 60 seconds
- Specified by:
metricEgressRequestCountin interfaceIOriginEndpoint- Parameters:
props-
-
metricEgressRequestCount
(experimental) Returns Metric for Egress Request Count.Default: - sum over 60 seconds
- Specified by:
metricEgressRequestCountin interfaceIOriginEndpoint
-
metricEgressResponseTime
@Stability(Experimental) @NotNull public Metric metricEgressResponseTime(@Nullable MetricOptions props) (experimental) Returns Metric for Egress Response time.Default: - average over 60 seconds
- Specified by:
metricEgressResponseTimein interfaceIOriginEndpoint- Parameters:
props-
-
metricEgressResponseTime
(experimental) Returns Metric for Egress Response time.Default: - average over 60 seconds
- Specified by:
metricEgressResponseTimein interfaceIOriginEndpoint
-
metricIngressBytes
(experimental) Returns Metric for Ingress Bytes.Default: - sum over 60 seconds
- Specified by:
metricIngressBytesin interfaceIOriginEndpoint- Parameters:
props-
-
metricIngressBytes
(experimental) Returns Metric for Ingress Bytes.Default: - sum over 60 seconds
- Specified by:
metricIngressBytesin interfaceIOriginEndpoint
-
metricIngressRequestCount
@Stability(Experimental) @NotNull public Metric metricIngressRequestCount(@Nullable MetricOptions props) (experimental) Returns Metric for Ingress Request Count.Default: - sum over 60 seconds
- Specified by:
metricIngressRequestCountin interfaceIOriginEndpoint- Parameters:
props-
-
metricIngressRequestCount
(experimental) Returns Metric for Ingress Request Count.Default: - sum over 60 seconds
- Specified by:
metricIngressRequestCountin interfaceIOriginEndpoint
-
metricIngressResponseTime
@Stability(Experimental) @NotNull public Metric metricIngressResponseTime(@Nullable MetricOptions props) (experimental) Returns Metric for Ingress response time.Default: - average over 60 seconds
- Specified by:
metricIngressResponseTimein interfaceIOriginEndpoint- Parameters:
props-
-
metricIngressResponseTime
(experimental) Returns Metric for Ingress response time.Default: - average over 60 seconds
- Specified by:
metricIngressResponseTimein interfaceIOriginEndpoint
-
segmentValidation
@Stability(Experimental) @Nullable protected CfnOriginEndpoint.SegmentProperty segmentValidation(@NotNull ContainerType segmentContainerType, @Nullable SegmentConfiguration segment) (experimental) Validate and modify Segment configuration for endpoint.- Parameters:
segmentContainerType- This parameter is required.segment-
-
segmentValidation
@Stability(Experimental) @Nullable protected CfnOriginEndpoint.SegmentProperty segmentValidation(@NotNull ContainerType segmentContainerType) (experimental) Validate and modify Segment configuration for endpoint.- Parameters:
segmentContainerType- This parameter is required.
-
getChannelGroupName
(experimental) The name of the channel group associated with the origin endpoint configuration.- Specified by:
getChannelGroupNamein interfaceIOriginEndpoint
-
getChannelName
(experimental) The channel name associated with the origin endpoint.- Specified by:
getChannelNamein interfaceIOriginEndpoint
-
getOriginEndpointArn
(experimental) The Amazon Resource Name (ARN) of the origin endpoint.- Specified by:
getOriginEndpointArnin interfaceIOriginEndpoint
-
getOriginEndpointName
(experimental) The name of the origin endpoint associated with the origin endpoint configuration.- Specified by:
getOriginEndpointNamein interfaceIOriginEndpoint
-
getOriginEndpointRef
(experimental) A reference to this Origin Endpoint resource.Required by the auto-generated IOriginEndpointRef interface.
- Specified by:
getOriginEndpointRefin interfaceIOriginEndpointRef
-
getCreatedAt
(experimental) The timestamp of the creation of the origin endpoint.- Specified by:
getCreatedAtin interfaceIOriginEndpoint
-
getDashManifestUrls
(experimental) Array containing DASH Manifests created by the OriginEndpoint.- Specified by:
getDashManifestUrlsin interfaceIOriginEndpoint
-
getHlsManifestUrls
(experimental) Array containing HLS Manifests created by the OriginEndpoint.- Specified by:
getHlsManifestUrlsin interfaceIOriginEndpoint
-
getLowLatencyHlsManifestUrls
(experimental) Array containing Low Latency HLS Manifests created by the OriginEndpoint.- Specified by:
getLowLatencyHlsManifestUrlsin interfaceIOriginEndpoint
-
getModifiedAt
(experimental) The timestamp of the modification of the origin endpoint.- Specified by:
getModifiedAtin interfaceIOriginEndpoint
-
getMssManifestUrls
(experimental) Array containing MSS Manifests created by the OriginEndpoint.- Specified by:
getMssManifestUrlsin interfaceIOriginEndpoint
-
getAutoCreatePolicy
(experimental) Indicates if an origin endpoint resource policy should automatically be created upon the first call toaddToResourcePolicy. -
setAutoCreatePolicy
(experimental) Indicates if an origin endpoint resource policy should automatically be created upon the first call toaddToResourcePolicy. -
getDashManifests
@Stability(Experimental) @NotNull protected List<CfnOriginEndpoint.DashManifestConfigurationProperty> getDashManifests() -
setDashManifests
@Stability(Experimental) protected void setDashManifests(@NotNull List<CfnOriginEndpoint.DashManifestConfigurationProperty> value) -
getHlsManifests
@Stability(Experimental) @NotNull protected List<CfnOriginEndpoint.HlsManifestConfigurationProperty> getHlsManifests() -
setHlsManifests
@Stability(Experimental) protected void setHlsManifests(@NotNull List<CfnOriginEndpoint.HlsManifestConfigurationProperty> value) -
getLlHlsManifests
@Stability(Experimental) @NotNull protected List<CfnOriginEndpoint.LowLatencyHlsManifestConfigurationProperty> getLlHlsManifests() -
setLlHlsManifests
@Stability(Experimental) protected void setLlHlsManifests(@NotNull List<CfnOriginEndpoint.LowLatencyHlsManifestConfigurationProperty> value) -
getMssManifests
@Stability(Experimental) @NotNull protected List<CfnOriginEndpoint.MssManifestConfigurationProperty> getMssManifests() -
setMssManifests
@Stability(Experimental) protected void setMssManifests(@NotNull List<CfnOriginEndpoint.MssManifestConfigurationProperty> value) -
getPolicy
(experimental) The resource policy associated with this origin endpoint.If
autoCreatePolicyis true, anOriginEndpointPolicywill be created upon the first call to addToResourcePolicy(s). -
setPolicy
(experimental) The resource policy associated with this origin endpoint.If
autoCreatePolicyis true, anOriginEndpointPolicywill be created upon the first call to addToResourcePolicy(s). -
getSegment
-
setSegment
-