Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idaws.snowball.clusters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
address_idstringThe automatically generated ID for a specific address. (pattern: <code>ADID[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
cluster_idstringThe automatically generated ID for a cluster. (pattern: <code>.*</code>)
cluster_statestringThe current status of the cluster. (AwaitingQuorum, Pending, InUse, Complete, Cancelled)
creation_datestring (date-time)The creation date for this cluster.
descriptionstringThe optional description of the cluster. (pattern: <code>.*</code>)
forwarding_address_idstringThe ID of the address that you want a cluster shipped to, after it will be shipped to its primary address. This field is not supported in most regions. (pattern: <code>ADID[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
job_typestringThe type of job for this cluster. Currently, the only job type supported for clusters is LOCAL_USE. (IMPORT, EXPORT, LOCAL_USE)
kms_key_arnstringThe KmsKeyARN Amazon Resource Name (ARN) associated with this cluster. This ARN was created using the CreateKey API action in Key Management Service (KMS. (pattern: <code>arn:aws.:kms:.:[0-9]{12}:key/.*</code>)
notificationobjectThe Amazon Simple Notification Service (Amazon SNS) notification settings for this cluster.
on_device_service_configurationobjectRepresents metadata and configuration settings for services on an Amazon Web Services Snow Family device.
resourcesobjectThe arrays of JobResource objects that can include updated S3Resource objects or LambdaResource objects.
role_arnstringThe role ARN associated with this cluster. This ARN was created using the CreateRole API action in Identity and Access Management (IAM). (pattern: <code>arn:aws.:iam::[0-9]{12}:role/.</code>)
shipping_optionstringThe shipping speed for each node in this cluster. This speed doesn't dictate how soon you'll get each device, rather it represents how quickly each device moves to its destination while in transit. Regional shipping speeds are as follows: In Australia, you have access to express shipping. Typically, devices shipped express are delivered in about a day. In the European Union (EU), you have access to express shipping. Typically, Snow devices shipped express are delivered in about a day. In addition, most countries in the EU have access to standard shipping, which typically takes less than a week, one way. In India, Snow devices are delivered in one to seven days. In the US, you have access to one-day shipping and two-day shipping. (SECOND_DAY, NEXT_DAY, EXPRESS, STANDARD)
snowball_typestringThe type of Snowball Edge device to use for this cluster. For cluster jobs, Amazon Web Services Snow Family currently supports only the EDGE device type. (STANDARD, EDGE, EDGE_C, EDGE_CG, EDGE_S, SNC1_HDD, SNC1_SSD, V3_5C, V3_5S, RACK_5U_C)
tax_documentsobjectThe tax documents required in your Amazon Web Services Region.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_clusterselectregionReturns information about a specific cluster including shipping information, cluster status, and other important metadata.
list_clustersselectregionReturns an array of ClusterListEntry objects of the specified length. Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.
create_clusterinsertregion, JobType, AddressId, SnowballType, ShippingOptionCreates an empty cluster. Each cluster supports five nodes. You use the CreateJob action separately to create the jobs for each of these nodes. The cluster does not ship until these five node jobs have been created.
update_clusterupdateregion, ClusterIdWhile a cluster's ClusterState value is in the AwaitingQuorum state, you can update some of the information associated with a cluster. Once the cluster changes to a different job state, usually 60 minutes after the cluster being created, this action is no longer available.
cancel_clusterexecregion, ClusterIdCancels a cluster job. You can only cancel a cluster job while it's in the AwaitingQuorum status. You'll have at least an hour after creating a cluster job to cancel it.

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 cluster including shipping information, cluster status, and other important metadata.

SELECT
address_id,
cluster_id,
cluster_state,
creation_date,
description,
forwarding_address_id,
job_type,
kms_key_arn,
notification,
on_device_service_configuration,
resources,
role_arn,
shipping_option,
snowball_type,
tax_documents
FROM aws.snowball.clusters
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an empty cluster. Each cluster supports five nodes. You use the CreateJob action separately to create the jobs for each of these nodes. The cluster does not ship until these five node jobs have been created.

INSERT INTO aws.snowball.clusters (
JobType,
Resources,
OnDeviceServiceConfiguration,
Description,
AddressId,
KmsKeyARN,
RoleARN,
SnowballType,
ShippingOption,
Notification,
ForwardingAddressId,
TaxDocuments,
RemoteManagement,
InitialClusterSize,
ForceCreateJobs,
LongTermPricingIds,
SnowballCapacityPreference,
region
)
SELECT
'{{ JobType }}' /* required */,
'{{ Resources }}',
'{{ OnDeviceServiceConfiguration }}',
'{{ Description }}',
'{{ AddressId }}' /* required */,
'{{ KmsKeyARN }}',
'{{ RoleARN }}',
'{{ SnowballType }}' /* required */,
'{{ ShippingOption }}' /* required */,
'{{ Notification }}',
'{{ ForwardingAddressId }}',
'{{ TaxDocuments }}',
'{{ RemoteManagement }}',
{{ InitialClusterSize }},
{{ ForceCreateJobs }},
'{{ LongTermPricingIds }}',
'{{ SnowballCapacityPreference }}',
'{{ region }}'
RETURNING
cluster_id,
job_list_entries
;

UPDATE examples

While a cluster's ClusterState value is in the AwaitingQuorum state, you can update some of the information associated with a cluster. Once the cluster changes to a different job state, usually 60 minutes after the cluster being created, this action is no longer available.

UPDATE aws.snowball.clusters
SET
ClusterId = '{{ ClusterId }}',
RoleARN = '{{ RoleARN }}',
Description = '{{ Description }}',
Resources = '{{ Resources }}',
OnDeviceServiceConfiguration = '{{ OnDeviceServiceConfiguration }}',
AddressId = '{{ AddressId }}',
ShippingOption = '{{ ShippingOption }}',
Notification = '{{ Notification }}',
ForwardingAddressId = '{{ ForwardingAddressId }}'
WHERE
region = '{{ region }}' --required
AND ClusterId = '{{ ClusterId }}' --required;

Lifecycle Methods

Cancels a cluster job. You can only cancel a cluster job while it's in the AwaitingQuorum status. You'll have at least an hour after creating a cluster job to cancel it.

EXEC aws.snowball.clusters.cancel_cluster
@region='{{ region }}' --required
@@json=
'{
"ClusterId": "{{ ClusterId }}"
}'
;