@aws-sdk/client-outposts 3.29.0 → 3.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/Outposts.ts +27 -0
  3. package/OutpostsClient.ts +3 -0
  4. package/README.md +7 -7
  5. package/commands/CreateOrderCommand.ts +94 -0
  6. package/dist/cjs/Outposts.js +15 -0
  7. package/dist/cjs/Outposts.js.map +1 -1
  8. package/dist/cjs/OutpostsClient.js +13 -13
  9. package/dist/cjs/OutpostsClient.js.map +1 -1
  10. package/dist/cjs/commands/CreateOrderCommand.js +61 -0
  11. package/dist/cjs/commands/CreateOrderCommand.js.map +1 -0
  12. package/dist/cjs/commands/CreateOutpostCommand.js +3 -3
  13. package/dist/cjs/commands/CreateOutpostCommand.js.map +1 -1
  14. package/dist/cjs/commands/DeleteOutpostCommand.js +3 -3
  15. package/dist/cjs/commands/DeleteOutpostCommand.js.map +1 -1
  16. package/dist/cjs/commands/DeleteSiteCommand.js +3 -3
  17. package/dist/cjs/commands/DeleteSiteCommand.js.map +1 -1
  18. package/dist/cjs/commands/GetOutpostCommand.js +3 -3
  19. package/dist/cjs/commands/GetOutpostCommand.js.map +1 -1
  20. package/dist/cjs/commands/GetOutpostInstanceTypesCommand.js +3 -3
  21. package/dist/cjs/commands/GetOutpostInstanceTypesCommand.js.map +1 -1
  22. package/dist/cjs/commands/ListOutpostsCommand.js +3 -3
  23. package/dist/cjs/commands/ListOutpostsCommand.js.map +1 -1
  24. package/dist/cjs/commands/ListSitesCommand.js +3 -3
  25. package/dist/cjs/commands/ListSitesCommand.js.map +1 -1
  26. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  27. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  28. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  29. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  30. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  31. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  32. package/dist/cjs/endpoints.js +1 -1
  33. package/dist/cjs/endpoints.js.map +1 -1
  34. package/dist/cjs/index.js +17 -16
  35. package/dist/cjs/index.js.map +1 -1
  36. package/dist/cjs/models/index.js +1 -1
  37. package/dist/cjs/models/index.js.map +1 -1
  38. package/dist/cjs/models/models_0.js +77 -13
  39. package/dist/cjs/models/models_0.js.map +1 -1
  40. package/dist/cjs/package.json +31 -31
  41. package/dist/cjs/protocols/Aws_restJson1.js +211 -44
  42. package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
  43. package/dist/cjs/runtimeConfig.browser.js +4 -4
  44. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  45. package/dist/cjs/runtimeConfig.js +8 -8
  46. package/dist/cjs/runtimeConfig.js.map +1 -1
  47. package/dist/cjs/runtimeConfig.native.js +1 -1
  48. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  49. package/dist/es/Outposts.js +15 -0
  50. package/dist/es/Outposts.js.map +1 -1
  51. package/dist/es/OutpostsClient.js.map +1 -1
  52. package/dist/es/commands/CreateOrderCommand.js +65 -0
  53. package/dist/es/commands/CreateOrderCommand.js.map +1 -0
  54. package/dist/es/index.js +1 -0
  55. package/dist/es/index.js.map +1 -1
  56. package/dist/es/models/models_0.js +66 -12
  57. package/dist/es/models/models_0.js.map +1 -1
  58. package/dist/es/package.json +31 -31
  59. package/dist/es/pagination/ListOutpostsPaginator.js +4 -4
  60. package/dist/es/pagination/ListOutpostsPaginator.js.map +1 -1
  61. package/dist/es/pagination/ListSitesPaginator.js +4 -4
  62. package/dist/es/pagination/ListSitesPaginator.js.map +1 -1
  63. package/dist/es/protocols/Aws_restJson1.js +179 -1
  64. package/dist/es/protocols/Aws_restJson1.js.map +1 -1
  65. package/dist/types/Outposts.d.ts +7 -0
  66. package/dist/types/OutpostsClient.d.ts +3 -2
  67. package/dist/types/commands/CreateOrderCommand.d.ts +35 -0
  68. package/dist/types/index.d.ts +1 -0
  69. package/dist/types/models/models_0.d.ts +207 -54
  70. package/dist/types/protocols/Aws_restJson1.d.ts +3 -0
  71. package/dist/types/ts3.4/Outposts.d.ts +7 -0
  72. package/dist/types/ts3.4/OutpostsClient.d.ts +3 -2
  73. package/dist/types/ts3.4/commands/CreateOrderCommand.d.ts +35 -0
  74. package/dist/types/ts3.4/index.d.ts +1 -0
  75. package/dist/types/ts3.4/models/models_0.d.ts +207 -54
  76. package/dist/types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  77. package/index.ts +1 -0
  78. package/models/models_0.ts +239 -50
  79. package/package.json +31 -31
  80. package/protocols/Aws_restJson1.ts +195 -0
  81. package/tsconfig.json +1 -2
