Describes a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
Parameters:
Raises:
Source code in docs_src/capo_mediatailor/_services/async_media_tailor.py
| async def describe_channel(
self,
channel_name: "capo_mediatailor.types.__string.__string",
*,
config_overrides: Optional[AsyncMediaTailorClientConfig] = None,
) -> "capo_mediatailor.types.describe_channel_response.DescribeChannelResponse":
"""<p>Describes a channel. For information about MediaTailor channels, see <a href="https://docs.aws.amazon.com/mediatailor/latest/ug/channel-assembly-channels.html">Working with channels</a> in the <i>MediaTailor User Guide</i>.</p>
Args:
channel_name: <p>The name of the channel.</p>
Raises:
capo_mediatailor.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_mediatailor.types.describe_channel_request.DescribeChannelRequest]",
) -> AsyncOperationResponse[
"capo_mediatailor.types.describe_channel_response.DescribeChannelResponse"
]:
import capo_mediatailor._operations.media_tailor.describe_channel
(
output,
http_response,
) = await capo_mediatailor._operations.media_tailor.describe_channel.async_describe_channel(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeChannel")
)
input_: capo_mediatailor.types.describe_channel_request.DescribeChannelRequest = {
"channel_name": channel_name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|