Skip to content

start_application

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

Request is an operation which starts an application.

Parameter ApplicationId is required.

Parameters:

Raises:

Source code in docs_src/capo_ssm_sap/_services/ssm_sap.py
def start_application(
    self,
    application_id: "capo_ssm_sap.types.application_id.ApplicationId",
    *,
    config_overrides: Optional[SsmSapClientConfig] = None,
) -> "capo_ssm_sap.types.start_application_output.StartApplicationOutput":
    """<p>Request is an operation which starts an application.</p> <p>Parameter <code>ApplicationId</code> is required.</p>

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

    Raises:
        capo_ssm_sap.errors.conflict_exception.ConflictException: <p>A conflict has occurred.</p>
        capo_ssm_sap.errors.internal_server_exception.InternalServerException: <p>An internal error has occurred.</p>
        capo_ssm_sap.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource is not available.</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.start_application_input.StartApplicationInput]",
    ) -> OperationResponse[
        "capo_ssm_sap.types.start_application_output.StartApplicationOutput"
    ]:
        import capo_ssm_sap._operations.ssm_sap.start_application

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StartApplication")
    )
    input_: capo_ssm_sap.types.start_application_input.StartApplicationInput = {
        "application_id": application_id
    }

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