UNPKG

51 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class Snowball extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: Snowball.Types.ClientConfiguration)
13 config: Config & Snowball.Types.ClientConfiguration;
14 /**
15 * 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.
16 */
17 cancelCluster(params: Snowball.Types.CancelClusterRequest, callback?: (err: AWSError, data: Snowball.Types.CancelClusterResult) => void): Request<Snowball.Types.CancelClusterResult, AWSError>;
18 /**
19 * 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.
20 */
21 cancelCluster(callback?: (err: AWSError, data: Snowball.Types.CancelClusterResult) => void): Request<Snowball.Types.CancelClusterResult, AWSError>;
22 /**
23 * 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.
24 */
25 cancelJob(params: Snowball.Types.CancelJobRequest, callback?: (err: AWSError, data: Snowball.Types.CancelJobResult) => void): Request<Snowball.Types.CancelJobResult, AWSError>;
26 /**
27 * 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.
28 */
29 cancelJob(callback?: (err: AWSError, data: Snowball.Types.CancelJobResult) => void): Request<Snowball.Types.CancelJobResult, AWSError>;
30 /**
31 * Creates an address for a Snowball to be shipped to. In most regions, addresses are validated at the time of creation. The address you provide must be located within the serviceable area of your region. If the address is invalid or unsupported, then an exception is thrown.
32 */
33 createAddress(params: Snowball.Types.CreateAddressRequest, callback?: (err: AWSError, data: Snowball.Types.CreateAddressResult) => void): Request<Snowball.Types.CreateAddressResult, AWSError>;
34 /**
35 * Creates an address for a Snowball to be shipped to. In most regions, addresses are validated at the time of creation. The address you provide must be located within the serviceable area of your region. If the address is invalid or unsupported, then an exception is thrown.
36 */
37 createAddress(callback?: (err: AWSError, data: Snowball.Types.CreateAddressResult) => void): Request<Snowball.Types.CreateAddressResult, AWSError>;
38 /**
39 * 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.
40 */
41 createCluster(params: Snowball.Types.CreateClusterRequest, callback?: (err: AWSError, data: Snowball.Types.CreateClusterResult) => void): Request<Snowball.Types.CreateClusterResult, AWSError>;
42 /**
43 * 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.
44 */
45 createCluster(callback?: (err: AWSError, data: Snowball.Types.CreateClusterResult) => void): Request<Snowball.Types.CreateClusterResult, AWSError>;
46 /**
47 * 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.
48 */
49 createJob(params: Snowball.Types.CreateJobRequest, callback?: (err: AWSError, data: Snowball.Types.CreateJobResult) => void): Request<Snowball.Types.CreateJobResult, AWSError>;
50 /**
51 * 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.
52 */
53 createJob(callback?: (err: AWSError, data: Snowball.Types.CreateJobResult) => void): Request<Snowball.Types.CreateJobResult, AWSError>;
54 /**
55 * Takes an AddressId and returns specific details about that address in the form of an Address object.
56 */
57 describeAddress(params: Snowball.Types.DescribeAddressRequest, callback?: (err: AWSError, data: Snowball.Types.DescribeAddressResult) => void): Request<Snowball.Types.DescribeAddressResult, AWSError>;
58 /**
59 * Takes an AddressId and returns specific details about that address in the form of an Address object.
60 */
61 describeAddress(callback?: (err: AWSError, data: Snowball.Types.DescribeAddressResult) => void): Request<Snowball.Types.DescribeAddressResult, AWSError>;
62 /**
63 * Returns a specified number of ADDRESS objects. Calling this API in one of the US regions will return addresses from the list of all addresses associated with this account in all US regions.
64 */
65 describeAddresses(params: Snowball.Types.DescribeAddressesRequest, callback?: (err: AWSError, data: Snowball.Types.DescribeAddressesResult) => void): Request<Snowball.Types.DescribeAddressesResult, AWSError>;
66 /**
67 * Returns a specified number of ADDRESS objects. Calling this API in one of the US regions will return addresses from the list of all addresses associated with this account in all US regions.
68 */
69 describeAddresses(callback?: (err: AWSError, data: Snowball.Types.DescribeAddressesResult) => void): Request<Snowball.Types.DescribeAddressesResult, AWSError>;
70 /**
71 * Returns information about a specific cluster including shipping information, cluster status, and other important metadata.
72 */
73 describeCluster(params: Snowball.Types.DescribeClusterRequest, callback?: (err: AWSError, data: Snowball.Types.DescribeClusterResult) => void): Request<Snowball.Types.DescribeClusterResult, AWSError>;
74 /**
75 * Returns information about a specific cluster including shipping information, cluster status, and other important metadata.
76 */
77 describeCluster(callback?: (err: AWSError, data: Snowball.Types.DescribeClusterResult) => void): Request<Snowball.Types.DescribeClusterResult, AWSError>;
78 /**
79 * Returns information about a specific job including shipping information, job status, and other important metadata.
80 */
81 describeJob(params: Snowball.Types.DescribeJobRequest, callback?: (err: AWSError, data: Snowball.Types.DescribeJobResult) => void): Request<Snowball.Types.DescribeJobResult, AWSError>;
82 /**
83 * Returns information about a specific job including shipping information, job status, and other important metadata.
84 */
85 describeJob(callback?: (err: AWSError, data: Snowball.Types.DescribeJobResult) => void): Request<Snowball.Types.DescribeJobResult, AWSError>;
86 /**
87 * Returns a link to an Amazon S3 presigned URL for the manifest file associated with the specified JobId value. You can access the manifest file for up to 60 minutes after this request has been made. To access the manifest file after 60 minutes have passed, you'll have to make another call to the GetJobManifest action. The manifest is an encrypted file that you can download after your job enters the WithCustomer status. The manifest is decrypted by using the UnlockCode code value, when you pass both values to the Snowball through the Snowball client when the client is started for the first time. As a best practice, we recommend that you don't save a copy of an UnlockCode value in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snowball associated with that job. The credentials of a given job, including its manifest file and unlock code, expire 90 days after the job is created.
88 */
89 getJobManifest(params: Snowball.Types.GetJobManifestRequest, callback?: (err: AWSError, data: Snowball.Types.GetJobManifestResult) => void): Request<Snowball.Types.GetJobManifestResult, AWSError>;
90 /**
91 * Returns a link to an Amazon S3 presigned URL for the manifest file associated with the specified JobId value. You can access the manifest file for up to 60 minutes after this request has been made. To access the manifest file after 60 minutes have passed, you'll have to make another call to the GetJobManifest action. The manifest is an encrypted file that you can download after your job enters the WithCustomer status. The manifest is decrypted by using the UnlockCode code value, when you pass both values to the Snowball through the Snowball client when the client is started for the first time. As a best practice, we recommend that you don't save a copy of an UnlockCode value in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snowball associated with that job. The credentials of a given job, including its manifest file and unlock code, expire 90 days after the job is created.
92 */
93 getJobManifest(callback?: (err: AWSError, data: Snowball.Types.GetJobManifestResult) => void): Request<Snowball.Types.GetJobManifestResult, AWSError>;
94 /**
95 * Returns the UnlockCode code value for the specified job. A particular UnlockCode value can be accessed for up to 90 days after the associated job has been created. The UnlockCode value is a 29-character code with 25 alphanumeric characters and 4 hyphens. This code is used to decrypt the manifest file when it is passed along with the manifest to the Snowball through the Snowball client when the client is started for the first time. As a best practice, we recommend that you don't save a copy of the UnlockCode in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snowball associated with that job.
96 */
97 getJobUnlockCode(params: Snowball.Types.GetJobUnlockCodeRequest, callback?: (err: AWSError, data: Snowball.Types.GetJobUnlockCodeResult) => void): Request<Snowball.Types.GetJobUnlockCodeResult, AWSError>;
98 /**
99 * Returns the UnlockCode code value for the specified job. A particular UnlockCode value can be accessed for up to 90 days after the associated job has been created. The UnlockCode value is a 29-character code with 25 alphanumeric characters and 4 hyphens. This code is used to decrypt the manifest file when it is passed along with the manifest to the Snowball through the Snowball client when the client is started for the first time. As a best practice, we recommend that you don't save a copy of the UnlockCode in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snowball associated with that job.
100 */
101 getJobUnlockCode(callback?: (err: AWSError, data: Snowball.Types.GetJobUnlockCodeResult) => void): Request<Snowball.Types.GetJobUnlockCodeResult, AWSError>;
102 /**
103 * Returns information about the Snowball service limit for your account, and also the number of Snowballs your account has in use. The default service limit for the number of Snowballs that you can have at one time is 1. If you want to increase your service limit, contact AWS Support.
104 */
105 getSnowballUsage(params: Snowball.Types.GetSnowballUsageRequest, callback?: (err: AWSError, data: Snowball.Types.GetSnowballUsageResult) => void): Request<Snowball.Types.GetSnowballUsageResult, AWSError>;
106 /**
107 * Returns information about the Snowball service limit for your account, and also the number of Snowballs your account has in use. The default service limit for the number of Snowballs that you can have at one time is 1. If you want to increase your service limit, contact AWS Support.
108 */
109 getSnowballUsage(callback?: (err: AWSError, data: Snowball.Types.GetSnowballUsageResult) => void): Request<Snowball.Types.GetSnowballUsageResult, AWSError>;
110 /**
111 * 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.
112 */
113 listClusterJobs(params: Snowball.Types.ListClusterJobsRequest, callback?: (err: AWSError, data: Snowball.Types.ListClusterJobsResult) => void): Request<Snowball.Types.ListClusterJobsResult, AWSError>;
114 /**
115 * 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.
116 */
117 listClusterJobs(callback?: (err: AWSError, data: Snowball.Types.ListClusterJobsResult) => void): Request<Snowball.Types.ListClusterJobsResult, AWSError>;
118 /**
119 * 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.
120 */
121 listClusters(params: Snowball.Types.ListClustersRequest, callback?: (err: AWSError, data: Snowball.Types.ListClustersResult) => void): Request<Snowball.Types.ListClustersResult, AWSError>;
122 /**
123 * 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.
124 */
125 listClusters(callback?: (err: AWSError, data: Snowball.Types.ListClustersResult) => void): Request<Snowball.Types.ListClustersResult, AWSError>;
126 /**
127 * This action returns a list of the different Amazon EC2 Amazon Machine Images (AMIs) that are owned by your AWS account that would be supported for use on EDGE, EDGE_C, and EDGE_CG devices. For more information on compatible AMIs, see Using Amazon EC2 Compute Instances in the AWS Snowball Developer Guide.
128 */
129 listCompatibleImages(params: Snowball.Types.ListCompatibleImagesRequest, callback?: (err: AWSError, data: Snowball.Types.ListCompatibleImagesResult) => void): Request<Snowball.Types.ListCompatibleImagesResult, AWSError>;
130 /**
131 * This action returns a list of the different Amazon EC2 Amazon Machine Images (AMIs) that are owned by your AWS account that would be supported for use on EDGE, EDGE_C, and EDGE_CG devices. For more information on compatible AMIs, see Using Amazon EC2 Compute Instances in the AWS Snowball Developer Guide.
132 */
133 listCompatibleImages(callback?: (err: AWSError, data: Snowball.Types.ListCompatibleImagesResult) => void): Request<Snowball.Types.ListCompatibleImagesResult, AWSError>;
134 /**
135 * 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.
136 */
137 listJobs(params: Snowball.Types.ListJobsRequest, callback?: (err: AWSError, data: Snowball.Types.ListJobsResult) => void): Request<Snowball.Types.ListJobsResult, AWSError>;
138 /**
139 * 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.
140 */
141 listJobs(callback?: (err: AWSError, data: Snowball.Types.ListJobsResult) => void): Request<Snowball.Types.ListJobsResult, AWSError>;
142 /**
143 * 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.
144 */
145 updateCluster(params: Snowball.Types.UpdateClusterRequest, callback?: (err: AWSError, data: Snowball.Types.UpdateClusterResult) => void): Request<Snowball.Types.UpdateClusterResult, AWSError>;
146 /**
147 * 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.
148 */
149 updateCluster(callback?: (err: AWSError, data: Snowball.Types.UpdateClusterResult) => void): Request<Snowball.Types.UpdateClusterResult, AWSError>;
150 /**
151 * 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.
152 */
153 updateJob(params: Snowball.Types.UpdateJobRequest, callback?: (err: AWSError, data: Snowball.Types.UpdateJobResult) => void): Request<Snowball.Types.UpdateJobResult, AWSError>;
154 /**
155 * 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.
156 */
157 updateJob(callback?: (err: AWSError, data: Snowball.Types.UpdateJobResult) => void): Request<Snowball.Types.UpdateJobResult, AWSError>;
158}
159declare namespace Snowball {
160 export interface Address {
161 /**
162 * The unique ID for an address.
163 */
164 AddressId?: AddressId;
165 /**
166 * The name of a person to receive a Snowball at an address.
167 */
168 Name?: String;
169 /**
170 * The name of the company to receive a Snowball at an address.
171 */
172 Company?: String;
173 /**
174 * The first line in a street address that a Snowball is to be delivered to.
175 */
176 Street1?: String;
177 /**
178 * The second line in a street address that a Snowball is to be delivered to.
179 */
180 Street2?: String;
181 /**
182 * The third line in a street address that a Snowball is to be delivered to.
183 */
184 Street3?: String;
185 /**
186 * The city in an address that a Snowball is to be delivered to.
187 */
188 City?: String;
189 /**
190 * The state or province in an address that a Snowball is to be delivered to.
191 */
192 StateOrProvince?: String;
193 /**
194 * This field is no longer used and the value is ignored.
195 */
196 PrefectureOrDistrict?: String;
197 /**
198 * This field is no longer used and the value is ignored.
199 */
200 Landmark?: String;
201 /**
202 * The country in an address that a Snowball is to be delivered to.
203 */
204 Country?: String;
205 /**
206 * The postal code in an address that a Snowball is to be delivered to.
207 */
208 PostalCode?: String;
209 /**
210 * The phone number associated with an address that a Snowball is to be delivered to.
211 */
212 PhoneNumber?: String;
213 /**
214 * If the address you are creating is a primary address, then set this option to true. This field is not supported in most regions.
215 */
216 IsRestricted?: Boolean;
217 }
218 export type AddressId = string;
219 export type AddressList = Address[];
220 export type AmiId = string;
221 export type Boolean = boolean;
222 export interface CancelClusterRequest {
223 /**
224 * The 39-character ID for the cluster that you want to cancel, for example CID123e4567-e89b-12d3-a456-426655440000.
225 */
226 ClusterId: ClusterId;
227 }
228 export interface CancelClusterResult {
229 }
230 export interface CancelJobRequest {
231 /**
232 * The 39-character job ID for the job that you want to cancel, for example JID123e4567-e89b-12d3-a456-426655440000.
233 */
234 JobId: JobId;
235 }
236 export interface CancelJobResult {
237 }
238 export type ClusterId = string;
239 export interface ClusterListEntry {
240 /**
241 * The 39-character ID for the cluster that you want to list, for example CID123e4567-e89b-12d3-a456-426655440000.
242 */
243 ClusterId?: String;
244 /**
245 * The current state of this cluster. For information about the state of a specific node, see JobListEntry$JobState.
246 */
247 ClusterState?: ClusterState;
248 /**
249 * The creation date for this cluster.
250 */
251 CreationDate?: Timestamp;
252 /**
253 * Defines an optional description of the cluster, for example Environmental Data Cluster-01.
254 */
255 Description?: String;
256 }
257 export type ClusterListEntryList = ClusterListEntry[];
258 export interface ClusterMetadata {
259 /**
260 * The automatically generated ID for a cluster.
261 */
262 ClusterId?: String;
263 /**
264 * The optional description of the cluster.
265 */
266 Description?: String;
267 /**
268 * 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).
269 */
270 KmsKeyARN?: KmsKeyARN;
271 /**
272 * The role ARN associated with this cluster. This ARN was created using the CreateRole API action in AWS Identity and Access Management (IAM).
273 */
274 RoleARN?: RoleARN;
275 /**
276 * The current status of the cluster.
277 */
278 ClusterState?: ClusterState;
279 /**
280 * The type of job for this cluster. Currently, the only job type supported for clusters is LOCAL_USE.
281 */
282 JobType?: JobType;
283 /**
284 * The type of AWS Snowball device to use for this cluster. The only supported device types for cluster jobs are EDGE, EDGE_C, and EDGE_CG.
285 */
286 SnowballType?: SnowballType;
287 /**
288 * The creation date for this cluster.
289 */
290 CreationDate?: Timestamp;
291 /**
292 * The arrays of JobResource objects that can include updated S3Resource objects or LambdaResource objects.
293 */
294 Resources?: JobResource;
295 /**
296 * The automatically generated ID for a specific address.
297 */
298 AddressId?: AddressId;
299 /**
300 * The 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, 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, devices are delivered in one to seven days. In the US, you have access to one-day shipping and two-day shipping.
301 */
302 ShippingOption?: ShippingOption;
303 /**
304 * The Amazon Simple Notification Service (Amazon SNS) notification settings for this cluster.
305 */
306 Notification?: Notification;
307 /**
308 * The 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.
309 */
310 ForwardingAddressId?: AddressId;
311 }
312 export type ClusterState = "AwaitingQuorum"|"Pending"|"InUse"|"Complete"|"Cancelled"|string;
313 export interface CompatibleImage {
314 /**
315 * The unique identifier for an individual Snowball Edge AMI.
316 */
317 AmiId?: String;
318 /**
319 * The optional name of a compatible image.
320 */
321 Name?: String;
322 }
323 export type CompatibleImageList = CompatibleImage[];
324 export interface CreateAddressRequest {
325 /**
326 * The address that you want the Snowball shipped to.
327 */
328 Address: Address;
329 }
330 export interface CreateAddressResult {
331 /**
332 * The automatically generated ID for a specific address. You'll use this ID when you create a job to specify which address you want the Snowball for that job shipped to.
333 */
334 AddressId?: String;
335 }
336 export interface CreateClusterRequest {
337 /**
338 * The type of job for this cluster. Currently, the only job type supported for clusters is LOCAL_USE.
339 */
340 JobType: JobType;
341 /**
342 * The resources associated with the cluster job. These resources include Amazon S3 buckets and optional AWS Lambda functions written in the Python language.
343 */
344 Resources: JobResource;
345 /**
346 * An optional description of this specific cluster, for example Environmental Data Cluster-01.
347 */
348 Description?: String;
349 /**
350 * The ID for the address that you want the cluster shipped to.
351 */
352 AddressId: AddressId;
353 /**
354 * 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).
355 */
356 KmsKeyARN?: KmsKeyARN;
357 /**
358 * 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).
359 */
360 RoleARN: RoleARN;
361 /**
362 * The type of AWS Snowball device to use for this cluster. The only supported device types for cluster jobs are EDGE, EDGE_C, and EDGE_CG.
363 */
364 SnowballType?: SnowballType;
365 /**
366 * The shipping speed for each node in this cluster. This speed doesn't dictate how soon you'll get each Snowball Edge 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, 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, devices are delivered in one to seven days. In the US, you have access to one-day shipping and two-day shipping.
367 */
368 ShippingOption: ShippingOption;
369 /**
370 * The Amazon Simple Notification Service (Amazon SNS) notification settings for this cluster.
371 */
372 Notification?: Notification;
373 /**
374 * The forwarding address ID for a cluster. This field is not supported in most regions.
375 */
376 ForwardingAddressId?: AddressId;
377 }
378 export interface CreateClusterResult {
379 /**
380 * The automatically generated ID for a cluster.
381 */
382 ClusterId?: ClusterId;
383 }
384 export interface CreateJobRequest {
385 /**
386 * Defines the type of job that you're creating.
387 */
388 JobType?: JobType;
389 /**
390 * 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.
391 */
392 Resources?: JobResource;
393 /**
394 * Defines an optional description of this specific job, for example Important Photos 2016-08-11.
395 */
396 Description?: String;
397 /**
398 * The ID for the address that you want the Snowball shipped to.
399 */
400 AddressId?: AddressId;
401 /**
402 * The KmsKeyARN that you want to associate with this job. KmsKeyARNs are created using the CreateKey AWS Key Management Service (KMS) API action.
403 */
404 KmsKeyARN?: KmsKeyARN;
405 /**
406 * The RoleARN that you want to associate with this job. RoleArns are created using the CreateRole AWS Identity and Access Management (IAM) API action.
407 */
408 RoleARN?: RoleARN;
409 /**
410 * 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.
411 */
412 SnowballCapacityPreference?: SnowballCapacity;
413 /**
414 * 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.
415 */
416 ShippingOption?: ShippingOption;
417 /**
418 * Defines the Amazon Simple Notification Service (Amazon SNS) notification settings for this job.
419 */
420 Notification?: Notification;
421 /**
422 * 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.
423 */
424 ClusterId?: ClusterId;
425 /**
426 * The type of AWS Snowball device to use for this job. The only supported device types for cluster jobs are EDGE, EDGE_C, and EDGE_CG.
427 */
428 SnowballType?: SnowballType;
429 /**
430 * The forwarding address ID for a job. This field is not supported in most regions.
431 */
432 ForwardingAddressId?: AddressId;
433 }
434 export interface CreateJobResult {
435 /**
436 * The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.
437 */
438 JobId?: JobId;
439 }
440 export interface DataTransfer {
441 /**
442 * The number of bytes transferred between a Snowball and Amazon S3.
443 */
444 BytesTransferred?: Long;
445 /**
446 * The number of objects transferred between a Snowball and Amazon S3.
447 */
448 ObjectsTransferred?: Long;
449 /**
450 * 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.
451 */
452 TotalBytes?: Long;
453 /**
454 * 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.
455 */
456 TotalObjects?: Long;
457 }
458 export interface DescribeAddressRequest {
459 /**
460 * The automatically generated ID for a specific address.
461 */
462 AddressId: AddressId;
463 }
464 export interface DescribeAddressResult {
465 /**
466 * The address that you want the Snowball or Snowballs associated with a specific job to be shipped to.
467 */
468 Address?: Address;
469 }
470 export interface DescribeAddressesRequest {
471 /**
472 * The number of ADDRESS objects to return.
473 */
474 MaxResults?: ListLimit;
475 /**
476 * HTTP requests are stateless. To identify what object comes "next" in the list of ADDRESS objects, you have the option of specifying a value for NextToken as the starting point for your list of returned addresses.
477 */
478 NextToken?: String;
479 }
480 export interface DescribeAddressesResult {
481 /**
482 * The Snowball shipping addresses that were created for this account.
483 */
484 Addresses?: AddressList;
485 /**
486 * HTTP requests are stateless. If you use the automatically generated NextToken value in your next DescribeAddresses call, your list of returned addresses will start from this point in the array.
487 */
488 NextToken?: String;
489 }
490 export interface DescribeClusterRequest {
491 /**
492 * The automatically generated ID for a cluster.
493 */
494 ClusterId: ClusterId;
495 }
496 export interface DescribeClusterResult {
497 /**
498 * Information about a specific cluster, including shipping information, cluster status, and other important metadata.
499 */
500 ClusterMetadata?: ClusterMetadata;
501 }
502 export interface DescribeJobRequest {
503 /**
504 * The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.
505 */
506 JobId: JobId;
507 }
508 export interface DescribeJobResult {
509 /**
510 * Information about a specific job, including shipping information, job status, and other important metadata.
511 */
512 JobMetadata?: JobMetadata;
513 /**
514 * Information about a specific job part (in the case of an export job), including shipping information, job status, and other important metadata.
515 */
516 SubJobMetadata?: JobMetadataList;
517 }
518 export interface Ec2AmiResource {
519 /**
520 * The ID of the AMI in Amazon EC2.
521 */
522 AmiId: AmiId;
523 /**
524 * The ID of the AMI on the supported device.
525 */
526 SnowballAmiId?: String;
527 }
528 export type Ec2AmiResourceList = Ec2AmiResource[];
529 export interface EventTriggerDefinition {
530 /**
531 * The Amazon Resource Name (ARN) for any local Amazon S3 resource that is an AWS Lambda function's event trigger associated with this job.
532 */
533 EventResourceARN?: ResourceARN;
534 }
535 export type EventTriggerDefinitionList = EventTriggerDefinition[];
536 export interface GetJobManifestRequest {
537 /**
538 * The ID for a job that you want to get the manifest file for, for example JID123e4567-e89b-12d3-a456-426655440000.
539 */
540 JobId: JobId;
541 }
542 export interface GetJobManifestResult {
543 /**
544 * The Amazon S3 presigned URL for the manifest file associated with the specified JobId value.
545 */
546 ManifestURI?: String;
547 }
548 export interface GetJobUnlockCodeRequest {
549 /**
550 * The ID for the job that you want to get the UnlockCode value for, for example JID123e4567-e89b-12d3-a456-426655440000.
551 */
552 JobId: JobId;
553 }
554 export interface GetJobUnlockCodeResult {
555 /**
556 * The UnlockCode value for the specified job. The UnlockCode value can be accessed for up to 90 days after the job has been created.
557 */
558 UnlockCode?: String;
559 }
560 export interface GetSnowballUsageRequest {
561 }
562 export interface GetSnowballUsageResult {
563 /**
564 * The service limit for number of Snowballs this account can have at once. The default service limit is 1 (one).
565 */
566 SnowballLimit?: Integer;
567 /**
568 * The number of Snowballs that this account is currently using.
569 */
570 SnowballsInUse?: Integer;
571 }
572 export type Integer = number;
573 export type JobId = string;
574 export interface JobListEntry {
575 /**
576 * The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.
577 */
578 JobId?: String;
579 /**
580 * The current state of this job.
581 */
582 JobState?: JobState;
583 /**
584 * 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.
585 */
586 IsMaster?: Boolean;
587 /**
588 * The type of job.
589 */
590 JobType?: JobType;
591 /**
592 * The type of device used with this job.
593 */
594 SnowballType?: SnowballType;
595 /**
596 * The creation date for this job.
597 */
598 CreationDate?: Timestamp;
599 /**
600 * The optional description of this specific job, for example Important Photos 2016-08-11.
601 */
602 Description?: String;
603 }
604 export type JobListEntryList = JobListEntry[];
605 export interface JobLogs {
606 /**
607 * A link to an Amazon S3 presigned URL where the job completion report is located.
608 */
609 JobCompletionReportURI?: String;
610 /**
611 * A link to an Amazon S3 presigned URL where the job success log is located.
612 */
613 JobSuccessLogURI?: String;
614 /**
615 * A link to an Amazon S3 presigned URL where the job failure log is located.
616 */
617 JobFailureLogURI?: String;
618 }
619 export interface JobMetadata {
620 /**
621 * The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.
622 */
623 JobId?: String;
624 /**
625 * The current status of the jobs.
626 */
627 JobState?: JobState;
628 /**
629 * The type of job.
630 */
631 JobType?: JobType;
632 /**
633 * The type of device used with this job.
634 */
635 SnowballType?: SnowballType;
636 /**
637 * The creation date for this job.
638 */
639 CreationDate?: Timestamp;
640 /**
641 * An array of S3Resource objects. Each S3Resource object represents an Amazon S3 bucket that your transferred data will be exported from or imported into.
642 */
643 Resources?: JobResource;
644 /**
645 * The description of the job, provided at job creation.
646 */
647 Description?: String;
648 /**
649 * 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.
650 */
651 KmsKeyARN?: KmsKeyARN;
652 /**
653 * The role ARN associated with this job. This ARN was created using the CreateRole API action in AWS Identity and Access Management (IAM).
654 */
655 RoleARN?: RoleARN;
656 /**
657 * The ID for the address that you want the Snowball shipped to.
658 */
659 AddressId?: AddressId;
660 /**
661 * A job's shipping information, including inbound and outbound tracking numbers and shipping speed options.
662 */
663 ShippingDetails?: ShippingDetails;
664 /**
665 * 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.
666 */
667 SnowballCapacityPreference?: SnowballCapacity;
668 /**
669 * 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.
670 */
671 Notification?: Notification;
672 /**
673 * A value that defines the real-time status of a Snowball's data transfer while the device is at AWS. This data is only available while a job has a JobState value of InProgress, for both import and export jobs.
674 */
675 DataTransferProgress?: DataTransfer;
676 /**
677 * 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.
678 */
679 JobLogInfo?: JobLogs;
680 /**
681 * The 39-character ID for the cluster, for example CID123e4567-e89b-12d3-a456-426655440000.
682 */
683 ClusterId?: String;
684 /**
685 * The ID of the address that you want a job shipped to, after it will be shipped to its primary address. This field is not supported in most regions.
686 */
687 ForwardingAddressId?: AddressId;
688 }
689 export type JobMetadataList = JobMetadata[];
690 export interface JobResource {
691 /**
692 * An array of S3Resource objects.
693 */
694 S3Resources?: S3ResourceList;
695 /**
696 * The Python-language Lambda functions for this job.
697 */
698 LambdaResources?: LambdaResourceList;
699 /**
700 * The Amazon Machine Images (AMIs) associated with this job.
701 */
702 Ec2AmiResources?: Ec2AmiResourceList;
703 }
704 export type JobState = "New"|"PreparingAppliance"|"PreparingShipment"|"InTransitToCustomer"|"WithCustomer"|"InTransitToAWS"|"WithAWSSortingFacility"|"WithAWS"|"InProgress"|"Complete"|"Cancelled"|"Listing"|"Pending"|string;
705 export type JobStateList = JobState[];
706 export type JobType = "IMPORT"|"EXPORT"|"LOCAL_USE"|string;
707 export interface KeyRange {
708 /**
709 * The key that starts an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
710 */
711 BeginMarker?: String;
712 /**
713 * The key that ends an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
714 */
715 EndMarker?: String;
716 }
717 export type KmsKeyARN = string;
718 export interface LambdaResource {
719 /**
720 * 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.
721 */
722 LambdaArn?: ResourceARN;
723 /**
724 * The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this job.
725 */
726 EventTriggers?: EventTriggerDefinitionList;
727 }
728 export type LambdaResourceList = LambdaResource[];
729 export interface ListClusterJobsRequest {
730 /**
731 * The 39-character ID for the cluster that you want to list, for example CID123e4567-e89b-12d3-a456-426655440000.
732 */
733 ClusterId: ClusterId;
734 /**
735 * The number of JobListEntry objects to return.
736 */
737 MaxResults?: ListLimit;
738 /**
739 * 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.
740 */
741 NextToken?: String;
742 }
743 export interface ListClusterJobsResult {
744 /**
745 * 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.
746 */
747 JobListEntries?: JobListEntryList;
748 /**
749 * 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.
750 */
751 NextToken?: String;
752 }
753 export interface ListClustersRequest {
754 /**
755 * The number of ClusterListEntry objects to return.
756 */
757 MaxResults?: ListLimit;
758 /**
759 * 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.
760 */
761 NextToken?: String;
762 }
763 export interface ListClustersResult {
764 /**
765 * Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.
766 */
767 ClusterListEntries?: ClusterListEntryList;
768 /**
769 * 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.
770 */
771 NextToken?: String;
772 }
773 export interface ListCompatibleImagesRequest {
774 /**
775 * The maximum number of results for the list of compatible images. Currently, each supported device can store 10 AMIs.
776 */
777 MaxResults?: ListLimit;
778 /**
779 * HTTP requests are stateless. To identify what object comes "next" in the list of compatible images, you can specify a value for NextToken as the starting point for your list of returned images.
780 */
781 NextToken?: String;
782 }
783 export interface ListCompatibleImagesResult {
784 /**
785 * A JSON-formatted object that describes a compatible AMI.
786 */
787 CompatibleImages?: CompatibleImageList;
788 /**
789 * Because HTTP requests are stateless, this is the starting point for your next list of returned images.
790 */
791 NextToken?: String;
792 }
793 export interface ListJobsRequest {
794 /**
795 * The number of JobListEntry objects to return.
796 */
797 MaxResults?: ListLimit;
798 /**
799 * 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.
800 */
801 NextToken?: String;
802 }
803 export interface ListJobsResult {
804 /**
805 * 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.
806 */
807 JobListEntries?: JobListEntryList;
808 /**
809 * 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.
810 */
811 NextToken?: String;
812 }
813 export type ListLimit = number;
814 export type Long = number;
815 export interface Notification {
816 /**
817 * 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.
818 */
819 SnsTopicARN?: SnsTopicARN;
820 /**
821 * The list of job states that will trigger a notification for this job.
822 */
823 JobStatesToNotify?: JobStateList;
824 /**
825 * Any change in job state will trigger a notification for this job.
826 */
827 NotifyAll?: Boolean;
828 }
829 export type ResourceARN = string;
830 export type RoleARN = string;
831 export interface S3Resource {
832 /**
833 * The Amazon Resource Name (ARN) of an Amazon S3 bucket.
834 */
835 BucketArn?: ResourceARN;
836 /**
837 * 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.
838 */
839 KeyRange?: KeyRange;
840 }
841 export type S3ResourceList = S3Resource[];
842 export interface Shipment {
843 /**
844 * Status information for a shipment.
845 */
846 Status?: String;
847 /**
848 * 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.
849 */
850 TrackingNumber?: String;
851 }
852 export interface ShippingDetails {
853 /**
854 * 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.
855 */
856 ShippingOption?: ShippingOption;
857 /**
858 * The Status and TrackingNumber values for a Snowball being returned to AWS for a particular job.
859 */
860 InboundShipment?: Shipment;
861 /**
862 * The Status and TrackingNumber values for a Snowball being delivered to the address that you specified for a particular job.
863 */
864 OutboundShipment?: Shipment;
865 }
866 export type ShippingOption = "SECOND_DAY"|"NEXT_DAY"|"EXPRESS"|"STANDARD"|string;
867 export type SnowballCapacity = "T50"|"T80"|"T100"|"T42"|"NoPreference"|string;
868 export type SnowballType = "STANDARD"|"EDGE"|"EDGE_C"|"EDGE_CG"|string;
869 export type SnsTopicARN = string;
870 export type String = string;
871 export type Timestamp = Date;
872 export interface UpdateClusterRequest {
873 /**
874 * The cluster ID of the cluster that you want to update, for example CID123e4567-e89b-12d3-a456-426655440000.
875 */
876 ClusterId: ClusterId;
877 /**
878 * 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).
879 */
880 RoleARN?: RoleARN;
881 /**
882 * The updated description of this cluster.
883 */
884 Description?: String;
885 /**
886 * The updated arrays of JobResource objects that can include updated S3Resource objects or LambdaResource objects.
887 */
888 Resources?: JobResource;
889 /**
890 * The ID of the updated Address object.
891 */
892 AddressId?: AddressId;
893 /**
894 * The updated shipping option value of this cluster's ShippingDetails object.
895 */
896 ShippingOption?: ShippingOption;
897 /**
898 * The new or updated Notification object.
899 */
900 Notification?: Notification;
901 /**
902 * The updated ID for the forwarding address for a cluster. This field is not supported in most regions.
903 */
904 ForwardingAddressId?: AddressId;
905 }
906 export interface UpdateClusterResult {
907 }
908 export interface UpdateJobRequest {
909 /**
910 * The job ID of the job that you want to update, for example JID123e4567-e89b-12d3-a456-426655440000.
911 */
912 JobId: JobId;
913 /**
914 * The new role Amazon Resource Name (ARN) that you want to associate with this job. To create a role ARN, use the CreateRoleAWS Identity and Access Management (IAM) API action.
915 */
916 RoleARN?: RoleARN;
917 /**
918 * The new or updated Notification object.
919 */
920 Notification?: Notification;
921 /**
922 * The updated JobResource object, or the updated JobResource object.
923 */
924 Resources?: JobResource;
925 /**
926 * The ID of the updated Address object.
927 */
928 AddressId?: AddressId;
929 /**
930 * The updated shipping option value of this job's ShippingDetails object.
931 */
932 ShippingOption?: ShippingOption;
933 /**
934 * The updated description of this job's JobMetadata object.
935 */
936 Description?: String;
937 /**
938 * The updated SnowballCapacityPreference of this job's JobMetadata object. The 50 TB Snowballs are only available in the US regions.
939 */
940 SnowballCapacityPreference?: SnowballCapacity;
941 /**
942 * The updated ID for the forwarding address for a job. This field is not supported in most regions.
943 */
944 ForwardingAddressId?: AddressId;
945 }
946 export interface UpdateJobResult {
947 }
948 /**
949 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
950 */
951 export type apiVersion = "2016-06-30"|"latest"|string;
952 export interface ClientApiVersions {
953 /**
954 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
955 */
956 apiVersion?: apiVersion;
957 }
958 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
959 /**
960 * Contains interfaces for use with the Snowball client.
961 */
962 export import Types = Snowball;
963}
964export = Snowball;