Skip to main content

jobs

Creates, updates, deletes, gets or lists a jobs resource.

Overview

Namejobs
TypeResource
Idaws.snowball.jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
job_metadataobjectInformation about a specific job, including shipping information, job status, and other important metadata.
sub_job_metadataarrayInformation about a specific job part (in the case of an export job), including shipping information, job status, and other important metadata.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_jobselectregionReturns information about a specific job including shipping information, job status, and other important metadata.
list_jobsselectregionReturns an array of JobListEntry objects of the specified length. Each JobListEntry object contains a job's state, a job's ID, and a value that indicates whether the job is a job part, in the case of export jobs. Calling this API action in one of the US regions will return jobs from the list of all jobs associated with this account in all US regions.
create_jobinsertregionCreates a job to import or export data between Amazon S3 and your on-premises data center. Your Amazon Web Services account must have the right trust policies and permissions in place to create a job for a Snow device. If you're creating a job for a node in a cluster, you only need to provide the clusterId value; the other job attributes are inherited from the cluster. Only the Snowball; Edge device type is supported when ordering clustered jobs. The device capacity is optional. Availability of device types differ by Amazon Web Services Region. For more information about Region availability, see Amazon Web Services Regional Services. Snow Family devices and their capacities. Device type: SNC1_SSD Capacity: T14 Description: Snowcone Device type: SNC1_HDD Capacity: T8 Description: Snowcone Device type: EDGE_S Capacity: T98 Description: Snowball Edge Storage Optimized for data transfer only Device type: EDGE_CG Capacity: T42 Description: Snowball Edge Compute Optimized with GPU Device type: EDGE_C Capacity: T42 Description: Snowball Edge Compute Optimized without GPU Device type: EDGE Capacity: T100 Description: Snowball Edge Storage Optimized with EC2 Compute This device is replaced with T98. Device type: STANDARD Capacity: T50 Description: Original Snowball device This device is only available in the Ningxia, Beijing, and Singapore Amazon Web Services Region Device type: STANDARD Capacity: T80 Description: Original Snowball device This device is only available in the Ningxia, Beijing, and Singapore Amazon Web Services Region. Snow Family device type: RACK_5U_C Capacity: T13 Description: Snowblade. Device type: V3_5S Capacity: T240 Description: Snowball Edge Storage Optimized 210TB
update_job_shipment_stateupdateregion, JobId, ShipmentStateUpdates the state when a shipment state changes to a different state.
update_jobupdateregion, JobIdWhile a job's JobState value is New, you can update some of the information associated with a job. Once the job changes to a different job state, usually within 60 minutes of the job being created, this action is no longer available.
cancel_jobexecregion, JobIdCancels the specified job. You can only cancel a job before its JobState value changes to PreparingAppliance. Requesting the ListJobs or DescribeJob action returns a job's JobState as part of the response element data returned.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about a specific job including shipping information, job status, and other important metadata.

SELECT
job_metadata,
sub_job_metadata
FROM aws.snowball.jobs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a job to import or export data between Amazon S3 and your on-premises data center. Your Amazon Web Services account must have the right trust policies and permissions in place to create a job for a Snow device. If you're creating a job for a node in a cluster, you only need to provide the clusterId value; the other job attributes are inherited from the cluster. Only the Snowball; Edge device type is supported when ordering clustered jobs. The device capacity is optional. Availability of device types differ by Amazon Web Services Region. For more information about Region availability, see Amazon Web Services Regional Services. Snow Family devices and their capacities. Device type: SNC1_SSD Capacity: T14 Description: Snowcone Device type: SNC1_HDD Capacity: T8 Description: Snowcone Device type: EDGE_S Capacity: T98 Description: Snowball Edge Storage Optimized for data transfer only Device type: EDGE_CG Capacity: T42 Description: Snowball Edge Compute Optimized with GPU Device type: EDGE_C Capacity: T42 Description: Snowball Edge Compute Optimized without GPU Device type: EDGE Capacity: T100 Description: Snowball Edge Storage Optimized with EC2 Compute This device is replaced with T98. Device type: STANDARD Capacity: T50 Description: Original Snowball device This device is only available in the Ningxia, Beijing, and Singapore Amazon Web Services Region Device type: STANDARD Capacity: T80 Description: Original Snowball device This device is only available in the Ningxia, Beijing, and Singapore Amazon Web Services Region. Snow Family device type: RACK_5U_C Capacity: T13 Description: Snowblade. Device type: V3_5S Capacity: T240 Description: Snowball Edge Storage Optimized 210TB

INSERT INTO aws.snowball.jobs (
JobType,
Resources,
OnDeviceServiceConfiguration,
Description,
AddressId,
KmsKeyARN,
RoleARN,
SnowballCapacityPreference,
ShippingOption,
Notification,
ClusterId,
SnowballType,
ForwardingAddressId,
TaxDocuments,
DeviceConfiguration,
RemoteManagement,
LongTermPricingId,
ImpactLevel,
PickupDetails,
region
)
SELECT
'{{ JobType }}',
'{{ Resources }}',
'{{ OnDeviceServiceConfiguration }}',
'{{ Description }}',
'{{ AddressId }}',
'{{ KmsKeyARN }}',
'{{ RoleARN }}',
'{{ SnowballCapacityPreference }}',
'{{ ShippingOption }}',
'{{ Notification }}',
'{{ ClusterId }}',
'{{ SnowballType }}',
'{{ ForwardingAddressId }}',
'{{ TaxDocuments }}',
'{{ DeviceConfiguration }}',
'{{ RemoteManagement }}',
'{{ LongTermPricingId }}',
'{{ ImpactLevel }}',
'{{ PickupDetails }}',
'{{ region }}'
RETURNING
job_id
;

UPDATE examples

Updates the state when a shipment state changes to a different state.

UPDATE aws.snowball.jobs
SET
JobId = '{{ JobId }}',
ShipmentState = '{{ ShipmentState }}'
WHERE
region = '{{ region }}' --required
AND JobId = '{{ JobId }}' --required
AND ShipmentState = '{{ ShipmentState }}' --required;

Lifecycle Methods

Cancels the specified job. You can only cancel a job before its JobState value changes to PreparingAppliance. Requesting the ListJobs or DescribeJob action returns a job's JobState as part of the response element data returned.

EXEC aws.snowball.jobs.cancel_job
@region='{{ region }}' --required
@@json=
'{
"JobId": "{{ JobId }}"
}'
;