@@ -49,128 +49,181 @@ export namespace ConflictException {
49
49
  });
50
50
  }
51
51
 
52
- export interface CreateOutpostInput {
52
+ /**
53
+ * <p>Information about a line item request.</p>
54
+ */
55
+ export interface LineItemRequest {
53
56
  /**
54
- * <p>The name of the Outpost.</p>
57
+ * <p>The ID of the catalog item.</p>
55
58
  */
56
- Name: string | undefined;
59
+ CatalogItemId?: string;
57
60
 
58
61
  /**
59
- * <p>The description of the Outpost.</p>
62
+ * <p>The quantity of a line item request.</p>
60
63
  */
61
- Description?: string;
64
+ Quantity?: number;
65
+ }
62
66
 
67
+ export namespace LineItemRequest {
63
68
  /**
64
- * <p>The ID of the site.</p>
69
+ * @internal
65
70
  */
66
- SiteId: string | undefined;
71
+ export const filterSensitiveLog = (obj: LineItemRequest): any => ({
72
+ ...obj,
73
+ });
74
+ }
67
75
 
76
+ export enum PaymentOption {
77
+ ALL_UPFRONT = "ALL_UPFRONT",
78
+ NO_UPFRONT = "NO_UPFRONT",
79
+ PARTIAL_UPFRONT = "PARTIAL_UPFRONT",
80
+ }
81
+
82
+ export enum PaymentTerm {
83
+ THREE_YEARS = "THREE_YEARS",
84
+ }
85
+
86
+ export interface CreateOrderInput {
68
87
  /**
69
- * <p>The Availability Zone.</p>
88
+ * <p>
89
+ * The ID or the Amazon Resource Name (ARN) of the Outpost.
90
+ * </p>
70
91
  */
71
- AvailabilityZone?: string;
92
+ OutpostIdentifier: string | undefined;
72
93
 
73
94
  /**
74
- * <p>The ID of the Availability Zone.</p>
95
+ * <p>The line items that make up the order.</p>
75
96
  */
76
- AvailabilityZoneId?: string;
97
+ LineItems: LineItemRequest[] | undefined;
77
98
 
78
99
  /**
79
- * <p>The tags to apply to the Outpost.</p>
100
+ * <p>The payment option for the order.</p>
80
101
  */
81
- Tags?: { [key: string]: string };
102
+ PaymentOption: PaymentOption | string | undefined;
103
+
104
+ /**
105
+ * <p>The payment terms for the order.</p>
106
+ */
107
+ PaymentTerm?: PaymentTerm | string;
82
108
  }
83
109
 
84
- export namespace CreateOutpostInput {
110
+ export namespace CreateOrderInput {
85
111
  /**
86
112
  * @internal
87
113
  */
88
- export const filterSensitiveLog = (obj: CreateOutpostInput): any => ({
114
+ export const filterSensitiveLog = (obj: CreateOrderInput): any => ({
89
115
  ...obj,
90
116
  });
91
117
  }
92
118
 
93
119
  /**
94
- * <p>Information about an Outpost.</p>
120
+ * <p>Information about a line item.</p>
95
121
  */
96
- export interface Outpost {
122
+ export interface LineItem {
97
123
  /**
98
- * <p>The ID of the Outpost.</p>
124
+ * <p>
125
+ * The ID of the catalog item.
126
+ * </p>
99
127
  */
100
- OutpostId?: string;
128
+ CatalogItemId?: string;
101
129
 
102
130
  /**
103
- * <p>The AWS account ID of the Outpost owner.</p>
131
+ * <p>The ID of the line item.</p>
104
132
  */
105
- OwnerId?: string;
133
+ LineItemId?: string;
106
134
 
107
135
  /**
108
- * <p>The Amazon Resource Name (ARN) of the Outpost.</p>
136
+ * <p>The quantity of the line item.</p>
109
137
  */
110
- OutpostArn?: string;
138
+ Quantity?: number;
111
139
 
112
140
  /**
113
- * <p>The ID of the site.</p>
141
+ * <p>The status of the line item.</p>
114
142
  */
115
- SiteId?: string;
143
+ Status?: string;
144
+ }
116
145
 
146
+ export namespace LineItem {
117
147
  /**
118
- * <p>The name of the Outpost.</p>
148
+ * @internal
119
149
  */
120
- Name?: string;
150
+ export const filterSensitiveLog = (obj: LineItem): any => ({
151
+ ...obj,
152
+ });
153
+ }
154
+
155
+ export enum OrderStatus {
156
+ CANCELLED = "CANCELLED",
157
+ FULFILLED = "FULFILLED",
158
+ INSTALLING = "INSTALLING",
159
+ PENDING = "PENDING",
160
+ PROCESSING = "PROCESSING",
161
+ RECEIVED = "RECEIVED",
162
+ }
121
163
 
164
+ /**
165
+ * <p>Information about an order.</p>
166
+ */
167
+ export interface Order {
122
168
  /**
123
- * <p>The description of the Outpost.</p>
169
+ * <p>
170
+ * The ID of the Outpost.
171
+ * </p>
124
172
  */
125
- Description?: string;
173
+ OutpostId?: string;
126
174
 
127
175
  /**
128
- * <p>The life cycle status.</p>
176
+ * <p>The ID of the order.</p>
129
177
  */
130
- LifeCycleStatus?: string;
178
+ OrderId?: string;
131
179
 
132
180
  /**
133
- * <p>The Availability Zone.</p>
181
+ * <p>The status of the order</p>
134
182
  */
135
- AvailabilityZone?: string;
183
+ Status?: OrderStatus | string;
136
184
 
137
185
  /**
138
- * <p>The ID of the Availability Zone.</p>
186
+ * <p>The line items for the order</p>
139
187
  */
140
- AvailabilityZoneId?: string;
188
+ LineItems?: LineItem[];
141
189
 
142
190
  /**
143
- * <p>The Outpost tags.</p>
191
+ * <p>The payment option for the order.</p>
144
192
  */
145
- Tags?: { [key: string]: string };
193
+ PaymentOption?: PaymentOption | string;
146
194
 
147
195
  /**
148
- * <p>The Amazon Resource Name (ARN) of the site.</p>
196
+ * <p>The submission date for the order.</p>
149
197
  */
150
- SiteArn?: string;
198
+ OrderSubmissionDate?: Date;
199
+
200
+ /**
201
+ * <p>The fulfillment date of the order.</p>
202
+ */
203
+ OrderFulfilledDate?: Date;
151
204
  }
152
205
 
153
- export namespace Outpost {
206
+ export namespace Order {
154
207
  /**
155
208
  * @internal
156
209
  */
157
- export const filterSensitiveLog = (obj: Outpost): any => ({
210
+ export const filterSensitiveLog = (obj: Order): any => ({
158
211
  ...obj,
159
212
  });
160
213
  }
161
214
 
162
- export interface CreateOutpostOutput {
215
+ export interface CreateOrderOutput {
163
216
  /**
164
- * <p>Information about an Outpost.</p>
217
+ * <p>Information about this order.</p>
165
218
  */
166
- Outpost?: Outpost;
219
+ Order?: Order;
167
220
  }
168
221
 
169
- export namespace CreateOutpostOutput {
222
+ export namespace CreateOrderOutput {
170
223
  /**
171
224
  * @internal
172
225
  */
173
- export const filterSensitiveLog = (obj: CreateOutpostOutput): any => ({
226
+ export const filterSensitiveLog = (obj: CreateOrderOutput): any => ({
174
227
  ...obj,
175
228
  });
176
229
  }
@@ -247,9 +300,139 @@ export namespace ValidationException {
247
300
  });
248
301
  }
249
302
 
303
+ export interface CreateOutpostInput {
304
+ /**
305
+ * <p>The name of the Outpost.</p>
306
+ */
307
+ Name: string | undefined;
308
+
309
+ /**
310
+ * <p>The description of the Outpost.</p>
311
+ */
312
+ Description?: string;
313
+
314
+ /**
315
+ * <p>The ID of the site.</p>
316
+ */
317
+ SiteId: string | undefined;
318
+
319
+ /**
320
+ * <p>The Availability Zone.</p>
321
+ */
322
+ AvailabilityZone?: string;
323
+
324
+ /**
325
+ * <p>The ID of the Availability Zone.</p>
326
+ */
327
+ AvailabilityZoneId?: string;
328
+
329
+ /**
330
+ * <p>The tags to apply to the Outpost.</p>
331
+ */
332
+ Tags?: { [key: string]: string };
333
+ }
334
+
335
+ export namespace CreateOutpostInput {
336
+ /**
337
+ * @internal
338
+ */
339
+ export const filterSensitiveLog = (obj: CreateOutpostInput): any => ({
340
+ ...obj,
341
+ });
342
+ }
343
+
344
+ /**
345
+ * <p>Information about an Outpost.</p>
346
+ */
347
+ export interface Outpost {
348
+ /**
349
+ * <p>
350
+ * The ID of the Outpost.
351
+ * </p>
352
+ */
353
+ OutpostId?: string;
354
+
355
+ /**
356
+ * <p>The AWS account ID of the Outpost owner.</p>
357
+ */
358
+ OwnerId?: string;
359
+
360
+ /**
361
+ * <p>The Amazon Resource Name (ARN) of the Outpost.</p>
362
+ */
363
+ OutpostArn?: string;
364
+
365
+ /**
366
+ * <p>The ID of the site.</p>
367
+ */
368
+ SiteId?: string;
369
+
370
+ /**
371
+ * <p>The name of the Outpost.</p>
372
+ */
373
+ Name?: string;
374
+
375
+ /**
376
+ * <p>The description of the Outpost.</p>
377
+ */
378
+ Description?: string;
379
+
380
+ /**
381
+ * <p>The life cycle status.</p>
382
+ */
383
+ LifeCycleStatus?: string;
384
+
385
+ /**
386
+ * <p>The Availability Zone.</p>
387
+ */
388
+ AvailabilityZone?: string;
389
+
390
+ /**
391
+ * <p>The ID of the Availability Zone.</p>
392
+ */
393
+ AvailabilityZoneId?: string;
394
+
395
+ /**
396
+ * <p>The Outpost tags.</p>
397
+ */
398
+ Tags?: { [key: string]: string };
399
+
400
+ /**
401
+ * <p>The Amazon Resource Name (ARN) of the site.</p>
402
+ */
403
+ SiteArn?: string;
404
+ }
405
+
406
+ export namespace Outpost {
407
+ /**
408
+ * @internal
409
+ */
410
+ export const filterSensitiveLog = (obj: Outpost): any => ({
411
+ ...obj,
412
+ });
413
+ }
414
+
415
+ export interface CreateOutpostOutput {
416
+ /**
417
+ * <p>Information about an Outpost.</p>
418
+ */
419
+ Outpost?: Outpost;
420
+ }
421
+
422
+ export namespace CreateOutpostOutput {
423
+ /**
424
+ * @internal
425
+ */
426
+ export const filterSensitiveLog = (obj: CreateOutpostOutput): any => ({
427
+ ...obj,
428
+ });
429
+ }
430
+
250
431
  export interface DeleteOutpostInput {
251
432
  /**
252
- * <p>The ID of the Outpost.</p>
433
+ * <p>
434
+ * The ID of the Outpost.
435
+ * </p>
253
436
  */
254
437
  OutpostId: string | undefined;
255
438
  }
@@ -303,7 +486,9 @@ export namespace DeleteSiteOutput {
303
486
 
304
487
  export interface GetOutpostInput {
305
488
  /**
306
- * <p>The ID of the Outpost.</p>
489
+ * <p>
490
+ * The ID of the Outpost.
491
+ * </p>
307
492
  */
308
493
  OutpostId: string | undefined;
309
494
  }
@@ -335,7 +520,9 @@ export namespace GetOutpostOutput {
335
520
 
336
521
  export interface GetOutpostInstanceTypesInput {
337
522
  /**
338
- * <p>The ID of the Outpost.</p>
523
+ * <p>
524
+ * The ID of the Outpost.
525
+ * </p>
339
526
  */
340
527
  OutpostId: string | undefined;
341
528
 
@@ -390,7 +577,9 @@ export interface GetOutpostInstanceTypesOutput {
390
577
  NextToken?: string;
391
578
 
392
579
  /**
393
- * <p>The ID of the Outpost.</p>
580
+ * <p>
581
+ * The ID of the Outpost.
582
+ * </p>
394
583
  */
395
584
  OutpostId?: string;
396
585
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-outposts",
3
3
  "description": "AWS SDK for JavaScript Outposts Client for Node.js, Browser and React Native",
4
- "version": "3.29.0",
4
+ "version": "3.33.0",
5
5
  "scripts": {
6
6
  "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
7
  "build-documentation": "yarn remove-documentation && typedoc ./",
@@ -27,45 +27,45 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "^1.0.0",
29
29
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.29.0",
31
- "@aws-sdk/config-resolver": "3.29.0",
32
- "@aws-sdk/credential-provider-node": "3.29.0",
33
- "@aws-sdk/fetch-http-handler": "3.29.0",
34
- "@aws-sdk/hash-node": "3.29.0",
35
- "@aws-sdk/invalid-dependency": "3.29.0",
36
- "@aws-sdk/middleware-content-length": "3.29.0",
37
- "@aws-sdk/middleware-host-header": "3.29.0",
38
- "@aws-sdk/middleware-logger": "3.29.0",
39
- "@aws-sdk/middleware-retry": "3.29.0",
40
- "@aws-sdk/middleware-serde": "3.29.0",
41
- "@aws-sdk/middleware-signing": "3.29.0",
42
- "@aws-sdk/middleware-stack": "3.29.0",
43
- "@aws-sdk/middleware-user-agent": "3.29.0",
44
- "@aws-sdk/node-config-provider": "3.29.0",
45
- "@aws-sdk/node-http-handler": "3.29.0",
46
- "@aws-sdk/protocol-http": "3.29.0",
47
- "@aws-sdk/smithy-client": "3.29.0",
48
- "@aws-sdk/types": "3.29.0",
49
- "@aws-sdk/url-parser": "3.29.0",
50
- "@aws-sdk/util-base64-browser": "3.29.0",
51
- "@aws-sdk/util-base64-node": "3.29.0",
52
- "@aws-sdk/util-body-length-browser": "3.29.0",
53
- "@aws-sdk/util-body-length-node": "3.29.0",
54
- "@aws-sdk/util-user-agent-browser": "3.29.0",
55
- "@aws-sdk/util-user-agent-node": "3.29.0",
56
- "@aws-sdk/util-utf8-browser": "3.29.0",
57
- "@aws-sdk/util-utf8-node": "3.29.0",
30
+ "@aws-sdk/client-sts": "3.33.0",
31
+ "@aws-sdk/config-resolver": "3.33.0",
32
+ "@aws-sdk/credential-provider-node": "3.33.0",
33
+ "@aws-sdk/fetch-http-handler": "3.32.0",
34
+ "@aws-sdk/hash-node": "3.32.0",
35
+ "@aws-sdk/invalid-dependency": "3.32.0",
36
+ "@aws-sdk/middleware-content-length": "3.32.0",
37
+ "@aws-sdk/middleware-host-header": "3.32.0",
38
+ "@aws-sdk/middleware-logger": "3.32.0",
39
+ "@aws-sdk/middleware-retry": "3.32.0",
40
+ "@aws-sdk/middleware-serde": "3.32.0",
41
+ "@aws-sdk/middleware-signing": "3.33.0",
42
+ "@aws-sdk/middleware-stack": "3.32.0",
43
+ "@aws-sdk/middleware-user-agent": "3.32.0",
44
+ "@aws-sdk/node-config-provider": "3.32.0",
45
+ "@aws-sdk/node-http-handler": "3.32.0",
46
+ "@aws-sdk/protocol-http": "3.32.0",
47
+ "@aws-sdk/smithy-client": "3.32.0",
48
+ "@aws-sdk/types": "3.32.0",
49
+ "@aws-sdk/url-parser": "3.32.0",
50
+ "@aws-sdk/util-base64-browser": "3.32.0",
51
+ "@aws-sdk/util-base64-node": "3.32.0",
52
+ "@aws-sdk/util-body-length-browser": "3.32.0",
53
+ "@aws-sdk/util-body-length-node": "3.32.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.32.0",
55
+ "@aws-sdk/util-user-agent-node": "3.33.0",
56
+ "@aws-sdk/util-utf8-browser": "3.32.0",
57
+ "@aws-sdk/util-utf8-node": "3.32.0",
58
58
  "tslib": "^2.3.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.29.0",
61
+ "@aws-sdk/client-documentation-generator": "3.32.0",
62
62
  "@types/node": "^12.7.5",
63
63
  "downlevel-dts": "0.7.0",
64
64
  "jest": "^26.1.0",
65
65
  "rimraf": "^3.0.0",
66
66
  "ts-jest": "^26.4.1",
67
67
  "typedoc": "^0.19.2",
68
- "typescript": "~4.4.2"
68
+ "typescript": "~4.3.5"
69
69
  },
70
70
  "engines": {
71
71
  "node": ">=10.0.0"