2016/11/30 - Amazon Import/Export Snowball - 6 new4 updated api methods
Changes Update snowball client to latest version
Returns information about a specific cluster including shipping information, cluster status, and other important metadata.
See also: AWS API Documentation
Request Syntax
client.describe_cluster( ClusterId='string' )
string
[REQUIRED]
The automatically generated ID for a cluster.
dict
Response Syntax
{ 'ClusterMetadata': { 'ClusterId': 'string', 'Description': 'string', 'KmsKeyARN': 'string', 'RoleARN': 'string', 'ClusterState': 'AwaitingQuorum'|'Pending'|'InUse'|'Complete'|'Cancelled', 'JobType': 'IMPORT'|'EXPORT'|'LOCAL_USE', 'SnowballType': 'STANDARD'|'EDGE', 'CreationDate': datetime(2015, 1, 1), 'Resources': { 'S3Resources': [ { 'BucketArn': 'string', 'KeyRange': { 'BeginMarker': 'string', 'EndMarker': 'string' } }, ], 'LambdaResources': [ { 'LambdaArn': 'string', 'EventTriggers': [ { 'EventResourceARN': 'string' }, ] }, ] }, 'AddressId': 'string', 'ShippingOption': 'SECOND_DAY'|'NEXT_DAY'|'EXPRESS'|'STANDARD', 'Notification': { 'SnsTopicARN': 'string', 'JobStatesToNotify': [ 'New'|'PreparingAppliance'|'PreparingShipment'|'InTransitToCustomer'|'WithCustomer'|'InTransitToAWS'|'WithAWS'|'InProgress'|'Complete'|'Cancelled'|'Listing'|'Pending', ], 'NotifyAll': True|False } } }
Response Structure
(dict) --
ClusterMetadata (dict) --
Information about a specific cluster, including shipping information, cluster status, and other important metadata.
ClusterId (string) --
The automatically generated ID for a cluster.
Description (string) --
The optional description of the cluster.
KmsKeyARN (string) --
The KmsKeyARN Amazon Resource Name (ARN) associated with this cluster. This ARN was created using the CreateKey API action in AWS Key Management Service (AWS KMS).
RoleARN (string) --
The role ARN associated with this cluster. This ARN was created using the CreateRole API action in AWS Identity and Access Management (IAM).
ClusterState (string) --
The current status of the cluster.
JobType (string) --
The type of job for this cluster. Currently, the only job type supported for clusters is LOCAL_USE.
SnowballType (string) --
The type of AWS Snowball appliance to use for this cluster. Currently, the only supported appliance type for cluster jobs is EDGE.
CreationDate (datetime) --
The creation date for this cluster.
Resources (dict) --
The arrays of JobResource objects that can include updated S3Resource objects or LambdaResource objects.
S3Resources (list) --
An array of S3Resource objects.
(dict) --
Each S3Resource object represents an Amazon S3 bucket that your transferred data will be exported from or imported into. For export jobs, this object can have an optional KeyRange value. The length of the range is defined at job creation, and has either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges are UTF-8 binary sorted.
BucketArn (string) --
The Amazon Resource Name (ARN) of an Amazon S3 bucket.
KeyRange (dict) --
For export jobs, you can provide an optional KeyRange within a specific Amazon S3 bucket. The length of the range is defined at job creation, and has either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges are UTF-8 binary sorted.
BeginMarker (string) --
The key that starts an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
EndMarker (string) --
The key that ends an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
LambdaResources (list) --
The Python-language Lambda functions for this job.
(dict) --
Identifies
LambdaArn (string) --
An Amazon Resource Name (ARN) that represents an AWS Lambda function to be triggered by PUT object actions on the associated local Amazon S3 resource.
EventTriggers (list) --
The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this job.
(dict) --
The container for the EventTriggerDefinition$EventResourceARN.
EventResourceARN (string) --
The Amazon Resource Name (ARN) for any local Amazon S3 resource that is an AWS Lambda function's event trigger associated with this job.
AddressId (string) --
The automatically generated ID for a specific address.
ShippingOption (string) --
The shipping speed for each node in this cluster. This speed doesn't dictate how soon you'll get each Snowball Edge appliance, rather it represents how quickly each appliance moves to its destination while in transit. Regional shipping speeds are as follows:
In Australia, you have access to express shipping. Typically, appliances shipped express are delivered in about a day.
In the European Union (EU), you have access to express shipping. Typically, Snowball Edges 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, Snowball Edges are delivered in one to seven days.
In the US, you have access to one-day shipping and two-day shipping.
Notification (dict) --
The Amazon Simple Notification Service (Amazon SNS) notification settings for this cluster.
SnsTopicARN (string) --
The new SNS TopicArn that you want to associate with this job. You can create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API action.
You can subscribe email addresses to an Amazon SNS topic through the AWS Management Console, or by using the Subscribe AWS Simple Notification Service (SNS) API action.
JobStatesToNotify (list) --
The list of job states that will trigger a notification for this job.
(string) --
NotifyAll (boolean) --
Any change in job state will trigger a notification for this job.
Returns 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.
See also: AWS API Documentation
Request Syntax
client.list_clusters( MaxResults=123, NextToken='string' )
integer
The number of ClusterListEntry objects to return.
string
HTTP requests are stateless. To identify what object comes "next" in the list of ClusterListEntry objects, you have the option of specifying NextToken as the starting point for your returned list.
dict
Response Syntax
{ 'ClusterListEntries': [ { 'ClusterId': 'string', 'ClusterState': 'AwaitingQuorum'|'Pending'|'InUse'|'Complete'|'Cancelled', 'CreationDate': datetime(2015, 1, 1), 'Description': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) --
ClusterListEntries (list) --
Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.
(dict) --
Contains a cluster's state, a cluster's ID, and other important information.
ClusterId (string) --
The 39-character ID for the cluster that you want to list, for example CID123e4567-e89b-12d3-a456-426655440000.
ClusterState (string) --
The current state of this cluster. For information about the state of a specific node, see JobListEntry$JobState.
CreationDate (datetime) --
The creation date for this cluster.
Description (string) --
Defines an optional description of the cluster, for example Environmental Data Cluster-01.
NextToken (string) --
HTTP requests are stateless. If you use the automatically generated NextToken value in your next ClusterListEntry call, your list of returned clusters will start from this point in the array.
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.
See also: AWS API Documentation
Request Syntax
client.update_cluster( ClusterId='string', RoleARN='string', Description='string', Resources={ 'S3Resources': [ { 'BucketArn': 'string', 'KeyRange': { 'BeginMarker': 'string', 'EndMarker': 'string' } }, ], 'LambdaResources': [ { 'LambdaArn': 'string', 'EventTriggers': [ { 'EventResourceARN': 'string' }, ] }, ] }, AddressId='string', ShippingOption='SECOND_DAY'|'NEXT_DAY'|'EXPRESS'|'STANDARD', Notification={ 'SnsTopicARN': 'string', 'JobStatesToNotify': [ 'New'|'PreparingAppliance'|'PreparingShipment'|'InTransitToCustomer'|'WithCustomer'|'InTransitToAWS'|'WithAWS'|'InProgress'|'Complete'|'Cancelled'|'Listing'|'Pending', ], 'NotifyAll': True|False } )
string
[REQUIRED]
The cluster ID of the cluster that you want to update, for example CID123e4567-e89b-12d3-a456-426655440000.
string
The new role Amazon Resource Name (ARN) that you want to associate with this cluster. To create a role ARN, use the CreateRole API action in AWS Identity and Access Management (IAM).
string
The updated description of this cluster.
dict
The updated arrays of JobResource objects that can include updated S3Resource objects or LambdaResource objects.
S3Resources (list) --
An array of S3Resource objects.
(dict) --
Each S3Resource object represents an Amazon S3 bucket that your transferred data will be exported from or imported into. For export jobs, this object can have an optional KeyRange value. The length of the range is defined at job creation, and has either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges are UTF-8 binary sorted.
BucketArn (string) --
The Amazon Resource Name (ARN) of an Amazon S3 bucket.
KeyRange (dict) --
For export jobs, you can provide an optional KeyRange within a specific Amazon S3 bucket. The length of the range is defined at job creation, and has either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges are UTF-8 binary sorted.
BeginMarker (string) --
The key that starts an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
EndMarker (string) --
The key that ends an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
LambdaResources (list) --
The Python-language Lambda functions for this job.
(dict) --
Identifies
LambdaArn (string) --
An Amazon Resource Name (ARN) that represents an AWS Lambda function to be triggered by PUT object actions on the associated local Amazon S3 resource.
EventTriggers (list) --
The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this job.
(dict) --
The container for the EventTriggerDefinition$EventResourceARN.
EventResourceARN (string) --
The Amazon Resource Name (ARN) for any local Amazon S3 resource that is an AWS Lambda function's event trigger associated with this job.
string
The ID of the updated Address object.
string
The updated shipping option value of this cluster's ShippingDetails object.
dict
The new or updated Notification object.
SnsTopicARN (string) --
The new SNS TopicArn that you want to associate with this job. You can create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API action.
You can subscribe email addresses to an Amazon SNS topic through the AWS Management Console, or by using the Subscribe AWS Simple Notification Service (SNS) API action.
JobStatesToNotify (list) --
The list of job states that will trigger a notification for this job.
(string) --
NotifyAll (boolean) --
Any change in job state will trigger a notification for this job.
dict
Response Syntax
{}
Response Structure
(dict) --
Returns an array of JobListEntry objects of the specified length. Each JobListEntry object is for a job in the specified cluster and contains a job's state, a job's ID, and other information.
See also: AWS API Documentation
Request Syntax
client.list_cluster_jobs( ClusterId='string', MaxResults=123, NextToken='string' )
string
[REQUIRED]
The 39-character ID for the cluster that you want to list, for example CID123e4567-e89b-12d3-a456-426655440000.
integer
The number of JobListEntry objects to return.
string
HTTP requests are stateless. To identify what object comes "next" in the list of JobListEntry objects, you have the option of specifying NextToken as the starting point for your returned list.
dict
Response Syntax
{ 'JobListEntries': [ { 'JobId': 'string', 'JobState': 'New'|'PreparingAppliance'|'PreparingShipment'|'InTransitToCustomer'|'WithCustomer'|'InTransitToAWS'|'WithAWS'|'InProgress'|'Complete'|'Cancelled'|'Listing'|'Pending', 'IsMaster': True|False, 'JobType': 'IMPORT'|'EXPORT'|'LOCAL_USE', 'SnowballType': 'STANDARD'|'EDGE', 'CreationDate': datetime(2015, 1, 1), 'Description': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) --
JobListEntries (list) --
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.
(dict) --
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 an export job.
JobId (string) --
The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.
JobState (string) --
The current state of this job.
IsMaster (boolean) --
A value that indicates that this job is a master job. A master job represents a successful request to create an export job. Master jobs aren't associated with any Snowballs. Instead, each master job will have at least one job part, and each job part is associated with a Snowball. It might take some time before the job parts associated with a particular master job are listed, because they are created after the master job is created.
JobType (string) --
The type of job.
SnowballType (string) --
The type of appliance used with this job.
CreationDate (datetime) --
The creation date for this job.
Description (string) --
The optional description of this specific job, for example Important Photos 2016-08-11.
NextToken (string) --
HTTP requests are stateless. If you use the automatically generated NextToken value in your next ListClusterJobsResult call, your list of returned jobs will start from this point in the array.
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.
See also: AWS API Documentation
Request Syntax
client.cancel_cluster( ClusterId='string' )
string
[REQUIRED]
The 39-character ID for the cluster that you want to cancel, for example CID123e4567-e89b-12d3-a456-426655440000.
dict
Response Syntax
{}
Response Structure
(dict) --
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.
See also: AWS API Documentation
Request Syntax
client.create_cluster( JobType='IMPORT'|'EXPORT'|'LOCAL_USE', Resources={ 'S3Resources': [ { 'BucketArn': 'string', 'KeyRange': { 'BeginMarker': 'string', 'EndMarker': 'string' } }, ], 'LambdaResources': [ { 'LambdaArn': 'string', 'EventTriggers': [ { 'EventResourceARN': 'string' }, ] }, ] }, Description='string', AddressId='string', KmsKeyARN='string', RoleARN='string', SnowballType='STANDARD'|'EDGE', ShippingOption='SECOND_DAY'|'NEXT_DAY'|'EXPRESS'|'STANDARD', Notification={ 'SnsTopicARN': 'string', 'JobStatesToNotify': [ 'New'|'PreparingAppliance'|'PreparingShipment'|'InTransitToCustomer'|'WithCustomer'|'InTransitToAWS'|'WithAWS'|'InProgress'|'Complete'|'Cancelled'|'Listing'|'Pending', ], 'NotifyAll': True|False } )
string
[REQUIRED]
The type of job for this cluster. Currently, the only job type supported for clusters is LOCAL_USE.
dict
[REQUIRED]
The resources associated with the cluster job. These resources include Amazon S3 buckets and optional AWS Lambda functions written in the Python language.
S3Resources (list) --
An array of S3Resource objects.
(dict) --
Each S3Resource object represents an Amazon S3 bucket that your transferred data will be exported from or imported into. For export jobs, this object can have an optional KeyRange value. The length of the range is defined at job creation, and has either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges are UTF-8 binary sorted.
BucketArn (string) --
The Amazon Resource Name (ARN) of an Amazon S3 bucket.
KeyRange (dict) --
For export jobs, you can provide an optional KeyRange within a specific Amazon S3 bucket. The length of the range is defined at job creation, and has either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges are UTF-8 binary sorted.
BeginMarker (string) --
The key that starts an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
EndMarker (string) --
The key that ends an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
LambdaResources (list) --
The Python-language Lambda functions for this job.
(dict) --
Identifies
LambdaArn (string) --
An Amazon Resource Name (ARN) that represents an AWS Lambda function to be triggered by PUT object actions on the associated local Amazon S3 resource.
EventTriggers (list) --
The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this job.
(dict) --
The container for the EventTriggerDefinition$EventResourceARN.
EventResourceARN (string) --
The Amazon Resource Name (ARN) for any local Amazon S3 resource that is an AWS Lambda function's event trigger associated with this job.
string
An optional description of this specific cluster, for example Environmental Data Cluster-01.
string
[REQUIRED]
The ID for the address that you want the cluster shipped to.>
string
The KmsKeyARN value that you want to associate with this cluster. KmsKeyARN values are created by using the CreateKey API action in AWS Key Management Service (AWS KMS).
string
[REQUIRED]
The RoleARN that you want to associate with this cluster. RoleArn values are created by using the CreateRole API action in AWS Identity and Access Management (IAM).
string
The type of AWS Snowball appliance to use for this cluster. Currently, the only supported appliance type for cluster jobs is EDGE.
string
[REQUIRED]
The shipping speed for each node in this cluster. This speed doesn't dictate how soon you'll get each Snowball Edge appliance, rather it represents how quickly each appliance moves to its destination while in transit. Regional shipping speeds are as follows:
In Australia, you have access to express shipping. Typically, appliances shipped express are delivered in about a day.
In the European Union (EU), you have access to express shipping. Typically, Snowball Edges 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, Snowball Edges are delivered in one to seven days.
In the US, you have access to one-day shipping and two-day shipping.
dict
The Amazon Simple Notification Service (Amazon SNS) notification settings for this cluster.
SnsTopicARN (string) --
The new SNS TopicArn that you want to associate with this job. You can create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API action.
You can subscribe email addresses to an Amazon SNS topic through the AWS Management Console, or by using the Subscribe AWS Simple Notification Service (SNS) API action.
JobStatesToNotify (list) --
The list of job states that will trigger a notification for this job.
(string) --
NotifyAll (boolean) --
Any change in job state will trigger a notification for this job.
dict
Response Syntax
{ 'ClusterId': 'string' }
Response Structure
(dict) --
ClusterId (string) --
The automatically generated ID for a cluster.
{'ClusterId': 'string', 'JobType': {'LOCAL_USE'}, 'Resources': {'LambdaResources': [{'EventTriggers': [{'EventResourceARN': 'string'}], 'LambdaArn': 'string'}]}, 'SnowballCapacityPreference': {'T100'}, 'SnowballType': 'STANDARD | EDGE'}
Creates a job to import or export data between Amazon S3 and your on-premises data center. Your AWS account must have the right trust policies and permissions in place to create a job for Snowball. 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. .
See also: AWS API Documentation
Request Syntax
client.create_job( JobType='IMPORT'|'EXPORT'|'LOCAL_USE', Resources={ 'S3Resources': [ { 'BucketArn': 'string', 'KeyRange': { 'BeginMarker': 'string', 'EndMarker': 'string' } }, ], 'LambdaResources': [ { 'LambdaArn': 'string', 'EventTriggers': [ { 'EventResourceARN': 'string' }, ] }, ] }, Description='string', AddressId='string', KmsKeyARN='string', RoleARN='string', SnowballCapacityPreference='T50'|'T80'|'T100'|'NoPreference', ShippingOption='SECOND_DAY'|'NEXT_DAY'|'EXPRESS'|'STANDARD', Notification={ 'SnsTopicARN': 'string', 'JobStatesToNotify': [ 'New'|'PreparingAppliance'|'PreparingShipment'|'InTransitToCustomer'|'WithCustomer'|'InTransitToAWS'|'WithAWS'|'InProgress'|'Complete'|'Cancelled'|'Listing'|'Pending', ], 'NotifyAll': True|False }, ClusterId='string', SnowballType='STANDARD'|'EDGE' )
string
Defines the type of job that you're creating.
dict
Defines the Amazon S3 buckets associated with this job.
With IMPORT jobs, you specify the bucket or buckets that your transferred data will be imported into.
With EXPORT jobs, you specify the bucket or buckets that your transferred data will be exported from. Optionally, you can also specify a KeyRange value. If you choose to export a range, you define the length of the range by providing either an inclusive BeginMarker value, an inclusive EndMarker value, or both. Ranges are UTF-8 binary sorted.
S3Resources (list) --
An array of S3Resource objects.
(dict) --
Each S3Resource object represents an Amazon S3 bucket that your transferred data will be exported from or imported into. For export jobs, this object can have an optional KeyRange value. The length of the range is defined at job creation, and has either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges are UTF-8 binary sorted.
BucketArn (string) --
The Amazon Resource Name (ARN) of an Amazon S3 bucket.
KeyRange (dict) --
For export jobs, you can provide an optional KeyRange within a specific Amazon S3 bucket. The length of the range is defined at job creation, and has either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges are UTF-8 binary sorted.
BeginMarker (string) --
The key that starts an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
EndMarker (string) --
The key that ends an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
LambdaResources (list) --
The Python-language Lambda functions for this job.
(dict) --
Identifies
LambdaArn (string) --
An Amazon Resource Name (ARN) that represents an AWS Lambda function to be triggered by PUT object actions on the associated local Amazon S3 resource.
EventTriggers (list) --
The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this job.
(dict) --
The container for the EventTriggerDefinition$EventResourceARN.
EventResourceARN (string) --
The Amazon Resource Name (ARN) for any local Amazon S3 resource that is an AWS Lambda function's event trigger associated with this job.
string
Defines an optional description of this specific job, for example Important Photos 2016-08-11.
string
The ID for the address that you want the Snowball shipped to.
string
The KmsKeyARN that you want to associate with this job. ``KmsKeyARN``s are created using the CreateKey AWS Key Management Service (KMS) API action.
string
The RoleARN that you want to associate with this job. ``RoleArn``s are created using the CreateRole AWS Identity and Access Management (IAM) API action.
string
If your job is being created in one of the US regions, you have the option of specifying what size Snowball you'd like for this job. In all other regions, Snowballs come with 80 TB in storage capacity.
string
The shipping speed for this job. This speed doesn't dictate how soon you'll get the Snowball, rather it represents how quickly the Snowball moves to its destination while in transit. Regional shipping speeds are as follows:
In Australia, you have access to express shipping. Typically, Snowballs shipped express are delivered in about a day.
In the European Union (EU), you have access to express shipping. Typically, Snowballs 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, Snowballs are delivered in one to seven days.
In the US, you have access to one-day shipping and two-day shipping.
dict
Defines the Amazon Simple Notification Service (Amazon SNS) notification settings for this job.
SnsTopicARN (string) --
The new SNS TopicArn that you want to associate with this job. You can create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API action.
You can subscribe email addresses to an Amazon SNS topic through the AWS Management Console, or by using the Subscribe AWS Simple Notification Service (SNS) API action.
JobStatesToNotify (list) --
The list of job states that will trigger a notification for this job.
(string) --
NotifyAll (boolean) --
Any change in job state will trigger a notification for this job.
string
The ID of a cluster. If you're creating a job for a node in a cluster, you need to provide only this clusterId value. The other job attributes are inherited from the cluster.
string
The type of AWS Snowball appliance to use for this job. Currently, the only supported appliance type for cluster jobs is EDGE.
dict
Response Syntax
{ 'JobId': 'string' }
Response Structure
(dict) --
JobId (string) --
The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.
{'JobMetadata': {'ClusterId': 'string', 'JobType': {'LOCAL_USE'}, 'Resources': {'LambdaResources': [{'EventTriggers': [{'EventResourceARN': 'string'}], 'LambdaArn': 'string'}]}, 'SnowballCapacityPreference': {'T100'}, 'SnowballType': 'STANDARD | EDGE'}, 'SubJobMetadata': {'ClusterId': 'string', 'JobType': {'LOCAL_USE'}, 'Resources': {'LambdaResources': [{'EventTriggers': [{'EventResourceARN': 'string'}], 'LambdaArn': 'string'}]}, 'SnowballCapacityPreference': {'T100'}, 'SnowballType': 'STANDARD | EDGE'}}
Returns information about a specific job including shipping information, job status, and other important metadata. .
See also: AWS API Documentation
Request Syntax
client.describe_job( JobId='string' )
string
[REQUIRED]
The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.
dict
Response Syntax
{ 'JobMetadata': { 'JobId': 'string', 'JobState': 'New'|'PreparingAppliance'|'PreparingShipment'|'InTransitToCustomer'|'WithCustomer'|'InTransitToAWS'|'WithAWS'|'InProgress'|'Complete'|'Cancelled'|'Listing'|'Pending', 'JobType': 'IMPORT'|'EXPORT'|'LOCAL_USE', 'SnowballType': 'STANDARD'|'EDGE', 'CreationDate': datetime(2015, 1, 1), 'Resources': { 'S3Resources': [ { 'BucketArn': 'string', 'KeyRange': { 'BeginMarker': 'string', 'EndMarker': 'string' } }, ], 'LambdaResources': [ { 'LambdaArn': 'string', 'EventTriggers': [ { 'EventResourceARN': 'string' }, ] }, ] }, 'Description': 'string', 'KmsKeyARN': 'string', 'RoleARN': 'string', 'AddressId': 'string', 'ShippingDetails': { 'ShippingOption': 'SECOND_DAY'|'NEXT_DAY'|'EXPRESS'|'STANDARD', 'InboundShipment': { 'Status': 'string', 'TrackingNumber': 'string' }, 'OutboundShipment': { 'Status': 'string', 'TrackingNumber': 'string' } }, 'SnowballCapacityPreference': 'T50'|'T80'|'T100'|'NoPreference', 'Notification': { 'SnsTopicARN': 'string', 'JobStatesToNotify': [ 'New'|'PreparingAppliance'|'PreparingShipment'|'InTransitToCustomer'|'WithCustomer'|'InTransitToAWS'|'WithAWS'|'InProgress'|'Complete'|'Cancelled'|'Listing'|'Pending', ], 'NotifyAll': True|False }, 'DataTransferProgress': { 'BytesTransferred': 123, 'ObjectsTransferred': 123, 'TotalBytes': 123, 'TotalObjects': 123 }, 'JobLogInfo': { 'JobCompletionReportURI': 'string', 'JobSuccessLogURI': 'string', 'JobFailureLogURI': 'string' }, 'ClusterId': 'string' }, 'SubJobMetadata': [ { 'JobId': 'string', 'JobState': 'New'|'PreparingAppliance'|'PreparingShipment'|'InTransitToCustomer'|'WithCustomer'|'InTransitToAWS'|'WithAWS'|'InProgress'|'Complete'|'Cancelled'|'Listing'|'Pending', 'JobType': 'IMPORT'|'EXPORT'|'LOCAL_USE', 'SnowballType': 'STANDARD'|'EDGE', 'CreationDate': datetime(2015, 1, 1), 'Resources': { 'S3Resources': [ { 'BucketArn': 'string', 'KeyRange': { 'BeginMarker': 'string', 'EndMarker': 'string' } }, ], 'LambdaResources': [ { 'LambdaArn': 'string', 'EventTriggers': [ { 'EventResourceARN': 'string' }, ] }, ] }, 'Description': 'string', 'KmsKeyARN': 'string', 'RoleARN': 'string', 'AddressId': 'string', 'ShippingDetails': { 'ShippingOption': 'SECOND_DAY'|'NEXT_DAY'|'EXPRESS'|'STANDARD', 'InboundShipment': { 'Status': 'string', 'TrackingNumber': 'string' }, 'OutboundShipment': { 'Status': 'string', 'TrackingNumber': 'string' } }, 'SnowballCapacityPreference': 'T50'|'T80'|'T100'|'NoPreference', 'Notification': { 'SnsTopicARN': 'string', 'JobStatesToNotify': [ 'New'|'PreparingAppliance'|'PreparingShipment'|'InTransitToCustomer'|'WithCustomer'|'InTransitToAWS'|'WithAWS'|'InProgress'|'Complete'|'Cancelled'|'Listing'|'Pending', ], 'NotifyAll': True|False }, 'DataTransferProgress': { 'BytesTransferred': 123, 'ObjectsTransferred': 123, 'TotalBytes': 123, 'TotalObjects': 123 }, 'JobLogInfo': { 'JobCompletionReportURI': 'string', 'JobSuccessLogURI': 'string', 'JobFailureLogURI': 'string' }, 'ClusterId': 'string' }, ] }
Response Structure
(dict) --
JobMetadata (dict) --
Information about a specific job, including shipping information, job status, and other important metadata.
JobId (string) --
The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.
JobState (string) --
The current status of the jobs.
JobType (string) --
The type of job.
SnowballType (string) --
The type of appliance used with this job.
CreationDate (datetime) --
The creation date for this job.
Resources (dict) --
An array of S3Resource objects. Each S3Resource object represents an Amazon S3 bucket that your transferred data will be exported from or imported into.
S3Resources (list) --
An array of S3Resource objects.
(dict) --
Each S3Resource object represents an Amazon S3 bucket that your transferred data will be exported from or imported into. For export jobs, this object can have an optional KeyRange value. The length of the range is defined at job creation, and has either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges are UTF-8 binary sorted.
BucketArn (string) --
The Amazon Resource Name (ARN) of an Amazon S3 bucket.
KeyRange (dict) --
For export jobs, you can provide an optional KeyRange within a specific Amazon S3 bucket. The length of the range is defined at job creation, and has either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges are UTF-8 binary sorted.
BeginMarker (string) --
The key that starts an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
EndMarker (string) --
The key that ends an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
LambdaResources (list) --
The Python-language Lambda functions for this job.
(dict) --
Identifies
LambdaArn (string) --
An Amazon Resource Name (ARN) that represents an AWS Lambda function to be triggered by PUT object actions on the associated local Amazon S3 resource.
EventTriggers (list) --
The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this job.
(dict) --
The container for the EventTriggerDefinition$EventResourceARN.
EventResourceARN (string) --
The Amazon Resource Name (ARN) for any local Amazon S3 resource that is an AWS Lambda function's event trigger associated with this job.
Description (string) --
The description of the job, provided at job creation.
KmsKeyARN (string) --
The Amazon Resource Name (ARN) for the AWS Key Management Service (AWS KMS) key associated with this job. This ARN was created using the CreateKey API action in AWS KMS.
RoleARN (string) --
The role ARN associated with this job. This ARN was created using the CreateRole API action in AWS Identity and Access Management (IAM).
AddressId (string) --
The ID for the address that you want the Snowball shipped to.
ShippingDetails (dict) --
A job's shipping information, including inbound and outbound tracking numbers and shipping speed options.
ShippingOption (string) --
The shipping speed for a particular job. This speed doesn't dictate how soon you'll get the Snowball from the job's creation date. This speed represents how quickly it moves to its destination while in transit. Regional shipping speeds are as follows:
In Australia, you have access to express shipping. Typically, Snowballs shipped express are delivered in about a day.
In the European Union (EU), you have access to express shipping. Typically, Snowballs 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, Snowballs are delivered in one to seven days.
In the United States of America (US), you have access to one-day shipping and two-day shipping.
InboundShipment (dict) --
The Status and TrackingNumber values for a Snowball being delivered to the address that you specified for a particular job.
Status (string) --
Status information for a shipment. Valid statuses include NEW, IN_TRANSIT, and DELIVERED.
TrackingNumber (string) --
The tracking number for this job. Using this tracking number with your region's carrier's website, you can track a Snowball as the carrier transports it.
For India, the carrier is Amazon Logistics. For all other regions, UPS is the carrier.
OutboundShipment (dict) --
The Status and TrackingNumber values for a Snowball being returned to AWS for a particular job.
Status (string) --
Status information for a shipment. Valid statuses include NEW, IN_TRANSIT, and DELIVERED.
TrackingNumber (string) --
The tracking number for this job. Using this tracking number with your region's carrier's website, you can track a Snowball as the carrier transports it.
For India, the carrier is Amazon Logistics. For all other regions, UPS is the carrier.
SnowballCapacityPreference (string) --
The Snowball capacity preference for this job, specified at job creation. In US regions, you can choose between 50 TB and 80 TB Snowballs. All other regions use 80 TB capacity Snowballs.
Notification (dict) --
The Amazon Simple Notification Service (Amazon SNS) notification settings associated with a specific job. The Notification object is returned as a part of the response syntax of the DescribeJob action in the JobMetadata data type.
SnsTopicARN (string) --
The new SNS TopicArn that you want to associate with this job. You can create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API action.
You can subscribe email addresses to an Amazon SNS topic through the AWS Management Console, or by using the Subscribe AWS Simple Notification Service (SNS) API action.
JobStatesToNotify (list) --
The list of job states that will trigger a notification for this job.
(string) --
NotifyAll (boolean) --
Any change in job state will trigger a notification for this job.
DataTransferProgress (dict) --
A value that defines the real-time status of a Snowball's data transfer while the appliance is at AWS. This data is only available while a job has a JobState value of InProgress, for both import and export jobs.
BytesTransferred (integer) --
The number of bytes transferred between a Snowball and Amazon S3.
ObjectsTransferred (integer) --
The number of objects transferred between a Snowball and Amazon S3.
TotalBytes (integer) --
The total bytes of data for a transfer between a Snowball and Amazon S3. This value is set to 0 (zero) until all the keys that will be transferred have been listed.
TotalObjects (integer) --
The total number of objects for a transfer between a Snowball and Amazon S3. This value is set to 0 (zero) until all the keys that will be transferred have been listed.
JobLogInfo (dict) --
Links to Amazon S3 presigned URLs for the job report and logs. For import jobs, the PDF job report becomes available at the end of the import process. For export jobs, your job report typically becomes available while the Snowball for your job part is being delivered to you.
JobCompletionReportURI (string) --
A link to an Amazon S3 presigned URL where the job completion report is located.
JobSuccessLogURI (string) --
A link to an Amazon S3 presigned URL where the job success log is located.
JobFailureLogURI (string) --
A link to an Amazon S3 presigned URL where the job failure log is located.
ClusterId (string) --
The 39-character ID for the cluster, for example CID123e4567-e89b-12d3-a456-426655440000.
SubJobMetadata (list) --
Information about a specific job part (in the case of an export job), including shipping information, job status, and other important metadata.
(dict) --
Contains information about a specific job including shipping information, job status, and other important metadata. This information is returned as a part of the response syntax of the DescribeJob action.
JobId (string) --
The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.
JobState (string) --
The current status of the jobs.
JobType (string) --
The type of job.
SnowballType (string) --
The type of appliance used with this job.
CreationDate (datetime) --
The creation date for this job.
Resources (dict) --
An array of S3Resource objects. Each S3Resource object represents an Amazon S3 bucket that your transferred data will be exported from or imported into.
S3Resources (list) --
An array of S3Resource objects.
(dict) --
Each S3Resource object represents an Amazon S3 bucket that your transferred data will be exported from or imported into. For export jobs, this object can have an optional KeyRange value. The length of the range is defined at job creation, and has either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges are UTF-8 binary sorted.
BucketArn (string) --
The Amazon Resource Name (ARN) of an Amazon S3 bucket.
KeyRange (dict) --
For export jobs, you can provide an optional KeyRange within a specific Amazon S3 bucket. The length of the range is defined at job creation, and has either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges are UTF-8 binary sorted.
BeginMarker (string) --
The key that starts an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
EndMarker (string) --
The key that ends an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
LambdaResources (list) --
The Python-language Lambda functions for this job.
(dict) --
Identifies
LambdaArn (string) --
An Amazon Resource Name (ARN) that represents an AWS Lambda function to be triggered by PUT object actions on the associated local Amazon S3 resource.
EventTriggers (list) --
The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this job.
(dict) --
The container for the EventTriggerDefinition$EventResourceARN.
EventResourceARN (string) --
The Amazon Resource Name (ARN) for any local Amazon S3 resource that is an AWS Lambda function's event trigger associated with this job.
Description (string) --
The description of the job, provided at job creation.
KmsKeyARN (string) --
The Amazon Resource Name (ARN) for the AWS Key Management Service (AWS KMS) key associated with this job. This ARN was created using the CreateKey API action in AWS KMS.
RoleARN (string) --
The role ARN associated with this job. This ARN was created using the CreateRole API action in AWS Identity and Access Management (IAM).
AddressId (string) --
The ID for the address that you want the Snowball shipped to.
ShippingDetails (dict) --
A job's shipping information, including inbound and outbound tracking numbers and shipping speed options.
ShippingOption (string) --
The shipping speed for a particular job. This speed doesn't dictate how soon you'll get the Snowball from the job's creation date. This speed represents how quickly it moves to its destination while in transit. Regional shipping speeds are as follows:
In Australia, you have access to express shipping. Typically, Snowballs shipped express are delivered in about a day.
In the European Union (EU), you have access to express shipping. Typically, Snowballs 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, Snowballs are delivered in one to seven days.
In the United States of America (US), you have access to one-day shipping and two-day shipping.
InboundShipment (dict) --
The Status and TrackingNumber values for a Snowball being delivered to the address that you specified for a particular job.
Status (string) --
Status information for a shipment. Valid statuses include NEW, IN_TRANSIT, and DELIVERED.
TrackingNumber (string) --
The tracking number for this job. Using this tracking number with your region's carrier's website, you can track a Snowball as the carrier transports it.
For India, the carrier is Amazon Logistics. For all other regions, UPS is the carrier.
OutboundShipment (dict) --
The Status and TrackingNumber values for a Snowball being returned to AWS for a particular job.
Status (string) --
Status information for a shipment. Valid statuses include NEW, IN_TRANSIT, and DELIVERED.
TrackingNumber (string) --
The tracking number for this job. Using this tracking number with your region's carrier's website, you can track a Snowball as the carrier transports it.
For India, the carrier is Amazon Logistics. For all other regions, UPS is the carrier.
SnowballCapacityPreference (string) --
The Snowball capacity preference for this job, specified at job creation. In US regions, you can choose between 50 TB and 80 TB Snowballs. All other regions use 80 TB capacity Snowballs.
Notification (dict) --
The Amazon Simple Notification Service (Amazon SNS) notification settings associated with a specific job. The Notification object is returned as a part of the response syntax of the DescribeJob action in the JobMetadata data type.
SnsTopicARN (string) --
The new SNS TopicArn that you want to associate with this job. You can create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API action.
You can subscribe email addresses to an Amazon SNS topic through the AWS Management Console, or by using the Subscribe AWS Simple Notification Service (SNS) API action.
JobStatesToNotify (list) --
The list of job states that will trigger a notification for this job.
(string) --
NotifyAll (boolean) --
Any change in job state will trigger a notification for this job.
DataTransferProgress (dict) --
A value that defines the real-time status of a Snowball's data transfer while the appliance is at AWS. This data is only available while a job has a JobState value of InProgress, for both import and export jobs.
BytesTransferred (integer) --
The number of bytes transferred between a Snowball and Amazon S3.
ObjectsTransferred (integer) --
The number of objects transferred between a Snowball and Amazon S3.
TotalBytes (integer) --
The total bytes of data for a transfer between a Snowball and Amazon S3. This value is set to 0 (zero) until all the keys that will be transferred have been listed.
TotalObjects (integer) --
The total number of objects for a transfer between a Snowball and Amazon S3. This value is set to 0 (zero) until all the keys that will be transferred have been listed.
JobLogInfo (dict) --
Links to Amazon S3 presigned URLs for the job report and logs. For import jobs, the PDF job report becomes available at the end of the import process. For export jobs, your job report typically becomes available while the Snowball for your job part is being delivered to you.
JobCompletionReportURI (string) --
A link to an Amazon S3 presigned URL where the job completion report is located.
JobSuccessLogURI (string) --
A link to an Amazon S3 presigned URL where the job success log is located.
JobFailureLogURI (string) --
A link to an Amazon S3 presigned URL where the job failure log is located.
ClusterId (string) --
The 39-character ID for the cluster, for example CID123e4567-e89b-12d3-a456-426655440000.
{'JobListEntries': {'CreationDate': 'timestamp', 'Description': 'string', 'JobType': 'IMPORT | EXPORT | LOCAL_USE', 'SnowballType': 'STANDARD | EDGE'}}
Returns 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.
See also: AWS API Documentation
Request Syntax
client.list_jobs( MaxResults=123, NextToken='string' )
integer
The number of JobListEntry objects to return.
string
HTTP requests are stateless. To identify what object comes "next" in the list of JobListEntry objects, you have the option of specifying NextToken as the starting point for your returned list.
dict
Response Syntax
{ 'JobListEntries': [ { 'JobId': 'string', 'JobState': 'New'|'PreparingAppliance'|'PreparingShipment'|'InTransitToCustomer'|'WithCustomer'|'InTransitToAWS'|'WithAWS'|'InProgress'|'Complete'|'Cancelled'|'Listing'|'Pending', 'IsMaster': True|False, 'JobType': 'IMPORT'|'EXPORT'|'LOCAL_USE', 'SnowballType': 'STANDARD'|'EDGE', 'CreationDate': datetime(2015, 1, 1), 'Description': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) --
JobListEntries (list) --
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.
(dict) --
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 an export job.
JobId (string) --
The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.
JobState (string) --
The current state of this job.
IsMaster (boolean) --
A value that indicates that this job is a master job. A master job represents a successful request to create an export job. Master jobs aren't associated with any Snowballs. Instead, each master job will have at least one job part, and each job part is associated with a Snowball. It might take some time before the job parts associated with a particular master job are listed, because they are created after the master job is created.
JobType (string) --
The type of job.
SnowballType (string) --
The type of appliance used with this job.
CreationDate (datetime) --
The creation date for this job.
Description (string) --
The optional description of this specific job, for example Important Photos 2016-08-11.
NextToken (string) --
HTTP requests are stateless. If you use this automatically generated NextToken value in your next ListJobs call, your returned JobListEntry objects will start from this point in the array.
{'Resources': {'LambdaResources': [{'EventTriggers': [{'EventResourceARN': 'string'}], 'LambdaArn': 'string'}]}, 'SnowballCapacityPreference': {'T100'}}
While 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.
See also: AWS API Documentation
Request Syntax
client.update_job( JobId='string', RoleARN='string', Notification={ 'SnsTopicARN': 'string', 'JobStatesToNotify': [ 'New'|'PreparingAppliance'|'PreparingShipment'|'InTransitToCustomer'|'WithCustomer'|'InTransitToAWS'|'WithAWS'|'InProgress'|'Complete'|'Cancelled'|'Listing'|'Pending', ], 'NotifyAll': True|False }, Resources={ 'S3Resources': [ { 'BucketArn': 'string', 'KeyRange': { 'BeginMarker': 'string', 'EndMarker': 'string' } }, ], 'LambdaResources': [ { 'LambdaArn': 'string', 'EventTriggers': [ { 'EventResourceARN': 'string' }, ] }, ] }, AddressId='string', ShippingOption='SECOND_DAY'|'NEXT_DAY'|'EXPRESS'|'STANDARD', Description='string', SnowballCapacityPreference='T50'|'T80'|'T100'|'NoPreference' )
string
[REQUIRED]
The job ID of the job that you want to update, for example JID123e4567-e89b-12d3-a456-426655440000.
string
The new role Amazon Resource Name (ARN) that you want to associate with this job. To create a role ARN, use the CreateRole AWS Identity and Access Management (IAM) API action.
dict
The new or updated Notification object.
SnsTopicARN (string) --
The new SNS TopicArn that you want to associate with this job. You can create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API action.
You can subscribe email addresses to an Amazon SNS topic through the AWS Management Console, or by using the Subscribe AWS Simple Notification Service (SNS) API action.
JobStatesToNotify (list) --
The list of job states that will trigger a notification for this job.
(string) --
NotifyAll (boolean) --
Any change in job state will trigger a notification for this job.
dict
The updated S3Resource object (for a single Amazon S3 bucket or key range), or the updated JobResource object (for multiple buckets or key ranges).
S3Resources (list) --
An array of S3Resource objects.
(dict) --
Each S3Resource object represents an Amazon S3 bucket that your transferred data will be exported from or imported into. For export jobs, this object can have an optional KeyRange value. The length of the range is defined at job creation, and has either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges are UTF-8 binary sorted.
BucketArn (string) --
The Amazon Resource Name (ARN) of an Amazon S3 bucket.
KeyRange (dict) --
For export jobs, you can provide an optional KeyRange within a specific Amazon S3 bucket. The length of the range is defined at job creation, and has either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges are UTF-8 binary sorted.
BeginMarker (string) --
The key that starts an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
EndMarker (string) --
The key that ends an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
LambdaResources (list) --
The Python-language Lambda functions for this job.
(dict) --
Identifies
LambdaArn (string) --
An Amazon Resource Name (ARN) that represents an AWS Lambda function to be triggered by PUT object actions on the associated local Amazon S3 resource.
EventTriggers (list) --
The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this job.
(dict) --
The container for the EventTriggerDefinition$EventResourceARN.
EventResourceARN (string) --
The Amazon Resource Name (ARN) for any local Amazon S3 resource that is an AWS Lambda function's event trigger associated with this job.
string
The ID of the updated Address object.
string
The updated shipping option value of this job's ShippingDetails object.
string
The updated description of this job's JobMetadata object.
string
The updated SnowballCapacityPreference of this job's JobMetadata object. The 50 TB Snowballs are only available in the US regions.
dict
Response Syntax
{}
Response Structure
(dict) --