@aws-sdk/client-workspaces-web 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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkSpacesWebServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class WorkSpacesWebServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, WorkSpacesWebServiceException.prototype);
10
+ }
11
+ }
12
+ exports.WorkSpacesWebServiceException = WorkSpacesWebServiceException;
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TooManyTagsException = exports.ServiceQuotaExceededException = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const WorkSpacesWebServiceException_1 = require("./WorkSpacesWebServiceException");
5
+ class AccessDeniedException extends WorkSpacesWebServiceException_1.WorkSpacesWebServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class ConflictException extends WorkSpacesWebServiceException_1.WorkSpacesWebServiceException {
19
+ name = "ConflictException";
20
+ $fault = "client";
21
+ resourceId;
22
+ resourceType;
23
+ constructor(opts) {
24
+ super({
25
+ name: "ConflictException",
26
+ $fault: "client",
27
+ ...opts,
28
+ });
29
+ Object.setPrototypeOf(this, ConflictException.prototype);
30
+ this.resourceId = opts.resourceId;
31
+ this.resourceType = opts.resourceType;
32
+ }
33
+ }
34
+ exports.ConflictException = ConflictException;
35
+ class InternalServerException extends WorkSpacesWebServiceException_1.WorkSpacesWebServiceException {
36
+ name = "InternalServerException";
37
+ $fault = "server";
38
+ retryAfterSeconds;
39
+ constructor(opts) {
40
+ super({
41
+ name: "InternalServerException",
42
+ $fault: "server",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, InternalServerException.prototype);
46
+ this.retryAfterSeconds = opts.retryAfterSeconds;
47
+ }
48
+ }
49
+ exports.InternalServerException = InternalServerException;
50
+ class ResourceNotFoundException extends WorkSpacesWebServiceException_1.WorkSpacesWebServiceException {
51
+ name = "ResourceNotFoundException";
52
+ $fault = "client";
53
+ resourceId;
54
+ resourceType;
55
+ constructor(opts) {
56
+ super({
57
+ name: "ResourceNotFoundException",
58
+ $fault: "client",
59
+ ...opts,
60
+ });
61
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
62
+ this.resourceId = opts.resourceId;
63
+ this.resourceType = opts.resourceType;
64
+ }
65
+ }
66
+ exports.ResourceNotFoundException = ResourceNotFoundException;
67
+ class ThrottlingException extends WorkSpacesWebServiceException_1.WorkSpacesWebServiceException {
68
+ name = "ThrottlingException";
69
+ $fault = "client";
70
+ serviceCode;
71
+ quotaCode;
72
+ retryAfterSeconds;
73
+ constructor(opts) {
74
+ super({
75
+ name: "ThrottlingException",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
80
+ this.serviceCode = opts.serviceCode;
81
+ this.quotaCode = opts.quotaCode;
82
+ this.retryAfterSeconds = opts.retryAfterSeconds;
83
+ }
84
+ }
85
+ exports.ThrottlingException = ThrottlingException;
86
+ class ValidationException extends WorkSpacesWebServiceException_1.WorkSpacesWebServiceException {
87
+ name = "ValidationException";
88
+ $fault = "client";
89
+ reason;
90
+ fieldList;
91
+ constructor(opts) {
92
+ super({
93
+ name: "ValidationException",
94
+ $fault: "client",
95
+ ...opts,
96
+ });
97
+ Object.setPrototypeOf(this, ValidationException.prototype);
98
+ this.reason = opts.reason;
99
+ this.fieldList = opts.fieldList;
100
+ }
101
+ }
102
+ exports.ValidationException = ValidationException;
103
+ class ServiceQuotaExceededException extends WorkSpacesWebServiceException_1.WorkSpacesWebServiceException {
104
+ name = "ServiceQuotaExceededException";
105
+ $fault = "client";
106
+ resourceId;
107
+ resourceType;
108
+ serviceCode;
109
+ quotaCode;
110
+ constructor(opts) {
111
+ super({
112
+ name: "ServiceQuotaExceededException",
113
+ $fault: "client",
114
+ ...opts,
115
+ });
116
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
117
+ this.resourceId = opts.resourceId;
118
+ this.resourceType = opts.resourceType;
119
+ this.serviceCode = opts.serviceCode;
120
+ this.quotaCode = opts.quotaCode;
121
+ }
122
+ }
123
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
124
+ class TooManyTagsException extends WorkSpacesWebServiceException_1.WorkSpacesWebServiceException {
125
+ name = "TooManyTagsException";
126
+ $fault = "client";
127
+ resourceName;
128
+ constructor(opts) {
129
+ super({
130
+ name: "TooManyTagsException",
131
+ $fault: "client",
132
+ ...opts,
133
+ });
134
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
135
+ this.resourceName = opts.resourceName;
136
+ }
137
+ }
138
+ exports.TooManyTagsException = TooManyTagsException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2020-07-08",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.workspacesweb",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2020-07-08",
33
35
  serviceTarget: "AWSErmineControlPlaneService",
34
36
  },