Returns an Amazon S3 presigned URL for an update file associated with a specified JobId.
Parameters:
-
job_id
(JobId)
–
The ID for a job that you want to get the software update file for, for example JID123e4567-e89b-12d3-a456-426655440000.
Raises:
-
InvalidJobStateException
–
The action can't be performed because the job's current state doesn't allow that action to be performed.
-
InvalidResourceException
–
The specified resource can't be found. Check the information you provided in your last request, and try again.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_snowball/_services/snowball.py
| def get_software_updates(
self,
job_id: "capo_snowball.types.job_id.JobId",
*,
config_overrides: Optional[SnowballClientConfig] = None,
) -> "capo_snowball.types.get_software_updates_result.GetSoftwareUpdatesResult":
"""<p>Returns an Amazon S3 presigned URL for an update file associated with a specified <code>JobId</code>.</p>
Args:
job_id: <p>The ID for a job that you want to get the software update file for, for example <code>JID123e4567-e89b-12d3-a456-426655440000</code>.</p>
Raises:
capo_snowball.errors.invalid_job_state_exception.InvalidJobStateException: <p>The action can't be performed because the job's current state doesn't allow that action to be performed.</p>
capo_snowball.errors.invalid_resource_exception.InvalidResourceException: <p>The specified resource can't be found. Check the information you provided in your last request, and try again.</p>
capo_snowball.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_snowball.types.get_software_updates_request.GetSoftwareUpdatesRequest]",
) -> OperationResponse[
"capo_snowball.types.get_software_updates_result.GetSoftwareUpdatesResult"
]:
import capo_snowball._operations.awsie_snowball_job_management_service.get_software_updates
output, http_response = (
capo_snowball._operations.awsie_snowball_job_management_service.get_software_updates.get_software_updates(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetSoftwareUpdates")
)
input_: capo_snowball.types.get_software_updates_request.GetSoftwareUpdatesRequest = {
"job_id": job_id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|