Skip to content

list_streaming_distributions

list_streaming_distributions(
    *,
    config_overrides: Optional[CloudFrontClientConfig] = None,
    marker: Optional[string] = None,
    max_items: Optional[integer] = None,
) -> ListStreamingDistributionsResult

List streaming distributions.

Parameters:

  • marker (Optional[string], default: None ) –

    The value that you provided for the Marker request parameter.

  • max_items (Optional[integer], default: None ) –

    The value that you provided for the MaxItems request parameter.

Raises:

Source code in docs_src/capo_cloudfront/_services/cloud_front.py
def list_streaming_distributions(
    self,
    *,
    config_overrides: Optional[CloudFrontClientConfig] = None,
    marker: Optional["capo_cloudfront.types.string.string"] = None,
    max_items: Optional["capo_cloudfront.types.integer.integer"] = None,
) -> "capo_cloudfront.types.list_streaming_distributions_result.ListStreamingDistributionsResult":
    """<p>List streaming distributions.</p>

    Args:
        marker: <p>The value that you provided for the <code>Marker</code> request parameter.</p>
        max_items: <p>The value that you provided for the <code>MaxItems</code> request parameter.</p>

    Raises:
        capo_cloudfront.errors.invalid_argument.InvalidArgument: <p>An argument is invalid.</p>
        capo_cloudfront.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_cloudfront.types.list_streaming_distributions_request.ListStreamingDistributionsRequest]",
    ) -> OperationResponse[
        "capo_cloudfront.types.list_streaming_distributions_result.ListStreamingDistributionsResult"
    ]:
        import capo_cloudfront._operations.cloudfront2020_05_31.list_streaming_distributions

        output, http_response = (
            capo_cloudfront._operations.cloudfront2020_05_31.list_streaming_distributions.list_streaming_distributions(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListStreamingDistributions")
    )
    input_: capo_cloudfront.types.list_streaming_distributions_request.ListStreamingDistributionsRequest = {}
    if marker is not None:
        input_["marker"] = marker
    if max_items is not None:
        input_["max_items"] = max_items

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output