Skip to content

get_trust_store_certificate

get_trust_store_certificate(
    trust_store_arn: ARN,
    thumbprint: CertificateThumbprint,
    *,
    config_overrides: Optional[WorkSpacesWebClientConfig] = 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/work_spaces_web.py
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[WorkSpacesWebClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_workspaces_web.types.get_trust_store_certificate_request.GetTrustStoreCertificateRequest]",
    ) -> OperationResponse[
        "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 = (
            capo_workspaces_web._operations.aws_ermine_control_plane_service.get_trust_store_certificate.get_trust_store_certificate(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output