CmdID / aws / aws mediapackage
aws mediapackage create-channel
Creates a new Channel. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To create a channel
The following create-channel example creates a channel named sportschannel in the current account.
aws mediapackage create-channel --id sportschannelIdentify--idThe ID of the Channel.Its output
{
"Arn": "arn:aws:mediapackage:us-west-2:111222333:channels/6d345804ec3f46c9b454a91d4a80d0e0",
"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": {
"region": "west"
}
}For more information, see Creating a Channel in the AWS Elemental MediaPackage User Guide.
Options
--descriptionA short text description of the Channel.--idThe ID of the Channel.--tagsA collection of tags associated with a resource