update_channel
async
¶
update_channel(
channel_group_name: ResourceName,
channel_name: ResourceName,
*,
config_overrides: Optional[AsyncMediaPackageV2ClientConfig] = None,
e_tag: Optional[EntityTag] = None,
description: Optional[ResourceDescription] = None,
input_switch_configuration: Optional[InputSwitchConfiguration] = None,
output_header_configuration: Optional[OutputHeaderConfiguration] = None,
multiview_configuration: Optional[MultiviewConfiguration] = None,
) -> UpdateChannelResponse
Update the specified channel. You can edit if MediaPackage sends ingest or egress access logs to the CloudWatch log group, if content will be encrypted, the description on a channel, and your channel's policy settings. You can't edit the name of the channel or CloudFront distribution details.
Any edits you make that impact the video output may not be reflected for a few minutes.
Parameters:
-
channel_group_name(ResourceName) –The name that describes the channel group. The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region.
-
channel_name(ResourceName) –The name that describes the channel. The name is the primary identifier for the channel, and must be unique for your account in the AWS Region and channel group.
-
e_tag(Optional[EntityTag], default:None) –The expected current Entity Tag (ETag) for the resource. If the specified ETag does not match the resource's current entity tag, the update request will be rejected.
-
description(Optional[ResourceDescription], default:None) –Any descriptive information that you want to add to the channel for future identification purposes.
-
input_switch_configuration(Optional[InputSwitchConfiguration], default:None) –The configuration for input switching based on the media quality confidence score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid only when
InputTypeisCMAF. -
output_header_configuration(Optional[OutputHeaderConfiguration], default:None) –The settings for what common media server data (CMSD) headers AWS Elemental MediaPackage includes in responses to the CDN. This setting is valid only when
InputTypeisCMAF. -
multiview_configuration(Optional[MultiviewConfiguration], default:None) –The multiview configuration for the channel. This setting is required when the channel's
InputTypeisMULTIVIEW, and can't be set for any other input type. BecauseInputTypeis immutable, you can change a multiview channel's sources and layouts. You can't add or remove the multiview configuration itself.
Raises:
-
AccessDeniedException–Access is denied because either you don't have permissions to perform the requested operation or MediaPackage is getting throttling errors with CDN authorization. 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. Or, if you're using CDN authorization, you will receive this exception if MediaPackage receives a throttling error from Secrets Manager.
-
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.
-
ThrottlingException–The request throughput limit was exceeded.
-
ValidationException–The input failed to meet the constraints specified by the AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Updating a Channel
>>> await client.update_channel(channel_group_name='exampleChannelGroup', channel_name='exampleChannel', description='Updated description for exampleChannel')
Updating a CMAF Channel with non-epoch-locked output locking mode
>>> await client.update_channel(channel_group_name='exampleChannelGroup', channel_name='exampleCmafChannel', description='Updated non-epoch-locked CMAF channel')
Source code in docs_src/capo_mediapackagev2/_services/async_media_package_v2.py
899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 | |