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/media_tailor.py
| def describe_channel(
self,
channel_name: "capo_mediatailor.types.__string.__string",
*,
config_overrides: Optional[MediaTailorClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_mediatailor.types.describe_channel_request.DescribeChannelRequest]",
) -> OperationResponse[
"capo_mediatailor.types.describe_channel_response.DescribeChannelResponse"
]:
import capo_mediatailor._operations.media_tailor.describe_channel
output, http_response = (
capo_mediatailor._operations.media_tailor.describe_channel.describe_channel(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|