@aws-sdk/client-workspaces-web 3.934.0 → 3.935.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.
@@ -1,162 +1,16 @@
1
- import { WorkSpacesWebServiceException as __BaseException } from "./WorkSpacesWebServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "AccessDeniedException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
- }
13
- }
14
- export class ConflictException extends __BaseException {
15
- name = "ConflictException";
16
- $fault = "client";
17
- resourceId;
18
- resourceType;
19
- constructor(opts) {
20
- super({
21
- name: "ConflictException",
22
- $fault: "client",
23
- ...opts,
24
- });
25
- Object.setPrototypeOf(this, ConflictException.prototype);
26
- this.resourceId = opts.resourceId;
27
- this.resourceType = opts.resourceType;
28
- }
29
- }
30
- export class InternalServerException extends __BaseException {
31
- name = "InternalServerException";
32
- $fault = "server";
33
- retryAfterSeconds;
34
- constructor(opts) {
35
- super({
36
- name: "InternalServerException",
37
- $fault: "server",
38
- ...opts,
39
- });
40
- Object.setPrototypeOf(this, InternalServerException.prototype);
41
- this.retryAfterSeconds = opts.retryAfterSeconds;
42
- }
43
- }
44
- export class ResourceNotFoundException extends __BaseException {
45
- name = "ResourceNotFoundException";
46
- $fault = "client";
47
- resourceId;
48
- resourceType;
49
- constructor(opts) {
50
- super({
51
- name: "ResourceNotFoundException",
52
- $fault: "client",
53
- ...opts,
54
- });
55
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
56
- this.resourceId = opts.resourceId;
57
- this.resourceType = opts.resourceType;
58
- }
59
- }
60
- export class ThrottlingException extends __BaseException {
61
- name = "ThrottlingException";
62
- $fault = "client";
63
- serviceCode;
64
- quotaCode;
65
- retryAfterSeconds;
66
- constructor(opts) {
67
- super({
68
- name: "ThrottlingException",
69
- $fault: "client",
70
- ...opts,
71
- });
72
- Object.setPrototypeOf(this, ThrottlingException.prototype);
73
- this.serviceCode = opts.serviceCode;
74
- this.quotaCode = opts.quotaCode;
75
- this.retryAfterSeconds = opts.retryAfterSeconds;
76
- }
77
- }
78
1
  export const ValidationExceptionReason = {
79
2
  CANNOT_PARSE: "cannotParse",
80
3
  FIELD_VALIDATION_FAILED: "fieldValidationFailed",
81
4
  OTHER: "other",
82
5
  UNKNOWN_OPERATION: "unknownOperation",
83
6
  };
84
- export class ValidationException extends __BaseException {
85
- name = "ValidationException";
86
- $fault = "client";
87
- reason;
88
- fieldList;
89
- constructor(opts) {
90
- super({
91
- name: "ValidationException",
92
- $fault: "client",
93
- ...opts,
94
- });
95
- Object.setPrototypeOf(this, ValidationException.prototype);
96
- this.reason = opts.reason;
97
- this.fieldList = opts.fieldList;
98
- }
99
- }
100
7
  export const AuthenticationType = {
101
8
  IAM_IDENTITY_CENTER: "IAM_Identity_Center",
102
9
  STANDARD: "Standard",
103
10
  };
