Skip to content

update_trust_store async

update_trust_store(
    trust_store_arn: ARN,
    *,
    config_overrides: Optional[AsyncWorkSpacesWebClientConfig] = None,
    certificates_to_add: Optional[CertificateList] = None,
    certificates_to_delete: Optional[CertificateThumbprintList] = None,
    client_token: Optional[ClientToken] = None,
) -> UpdateTrustStoreResponse

Updates the trust store.

Parameters:

  • trust_store_arn (ARN) –

    The ARN of the trust store.

  • certificates_to_add (Optional[CertificateList], default: None ) –

    A list of CA certificates to add to the trust store.

  • certificates_to_delete (Optional[CertificateThumbprintList], default: None ) –

    A list of CA certificates to delete from a trust store.

  • client_token (Optional[ClientToken], default: None ) –

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token return the result from the original successful request.

    If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.

Raises:

Source code in docs_src/capo_workspaces_web/_services/async_work_spaces_web.py
async def update_trust_store(
    self,
    trust_store_arn: "capo_workspaces_web.types.arn.ARN",
    *,
    config_overrides: Optional[AsyncWorkSpacesWebClientConfig] = None,
    certificates_to_add: Optional[
        "capo_workspaces_web.types.certificate_list.CertificateList"
    ] = None,
    certificates_to_delete: Optional[
        "capo_workspaces_web.types.certificate_thumbprint_list.CertificateThumbprintList"
    ] = None,
    client_token: Optional[
        "capo_workspaces_web.types.client_token.ClientToken"
    ] = None,
) -> (
    "capo_workspaces_web.types.update_trust_store_response.UpdateTrustStoreResponse"
):
    """<p>Updates the trust store.</p>

    Args:
        trust_store_arn: <p>The ARN of the trust store.</p>
        certificates_to_add: <p>A list of CA certificates to add to the trust store.</p>
        certificates_to_delete: <p>A list of CA certificates to delete from a trust store.</p>
        client_token: <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token return the result from the original successful request. </p> <p>If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.</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.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The service quota has been exceeded.</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.update_trust_store_request.UpdateTrustStoreRequest]",
    ) -> AsyncOperationResponse[
        "capo_workspaces_web.types.update_trust_store_response.UpdateTrustStoreResponse"
    ]:
        import capo_workspaces_web._operations.aws_ermine_control_plane_service.update_trust_store

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateTrustStore")
    )
    input_: capo_workspaces_web.types.update_trust_store_request.UpdateTrustStoreRequest = {
        "trust_store_arn": trust_store_arn
    }
    if certificates_to_add is not None:
        input_["certificates_to_add"] = certificates_to_add
    if certificates_to_delete is not None:
        input_["certificates_to_delete"] = certificates_to_delete
    if client_token is None:
        client_token = str(uuid.uuid4())
    input_["client_token"] = client_token

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