def get_earth_observation_job(
self,
arn: "capo_sagemaker_geospatial.types.earth_observation_job_arn.EarthObservationJobArn",
*,
config_overrides: Optional[SageMakerGeospatialClientConfig] = None,
) -> "capo_sagemaker_geospatial.types.get_earth_observation_job_output.GetEarthObservationJobOutput":
"""<p>Get the details for a previously initiated Earth Observation job.</p>
Args:
arn: <p>The Amazon Resource Name (ARN) of the Earth Observation job.</p>
Raises:
capo_sagemaker_geospatial.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_sagemaker_geospatial.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception, or failure.</p>
capo_sagemaker_geospatial.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request references a resource which does not exist.</p>
capo_sagemaker_geospatial.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_sagemaker_geospatial.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
capo_sagemaker_geospatial.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_sagemaker_geospatial.types.get_earth_observation_job_input.GetEarthObservationJobInput]",
) -> OperationResponse[
"capo_sagemaker_geospatial.types.get_earth_observation_job_output.GetEarthObservationJobOutput"
]:
import capo_sagemaker_geospatial._operations.sage_maker_geospatial.get_earth_observation_job
output, http_response = (
capo_sagemaker_geospatial._operations.sage_maker_geospatial.get_earth_observation_job.get_earth_observation_job(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_sagemaker_geospatial.types.get_earth_observation_job_output.GetEarthObservationJobOutput",
) -> dict[str, Any]:
import capo_sagemaker_geospatial.types.get_earth_observation_job_output
return capo_sagemaker_geospatial.types.get_earth_observation_job_output.redact_sensitive(
output
)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("GetEarthObservationJob", redact_output=_redact_output),
)
input_: capo_sagemaker_geospatial.types.get_earth_observation_job_input.GetEarthObservationJobInput = {
"arn": arn
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output