Gets information about a specified RTMP distribution, including the distribution configuration.
Parameters:
-
id
(string)
–
The streaming distribution's ID.
Raises:
Source code in docs_src/capo_cloudfront/_services/async_cloud_front.py
| async def get_streaming_distribution(
self,
id: "capo_cloudfront.types.string.string",
*,
config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
) -> "capo_cloudfront.types.get_streaming_distribution_result.GetStreamingDistributionResult":
"""<p>Gets information about a specified RTMP distribution, including the distribution configuration.</p>
Args:
id: <p>The streaming distribution's ID.</p>
Raises:
capo_cloudfront.errors.access_denied.AccessDenied: <p>Access denied.</p>
capo_cloudfront.errors.no_such_streaming_distribution.NoSuchStreamingDistribution: <p>The specified streaming distribution does not exist.</p>
capo_cloudfront.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cloudfront.types.get_streaming_distribution_request.GetStreamingDistributionRequest]",
) -> AsyncOperationResponse[
"capo_cloudfront.types.get_streaming_distribution_result.GetStreamingDistributionResult"
]:
import capo_cloudfront._operations.cloudfront2020_05_31.get_streaming_distribution
(
output,
http_response,
) = await capo_cloudfront._operations.cloudfront2020_05_31.get_streaming_distribution.async_get_streaming_distribution(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetStreamingDistribution")
)
input_: capo_cloudfront.types.get_streaming_distribution_request.GetStreamingDistributionRequest = {
"id": id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|