Skip to content

deregister_application

deregister_application(
    application_id: ApplicationId,
    *,
    config_overrides: Optional[SsmSapClientConfig] = None,
) -> DeregisterApplicationOutput

Deregister an SAP application with AWS Systems Manager for SAP. This action does not affect the existing setup of your SAP workloads on Amazon EC2.

Parameters:

Raises:

Source code in docs_src/capo_ssm_sap/_services/ssm_sap.py
def deregister_application(
    self,
    application_id: "capo_ssm_sap.types.application_id.ApplicationId",
    *,
    config_overrides: Optional[SsmSapClientConfig] = None,
) -> "capo_ssm_sap.types.deregister_application_output.DeregisterApplicationOutput":
    """<p>Deregister an SAP application with AWS Systems Manager for SAP. This action does not affect the existing setup of your SAP workloads on Amazon EC2.</p>

    Args:
        application_id: <p>The ID of the application.</p>

    Raises:
        capo_ssm_sap.errors.internal_server_exception.InternalServerException: <p>An internal error has occurred.</p>
        capo_ssm_sap.errors.unauthorized_exception.UnauthorizedException: <p>The request is not authorized.</p>
        capo_ssm_sap.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an AWS service. </p>
        capo_ssm_sap.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_ssm_sap.types.deregister_application_input.DeregisterApplicationInput]",
    ) -> OperationResponse[
        "capo_ssm_sap.types.deregister_application_output.DeregisterApplicationOutput"
    ]:
        import capo_ssm_sap._operations.ssm_sap.deregister_application

        output, http_response = (
            capo_ssm_sap._operations.ssm_sap.deregister_application.deregister_application(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeregisterApplication")
    )
    input_: capo_ssm_sap.types.deregister_application_input.DeregisterApplicationInput = {
        "application_id": application_id
    }

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