create_origin_endpoint
¶
create_origin_endpoint(
*,
config_overrides: Optional[MediaPackageClientConfig] = None,
authorization: Optional[Authorization] = None,
channel_id: Optional[__string] = None,
cmaf_package: Optional[CmafPackageCreateOrUpdateParameters] = None,
dash_package: Optional[DashPackage] = None,
description: Optional[__string] = None,
hls_package: Optional[HlsPackage] = None,
id: Optional[__string] = None,
manifest_name: Optional[__string] = None,
mss_package: Optional[MssPackage] = None,
origination: Optional[Origination] = None,
startover_window_seconds: Optional[__integer] = None,
tags: Optional[Tags] = None,
time_delay_seconds: Optional[__integer] = None,
whitelist: Optional[__listOf__string] = None,
) -> CreateOriginEndpointResponse
Creates a new OriginEndpoint record.
Parameters:
-
channel_id(Optional[__string], default:None) –The ID of the Channel that the OriginEndpoint will be associated with. This cannot be changed after the OriginEndpoint is created.
-
description(Optional[__string], default:None) –A short text description of the OriginEndpoint.
-
id(Optional[__string], default:None) –The ID of the OriginEndpoint. The ID must be unique within the region and it cannot be changed after the OriginEndpoint is created.
-
manifest_name(Optional[__string], default:None) –A short string that will be used as the filename of the OriginEndpoint URL (defaults to "index").
-
origination(Optional[Origination], default:None) –Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination
-
startover_window_seconds(Optional[__integer], default:None) –Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.
-
time_delay_seconds(Optional[__integer], default:None) –Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.
-
whitelist(Optional[__listOf__string], default:None) –A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.
Raises:
-
ForbiddenException–The client is not authorized to access the requested resource.
-
InternalServerErrorException–An unexpected error occurred.
-
NotFoundException–The requested resource does not exist.
-
ServiceUnavailableException–An unexpected error occurred.
-
TooManyRequestsException–The client has exceeded their resource or throttling limits.
-
UnprocessableEntityException–The parameters sent in the request are not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mediapackage/_services/media_package.py
405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 | |