@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.918Z") @Stability(value=Stable) public class CfnOriginEndpoint extends CfnResource implements IInspectable
Create an endpoint on an AWS Elemental MediaPackage channel.
An endpoint represents a single delivery point of a channel, and defines content output handling through various components, such as packaging protocols, DRM and encryption integration, and more.
After it's created, an endpoint provides a fixed public URL. This URL remains the same throughout the lifetime of the endpoint, regardless of any failures or upgrades that might occur. Integrate the URL with a downstream CDN (such as Amazon CloudFront) or playback device.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mediapackage.*;
CfnOriginEndpoint cfnOriginEndpoint = CfnOriginEndpoint.Builder.create(this, "MyCfnOriginEndpoint")
.channelId("channelId")
.id("id")
// the properties below are optional
.authorization(AuthorizationProperty.builder()
.cdnIdentifierSecret("cdnIdentifierSecret")
.secretsRoleArn("secretsRoleArn")
.build())
.cmafPackage(CmafPackageProperty.builder()
.encryption(CmafEncryptionProperty.builder()
.spekeKeyProvider(SpekeKeyProviderProperty.builder()
.resourceId("resourceId")
.roleArn("roleArn")
.systemIds(List.of("systemIds"))
.url("url")
// the properties below are optional
.certificateArn("certificateArn")
.encryptionContractConfiguration(EncryptionContractConfigurationProperty.builder()
.presetSpeke20Audio("presetSpeke20Audio")
.presetSpeke20Video("presetSpeke20Video")
.build())
.build())
// the properties below are optional
.constantInitializationVector("constantInitializationVector")
.keyRotationIntervalSeconds(123)
.build())
.hlsManifests(List.of(HlsManifestProperty.builder()
.id("id")
// the properties below are optional
.adMarkers("adMarkers")
.adsOnDeliveryRestrictions("adsOnDeliveryRestrictions")
.adTriggers(List.of("adTriggers"))
.includeIframeOnlyStream(false)
.manifestName("manifestName")
.playlistType("playlistType")
.playlistWindowSeconds(123)
.programDateTimeIntervalSeconds(123)
.url("url")
.build()))
.segmentDurationSeconds(123)
.segmentPrefix("segmentPrefix")
.streamSelection(StreamSelectionProperty.builder()
.maxVideoBitsPerSecond(123)
.minVideoBitsPerSecond(123)
.streamOrder("streamOrder")
.build())
.build())
.dashPackage(DashPackageProperty.builder()
.adsOnDeliveryRestrictions("adsOnDeliveryRestrictions")
.adTriggers(List.of("adTriggers"))
.encryption(DashEncryptionProperty.builder()
.spekeKeyProvider(SpekeKeyProviderProperty.builder()
.resourceId("resourceId")
.roleArn("roleArn")
.systemIds(List.of("systemIds"))
.url("url")
// the properties below are optional
.certificateArn("certificateArn")
.encryptionContractConfiguration(EncryptionContractConfigurationProperty.builder()
.presetSpeke20Audio("presetSpeke20Audio")
.presetSpeke20Video("presetSpeke20Video")
.build())
.build())
// the properties below are optional
.keyRotationIntervalSeconds(123)
.build())
.includeIframeOnlyStream(false)
.manifestLayout("manifestLayout")
.manifestWindowSeconds(123)
.minBufferTimeSeconds(123)
.minUpdatePeriodSeconds(123)
.periodTriggers(List.of("periodTriggers"))
.profile("profile")
.segmentDurationSeconds(123)
.segmentTemplateFormat("segmentTemplateFormat")
.streamSelection(StreamSelectionProperty.builder()
.maxVideoBitsPerSecond(123)
.minVideoBitsPerSecond(123)
.streamOrder("streamOrder")
.build())
.suggestedPresentationDelaySeconds(123)
.utcTiming("utcTiming")
.utcTimingUri("utcTimingUri")
.build())
.description("description")
.hlsPackage(HlsPackageProperty.builder()
.adMarkers("adMarkers")
.adsOnDeliveryRestrictions("adsOnDeliveryRestrictions")
.adTriggers(List.of("adTriggers"))
.encryption(HlsEncryptionProperty.builder()
.spekeKeyProvider(SpekeKeyProviderProperty.builder()
.resourceId("resourceId")
.roleArn("roleArn")
.systemIds(List.of("systemIds"))
.url("url")
// the properties below are optional
.certificateArn("certificateArn")
.encryptionContractConfiguration(EncryptionContractConfigurationProperty.builder()
.presetSpeke20Audio("presetSpeke20Audio")
.presetSpeke20Video("presetSpeke20Video")
.build())
.build())
// the properties below are optional
.constantInitializationVector("constantInitializationVector")
.encryptionMethod("encryptionMethod")
.keyRotationIntervalSeconds(123)
.repeatExtXKey(false)
.build())
.includeIframeOnlyStream(false)
.playlistType("playlistType")
.playlistWindowSeconds(123)
.programDateTimeIntervalSeconds(123)
.segmentDurationSeconds(123)
.streamSelection(StreamSelectionProperty.builder()
.maxVideoBitsPerSecond(123)
.minVideoBitsPerSecond(123)
.streamOrder("streamOrder")
.build())
.useAudioRenditionGroup(false)
.build())
.manifestName("manifestName")
.mssPackage(MssPackageProperty.builder()
.encryption(MssEncryptionProperty.builder()
.spekeKeyProvider(SpekeKeyProviderProperty.builder()
.resourceId("resourceId")
.roleArn("roleArn")
.systemIds(List.of("systemIds"))
.url("url")
// the properties below are optional
.certificateArn("certificateArn")
.encryptionContractConfiguration(EncryptionContractConfigurationProperty.builder()
.presetSpeke20Audio("presetSpeke20Audio")
.presetSpeke20Video("presetSpeke20Video")
.build())
.build())
.build())
.manifestWindowSeconds(123)
.segmentDurationSeconds(123)
.streamSelection(StreamSelectionProperty.builder()
.maxVideoBitsPerSecond(123)
.minVideoBitsPerSecond(123)
.streamOrder("streamOrder")
.build())
.build())
.origination("origination")
.startoverWindowSeconds(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.timeDelaySeconds(123)
.whitelist(List.of("whitelist"))
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnOriginEndpoint.AuthorizationProperty
Parameters for enabling CDN authorization on the endpoint.
|
static class |
CfnOriginEndpoint.Builder
A fluent builder for
CfnOriginEndpoint. |
static interface |
CfnOriginEndpoint.CmafEncryptionProperty
Holds encryption information so that access to the content can be controlled by a DRM solution.
|
static interface |
CfnOriginEndpoint.CmafPackageProperty
Parameters for Common Media Application Format (CMAF) packaging.
|
static interface |
CfnOriginEndpoint.DashEncryptionProperty
Holds encryption information so that access to the content can be controlled by a DRM solution.
|
static interface |
CfnOriginEndpoint.DashPackageProperty
Parameters for DASH packaging.
|
static interface |
CfnOriginEndpoint.EncryptionContractConfigurationProperty
Example:
|
static interface |
CfnOriginEndpoint.HlsEncryptionProperty
Holds encryption information so that access to the content can be controlled by a DRM solution.
|
static interface |
CfnOriginEndpoint.HlsManifestProperty
An HTTP Live Streaming (HLS) manifest configuration on a CMAF endpoint.
|
static interface |
CfnOriginEndpoint.HlsPackageProperty
Parameters for Apple HLS packaging.
|
static interface |
CfnOriginEndpoint.MssEncryptionProperty
Holds encryption information so that access to the content can be controlled by a DRM solution.
|
static interface |
CfnOriginEndpoint.MssPackageProperty
Parameters for Microsoft Smooth Streaming packaging.
|
static interface |
CfnOriginEndpoint.SpekeKeyProviderProperty
Keyprovider settings for DRM.
|
static interface |
CfnOriginEndpoint.StreamSelectionProperty
Limitations for outputs from the endpoint, based on the video bitrate.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnOriginEndpoint(software.constructs.Construct scope,
String id,
CfnOriginEndpointProps props)
Create a new `AWS::MediaPackage::OriginEndpoint`.
|
protected |
CfnOriginEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnOriginEndpoint(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The endpoint's unique system-generated resource name, based on the AWS record.
|
String |
getAttrUrl()
URL for the key provider’s key retrieval API endpoint.
|
Object |
getAuthorization()
Parameters for CDN authorization.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getChannelId()
The ID of the channel associated with this endpoint.
|
Object |
getCmafPackage()
Parameters for Common Media Application Format (CMAF) packaging.
|
Object |
getDashPackage()
Parameters for DASH packaging.
|
String |
getDescription()
Any descriptive information that you want to add to the endpoint for future identification purposes.
|
Object |
getHlsPackage()
Parameters for Apple HLS packaging.
|
String |
getId()
The manifest ID is required and must be unique within the OriginEndpoint.
|
String |
getManifestName()
A short string that's appended to the end of the endpoint URL to create a unique path to this endpoint.
|
Object |
getMssPackage()
Parameters for Microsoft Smooth Streaming packaging.
|
String |
getOrigination()
Controls video origination from this endpoint.
|
Number |
getStartoverWindowSeconds()
Maximum duration (seconds) of content to retain for startover playback.
|
TagManager |
getTags()
The tags to assign to the endpoint.
|
Number |
getTimeDelaySeconds()
Minimum duration (seconds) of delay to enforce on the playback of live content.
|
List<String> |
getWhitelist()
The IP addresses that can access this endpoint.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAuthorization(CfnOriginEndpoint.AuthorizationProperty value)
Parameters for CDN authorization.
|
void |
setAuthorization(IResolvable value)
Parameters for CDN authorization.
|
void |
setChannelId(String value)
The ID of the channel associated with this endpoint.
|
void |
setCmafPackage(CfnOriginEndpoint.CmafPackageProperty value)
Parameters for Common Media Application Format (CMAF) packaging.
|
void |
setCmafPackage(IResolvable value)
Parameters for Common Media Application Format (CMAF) packaging.
|
void |
setDashPackage(CfnOriginEndpoint.DashPackageProperty value)
Parameters for DASH packaging.
|
void |
setDashPackage(IResolvable value)
Parameters for DASH packaging.
|
void |
setDescription(String value)
Any descriptive information that you want to add to the endpoint for future identification purposes.
|
void |
setHlsPackage(CfnOriginEndpoint.HlsPackageProperty value)
Parameters for Apple HLS packaging.
|
void |
setHlsPackage(IResolvable value)
Parameters for Apple HLS packaging.
|
void |
setId(String value)
The manifest ID is required and must be unique within the OriginEndpoint.
|
void |
setManifestName(String value)
A short string that's appended to the end of the endpoint URL to create a unique path to this endpoint.
|
void |
setMssPackage(CfnOriginEndpoint.MssPackageProperty value)
Parameters for Microsoft Smooth Streaming packaging.
|
void |
setMssPackage(IResolvable value)
Parameters for Microsoft Smooth Streaming packaging.
|
void |
setOrigination(String value)
Controls video origination from this endpoint.
|
void |
setStartoverWindowSeconds(Number value)
Maximum duration (seconds) of content to retain for startover playback.
|
void |
setTimeDelaySeconds(Number value)
Minimum duration (seconds) of delay to enforce on the playback of live content.
|
void |
setWhitelist(List<String> value)
The IP addresses that can access this endpoint.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnOriginEndpoint(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnOriginEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnOriginEndpoint(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnOriginEndpointProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrUrl()
Must start with https://.
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getChannelId()
@Stability(value=Stable)
public void setChannelId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getId()
The ID can't be changed after the endpoint is created.
@Stability(value=Stable)
public void setId(@NotNull
String value)
The ID can't be changed after the endpoint is created.
@Stability(value=Stable) @Nullable public Object getAuthorization()
@Stability(value=Stable)
public void setAuthorization(@Nullable
CfnOriginEndpoint.AuthorizationProperty value)
@Stability(value=Stable)
public void setAuthorization(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getCmafPackage()
@Stability(value=Stable)
public void setCmafPackage(@Nullable
CfnOriginEndpoint.CmafPackageProperty value)
@Stability(value=Stable)
public void setCmafPackage(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getDashPackage()
@Stability(value=Stable)
public void setDashPackage(@Nullable
CfnOriginEndpoint.DashPackageProperty value)
@Stability(value=Stable)
public void setDashPackage(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getHlsPackage()
@Stability(value=Stable)
public void setHlsPackage(@Nullable
CfnOriginEndpoint.HlsPackageProperty value)
@Stability(value=Stable)
public void setHlsPackage(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getManifestName()
@Stability(value=Stable)
public void setManifestName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getMssPackage()
@Stability(value=Stable)
public void setMssPackage(@Nullable
CfnOriginEndpoint.MssPackageProperty value)
@Stability(value=Stable)
public void setMssPackage(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getOrigination()
ALLOW - enables this endpoint to serve content to requesting devices.DENY - prevents this endpoint from serving content. Denying origination is helpful for harvesting live-to-VOD assets. For more information about harvesting and origination, see Live-to-VOD Requirements .@Stability(value=Stable)
public void setOrigination(@Nullable
String value)
ALLOW - enables this endpoint to serve content to requesting devices.DENY - prevents this endpoint from serving content. Denying origination is helpful for harvesting live-to-VOD assets. For more information about harvesting and origination, see Live-to-VOD Requirements .@Stability(value=Stable) @Nullable public Number getStartoverWindowSeconds()
Omit this attribute or enter 0 to indicate that startover playback is disabled for this endpoint.
@Stability(value=Stable)
public void setStartoverWindowSeconds(@Nullable
Number value)
Omit this attribute or enter 0 to indicate that startover playback is disabled for this endpoint.
@Stability(value=Stable) @Nullable public Number getTimeDelaySeconds()
Omit this attribute or enter 0 to indicate that there is no time delay in effect for this endpoint
@Stability(value=Stable)
public void setTimeDelaySeconds(@Nullable
Number value)
Omit this attribute or enter 0 to indicate that there is no time delay in effect for this endpoint
@Stability(value=Stable) @Nullable public List<String> getWhitelist()
Copyright © 2022. All rights reserved.