async def get_software_updates(
self,
job_id: "capo_snowball.types.job_id.JobId",
*,
config_overrides: Optional[AsyncSnowballClientConfig] = 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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_snowball.types.get_software_updates_request.GetSoftwareUpdatesRequest]",
) -> AsyncOperationResponse[
"capo_snowball.types.get_software_updates_result.GetSoftwareUpdatesResult"
]:
if req.options.protocol == "awsJson1_1":
import capo_snowball._operations.awsie_snowball_job_management_service.aws_json1_1.get_software_updates
(
output,
http_response,
) = await capo_snowball._operations.awsie_snowball_job_management_service.aws_json1_1.get_software_updates.async_get_software_updates(
req.options, req.input
)
elif req.options.protocol == "rpcv2Cbor":
import capo_snowball._operations.awsie_snowball_job_management_service.rpcv2_cbor.get_software_updates
(
output,
http_response,
) = await capo_snowball._operations.awsie_snowball_job_management_service.rpcv2_cbor.get_software_updates.async_get_software_updates(
req.options, req.input
)
else:
raise ValueError(f"unknown protocol {req.options.protocol!r}")
return AsyncOperationResponse(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 = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output