AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
The endpoint is attached to a channel, and represents the output of the live content. You can associate multiple endpoints to a single channel. Each endpoint gives players and downstream CDNs (such as Amazon CloudFront) access to the content for playback. Content can't be served from a channel until it has an endpoint. You can create only one endpoint with each request.
For .NET Core this operation is only available in asynchronous form. Please refer to CreateOriginEndpointAsync.
Namespace: Amazon.MediaPackageV2
Assembly: AWSSDK.MediaPackageV2.dll
Version: 3.x.y.z
public abstract CreateOriginEndpointResponse CreateOriginEndpoint( CreateOriginEndpointRequest request )
Container for the necessary parameters to execute the CreateOriginEndpoint service method.
Exception | Condition |
---|---|
AccessDeniedException | You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide. |
ConflictException | Updating or deleting this resource can cause an inconsistent state. |
InternalServerException | Indicates that an error from the service occurred while trying to process a request. |
ResourceNotFoundException | The specified resource doesn't exist. |
ServiceQuotaExceededException | The request would cause a service quota to be exceeded. |
ThrottlingException | The request throughput limit was exceeded. |
ValidationException | The input failed to meet the constraints specified by the AWS service. |
var client = new AmazonMediaPackageV2Client(); var response = client.CancelHarvestJob(new CancelHarvestJobRequest { ChannelGroupName = "exampleChannelGroup", ChannelName = "exampleChannelName", HarvestJobName = "HarvestJobName", OriginEndpointName = "exampleOriginEndpointName" });
var client = new AmazonMediaPackageV2Client(); var response = client.CreateOriginEndpoint(new CreateOriginEndpointRequest { ChannelGroupName = "exampleChannelGroup", ChannelName = "exampleChannel", ContainerType = "CMAF", DashManifests = new List<CreateDashManifestConfiguration> { new CreateDashManifestConfiguration { DrmSignaling = "INDIVIDUAL", ManifestName = "exampleDashManifest1", ManifestWindowSeconds = 300, MinBufferTimeSeconds = 30, MinUpdatePeriodSeconds = 5, PeriodTriggers = new List<string> { "AVAILS" }, ScteDash = new ScteDash { AdMarkerDash = "XML" }, SegmentTemplateFormat = "NUMBER_WITH_TIMELINE", SuggestedPresentationDelaySeconds = 2 }, new CreateDashManifestConfiguration { DrmSignaling = "INDIVIDUAL", ManifestName = "exampleDashManifest2", ManifestWindowSeconds = 60, MinBufferTimeSeconds = 9, MinUpdatePeriodSeconds = 3, PeriodTriggers = new List<string> { "AVAILS", "DRM_KEY_ROTATION", "SOURCE_CHANGES", "SOURCE_DISRUPTIONS" }, ScteDash = new ScteDash { AdMarkerDash = "XML" }, SegmentTemplateFormat = "NUMBER_WITH_TIMELINE", SuggestedPresentationDelaySeconds = 12 } }, ForceEndpointErrorConfiguration = new ForceEndpointErrorConfiguration { EndpointErrorConditions = new List<string> { "STALE_MANIFEST", "INCOMPLETE_MANIFEST", "MISSING_DRM_KEY", "SLATE_INPUT" } }, HlsManifests = new List<CreateHlsManifestConfiguration> { new CreateHlsManifestConfiguration { ChildManifestName = "exampleChildManifest1", ManifestName = "exampleManifest1", ManifestWindowSeconds = 30, ProgramDateTimeIntervalSeconds = 60, ScteHls = new ScteHls { AdMarkerHls = "DATERANGE" } }, new CreateHlsManifestConfiguration { ChildManifestName = "exampleManifest2", ManifestName = "exampleManifest2", ManifestWindowSeconds = 30, ProgramDateTimeIntervalSeconds = 60, ScteHls = new ScteHls { AdMarkerHls = "DATERANGE" } } }, LowLatencyHlsManifests = new List<CreateLowLatencyHlsManifestConfiguration> { new CreateLowLatencyHlsManifestConfiguration { ChildManifestName = "exampleLLChildManifest1", ManifestName = "exampleLLManifest1", ManifestWindowSeconds = 30, ProgramDateTimeIntervalSeconds = 60, ScteHls = new ScteHls { AdMarkerHls = "DATERANGE" } }, new CreateLowLatencyHlsManifestConfiguration { ChildManifestName = "exampleLLManifest2", ManifestName = "exampleLLManifest2", ManifestWindowSeconds = 30, ProgramDateTimeIntervalSeconds = 60, ScteHls = new ScteHls { AdMarkerHls = "DATERANGE" } } }, OriginEndpointName = "exampleOriginEndpointCMAF", Segment = new Segment { Encryption = new Encryption { ConstantInitializationVector = "A382A901F3C1F7718512266CFFBB0B9F", EncryptionMethod = new EncryptionMethod { CmafEncryptionMethod = "CBCS" }, KeyRotationIntervalSeconds = 300, SpekeKeyProvider = new SpekeKeyProvider { DrmSystems = new List<string> { "PLAYREADY", "WIDEVINE" }, EncryptionContractConfiguration = new EncryptionContractConfiguration { PresetSpeke20Audio = "PRESET_AUDIO_1", PresetSpeke20Video = "PRESET_VIDEO_1" }, ResourceId = "ResourceId", RoleArn = "arn:aws:iam::123456789012:role/empRole", Url = "https://foo.com" } }, IncludeIframeOnlyStreams = true, Scte = new Scte { ScteFilter = new List<string> { "SPLICE_INSERT", "BREAK" } }, SegmentDurationSeconds = 6, SegmentName = "segmentName" }, StartoverWindowSeconds = 300, Tags = new Dictionary<string, string> { { "key1", "value1" }, { "key2", "value2" } } }); string arn = response.Arn; string channelGroupName = response.ChannelGroupName; string channelName = response.ChannelName; string containerType = response.ContainerType; DateTime createdAt = response.CreatedAt; List<GetDashManifestConfiguration> dashManifests = response.DashManifests; string eTag = response.ETag; ForceEndpointErrorConfiguration forceEndpointErrorConfiguration = response.ForceEndpointErrorConfiguration; List<GetHlsManifestConfiguration> hlsManifests = response.HlsManifests; List<GetLowLatencyHlsManifestConfiguration> lowLatencyHlsManifests = response.LowLatencyHlsManifests; DateTime modifiedAt = response.ModifiedAt; string originEndpointName = response.OriginEndpointName; Segment segment = response.Segment; int startoverWindowSeconds = response.StartoverWindowSeconds; Dictionary<string, string> tags = response.Tags;
.NET Framework:
Supported in: 4.5 and newer, 3.5