Skip to content

get_software_updates async

get_software_updates(
    job_id: JobId, *, config_overrides: Optional[AsyncSnowballClientConfig] = None
) -> GetSoftwareUpdatesResult

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/async_snowball.py
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"
    ]:
        import capo_snowball._operations.awsie_snowball_job_management_service.get_software_updates

        (
            output,
            http_response,
        ) = await capo_snowball._operations.awsie_snowball_job_management_service.get_software_updates.async_get_software_updates(
            req.options, req.input
        )
        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