104
- export const Category = {
105
- CHAT: "Chat",
106
- CRIMINAL_ACTIVITY: "CriminalActivity",
107
- CULTS: "Cults",
108
- DOWNLOAD_SITES: "DownloadSites",
109
- GAMBLING: "Gambling",
110
- GAMES: "Games",
111
- GENERATIVE_AI: "GenerativeAI",
112
- HACKING: "Hacking",
113
- HATE_AND_INTOLERANCE: "HateAndIntolerance",
114
- ILLEGAL_DRUG: "IllegalDrug",
115
- ILLEGAL_SOFTWARE: "IllegalSoftware",
116
- IMAGE_SHARING: "ImageSharing",
117
- INSTANT_MESSAGING: "InstantMessaging",
118
- NUDITY: "Nudity",
119
- PARKED_DOMAINS: "ParkedDomains",
120
- PEER_TO_PEER: "PeerToPeer",
121
- PORNOGRAPHY: "Pornography",
122
- PROFESSIONAL_NETWORK: "ProfessionalNetwork",
123
- SCHOOL_CHEATING: "SchoolCheating",
124
- SELF_HARM: "SelfHarm",
125
- SEX_EDUCATION: "SexEducation",
126
- SOCIAL_NETWORKING: "SocialNetworking",
127
- STREAMING_MEDIA_AND_DOWNLOADS: "StreamingMediaAndDownloads",
128
- TASTELESS: "Tasteless",
129
- VIOLENCE: "Violence",
130
- WEAPONS: "Weapons",
131
- WEB_BASED_EMAIL: "WebBasedEmail",
132
- };
133
- export class ServiceQuotaExceededException extends __BaseException {
134
- name = "ServiceQuotaExceededException";
135
- $fault = "client";
136
- resourceId;
137
- resourceType;
138
- serviceCode;
139
- quotaCode;
140
- constructor(opts) {
141
- super({
142
- name: "ServiceQuotaExceededException",
143
- $fault: "client",
144
- ...opts,
145
- });
146
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
147
- this.resourceId = opts.resourceId;
148
- this.resourceType = opts.resourceType;
149
- this.serviceCode = opts.serviceCode;
150
- this.quotaCode = opts.quotaCode;
151
- }
152
- }
153
11
  export const RedactionPlaceHolderType = {
154
12
  CUSTOM_TEXT: "CustomText",
155
13
  };
