importexport.d.ts
10.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class ImportExport extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: ImportExport.Types.ClientConfiguration)
config: Config & ImportExport.Types.ClientConfiguration;
/**
* This operation cancels a specified job. Only the job owner can cancel it. The operation fails if the job has already started or is complete.
*/
cancelJob(params: ImportExport.Types.CancelJobInput, callback?: (err: AWSError, data: ImportExport.Types.CancelJobOutput) => void): Request<ImportExport.Types.CancelJobOutput, AWSError>;
/**
* This operation cancels a specified job. Only the job owner can cancel it. The operation fails if the job has already started or is complete.
*/
cancelJob(callback?: (err: AWSError, data: ImportExport.Types.CancelJobOutput) => void): Request<ImportExport.Types.CancelJobOutput, AWSError>;
/**
* This operation initiates the process of scheduling an upload or download of your data. You include in the request a manifest that describes the data transfer specifics. The response to the request includes a job ID, which you can use in other operations, a signature that you use to identify your storage device, and the address where you should ship your storage device.
*/
createJob(params: ImportExport.Types.CreateJobInput, callback?: (err: AWSError, data: ImportExport.Types.CreateJobOutput) => void): Request<ImportExport.Types.CreateJobOutput, AWSError>;
/**
* This operation initiates the process of scheduling an upload or download of your data. You include in the request a manifest that describes the data transfer specifics. The response to the request includes a job ID, which you can use in other operations, a signature that you use to identify your storage device, and the address where you should ship your storage device.
*/
createJob(callback?: (err: AWSError, data: ImportExport.Types.CreateJobOutput) => void): Request<ImportExport.Types.CreateJobOutput, AWSError>;
/**
* This operation generates a pre-paid UPS shipping label that you will use to ship your device to AWS for processing.
*/
getShippingLabel(params: ImportExport.Types.GetShippingLabelInput, callback?: (err: AWSError, data: ImportExport.Types.GetShippingLabelOutput) => void): Request<ImportExport.Types.GetShippingLabelOutput, AWSError>;
/**
* This operation generates a pre-paid UPS shipping label that you will use to ship your device to AWS for processing.
*/
getShippingLabel(callback?: (err: AWSError, data: ImportExport.Types.GetShippingLabelOutput) => void): Request<ImportExport.Types.GetShippingLabelOutput, AWSError>;
/**
* This operation returns information about a job, including where the job is in the processing pipeline, the status of the results, and the signature value associated with the job. You can only return information about jobs you own.
*/
getStatus(params: ImportExport.Types.GetStatusInput, callback?: (err: AWSError, data: ImportExport.Types.GetStatusOutput) => void): Request<ImportExport.Types.GetStatusOutput, AWSError>;
/**
* This operation returns information about a job, including where the job is in the processing pipeline, the status of the results, and the signature value associated with the job. You can only return information about jobs you own.
*/
getStatus(callback?: (err: AWSError, data: ImportExport.Types.GetStatusOutput) => void): Request<ImportExport.Types.GetStatusOutput, AWSError>;
/**
* This operation returns the jobs associated with the requester. AWS Import/Export lists the jobs in reverse chronological order based on the date of creation. For example if Job Test1 was created 2009Dec30 and Test2 was created 2010Feb05, the ListJobs operation would return Test2 followed by Test1.
*/
listJobs(params: ImportExport.Types.ListJobsInput, callback?: (err: AWSError, data: ImportExport.Types.ListJobsOutput) => void): Request<ImportExport.Types.ListJobsOutput, AWSError>;
/**
* This operation returns the jobs associated with the requester. AWS Import/Export lists the jobs in reverse chronological order based on the date of creation. For example if Job Test1 was created 2009Dec30 and Test2 was created 2010Feb05, the ListJobs operation would return Test2 followed by Test1.
*/
listJobs(callback?: (err: AWSError, data: ImportExport.Types.ListJobsOutput) => void): Request<ImportExport.Types.ListJobsOutput, AWSError>;
/**
* You use this operation to change the parameters specified in the original manifest file by supplying a new manifest file. The manifest file attached to this request replaces the original manifest file. You can only use the operation after a CreateJob request but before the data transfer starts and you can only use it on jobs you own.
*/
updateJob(params: ImportExport.Types.UpdateJobInput, callback?: (err: AWSError, data: ImportExport.Types.UpdateJobOutput) => void): Request<ImportExport.Types.UpdateJobOutput, AWSError>;
/**
* You use this operation to change the parameters specified in the original manifest file by supplying a new manifest file. The manifest file attached to this request replaces the original manifest file. You can only use the operation after a CreateJob request but before the data transfer starts and you can only use it on jobs you own.
*/
updateJob(callback?: (err: AWSError, data: ImportExport.Types.UpdateJobOutput) => void): Request<ImportExport.Types.UpdateJobOutput, AWSError>;
}
declare namespace ImportExport {
export type APIVersion = string;
export interface Artifact {
Description?: Description;
URL?: URL;
}
export type ArtifactList = Artifact[];
export interface CancelJobInput {
JobId: JobId;
APIVersion?: APIVersion;
}
export interface CancelJobOutput {
Success?: Success;
}
export type Carrier = string;
export interface CreateJobInput {
JobType: JobType;
Manifest: Manifest;
ManifestAddendum?: ManifestAddendum;
ValidateOnly: ValidateOnly;
APIVersion?: APIVersion;
}
export interface CreateJobOutput {
JobId?: JobId;
JobType?: JobType;
Signature?: Signature;
SignatureFileContents?: SignatureFileContents;
WarningMessage?: WarningMessage;
ArtifactList?: ArtifactList;
}
export type CreationDate = Date;
export type CurrentManifest = string;
export type Description = string;
export type ErrorCount = number;
export type GenericString = string;
export interface GetShippingLabelInput {
jobIds: JobIdList;
name?: name;
company?: company;
phoneNumber?: phoneNumber;
country?: country;
stateOrProvince?: stateOrProvince;
city?: city;
postalCode?: postalCode;
street1?: street1;
street2?: street2;
street3?: street3;
APIVersion?: APIVersion;
}
export interface GetShippingLabelOutput {
ShippingLabelURL?: GenericString;
Warning?: GenericString;
}
export interface GetStatusInput {
JobId: JobId;
APIVersion?: APIVersion;
}
export interface GetStatusOutput {
JobId?: JobId;
JobType?: JobType;
LocationCode?: LocationCode;
LocationMessage?: LocationMessage;
ProgressCode?: ProgressCode;
ProgressMessage?: ProgressMessage;
Carrier?: Carrier;
TrackingNumber?: TrackingNumber;
LogBucket?: LogBucket;
LogKey?: LogKey;
ErrorCount?: ErrorCount;
Signature?: Signature;
SignatureFileContents?: Signature;
CurrentManifest?: CurrentManifest;
CreationDate?: CreationDate;
ArtifactList?: ArtifactList;
}
export type IsCanceled = boolean;
export type IsTruncated = boolean;
export interface Job {
JobId?: JobId;
CreationDate?: CreationDate;
IsCanceled?: IsCanceled;
JobType?: JobType;
}
export type JobId = string;
export type JobIdList = GenericString[];
export type JobType = "Import"|"Export"|string;
export type JobsList = Job[];
export interface ListJobsInput {
MaxJobs?: MaxJobs;
Marker?: Marker;
APIVersion?: APIVersion;
}
export interface ListJobsOutput {
Jobs?: JobsList;
IsTruncated?: IsTruncated;
}
export type LocationCode = string;
export type LocationMessage = string;
export type LogBucket = string;
export type LogKey = string;
export type Manifest = string;
export type ManifestAddendum = string;
export type Marker = string;
export type MaxJobs = number;
export type ProgressCode = string;
export type ProgressMessage = string;
export type Signature = string;
export type SignatureFileContents = string;
export type Success = boolean;
export type TrackingNumber = string;
export type URL = string;
export interface UpdateJobInput {
JobId: JobId;
Manifest: Manifest;
JobType: JobType;
ValidateOnly: ValidateOnly;
APIVersion?: APIVersion;
}
export interface UpdateJobOutput {
Success?: Success;
WarningMessage?: WarningMessage;
ArtifactList?: ArtifactList;
}
export type ValidateOnly = boolean;
export type WarningMessage = string;
export type city = string;
export type company = string;
export type country = string;
export type name = string;
export type phoneNumber = string;
export type postalCode = string;
export type stateOrProvince = string;
export type street1 = string;
export type street2 = string;
export type street3 = string;
/**
* 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.
*/
export type apiVersion = "2010-06-01"|"latest"|string;
export interface ClientApiVersions {
/**
* 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.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the ImportExport client.
*/
export import Types = ImportExport;
}
export = ImportExport;