@aws-sdk/client-workspaces-instances 3.986.0 → 3.988.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultWorkspacesInstancesHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2022-07-26",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_0Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.workspacesinstances",
30
+ errorTypeRegistries,
29
31
  version: "2022-07-26",
30
32
  serviceTarget: "EUCMIFrontendAPIService",
31
33
  },
@@ -173,7 +173,7 @@ const _PSr = "ProvisionStates";
173
173
  const _PT = "PlatformType";
174
174
  const _Pr = "Primary";
175
175
  const _QC = "QuotaCode";
176
- const _R = "Regions";
176
+ const _R = "Reason";
177
177
  const _RA = "Retry-After";
178
178
  const _RAS = "RetryAfterSeconds";
179
179
  const _RI = "ResourceId";
@@ -183,8 +183,8 @@ const _RL = "RegionList";
183
183
  const _RN = "RegionName";
184
184
  const _RNFE = "ResourceNotFoundException";
185
185
  const _RT = "ResourceType";
186
- const _Re = "Region";
187
- const _Rea = "Reason";
186
+ const _Re = "Regions";
187
+ const _Reg = "Region";
188
188
  const _SC = "ServiceCode";
189
189
  const _SG = "SecurityGroups";
190
190
  const _SGI = "SecurityGroupIds";
@@ -236,24 +236,68 @@ const _c = "client";
236
236
  const _e = "error";
237
237
  const _hE = "httpError";
238
238
  const _hH = "httpHeader";
239
- const _s = "server";
240
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.workspacesinstances";
239
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.workspacesinstances";
240
+ const _se = "server";
241
241
  const n0 = "com.amazonaws.workspacesinstances";
242
242
  import { TypeRegistry } from "@smithy/core/schema";
243
243
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
244
244
  import { WorkspacesInstancesServiceException } from "../models/WorkspacesInstancesServiceException";
245
+ const _s_registry = TypeRegistry.for(_s);
246
+ export var WorkspacesInstancesServiceException$ = [-3, _s, "WorkspacesInstancesServiceException", 0, [], []];
247
+ _s_registry.registerError(WorkspacesInstancesServiceException$, WorkspacesInstancesServiceException);
248
+ const n0_registry = TypeRegistry.for(n0);
249
+ export var AccessDeniedException$ = [-3, n0, _ADE,
250
+ { [_e]: _c, [_hE]: 403 },
251
+ [_M],
252
+ [0], 1
253
+ ];
254
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
255
+ export var ConflictException$ = [-3, n0, _CE,
256
+ { [_e]: _c, [_hE]: 409 },
257
+ [_M, _RI, _RT],
258
+ [0, 0, 0], 3
259
+ ];
260
+ n0_registry.registerError(ConflictException$, ConflictException);
261
+ export var InternalServerException$ = [-3, n0, _ISE,
262
+ { [_e]: _se, [_hE]: 500 },
263
+ [_M, _RAS],
264
+ [0, [1, { [_hH]: _RA }]], 1
265
+ ];
266
+ n0_registry.registerError(InternalServerException$, InternalServerException);
267
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
268
+ { [_e]: _c, [_hE]: 404 },
269
+ [_M, _RI, _RT],
270
+ [0, 0, 0], 3
271
+ ];
272
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
273
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
274
+ { [_e]: _c, [_hE]: 402 },
275
+ [_M, _RI, _RT, _SC, _QC],
276
+ [0, 0, 0, 0, 0], 5
277
+ ];
278
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
279
+ export var ThrottlingException$ = [-3, n0, _TE,
280
+ { [_e]: _c, [_hE]: 429 },
281
+ [_M, _SC, _QC, _RAS],
282
+ [0, 0, 0, [1, { [_hH]: _RA }]], 1
283
+ ];
284
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
285
+ export var ValidationException$ = [-3, n0, _VE,
286
+ { [_e]: _c, [_hE]: 400 },
287
+ [_M, _R, _FL],
288
+ [0, 0, () => ValidationExceptionFieldList], 2
289
+ ];
290
+ n0_registry.registerError(ValidationException$, ValidationException);
291
+ export const errorTypeRegistries = [
292
+ _s_registry,
293
+ n0_registry,
294
+ ];
245
295
  var ClientToken = [0, n0, _CT, 8, 0];
246
296
  var Ipv4Address = [0, n0, _IA, 8, 0];
247
297
  var Ipv6Address = [0, n0, _IAp, 8, 0];
248
298
  var KmsKeyId = [0, n0, _KKI, 8, 0];
