Gets an application registered with AWS Systems Manager for SAP. It also returns the components of the application.
Parameters:
-
application_id
(Optional[ApplicationId], default:
None
)
–
The ID of the application.
-
application_arn
(Optional[SsmSapArn], default:
None
)
–
The Amazon Resource Name (ARN) of the application.
-
app_registry_arn
(Optional[AppRegistryArn], default:
None
)
–
The Amazon Resource Name (ARN) of the application registry.
Raises:
Source code in docs_src/capo_ssm_sap/_services/ssm_sap.py
| def get_application(
self,
*,
config_overrides: Optional[SsmSapClientConfig] = None,
application_id: Optional[
"capo_ssm_sap.types.application_id.ApplicationId"
] = None,
application_arn: Optional["capo_ssm_sap.types.ssm_sap_arn.SsmSapArn"] = None,
app_registry_arn: Optional[
"capo_ssm_sap.types.app_registry_arn.AppRegistryArn"
] = None,
) -> "capo_ssm_sap.types.get_application_output.GetApplicationOutput":
"""<p>Gets an application registered with AWS Systems Manager for SAP. It also returns the components of the application.</p>
Args:
application_id: <p>The ID of the application.</p>
application_arn: <p>The Amazon Resource Name (ARN) of the application. </p>
app_registry_arn: <p>The Amazon Resource Name (ARN) of the application registry.</p>
Raises:
capo_ssm_sap.errors.internal_server_exception.InternalServerException: <p>An internal error has occurred.</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_application_input.GetApplicationInput]",
) -> OperationResponse[
"capo_ssm_sap.types.get_application_output.GetApplicationOutput"
]:
import capo_ssm_sap._operations.ssm_sap.get_application
output, http_response = (
capo_ssm_sap._operations.ssm_sap.get_application.get_application(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetApplication")
)
input_: capo_ssm_sap.types.get_application_input.GetApplicationInput = {}
if application_id is not None:
input_["application_id"] = application_id
if application_arn is not None:
input_["application_arn"] = application_arn
if app_registry_arn is not None:
input_["app_registry_arn"] = app_registry_arn
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|