create_channel
¶
create_channel(
*,
config_overrides: Optional[ivsClientConfig] = None,
name: Optional[ChannelName] = None,
latency_mode: Optional[ChannelLatencyMode] = None,
type: Optional[ChannelType] = None,
authorized: Optional[Boolean] = None,
recording_configuration_arn: Optional[ChannelRecordingConfigurationArn] = None,
tags: Optional[Tags] = None,
insecure_ingest: Optional[Boolean] = None,
preset: Optional[TranscodePreset] = None,
playback_restriction_policy_arn: Optional[
ChannelPlaybackRestrictionPolicyArn
] = None,
multitrack_input_configuration: Optional[MultitrackInputConfiguration] = None,
container_format: Optional[ContainerFormat] = None,
ad_configuration_arn: Optional[ChannelAdConfigurationArn] = None,
) -> CreateChannelResponse
Creates a new channel and an associated stream key to start streaming.
Parameters:
-
name(Optional[ChannelName], default:None) –Channel name.
-
latency_mode(Optional[ChannelLatencyMode], default:None) –Channel latency mode. Use
NORMALto broadcast and deliver live video up to Full HD. UseLOWfor near-real-time interaction with viewers. Default:LOW. -
type(Optional[ChannelType], default:None) –Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input resolution or bitrate, the stream probably will disconnect immediately. Default:
STANDARD. For details, see Channel Types. -
authorized(Optional[Boolean], default:None) –Whether the channel is private (enabled for playback authorization). Default:
false. -
recording_configuration_arn(Optional[ChannelRecordingConfigurationArn], default:None) –Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables recording. Default: "" (empty string, recording is disabled).
-
tags(Optional[Tags], default:None) –Array of 1-50 maps, each of the form
string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there. -
insecure_ingest(Optional[Boolean], default:None) –Whether the channel allows insecure RTMP and SRT ingest. Default:
false. -
preset(Optional[TranscodePreset], default:None) –Optional transcode preset for the channel. This is selectable only for
ADVANCED_HDandADVANCED_SDchannel types. For those channel types, the defaultpresetisHIGHER_BANDWIDTH_DELIVERY. For other channel types (BASICandSTANDARD),presetis the empty string (""). -
playback_restriction_policy_arn(Optional[ChannelPlaybackRestrictionPolicyArn], default:None) –Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables playback restriction. Default: "" (empty string, no playback restriction policy is applied).
-
multitrack_input_configuration(Optional[MultitrackInputConfiguration], default:None) –Object specifying multitrack input configuration. Default: no multitrack input configuration is specified.
-
container_format(Optional[ContainerFormat], default:None) –Indicates which content-packaging format is used (MPEG-TS or fMP4). If
multitrackInputConfigurationis specified andenabledistrue, thencontainerFormatis required and must be set toFRAGMENTED_MP4. Otherwise,containerFormatmay be set toTSorFRAGMENTED_MP4. Default:TS. -
ad_configuration_arn(Optional[ChannelAdConfigurationArn], default:None) –ARN of the ad configuration associated with the channel.
Raises:
-
AccessDeniedException–User does not have sufficient access to perform this action.
-
PendingVerification–Your account is pending verification.
-
ResourceNotFoundException–Request references a resource which does not exist.
-
ServiceQuotaExceededException–Request would cause a service quota to be exceeded.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ivs/_services/ivs.py
500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 | |