update_channel
async
¶
update_channel(
arn: ChannelArn,
*,
config_overrides: Optional[AsyncivsClientConfig] = None,
name: Optional[ChannelName] = None,
latency_mode: Optional[ChannelLatencyMode] = None,
type: Optional[ChannelType] = None,
authorized: Optional[Boolean] = None,
recording_configuration_arn: Optional[ChannelRecordingConfigurationArn] = 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,
) -> UpdateChannelResponse
Updates a channel's configuration. Live channels cannot be updated. You must stop the ongoing stream, update the channel, and restart the stream for the changes to take effect.
Parameters:
-
arn(ChannelArn) –ARN of the channel to be updated.
-
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. -
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).
-
recording_configuration_arn(Optional[ChannelRecordingConfigurationArn], default:None) –Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables recording. If this is set to an empty string, recording is disabled.
-
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. If this is set to an empty string, playback restriction policy is disabled.
-
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.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
PendingVerification–Your account is pending verification.
-
ResourceNotFoundException–Request references a resource which does not exist.
-
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/async_ivs.py
2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 | |