Skip to content

list_outgoing_certificates async

list_outgoing_certificates(
    *,
    config_overrides: Optional[AsyncIoTClientConfig] = None,
    page_size: Optional[PageSize] = None,
    marker: Optional[Marker] = None,
    ascending_order: Optional[AscendingOrder] = None,
) -> ListOutgoingCertificatesResponse

Lists certificates that are being transferred but not yet accepted.

Requires permission to access the ListOutgoingCertificates action.

Parameters:

  • page_size (Optional[PageSize], default: None ) –

    The result page size.

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

    The marker for the next set of results.

  • ascending_order (Optional[AscendingOrder], default: None ) –

    Specifies the order for results. If True, the results are returned in ascending order, based on the creation date.

Raises:

Source code in docs_src/capo_iot/_services/async_io_t.py
async def list_outgoing_certificates(
    self,
    *,
    config_overrides: Optional[AsyncIoTClientConfig] = None,
    page_size: Optional["capo_iot.types.page_size.PageSize"] = None,
    marker: Optional["capo_iot.types.marker.Marker"] = None,
    ascending_order: Optional[
        "capo_iot.types.ascending_order.AscendingOrder"
    ] = None,
) -> "capo_iot.types.list_outgoing_certificates_response.ListOutgoingCertificatesResponse":
    """<p>Lists certificates that are being transferred but not yet accepted.</p> <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListOutgoingCertificates</a> action.</p>

    Args:
        page_size: <p>The result page size.</p>
        marker: <p>The marker for the next set of results.</p>
        ascending_order: <p>Specifies the order for results. If True, the results are returned in ascending order, based on the creation date.</p>

    Raises:
        capo_iot.errors.internal_failure_exception.InternalFailureException: <p>An unexpected error has occurred.</p>
        capo_iot.errors.invalid_request_exception.InvalidRequestException: <p>The request is not valid.</p>
        capo_iot.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service is temporarily unavailable.</p>
        capo_iot.errors.throttling_exception.ThrottlingException: <p>The rate exceeds the limit.</p>
        capo_iot.errors.unauthorized_exception.UnauthorizedException: <p>You are not authorized to perform this operation.</p>
        capo_iot.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_iot.types.list_outgoing_certificates_request.ListOutgoingCertificatesRequest]",
    ) -> AsyncOperationResponse[
        "capo_iot.types.list_outgoing_certificates_response.ListOutgoingCertificatesResponse"
    ]:
        import capo_iot._operations.aws_iot_service.list_outgoing_certificates

        (
            output,
            http_response,
        ) = await capo_iot._operations.aws_iot_service.list_outgoing_certificates.async_list_outgoing_certificates(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListOutgoingCertificates")
    )
    input_: capo_iot.types.list_outgoing_certificates_request.ListOutgoingCertificatesRequest = {}
    if page_size is not None:
        input_["page_size"] = page_size
    if marker is not None:
        input_["marker"] = marker
    if ascending_order is not None:
        input_["ascending_order"] = ascending_order

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output