156
- export const SessionStatus = {
157
- ACTIVE: "Active",
158
- TERMINATED: "Terminated",
159
- };
160
14
  export const IdentityProviderType = {
161
15
  Facebook: "Facebook",
162
16
  Google: "Google",
@@ -165,10 +19,6 @@ export const IdentityProviderType = {
165
19
  SAML: "SAML",
166
20
  SignInWithApple: "SignInWithApple",
167
21
  };
168
- export const SessionSortBy = {
169
- START_TIME_ASCENDING: "StartTimeAscending",
170
- START_TIME_DESCENDING: "StartTimeDescending",
171
- };
172
22
  export const BrowserType = {
173
23
  CHROME: "Chrome",
174
24
  };
@@ -185,47 +35,6 @@ export const PortalStatus = {
185
35
  export const RendererType = {
186
36
  APPSTREAM: "AppStream",
187
37
  };
188
- export const Event = {
189
- CONTENT_COPY_FROM_WEBSITE: "ContentCopyFromWebsite",
190
- CONTENT_PASTE_TO_WEBSITE: "ContentPasteToWebsite",
191
- CONTENT_TRANSFER_FROM_LOCAL_TO_REMOTE_CLIPBOARD: "ContentTransferFromLocalToRemoteClipboard",
192
- FILE_DOWNLOAD_FROM_SECURE_BROWSER_TO_REMOTE_DISK: "FileDownloadFromSecureBrowserToRemoteDisk",
193
- FILE_TRANSFER_FROM_LOCAL_TO_REMOTE_DISK: "FileTransferFromLocalToRemoteDisk",
194
- FILE_TRANSFER_FROM_REMOTE_TO_LOCAL_DISK: "FileTransferFromRemoteToLocalDisk",
195
- FILE_UPLOAD_FROM_REMOTE_DISK_TO_SECURE_BROWSER: "FileUploadFromRemoteDiskToSecureBrowser",
196
- PRINT_JOB_SUBMIT: "PrintJobSubmit",
197
- SESSION_CONNECT: "SessionConnect",
198
- SESSION_DISCONNECT: "SessionDisconnect",
199
- SESSION_END: "SessionEnd",
200
- SESSION_START: "SessionStart",
201
- TAB_CLOSE: "TabClose",
202
- TAB_OPEN: "TabOpen",
203
- URL_BLOCK_BY_CONTENT_FILTER: "UrlBlockByContentFilter",
204
- URL_LOAD: "UrlLoad",
205
- WEBSITE_INTERACT: "WebsiteInteract",
206
- };
207
- export const FolderStructure = {
208
- FLAT: "Flat",
209
- NESTED_BY_DATE: "NestedByDate",
210
- };
211
- export const LogFileFormat = {
212
- JSON: "Json",
213
- JSON_LINES: "JSONLines",
214
- };
215
- export class TooManyTagsException extends __BaseException {
216
- name = "TooManyTagsException";
217
- $fault = "client";
218
- resourceName;
219
- constructor(opts) {
220
- super({
221
- name: "TooManyTagsException",
222
- $fault: "client",
223
- ...opts,
224
- });
225
- Object.setPrototypeOf(this, TooManyTagsException.prototype);
226
- this.resourceName = opts.resourceName;
227
- }
228
- }
229
38
  export const EnabledType = {
230
39
  DISABLED: "Disabled",
231
40
  ENABLED: "Enabled",
@@ -461,7 +461,7 @@ const _vM = "visualMode";
461
461
  const _wCFP = "webContentFilteringPolicy";
462
462
  const n0 = "com.amazonaws.workspacesweb";
463
463
  import { TypeRegistry } from "@smithy/core/schema";
464
- import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, TooManyTagsException as __TooManyTagsException, ValidationException as __ValidationException, } from "../models/index";
464
+ import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, TooManyTagsException as __TooManyTagsException, ValidationException as __ValidationException, } from "../models/errors";
465
465
  import { WorkSpacesWebServiceException as __WorkSpacesWebServiceException } from "../models/WorkSpacesWebServiceException";
466
466
  export var BrowserPolicy = [0, n0, _BP, 8, 0];
467
467
  export var BuiltInPatternId = [0, n0, _BIPI, 8, 0];
@@ -16,5 +16,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
16
16
  export type { WorkSpacesWebExtensionConfiguration } from "./extensionConfiguration";
17
17
  export * from "./commands";
18
18
  export * from "./pagination";
19
- export * from "./models";
19
+ export * from "./models/enums";
20
+ export * from "./models/errors";
21
+ export type * from "./models/models_0";
20
22
  export { WorkSpacesWebServiceException } from "./models/WorkSpacesWebServiceException";
@@ -0,0 +1,112 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const Category: {
6
+ readonly CHAT: "Chat";
7
+ readonly CRIMINAL_ACTIVITY: "CriminalActivity";
8
+ readonly CULTS: "Cults";
9
+ readonly DOWNLOAD_SITES: "DownloadSites";
10
+ readonly GAMBLING: "Gambling";
11
+ readonly GAMES: "Games";
12
+ readonly GENERATIVE_AI: "GenerativeAI";
13
+ readonly HACKING: "Hacking";
14
+ readonly HATE_AND_INTOLERANCE: "HateAndIntolerance";
15
+ readonly ILLEGAL_DRUG: "IllegalDrug";
16
+ readonly ILLEGAL_SOFTWARE: "IllegalSoftware";
17
+ readonly IMAGE_SHARING: "ImageSharing";
18
+ readonly INSTANT_MESSAGING: "InstantMessaging";
19
+ readonly NUDITY: "Nudity";
20
+ readonly PARKED_DOMAINS: "ParkedDomains";
21
+ readonly PEER_TO_PEER: "PeerToPeer";
22
+ readonly PORNOGRAPHY: "Pornography";
23
+ readonly PROFESSIONAL_NETWORK: "ProfessionalNetwork";
24
+ readonly SCHOOL_CHEATING: "SchoolCheating";
25
+ readonly SELF_HARM: "SelfHarm";
26
+ readonly SEX_EDUCATION: "SexEducation";
27
+ readonly SOCIAL_NETWORKING: "SocialNetworking";
28
+ readonly STREAMING_MEDIA_AND_DOWNLOADS: "StreamingMediaAndDownloads";
29
+ readonly TASTELESS: "Tasteless";
30
+ readonly VIOLENCE: "Violence";
31
+ readonly WEAPONS: "Weapons";
32
+ readonly WEB_BASED_EMAIL: "WebBasedEmail";
33
+ };
34
+ /**
35
+ * @public
36
+ */
37
+ export type Category = (typeof Category)[keyof typeof Category];
38
+ /**
39
+ * @public
40
+ * @enum
41
+ */
42
+ export declare const SessionStatus: {
43
+ readonly ACTIVE: "Active";
44
+ readonly TERMINATED: "Terminated";
45
+ };
46
+ /**
47
+ * @public
48
+ */
49
+ export type SessionStatus = (typeof SessionStatus)[keyof typeof SessionStatus];
50
+ /**
51
+ * @public
52
+ * @enum
53
+ */
54
+ export declare const SessionSortBy: {
55
+ readonly START_TIME_ASCENDING: "StartTimeAscending";
56
+ readonly START_TIME_DESCENDING: "StartTimeDescending";
57
+ };
58
+ /**
59
+ * @public
60
+ */
61
+ export type SessionSortBy = (typeof SessionSortBy)[keyof typeof SessionSortBy];
62
+ /**
63
+ * @public
64
+ * @enum
65
+ */
66
+ export declare const Event: {
67
+ readonly CONTENT_COPY_FROM_WEBSITE: "ContentCopyFromWebsite";
68
+ readonly CONTENT_PASTE_TO_WEBSITE: "ContentPasteToWebsite";
69
+ readonly CONTENT_TRANSFER_FROM_LOCAL_TO_REMOTE_CLIPBOARD: "ContentTransferFromLocalToRemoteClipboard";
70
+ readonly FILE_DOWNLOAD_FROM_SECURE_BROWSER_TO_REMOTE_DISK: "FileDownloadFromSecureBrowserToRemoteDisk";
71
+ readonly FILE_TRANSFER_FROM_LOCAL_TO_REMOTE_DISK: "FileTransferFromLocalToRemoteDisk";
72
+ readonly FILE_TRANSFER_FROM_REMOTE_TO_LOCAL_DISK: "FileTransferFromRemoteToLocalDisk";
73
+ readonly FILE_UPLOAD_FROM_REMOTE_DISK_TO_SECURE_BROWSER: "FileUploadFromRemoteDiskToSecureBrowser";
74
+ readonly PRINT_JOB_SUBMIT: "PrintJobSubmit";
75
+ readonly SESSION_CONNECT: "SessionConnect";
76
+ readonly SESSION_DISCONNECT: "SessionDisconnect";
77
+ readonly SESSION_END: "SessionEnd";
78
+ readonly SESSION_START: "SessionStart";
79
+ readonly TAB_CLOSE: "TabClose";
80
+ readonly TAB_OPEN: "TabOpen";
81
+ readonly URL_BLOCK_BY_CONTENT_FILTER: "UrlBlockByContentFilter";
82
+ readonly URL_LOAD: "UrlLoad";
83
+ readonly WEBSITE_INTERACT: "WebsiteInteract";
84
+ };
85
+ /**
86
+ * @public
87
+ */
88
+ export type Event = (typeof Event)[keyof typeof Event];
89
+ /**
90
+ * @public
91
+ * @enum
92
+ */
93
+ export declare const FolderStructure: {
94
+ readonly FLAT: "Flat";
95
+ readonly NESTED_BY_DATE: "NestedByDate";
96
+ };
97
+ /**
98
+ * @public
99
+ */
100
+ export type FolderStructure = (typeof FolderStructure)[keyof typeof FolderStructure];
101
+ /**
102
+ * @public
103
+ * @enum
104
+ */
105
+ export declare const LogFileFormat: {
106
+ readonly JSON: "Json";
107
+ readonly JSON_LINES: "JSONLines";
108
+ };
109
+ /**
110
+ * @public
111
+ */
112
+ export type LogFileFormat = (typeof LogFileFormat)[keyof typeof LogFileFormat];
@@ -0,0 +1,174 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ValidationExceptionField, ValidationExceptionReason } from "./models_0";
3
+ import { WorkSpacesWebServiceException as __BaseException } from "./WorkSpacesWebServiceException";
4
+ /**
5
+ * <p>Access is denied.</p>
6
+ * @public
7
+ */
8
+ export declare class AccessDeniedException extends __BaseException {
9
+ readonly name: "AccessDeniedException";
10
+ readonly $fault: "client";
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
15
+ }
16
+ /**
17
+ * <p>There is a conflict.</p>
18
+ * @public
19
+ */
20
+ export declare class ConflictException extends __BaseException {
21
+ readonly name: "ConflictException";
22
+ readonly $fault: "client";
23
+ /**
24
+ * <p>Identifier of the resource affected.</p>
25
+ * @public
26
+ */
27
+ resourceId?: string | undefined;
28
+ /**
29
+ * <p>Type of the resource affected.</p>
30
+ * @public
31
+ */
32
+ resourceType?: string | undefined;
33
+ /**
34
+ * @internal
35
+ */
36
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
37
+ }
38
+ /**
39
+ * <p>There is an internal server error.</p>
40
+ * @public
41
+ */
42
+ export declare class InternalServerException extends __BaseException {
43
+ readonly name: "InternalServerException";
44
+ readonly $fault: "server";
45
+ /**
46
+ * <p>Advice to clients on when the call can be safely retried.</p>
47
+ * @public
48
+ */
49
+ retryAfterSeconds?: number | undefined;
50
+ /**
51
+ * @internal
52
+ */
53
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
54
+ }
55
+ /**
56
+ * <p>The resource cannot be found.</p>
57
+ * @public
58
+ */
59
+ export declare class ResourceNotFoundException extends __BaseException {
60
+ readonly name: "ResourceNotFoundException";
61
+ readonly $fault: "client";
62
+ /**
63
+ * <p>Hypothetical identifier of the resource affected.</p>
64
+ * @public
65
+ */
66
+ resourceId?: string | undefined;
67
+ /**
68
+ * <p>Hypothetical type of the resource affected.</p>
69
+ * @public
70
+ */
71
+ resourceType?: string | undefined;
72
+ /**
73
+ * @internal
74
+ */
75
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
76
+ }
77
+ /**
78
+ * <p>There is a throttling error.</p>
79
+ * @public
80
+ */
81
+ export declare class ThrottlingException extends __BaseException {
82
+ readonly name: "ThrottlingException";
83
+ readonly $fault: "client";
84
+ /**
85
+ * <p>The originating service.</p>
86
+ * @public
87
+ */
88
+ serviceCode?: string | undefined;
89
+ /**
90
+ * <p>The originating quota.</p>
91
+ * @public
92
+ */
93
+ quotaCode?: string | undefined;
94
+ /**
95
+ * <p>Advice to clients on when the call can be safely retried.</p>
96
+ * @public
97
+ */
98
+ retryAfterSeconds?: number | undefined;
99
+ /**
100
+ * @internal
101
+ */
102
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
103
+ }
104
+ /**
105
+ * <p>There is a validation error.</p>
106
+ * @public
107
+ */
108
+ export declare class ValidationException extends __BaseException {
109
+ readonly name: "ValidationException";
110
+ readonly $fault: "client";
111
+ /**
112
+ * <p>Reason the request failed validation</p>
113
+ * @public
114
+ */
115
+ reason?: ValidationExceptionReason | undefined;
116
+ /**
117
+ * <p>The field that caused the error.</p>
118
+ * @public
119
+ */
120
+ fieldList?: ValidationExceptionField[] | undefined;
121
+ /**
122
+ * @internal
123
+ */
124
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
125
+ }
126
+ /**
127
+ * <p>The service quota has been exceeded.</p>
128
+ * @public
129
+ */
130
+ export declare class ServiceQuotaExceededException extends __BaseException {
131
+ readonly name: "ServiceQuotaExceededException";
132
+ readonly $fault: "client";
133
+ /**
134
+ * <p>Identifier of the resource affected.</p>
135
+ * @public
136
+ */
137
+ resourceId?: string | undefined;
138
+ /**
139
+ * <p> Type of the resource affected.</p>
140
+ * @public
141
+ */
142
+ resourceType?: string | undefined;
143
+ /**
144
+ * <p>The originating service.</p>
145
+ * @public
146
+ */
147
+ serviceCode?: string | undefined;
148
+ /**
149
+ * <p>The originating quota.</p>
150
+ * @public
151
+ */
152
+ quotaCode?: string | undefined;
153
+ /**
154
+ * @internal
155
+ */
156
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
157
+ }
158
+ /**
159
+ * <p>There are too many tags.</p>
160
+ * @public
161
+ */
162
+ export declare class TooManyTagsException extends __BaseException {
163
+ readonly name: "TooManyTagsException";
164
+ readonly $fault: "client";
165
+ /**
166
+ * <p>Name of the resource affected.</p>
167
+ * @public
168
+ */
169
+ resourceName?: string | undefined;
170
+ /**
171
+ * @internal
172
+ */
173
+ constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
174
+ }