249
299
  var NextToken = [0, n0, _NT, 8, 0];
250
300
  var UserData = [0, n0, _UD, 8, 0];
251
- export var AccessDeniedException$ = [-3, n0, _ADE,
252
- { [_e]: _c, [_hE]: 403 },
253
- [_M],
254
- [0], 1
255
- ];
256
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
257
301
  export var AssociateVolumeRequest$ = [3, n0, _AVR,
258
302
  0,
259
303
  [_WII, _VI, _D],
@@ -284,12 +328,6 @@ export var CapacityReservationTarget$ = [3, n0, _CRT,
284
328
  [_CRI, _CRRGA],
285
329
  [0, 0]
286
330
  ];
287
- export var ConflictException$ = [-3, n0, _CE,
288
- { [_e]: _c, [_hE]: 409 },
289
- [_M, _RI, _RT],
290
- [0, 0, 0], 3
291
- ];
292
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
293
331
  export var ConnectionTrackingSpecificationRequest$ = [3, n0, _CTSR,
294
332
  0,
295
333
  [_TET, _UST, _UT],
@@ -445,12 +483,6 @@ export var InstanceTypeInfo$ = [3, n0, _ITI,
445
483
  [_ITn, _SIC],
446
484
  [0, () => SupportedInstanceConfigurations]
447
485
  ];
448
- export var InternalServerException$ = [-3, n0, _ISE,
449
- { [_e]: _s, [_hE]: 500 },
450
- [_M, _RAS],
451
- [0, [1, { [_hH]: _RA }]], 1
452
- ];
453
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
454
486
  export var Ipv4PrefixSpecificationRequest$ = [3, n0, _IPSR,
455
487
  0,
456
488
  [_IPpv],
@@ -483,7 +515,7 @@ export var ListRegionsRequest$ = [3, n0, _LRR,
483
515
  ];
484
516
  export var ListRegionsResponse$ = [3, n0, _LRRi,
485
517
  0,
486
- [_R, _NT],
518
+ [_Re, _NT],
487
519
  [() => RegionList, [() => NextToken, 0]], 1
488
520
  ];
489
521
  export var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
@@ -526,28 +558,16 @@ export var PrivateIpAddressSpecification$ = [3, n0, _PIAS,
526
558
  [_Pr, _PIA],
527
559
  [2, [() => Ipv4Address, 0]]
528
560
  ];
529
- export var Region$ = [3, n0, _Re,
561
+ export var Region$ = [3, n0, _Reg,
530
562
  0,
531
563
  [_RN],
532
564
  [0]
533
565
  ];
534
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
535
- { [_e]: _c, [_hE]: 404 },
536
- [_M, _RI, _RT],
537
- [0, 0, 0], 3
538
- ];
539
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
540
566
  export var RunInstancesMonitoringEnabled$ = [3, n0, _RIME,
541
567
  0,
542
568
  [_Ena],
543
569
  [2]
544
570
  ];
545
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
546
- { [_e]: _c, [_hE]: 402 },
547
- [_M, _RI, _RT, _SC, _QC],
548
- [0, 0, 0, 0, 0], 5
549
- ];
550
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
551
571
  export var SpotMarketOptions$ = [3, n0, _SMO,
552
572
  0,
553
573
  [_BDMl, _IIB, _MP, _SIT, _VUU],
@@ -578,12 +598,6 @@ export var TagSpecification$ = [3, n0, _TSa,
578
598
  [_RT, _Ta],
579
599
  [0, () => TagList]
580
600
  ];
581
- export var ThrottlingException$ = [-3, n0, _TE,
582
- { [_e]: _c, [_hE]: 429 },
583
- [_M, _SC, _QC, _RAS],
584
- [0, 0, 0, [1, { [_hH]: _RA }]], 1
585
- ];
586
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
587
601
  export var UntagResourceRequest$ = [3, n0, _URR,
588
602
  0,
589
603
  [_WII, _TK],
@@ -594,15 +608,9 @@ export var UntagResourceResponse$ = [3, n0, _URRn,
594
608
  [],
595
609
  []
596
610
  ];
597
- export var ValidationException$ = [-3, n0, _VE,
598
- { [_e]: _c, [_hE]: 400 },
599
- [_M, _Rea, _FL],
600
- [0, 0, () => ValidationExceptionFieldList], 2
601
- ];
602
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
603
611
  export var ValidationExceptionField$ = [3, n0, _VEF,
604
612
  0,
605
- [_N, _Rea, _M],
613
+ [_N, _R, _M],
606
614
  [0, 0, 0], 3
607
615
  ];
608
616
  export var WorkspaceInstance$ = [3, n0, _WIo,
@@ -615,8 +623,6 @@ export var WorkspaceInstanceError$ = [3, n0, _WIEo,
615
623
  [_EC, _EM],
616
624
  [0, 0]
617
625
  ];
618
- export var WorkspacesInstancesServiceException$ = [-3, _sm, "WorkspacesInstancesServiceException", 0, [], []];
619
- TypeRegistry.for(_sm).registerError(WorkspacesInstancesServiceException$, WorkspacesInstancesServiceException);
620
626
  var BlockDeviceMappings = [1, n0, _BDM,
621
627
  0, [() => BlockDeviceMappingRequest$,
622
628
  0]
@@ -1,12 +1,25 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var WorkspacesInstancesServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var ConflictException$: StaticErrorSchema;
6
+ export declare var InternalServerException$: StaticErrorSchema;
7
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
8
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
9
+ export declare var ThrottlingException$: StaticErrorSchema;
10
+ export declare var ValidationException$: StaticErrorSchema;
11
+ /**
12
+ * TypeRegistry instances containing modeled errors.
13
+ * @internal
14
+ *
15
+ */
16
+ export declare const errorTypeRegistries: TypeRegistry[];
3
17
  export declare var AssociateVolumeRequest$: StaticStructureSchema;
4
18
  export declare var AssociateVolumeResponse$: StaticStructureSchema;
5
19
  export declare var BillingConfiguration$: StaticStructureSchema;
6
20
  export declare var BlockDeviceMappingRequest$: StaticStructureSchema;
7
21
  export declare var CapacityReservationSpecification$: StaticStructureSchema;
8
22
  export declare var CapacityReservationTarget$: StaticStructureSchema;
9
- export declare var ConflictException$: StaticErrorSchema;
10
23
  export declare var ConnectionTrackingSpecificationRequest$: StaticStructureSchema;
11
24
  export declare var CpuOptionsRequest$: StaticStructureSchema;
12
25
  export declare var CreateVolumeRequest$: StaticStructureSchema;
@@ -38,7 +51,6 @@ export declare var InstanceMetadataOptionsRequest$: StaticStructureSchema;
38
51
  export declare var InstanceNetworkInterfaceSpecification$: StaticStructureSchema;
39
52
  export declare var InstanceNetworkPerformanceOptionsRequest$: StaticStructureSchema;
40
53
  export declare var InstanceTypeInfo$: StaticStructureSchema;
41
- export declare var InternalServerException$: StaticErrorSchema;
42
54
  export declare var Ipv4PrefixSpecificationRequest$: StaticStructureSchema;
43
55
  export declare var Ipv6PrefixSpecificationRequest$: StaticStructureSchema;
44
56
  export declare var LicenseConfigurationRequest$: StaticStructureSchema;
@@ -55,23 +67,18 @@ export declare var Placement$: StaticStructureSchema;
55
67
  export declare var PrivateDnsNameOptionsRequest$: StaticStructureSchema;
56
68
  export declare var PrivateIpAddressSpecification$: StaticStructureSchema;
57
69
  export declare var Region$: StaticStructureSchema;
58
- export declare var ResourceNotFoundException$: StaticErrorSchema;
59
70
  export declare var RunInstancesMonitoringEnabled$: StaticStructureSchema;
60
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
61
71
  export declare var SpotMarketOptions$: StaticStructureSchema;
62
72
  export declare var SupportedInstanceConfiguration$: StaticStructureSchema;
63
73
  export declare var Tag$: StaticStructureSchema;
64
74
  export declare var TagResourceRequest$: StaticStructureSchema;
65
75
  export declare var TagResourceResponse$: StaticStructureSchema;
66
76
  export declare var TagSpecification$: StaticStructureSchema;
67
- export declare var ThrottlingException$: StaticErrorSchema;
68
77
  export declare var UntagResourceRequest$: StaticStructureSchema;
69
78
  export declare var UntagResourceResponse$: StaticStructureSchema;
70
- export declare var ValidationException$: StaticErrorSchema;
71
79
  export declare var ValidationExceptionField$: StaticStructureSchema;
72
80
  export declare var WorkspaceInstance$: StaticStructureSchema;
73
81
  export declare var WorkspaceInstanceError$: StaticStructureSchema;
74
- export declare var WorkspacesInstancesServiceException$: StaticErrorSchema;
75
82
  export declare var AssociateVolume$: StaticOperationSchema;
76
83
  export declare var CreateVolume$: StaticOperationSchema;
77
84
  export declare var CreateWorkspaceInstance$: StaticOperationSchema;
@@ -1,16 +1,24 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var WorkspacesInstancesServiceException$: StaticErrorSchema;
6
8
  export declare var AccessDeniedException$: StaticErrorSchema;
9
+ export declare var ConflictException$: StaticErrorSchema;
10
+ export declare var InternalServerException$: StaticErrorSchema;
11
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
12
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
13
+ export declare var ThrottlingException$: StaticErrorSchema;
14
+ export declare var ValidationException$: StaticErrorSchema;
15
+ export declare const errorTypeRegistries: TypeRegistry[];
7
16
  export declare var AssociateVolumeRequest$: StaticStructureSchema;
8
17
  export declare var AssociateVolumeResponse$: StaticStructureSchema;
9
18
  export declare var BillingConfiguration$: StaticStructureSchema;
10
19
  export declare var BlockDeviceMappingRequest$: StaticStructureSchema;
11
20
  export declare var CapacityReservationSpecification$: StaticStructureSchema;
12
21
  export declare var CapacityReservationTarget$: StaticStructureSchema;
13
- export declare var ConflictException$: StaticErrorSchema;
14
22
  export declare var ConnectionTrackingSpecificationRequest$: StaticStructureSchema;
15
23
  export declare var CpuOptionsRequest$: StaticStructureSchema;
16
24
  export declare var CreateVolumeRequest$: StaticStructureSchema;
@@ -42,7 +50,6 @@ export declare var InstanceMetadataOptionsRequest$: StaticStructureSchema;
42
50
  export declare var InstanceNetworkInterfaceSpecification$: StaticStructureSchema;
43
51
  export declare var InstanceNetworkPerformanceOptionsRequest$: StaticStructureSchema;
44
52
  export declare var InstanceTypeInfo$: StaticStructureSchema;
45
- export declare var InternalServerException$: StaticErrorSchema;
46
53
  export declare var Ipv4PrefixSpecificationRequest$: StaticStructureSchema;
47
54
  export declare var Ipv6PrefixSpecificationRequest$: StaticStructureSchema;
48
55
  export declare var LicenseConfigurationRequest$: StaticStructureSchema;
@@ -59,23 +66,18 @@ export declare var Placement$: StaticStructureSchema;
59
66
  export declare var PrivateDnsNameOptionsRequest$: StaticStructureSchema;
60
67
  export declare var PrivateIpAddressSpecification$: StaticStructureSchema;
61
68
  export declare var Region$: StaticStructureSchema;
62
- export declare var ResourceNotFoundException$: StaticErrorSchema;
63
69
  export declare var RunInstancesMonitoringEnabled$: StaticStructureSchema;
64
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
65
70
  export declare var SpotMarketOptions$: StaticStructureSchema;
66
71
  export declare var SupportedInstanceConfiguration$: StaticStructureSchema;
67
72
  export declare var Tag$: StaticStructureSchema;
68
73
  export declare var TagResourceRequest$: StaticStructureSchema;
69
74
  export declare var TagResourceResponse$: StaticStructureSchema;
70
75
  export declare var TagSpecification$: StaticStructureSchema;
71
- export declare var ThrottlingException$: StaticErrorSchema;
72
76
  export declare var UntagResourceRequest$: StaticStructureSchema;
73
77
  export declare var UntagResourceResponse$: StaticStructureSchema;
74
- export declare var ValidationException$: StaticErrorSchema;
75
78
  export declare var ValidationExceptionField$: StaticStructureSchema;
76
79
  export declare var WorkspaceInstance$: StaticStructureSchema;
77
80
  export declare var WorkspaceInstanceError$: StaticStructureSchema;
78
- export declare var WorkspacesInstancesServiceException$: StaticErrorSchema;
79
81
  export declare var AssociateVolume$: StaticOperationSchema;
80
82
  export declare var CreateVolume$: StaticOperationSchema;
81
83
  export declare var CreateWorkspaceInstance$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-workspaces-instances",
3
3
  "description": "AWS SDK for JavaScript Workspaces Instances Client for Node.js, Browser and React Native",
4
- "version": "3.986.0",
4
+ "version": "3.988.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-workspaces-instances",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.986.0",
32
+ "@aws-sdk/util-endpoints": "3.988.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",