AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Retrieves all channels in a specific channel group that are configured in AWS Elemental MediaPackage, including the origin endpoints that are associated with it.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to ListChannelsAsync.

Namespace: Amazon.MediaPackageV2
Assembly: AWSSDK.MediaPackageV2.dll
Version: 3.x.y.z

Syntax

C#
public virtual ListChannelsResponse ListChannels(
         ListChannelsRequest request
)

Parameters

request
Type: Amazon.MediaPackageV2.Model.ListChannelsRequest

Container for the necessary parameters to execute the ListChannels service method.

Return Value


The response from the ListChannels service method, as returned by MediaPackageV2.

Exceptions

ExceptionCondition
AccessDeniedException You don't have permissions to perform the requested operation. 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.
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.

Examples

Listing all Channels


var client = new AmazonMediaPackageV2Client();
var response = client.CancelHarvestJob(new CancelHarvestJobRequest 
{
    ChannelGroupName = "exampleChannelGroup",
    ChannelName = "exampleChannelName",
    HarvestJobName = "HarvestJobName",
    OriginEndpointName = "exampleOriginEndpointName"
});


            

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also