@aws-sdk/client-workspaces-web 3.52.0 → 3.53.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-workspaces-web
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkSpacesWebServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./WorkSpacesWeb"), exports);
5
6
  tslib_1.__exportStar(require("./WorkSpacesWebClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ var WorkSpacesWebServiceException_1 = require("./models/WorkSpacesWebServiceException");
11
+ Object.defineProperty(exports, "WorkSpacesWebServiceException", { enumerable: true, get: function () { return WorkSpacesWebServiceException_1.WorkSpacesWebServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkSpacesWebServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class WorkSpacesWebServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, WorkSpacesWebServiceException.prototype);
9
+ }
10
+ }
11
+ exports.WorkSpacesWebServiceException = WorkSpacesWebServiceException;
@@ -1,8 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IdentityProvider = exports.GetIdentityProviderRequest = exports.GetBrowserSettingsResponse = exports.BrowserSettings = exports.GetBrowserSettingsRequest = exports.DisassociateUserSettingsResponse = exports.DisassociateUserSettingsRequest = exports.DisassociateTrustStoreResponse = exports.DisassociateTrustStoreRequest = exports.DisassociateNetworkSettingsResponse = exports.DisassociateNetworkSettingsRequest = exports.DisassociateBrowserSettingsResponse = exports.DisassociateBrowserSettingsRequest = exports.DeleteUserSettingsResponse = exports.DeleteUserSettingsRequest = exports.DeleteTrustStoreResponse = exports.DeleteTrustStoreRequest = exports.DeletePortalResponse = exports.DeletePortalRequest = exports.DeleteNetworkSettingsResponse = exports.DeleteNetworkSettingsRequest = exports.DeleteIdentityProviderResponse = exports.DeleteIdentityProviderRequest = exports.DeleteBrowserSettingsResponse = exports.DeleteBrowserSettingsRequest = exports.CreateUserSettingsResponse = exports.CreateUserSettingsRequest = exports.EnabledType = exports.CreateTrustStoreResponse = exports.CreateTrustStoreRequest = exports.CreatePortalResponse = exports.CreatePortalRequest = exports.CreateNetworkSettingsResponse = exports.CreateNetworkSettingsRequest = exports.CreateIdentityProviderResponse = exports.CreateIdentityProviderRequest = exports.IdentityProviderType = exports.CreateBrowserSettingsResponse = exports.CreateBrowserSettingsRequest = exports.Tag = exports.AssociateUserSettingsResponse = exports.AssociateUserSettingsRequest = exports.AssociateTrustStoreResponse = exports.AssociateTrustStoreRequest = exports.AssociateNetworkSettingsResponse = exports.AssociateNetworkSettingsRequest = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.AssociateBrowserSettingsResponse = exports.AssociateBrowserSettingsRequest = void 0;
4
- exports.UpdateBrowserSettingsResponse = exports.UpdateBrowserSettingsRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.ListUserSettingsResponse = exports.UserSettingsSummary = exports.ListUserSettingsRequest = exports.ListTrustStoresResponse = exports.TrustStoreSummary = exports.ListTrustStoresRequest = exports.ListTrustStoreCertificatesResponse = exports.CertificateSummary = exports.ListTrustStoreCertificatesRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListPortalsResponse = exports.PortalSummary = exports.ListPortalsRequest = exports.ListNetworkSettingsResponse = exports.NetworkSettingsSummary = exports.ListNetworkSettingsRequest = exports.ListIdentityProvidersResponse = exports.IdentityProviderSummary = exports.ListIdentityProvidersRequest = exports.ListBrowserSettingsResponse = exports.BrowserSettingsSummary = exports.ListBrowserSettingsRequest = exports.GetUserSettingsResponse = exports.UserSettings = exports.GetUserSettingsRequest = exports.GetTrustStoreCertificateResponse = exports.Certificate = exports.GetTrustStoreCertificateRequest = exports.GetTrustStoreResponse = exports.TrustStore = exports.GetTrustStoreRequest = exports.GetPortalServiceProviderMetadataResponse = exports.GetPortalServiceProviderMetadataRequest = exports.GetPortalResponse = exports.Portal = exports.RendererType = exports.PortalStatus = exports.BrowserType = exports.GetPortalRequest = exports.GetNetworkSettingsResponse = exports.NetworkSettings = exports.GetNetworkSettingsRequest = exports.GetIdentityProviderResponse = void 0;
5
- exports.UpdateUserSettingsResponse = exports.UpdateUserSettingsRequest = exports.UpdateTrustStoreResponse = exports.UpdateTrustStoreRequest = exports.UpdatePortalResponse = exports.UpdatePortalRequest = exports.UpdateNetworkSettingsResponse = exports.UpdateNetworkSettingsRequest = exports.UpdateIdentityProviderResponse = exports.UpdateIdentityProviderRequest = void 0;
3
+ exports.DisassociateTrustStoreResponse = exports.DisassociateTrustStoreRequest = exports.DisassociateNetworkSettingsResponse = exports.DisassociateNetworkSettingsRequest = exports.DisassociateBrowserSettingsResponse = exports.DisassociateBrowserSettingsRequest = exports.DeleteUserSettingsResponse = exports.DeleteUserSettingsRequest = exports.DeleteTrustStoreResponse = exports.DeleteTrustStoreRequest = exports.DeletePortalResponse = exports.DeletePortalRequest = exports.DeleteNetworkSettingsResponse = exports.DeleteNetworkSettingsRequest = exports.DeleteIdentityProviderResponse = exports.DeleteIdentityProviderRequest = exports.DeleteBrowserSettingsResponse = exports.DeleteBrowserSettingsRequest = exports.CreateUserSettingsResponse = exports.CreateUserSettingsRequest = exports.EnabledType = exports.CreateTrustStoreResponse = exports.CreateTrustStoreRequest = exports.CreatePortalResponse = exports.CreatePortalRequest = exports.CreateNetworkSettingsResponse = exports.CreateNetworkSettingsRequest = exports.CreateIdentityProviderResponse = exports.CreateIdentityProviderRequest = exports.IdentityProviderType = exports.ServiceQuotaExceededException = exports.CreateBrowserSettingsResponse = exports.CreateBrowserSettingsRequest = exports.Tag = exports.AssociateUserSettingsResponse = exports.AssociateUserSettingsRequest = exports.AssociateTrustStoreResponse = exports.AssociateTrustStoreRequest = exports.AssociateNetworkSettingsResponse = exports.AssociateNetworkSettingsRequest = exports.ValidationException = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AssociateBrowserSettingsResponse = exports.AssociateBrowserSettingsRequest = exports.AccessDeniedException = void 0;
4
+ exports.UserSettingsSummary = exports.ListUserSettingsRequest = exports.ListTrustStoresResponse = exports.TrustStoreSummary = exports.ListTrustStoresRequest = exports.ListTrustStoreCertificatesResponse = exports.CertificateSummary = exports.ListTrustStoreCertificatesRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListPortalsResponse = exports.PortalSummary = exports.ListPortalsRequest = exports.ListNetworkSettingsResponse = exports.NetworkSettingsSummary = exports.ListNetworkSettingsRequest = exports.ListIdentityProvidersResponse = exports.IdentityProviderSummary = exports.ListIdentityProvidersRequest = exports.ListBrowserSettingsResponse = exports.BrowserSettingsSummary = exports.ListBrowserSettingsRequest = exports.GetUserSettingsResponse = exports.UserSettings = exports.GetUserSettingsRequest = exports.GetTrustStoreCertificateResponse = exports.Certificate = exports.GetTrustStoreCertificateRequest = exports.GetTrustStoreResponse = exports.TrustStore = exports.GetTrustStoreRequest = exports.GetPortalServiceProviderMetadataResponse = exports.GetPortalServiceProviderMetadataRequest = exports.GetPortalResponse = exports.Portal = exports.RendererType = exports.PortalStatus = exports.BrowserType = exports.GetPortalRequest = exports.GetNetworkSettingsResponse = exports.NetworkSettings = exports.GetNetworkSettingsRequest = exports.GetIdentityProviderResponse = exports.IdentityProvider = exports.GetIdentityProviderRequest = exports.GetBrowserSettingsResponse = exports.BrowserSettings = exports.GetBrowserSettingsRequest = exports.DisassociateUserSettingsResponse = exports.DisassociateUserSettingsRequest = void 0;
5
+ exports.UpdateUserSettingsResponse = exports.UpdateUserSettingsRequest = exports.UpdateTrustStoreResponse = exports.UpdateTrustStoreRequest = exports.UpdatePortalResponse = exports.UpdatePortalRequest = exports.UpdateNetworkSettingsResponse = exports.UpdateNetworkSettingsRequest = exports.UpdateIdentityProviderResponse = exports.UpdateIdentityProviderRequest = exports.UpdateBrowserSettingsResponse = exports.UpdateBrowserSettingsRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TooManyTagsException = exports.TagResourceResponse = exports.TagResourceRequest = exports.ListUserSettingsResponse = void 0;
6
+ const WorkSpacesWebServiceException_1 = require("./WorkSpacesWebServiceException");
7
+ class AccessDeniedException extends WorkSpacesWebServiceException_1.WorkSpacesWebServiceException {
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ this.name = "AccessDeniedException";
15
+ this.$fault = "client";
16
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
17
+ }
18
+ }
19
+ exports.AccessDeniedException = AccessDeniedException;
6
20
  var AssociateBrowserSettingsRequest;
7
21
  (function (AssociateBrowserSettingsRequest) {
8
22
  AssociateBrowserSettingsRequest.filterSensitiveLog = (obj) => ({
@@ -15,6 +29,66 @@ var AssociateBrowserSettingsResponse;
15
29
  ...obj,
16
30
  });
17
31
  })(AssociateBrowserSettingsResponse = exports.AssociateBrowserSettingsResponse || (exports.AssociateBrowserSettingsResponse = {}));
32
+ class ConflictException extends WorkSpacesWebServiceException_1.WorkSpacesWebServiceException {
33
+ constructor(opts) {
34
+ super({
35
+ name: "ConflictException",
36
+ $fault: "client",
37
+ ...opts,
38
+ });
39
+ this.name = "ConflictException";
40
+ this.$fault = "client";
41
+ Object.setPrototypeOf(this, ConflictException.prototype);
42
+ this.resourceId = opts.resourceId;
43
+ this.resourceType = opts.resourceType;
44
+ }
45
+ }
46
+ exports.ConflictException = ConflictException;
47
+ class InternalServerException extends WorkSpacesWebServiceException_1.WorkSpacesWebServiceException {
48
+ constructor(opts) {
49
+ super({
50
+ name: "InternalServerException",
51
+ $fault: "server",
52
+ ...opts,
53
+ });
54
+ this.name = "InternalServerException";
55
+ this.$fault = "server";
56
+ Object.setPrototypeOf(this, InternalServerException.prototype);
57
+ this.retryAfterSeconds = opts.retryAfterSeconds;
58
+ }
59
+ }
60
+ exports.InternalServerException = InternalServerException;
61
+ class ResourceNotFoundException extends WorkSpacesWebServiceException_1.WorkSpacesWebServiceException {
62
+ constructor(opts) {
63
+ super({
64
+ name: "ResourceNotFoundException",
65
+ $fault: "client",
66
+ ...opts,
67
+ });
68
+ this.name = "ResourceNotFoundException";
69
+ this.$fault = "client";
70
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
71
+ this.resourceId = opts.resourceId;
72
+ this.resourceType = opts.resourceType;
73
+ }
74
+ }
75
+ exports.ResourceNotFoundException = ResourceNotFoundException;
76
+ class ThrottlingException extends WorkSpacesWebServiceException_1.WorkSpacesWebServiceException {
77
+ constructor(opts) {
78
+ super({
79
+ name: "ThrottlingException",
80
+ $fault: "client",
81
+ ...opts,
82
+ });
83
+ this.name = "ThrottlingException";
84
+ this.$fault = "client";
85
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
86
+ this.serviceCode = opts.serviceCode;
87
+ this.quotaCode = opts.quotaCode;
88
+ this.retryAfterSeconds = opts.retryAfterSeconds;
89
+ }
90
+ }
91
+ exports.ThrottlingException = ThrottlingException;
18
92
  var ValidationExceptionField;
19
93
  (function (ValidationExceptionField) {
20
94
  ValidationExceptionField.filterSensitiveLog = (obj) => ({
@@ -28,6 +102,21 @@ var ValidationExceptionReason;
28
102
  ValidationExceptionReason["OTHER"] = "other";
29
103
  ValidationExceptionReason["UNKNOWN_OPERATION"] = "unknownOperation";
30
104
  })(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
105
+ class ValidationException extends WorkSpacesWebServiceException_1.WorkSpacesWebServiceException {
106
+ constructor(opts) {
107
+ super({
108
+ name: "ValidationException",
109
+ $fault: "client",
110
+ ...opts,
111
+ });
112
+ this.name = "ValidationException";
113
+ this.$fault = "client";
114
+ Object.setPrototypeOf(this, ValidationException.prototype);
115
+ this.reason = opts.reason;
116
+ this.fieldList = opts.fieldList;
117
+ }
118
+ }
119
+ exports.ValidationException = ValidationException;
31
120
  var AssociateNetworkSettingsRequest;
32
121
  (function (AssociateNetworkSettingsRequest) {
33
122
  AssociateNetworkSettingsRequest.filterSensitiveLog = (obj) => ({
@@ -82,6 +171,23 @@ var CreateBrowserSettingsResponse;
82
171
  ...obj,
83
172
  });
84
173
  })(CreateBrowserSettingsResponse = exports.CreateBrowserSettingsResponse || (exports.CreateBrowserSettingsResponse = {}));
174
+ class ServiceQuotaExceededException extends WorkSpacesWebServiceException_1.WorkSpacesWebServiceException {
175
+ constructor(opts) {
176
+ super({
177
+ name: "ServiceQuotaExceededException",
178
+ $fault: "client",
179
+ ...opts,
180
+ });
181
+ this.name = "ServiceQuotaExceededException";
182
+ this.$fault = "client";
183
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
184
+ this.resourceId = opts.resourceId;
185
+ this.resourceType = opts.resourceType;
186
+ this.serviceCode = opts.serviceCode;
187
+ this.quotaCode = opts.quotaCode;
188
+ }
189
+ }
190
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
85
191
  var IdentityProviderType;
86
192
  (function (IdentityProviderType) {
87
193
  IdentityProviderType["Facebook"] = "Facebook";
@@ -578,6 +684,20 @@ var TagResourceResponse;
578
684
  ...obj,
579
685
  });
580
686
  })(TagResourceResponse = exports.TagResourceResponse || (exports.TagResourceResponse = {}));
687
+ class TooManyTagsException extends WorkSpacesWebServiceException_1.WorkSpacesWebServiceException {
688
+ constructor(opts) {
689
+ super({
690
+ name: "TooManyTagsException",
691
+ $fault: "client",
692
+ ...opts,
693
+ });
694
+ this.name = "TooManyTagsException";
695
+ this.$fault = "client";
696
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
697
+ this.resourceName = opts.resourceName;
698
+ }
699
+ }
700
+ exports.TooManyTagsException = TooManyTagsException;
581
701
  var UntagResourceRequest;
582
702
  (function (UntagResourceRequest) {
583
703
  UntagResourceRequest.filterSensitiveLog = (obj) => ({