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.

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.

Note:

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

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

Syntax

C#
public virtual UpdateChannelResponse UpdateChannel(
         UpdateChannelRequest request
)

Parameters

request
Type: Amazon.MediaPackageV2.Model.UpdateChannelRequest

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

Return Value


The response from the UpdateChannel 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.
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.

Examples

Updating a Channel


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