HEX
Server: LiteSpeed
System: Linux ip-172-31-76-142.ec2.internal 4.14.158-129.185.amzn2.x86_64 #1 SMP Tue Dec 24 03:15:32 UTC 2019 x86_64
User: 69b4844ae61d4e92bf26ad98af552775 (1065)
PHP: 7.2.27
Disabled: exec,passthru,shell_exec,system,eval
Upload Files
File: //lib/python2.7/site-packages/awscli/examples/mediapackage/update-channel.rst
**To update a channel**

The following ``update-channel`` command updates the channel named ``sportschannel`` to include the description ``24x7 sports``. ::

    aws mediapackage update-channel \
        --id sportschannel \
        --description "24x7 sports"

Output::

    {
        "Arn": "arn:aws:mediapackage:us-west-2:111222333:channels/6d345804ec3f46c9b454a91d4a80d0e0",
        "Description": "24x7 sports",
        "HlsIngest": {
            "IngestEndpoints": [
                {
                    "Id": "6d345804ec3f46c9b454a91d4a80d0e0",
                    "Password": "generatedwebdavpassword1",
                    "Url": "https://f31c86aed53b815a.mediapackage.us-west-2.amazonaws.com/in/v2/6d345804ec3f46c9b454a91d4a80d0e0/6d345804ec3f46c9b454a91d4a80d0e0/channel",
                    "Username": "generatedwebdavusername1"
                },
                {
                    "Id": "2daa32878af24803b24183727211b8ff",
                    "Password": "generatedwebdavpassword2",
                    "Url": "https://6ebbe7e04c4b0afa.mediapackage.us-west-2.amazonaws.com/in/v2/6d345804ec3f46c9b454a91d4a80d0e0/2daa32878af24803b24183727211b8ff/channel",
                    "Username": "generatedwebdavusername2"
                }
            ]
        },
        "Id": "sportschannel",
        "Tags": {}
    }

For more information, see `Editing a Channel <https://docs.aws.amazon.com/mediapackage/latest/ug/channels-edit.html>`__ in the *AWS Elemental MediaPackage User Guide*.