Skip to content

modify_luna_client

modify_luna_client(
    client_arn: ClientArn,
    certificate: Certificate,
    *,
    config_overrides: Optional[CloudHSMClientConfig] = None,
) -> ModifyLunaClientResponse

This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference.

For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference.

Modifies the certificate used by the client.

This action can potentially start a workflow to install the new certificate on the client's HSMs.

Parameters:

  • client_arn (ClientArn) –

    The ARN of the client.

  • certificate (Certificate) –

    The new certificate for the client.

Raises:

Source code in docs_src/capo_cloudhsm/_services/cloud_hsm.py
def modify_luna_client(
    self,
    client_arn: "capo_cloudhsm.types.client_arn.ClientArn",
    certificate: "capo_cloudhsm.types.certificate.Certificate",
    *,
    config_overrides: Optional[CloudHSMClientConfig] = None,
) -> "capo_cloudhsm.types.modify_luna_client_response.ModifyLunaClientResponse":
    """<p>This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS CloudHSM Classic API Reference</a>.</p> <p> <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API Reference</a>.</p> <p>Modifies the certificate used by the client.</p> <p>This action can potentially start a workflow to install the new certificate on the client's HSMs.</p>

    Args:
        client_arn: <p>The ARN of the client.</p>
        certificate: <p>The new certificate for the client.</p>

    Raises:
        capo_cloudhsm.errors.cloud_hsm_service_exception.CloudHsmServiceException: <p>Indicates that an exception occurred in the AWS CloudHSM service.</p>
        capo_cloudhsm.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_cloudhsm.types.modify_luna_client_request.ModifyLunaClientRequest]",
    ) -> OperationResponse[
        "capo_cloudhsm.types.modify_luna_client_response.ModifyLunaClientResponse"
    ]:
        import capo_cloudhsm._operations.cloud_hsm_frontend_service.modify_luna_client

        output, http_response = (
            capo_cloudhsm._operations.cloud_hsm_frontend_service.modify_luna_client.modify_luna_client(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ModifyLunaClient")
    )
    input_: capo_cloudhsm.types.modify_luna_client_request.ModifyLunaClientRequest = {
        "client_arn": client_arn,
        "certificate": certificate,
    }

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