ExAws.Location.Jobs (ex_aws_location v0.1.0)

Copy Markdown

API calls for Amazon Location Service jobs.

Asynchronous bulk processing jobs.

Every function returns an operation struct to be passed to ExAws.request/2.

Operations

  • cancel_job - CancelJob
  • get_job - GetJob
  • list_jobs - ListJobs
  • start_job - StartJob

See https://docs.aws.amazon.com/location/previous/APIReference/API_Operations.html

Summary

Functions

CancelJob cancels a job that is currently running or pending. If the job is already in a terminal state (Completed, Failed, or Cancelled), the operation returns successfully with the current status.

GetJob retrieves detailed information about a specific job, including its current status, configuration, and error information if the job failed.

ListJobs retrieves a list of jobs with optional filtering and pagination support.

StartJob starts a new asynchronous bulk processing job. You specify the input data location in Amazon S3, the action to perform, and the output location where results are written.

Types

list_jobs_opts()

@type list_jobs_opts() :: [
  filter: ExAws.Location.Jobs.JobsFilter.t(),
  max_results: integer(),
  next_token: String.t()
]

start_job_opts()

@type start_job_opts() :: [
  action_options: ExAws.Location.Jobs.JobActionOptions.t(),
  client_token: String.t(),
  name: String.t(),
  tags: %{optional(String.t()) => String.t()}
]

Functions

cancel_job(job_id)

@spec cancel_job(String.t()) :: ExAws.Operation.JSON.t()

CancelJob cancels a job that is currently running or pending. If the job is already in a terminal state (Completed, Failed, or Cancelled), the operation returns successfully with the current status.

For more information, see Job concepts in the Amazon Location Service Developer Guide.

Parameters

  • job_id - The unique identifier of the job to cancel.

See https://docs.aws.amazon.com/location/previous/APIReference/API_CancelJob.html

get_job(job_id)

@spec get_job(String.t()) :: ExAws.Operation.RestQuery.t()

GetJob retrieves detailed information about a specific job, including its current status, configuration, and error information if the job failed.

For more information, see Job concepts in the Amazon Location Service Developer Guide.

Parameters

  • job_id - The unique identifier of the job to retrieve.

See https://docs.aws.amazon.com/location/previous/APIReference/API_GetJob.html

list_jobs(opts \\ [])

@spec list_jobs(list_jobs_opts()) :: ExAws.Operation.JSON.t()

ListJobs retrieves a list of jobs with optional filtering and pagination support.

For more information, see Job concepts in the Amazon Location Service Developer Guide.

Options

  • :filter - An optional structure containing criteria by which to filter job results.

  • :max_results - Maximum number of jobs to return.

  • :next_token - The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.

See https://docs.aws.amazon.com/location/previous/APIReference/API_ListJobs.html

start_job(action, execution_role_arn, input_options, output_options, opts \\ [])

StartJob starts a new asynchronous bulk processing job. You specify the input data location in Amazon S3, the action to perform, and the output location where results are written.

For more information, see Job concepts in the Amazon Location Service Developer Guide.

Parameters

  • action - The action to perform on the input data. Valid values: ValidateAddress.

  • execution_role_arn - The Amazon Resource Name (ARN) of the IAM role that Amazon Location Service assumes during job processing. Amazon Location Service uses this role to access the input and output locations specified for the job.

  • input_options - Configuration for input data location and format.

  • output_options - Configuration for output data location and format.

Options

  • :action_options - Additional parameters that can be requested for each result.

  • :client_token - A unique identifier for this request to ensure idempotency.

  • :name - An optional name for the job resource.

  • :tags - Tags and corresponding values to be associated with the job.

See https://docs.aws.amazon.com/location/previous/APIReference/API_StartJob.html