Skip to content

get_trust_store_certificate async

get_trust_store_certificate(
    trust_store_arn: ARN,
    thumbprint: CertificateThumbprint,
    *,
    config_overrides: Optional[AsyncWorkSpacesWebClientConfig] = None,
) -> GetTrustStoreCertificateResponse

Gets the trust store certificate.

Parameters:

  • trust_store_arn (ARN) –

    The ARN of the trust store certificate.

  • thumbprint (CertificateThumbprint) –

    The thumbprint of the trust store certificate.

Raises:

Source code in docs_src/capo_workspaces_web/_services/async_work_spaces_web.py
async def get_trust_store_certificate(
    self,
    trust_store_arn: "capo_workspaces_web.types.arn.ARN",
    thumbprint: "capo_workspaces_web.types.certificate_thumbprint.CertificateThumbprint",
    *,
    config_overrides: Optional[AsyncWorkSpacesWebClientConfig] = None,
) -> "capo_workspaces_web.types.get_trust_store_certificate_response.GetTrustStoreCertificateResponse":
    """<p>Gets the trust store certificate.</p>

    Args:
        trust_store_arn: <p>The ARN of the trust store certificate.</p>
        thumbprint: <p>The thumbprint of the trust store certificate.</p>

    Raises:
        capo_workspaces_web.errors.access_denied_exception.AccessDeniedException: <p>Access is denied.</p>
        capo_workspaces_web.errors.internal_server_exception.InternalServerException: <p>There is an internal server error.</p>
        capo_workspaces_web.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource cannot be found.</p>
        capo_workspaces_web.errors.throttling_exception.ThrottlingException: <p>There is a throttling error.</p>
        capo_workspaces_web.errors.validation_exception.ValidationException: <p>There is a validation error.</p>
        capo_workspaces_web.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_workspaces_web.types.get_trust_store_certificate_request.GetTrustStoreCertificateRequest]",
    ) -> AsyncOperationResponse[
        "capo_workspaces_web.types.get_trust_store_certificate_response.GetTrustStoreCertificateResponse"
    ]:
        import capo_workspaces_web._operations.aws_ermine_control_plane_service.get_trust_store_certificate

        (
            output,
            http_response,
        ) = await capo_workspaces_web._operations.aws_ermine_control_plane_service.get_trust_store_certificate.async_get_trust_store_certificate(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetTrustStoreCertificate")
    )
    input_: capo_workspaces_web.types.get_trust_store_certificate_request.GetTrustStoreCertificateRequest = {
        "trust_store_arn": trust_store_arn,
        "thumbprint": thumbprint,
    }

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