deleteChannel method
Deletes the channel specified by channelArn from the cluster specified by clusterArn. The channel transitions through DELETING and is removed when the asynchronous delete completes.
May throw BadRequestException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw ServiceUnavailableException.
May throw TooManyRequestsException.
May throw UnauthorizedException.
Parameter channelArn :
The Amazon Resource Name (ARN) that uniquely identifies the channel.
Parameter clusterArn :
The Amazon Resource Name (ARN) that uniquely identifies the cluster.
Implementation
Future<DeleteChannelResponse> deleteChannel({
required String channelArn,
required String clusterArn,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/v1/clusters/${Uri.encodeComponent(clusterArn)}/channels/${Uri.encodeComponent(channelArn)}',
exceptionFnMap: _exceptionFns,
);
return DeleteChannelResponse.fromJson(response);
}