Skip to content

get_component

get_component(
    application_id: ApplicationId,
    component_id: ComponentId,
    *,
    config_overrides: Optional[SsmSapClientConfig] = None,
) -> GetComponentOutput

Gets the component of an application registered with AWS Systems Manager for SAP.

Parameters:

Raises:

Source code in docs_src/capo_ssm_sap/_services/ssm_sap.py
def get_component(
    self,
    application_id: "capo_ssm_sap.types.application_id.ApplicationId",
    component_id: "capo_ssm_sap.types.component_id.ComponentId",
    *,
    config_overrides: Optional[SsmSapClientConfig] = None,
) -> "capo_ssm_sap.types.get_component_output.GetComponentOutput":
    """<p>Gets the component of an application registered with AWS Systems Manager for SAP.</p>

    Args:
        application_id: <p>The ID of the application.</p>
        component_id: <p>The ID of the component.</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.get_component_input.GetComponentInput]",
    ) -> OperationResponse[
        "capo_ssm_sap.types.get_component_output.GetComponentOutput"
    ]:
        import capo_ssm_sap._operations.ssm_sap.get_component

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetComponent")
    )
    input_: capo_ssm_sap.types.get_component_input.GetComponentInput = {
        "application_id": application_id,
        "component_id": component_id,
    }

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