@aws-sdk/client-glue 3.598.0 → 3.599.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 (60) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/index.js +260 -0
  3. package/dist-es/Glue.js +10 -0
  4. package/dist-es/commands/CreateUsageProfileCommand.js +24 -0
  5. package/dist-es/commands/DeleteUsageProfileCommand.js +24 -0
  6. package/dist-es/commands/GetUsageProfileCommand.js +24 -0
  7. package/dist-es/commands/ListUsageProfilesCommand.js +24 -0
  8. package/dist-es/commands/UpdateUsageProfileCommand.js +24 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/models_1.js +13 -0
  11. package/dist-es/pagination/ListUsageProfilesPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/protocols/Aws_json1_1.js +142 -1
  14. package/dist-types/Glue.d.ts +36 -0
  15. package/dist-types/GlueClient.d.ts +7 -2
  16. package/dist-types/commands/BatchGetJobsCommand.d.ts +1 -0
  17. package/dist-types/commands/BatchGetWorkflowsCommand.d.ts +2 -0
  18. package/dist-types/commands/CreateSessionCommand.d.ts +1 -0
  19. package/dist-types/commands/CreateUsageProfileCommand.d.ts +104 -0
  20. package/dist-types/commands/DeleteUsageProfileCommand.d.ts +70 -0
  21. package/dist-types/commands/GetJobCommand.d.ts +1 -0
  22. package/dist-types/commands/GetJobRunCommand.d.ts +2 -1
  23. package/dist-types/commands/GetJobRunsCommand.d.ts +1 -0
  24. package/dist-types/commands/GetJobsCommand.d.ts +1 -0
  25. package/dist-types/commands/GetRegistryCommand.d.ts +1 -1
  26. package/dist-types/commands/GetResourcePoliciesCommand.d.ts +1 -1
  27. package/dist-types/commands/GetResourcePolicyCommand.d.ts +1 -1
  28. package/dist-types/commands/GetSessionCommand.d.ts +1 -0
  29. package/dist-types/commands/GetUsageProfileCommand.d.ts +100 -0
  30. package/dist-types/commands/GetWorkflowCommand.d.ts +2 -0
  31. package/dist-types/commands/GetWorkflowRunCommand.d.ts +2 -1
  32. package/dist-types/commands/GetWorkflowRunsCommand.d.ts +1 -0
  33. package/dist-types/commands/ListSessionsCommand.d.ts +1 -0
  34. package/dist-types/commands/ListUsageProfilesCommand.d.ts +81 -0
  35. package/dist-types/commands/UpdateUsageProfileCommand.d.ts +101 -0
  36. package/dist-types/commands/index.d.ts +5 -0
  37. package/dist-types/models/models_0.d.ts +5 -0
  38. package/dist-types/models/models_1.d.ts +114 -139
  39. package/dist-types/models/models_2.d.ts +271 -1
  40. package/dist-types/pagination/ListUsageProfilesPaginator.d.ts +7 -0
  41. package/dist-types/pagination/index.d.ts +1 -0
  42. package/dist-types/protocols/Aws_json1_1.d.ts +45 -0
  43. package/dist-types/ts3.4/Glue.d.ts +86 -0
  44. package/dist-types/ts3.4/GlueClient.d.ts +30 -0
  45. package/dist-types/ts3.4/commands/CreateUsageProfileCommand.d.ts +40 -0
  46. package/dist-types/ts3.4/commands/DeleteUsageProfileCommand.d.ts +40 -0
  47. package/dist-types/ts3.4/commands/GetRegistryCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/GetResourcePoliciesCommand.d.ts +1 -1
  49. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +1 -1
  50. package/dist-types/ts3.4/commands/GetUsageProfileCommand.d.ts +39 -0
  51. package/dist-types/ts3.4/commands/ListUsageProfilesCommand.d.ts +40 -0
  52. package/dist-types/ts3.4/commands/UpdateUsageProfileCommand.d.ts +40 -0
  53. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  54. package/dist-types/ts3.4/models/models_0.d.ts +1 -0
  55. package/dist-types/ts3.4/models/models_1.d.ts +32 -34
  56. package/dist-types/ts3.4/models/models_2.d.ts +68 -0
  57. package/dist-types/ts3.4/pagination/ListUsageProfilesPaginator.d.ts +11 -0
  58. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  59. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
  60. package/package.json +1 -1
package/dist-es/Glue.js CHANGED
@@ -41,6 +41,7 @@ import { CreateSessionCommand, } from "./commands/CreateSessionCommand";
41
41
  import { CreateTableCommand } from "./commands/CreateTableCommand";
42
42
  import { CreateTableOptimizerCommand, } from "./commands/CreateTableOptimizerCommand";
43
43
  import { CreateTriggerCommand, } from "./commands/CreateTriggerCommand";
44
+ import { CreateUsageProfileCommand, } from "./commands/CreateUsageProfileCommand";
44
45
  import { CreateUserDefinedFunctionCommand, } from "./commands/CreateUserDefinedFunctionCommand";
45
46
  import { CreateWorkflowCommand, } from "./commands/CreateWorkflowCommand";
46
47
  import { DeleteBlueprintCommand, } from "./commands/DeleteBlueprintCommand";
@@ -67,6 +68,7 @@ import { DeleteTableCommand } from "./commands/DeleteTableCommand";
67
68
  import { DeleteTableOptimizerCommand, } from "./commands/DeleteTableOptimizerCommand";
68
69
  import { DeleteTableVersionCommand, } from "./commands/DeleteTableVersionCommand";
69
70
  import { DeleteTriggerCommand, } from "./commands/DeleteTriggerCommand";
71
+ import { DeleteUsageProfileCommand, } from "./commands/DeleteUsageProfileCommand";
70
72
  import { DeleteUserDefinedFunctionCommand, } from "./commands/DeleteUserDefinedFunctionCommand";
71
73
  import { DeleteWorkflowCommand, } from "./commands/DeleteWorkflowCommand";
72
74
  import { GetBlueprintCommand, } from "./commands/GetBlueprintCommand";
@@ -131,6 +133,7 @@ import { GetTriggersCommand } from "./commands/GetTriggersCommand";
131
133
  import { GetUnfilteredPartitionMetadataCommand, } from "./commands/GetUnfilteredPartitionMetadataCommand";
132
134
  import { GetUnfilteredPartitionsMetadataCommand, } from "./commands/GetUnfilteredPartitionsMetadataCommand";
133
135
  import { GetUnfilteredTableMetadataCommand, } from "./commands/GetUnfilteredTableMetadataCommand";
136
+ import { GetUsageProfileCommand, } from "./commands/GetUsageProfileCommand";
134
137
  import { GetUserDefinedFunctionCommand, } from "./commands/GetUserDefinedFunctionCommand";
135
138
  import { GetUserDefinedFunctionsCommand, } from "./commands/GetUserDefinedFunctionsCommand";
136
139
  import { GetWorkflowCommand } from "./commands/GetWorkflowCommand";
@@ -157,6 +160,7 @@ import { ListSessionsCommand, } from "./commands/ListSessionsCommand";
157
160
  import { ListStatementsCommand, } from "./commands/ListStatementsCommand";
158
161
  import { ListTableOptimizerRunsCommand, } from "./commands/ListTableOptimizerRunsCommand";
159
162
  import { ListTriggersCommand, } from "./commands/ListTriggersCommand";
163
+ import { ListUsageProfilesCommand, } from "./commands/ListUsageProfilesCommand";
160
164
  import { ListWorkflowsCommand, } from "./commands/ListWorkflowsCommand";
161
165
  import { PutDataCatalogEncryptionSettingsCommand, } from "./commands/PutDataCatalogEncryptionSettingsCommand";
162
166
  import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
@@ -210,6 +214,7 @@ import { UpdateSourceControlFromJobCommand, } from "./commands/UpdateSourceContr
210
214
  import { UpdateTableCommand } from "./commands/UpdateTableCommand";
211
215
  import { UpdateTableOptimizerCommand, } from "./commands/UpdateTableOptimizerCommand";
212
216
  import { UpdateTriggerCommand, } from "./commands/UpdateTriggerCommand";
217
+ import { UpdateUsageProfileCommand, } from "./commands/UpdateUsageProfileCommand";
213
218
  import { UpdateUserDefinedFunctionCommand, } from "./commands/UpdateUserDefinedFunctionCommand";
214
219
  import { UpdateWorkflowCommand, } from "./commands/UpdateWorkflowCommand";
215
220
  import { GlueClient } from "./GlueClient";
@@ -256,6 +261,7 @@ const commands = {
256
261
  CreateTableCommand,
257
262
  CreateTableOptimizerCommand,
258
263
  CreateTriggerCommand,
264
+ CreateUsageProfileCommand,
259
265
  CreateUserDefinedFunctionCommand,
260
266
  CreateWorkflowCommand,
261
267
  DeleteBlueprintCommand,
@@ -282,6 +288,7 @@ const commands = {
282
288
  DeleteTableOptimizerCommand,
283
289
  DeleteTableVersionCommand,
284
290
  DeleteTriggerCommand,
291
+ DeleteUsageProfileCommand,
285
292
  DeleteUserDefinedFunctionCommand,
286
293
  DeleteWorkflowCommand,
287
294
  GetBlueprintCommand,
@@ -346,6 +353,7 @@ const commands = {
346
353
  GetUnfilteredPartitionMetadataCommand,
347
354
  GetUnfilteredPartitionsMetadataCommand,
348
355
  GetUnfilteredTableMetadataCommand,
356
+ GetUsageProfileCommand,
349
357
  GetUserDefinedFunctionCommand,
350
358
  GetUserDefinedFunctionsCommand,
351
359
  GetWorkflowCommand,
@@ -372,6 +380,7 @@ const commands = {
372
380
  ListStatementsCommand,
373
381
  ListTableOptimizerRunsCommand,
374
382
  ListTriggersCommand,
383
+ ListUsageProfilesCommand,
375
384
  ListWorkflowsCommand,
376
385
  PutDataCatalogEncryptionSettingsCommand,
377
386
  PutResourcePolicyCommand,
@@ -425,6 +434,7 @@ const commands = {
425
434
  UpdateTableCommand,
426
435
  UpdateTableOptimizerCommand,
427
436
  UpdateTriggerCommand,
437
+ UpdateUsageProfileCommand,
428
438
  UpdateUserDefinedFunctionCommand,
429
439
  UpdateWorkflowCommand,
430
440
  };
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CreateUsageProfileCommand, se_CreateUsageProfileCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class CreateUsageProfileCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSGlue", "CreateUsageProfile", {})
19
+ .n("GlueClient", "CreateUsageProfileCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateUsageProfileCommand)
22
+ .de(de_CreateUsageProfileCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteUsageProfileCommand, se_DeleteUsageProfileCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class DeleteUsageProfileCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSGlue", "DeleteUsageProfile", {})
19
+ .n("GlueClient", "DeleteUsageProfileCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteUsageProfileCommand)
22
+ .de(de_DeleteUsageProfileCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetUsageProfileCommand, se_GetUsageProfileCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class GetUsageProfileCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSGlue", "GetUsageProfile", {})
19
+ .n("GlueClient", "GetUsageProfileCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetUsageProfileCommand)
22
+ .de(de_GetUsageProfileCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListUsageProfilesCommand, se_ListUsageProfilesCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListUsageProfilesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSGlue", "ListUsageProfiles", {})
19
+ .n("GlueClient", "ListUsageProfilesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListUsageProfilesCommand)
22
+ .de(de_ListUsageProfilesCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateUsageProfileCommand, se_UpdateUsageProfileCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class UpdateUsageProfileCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSGlue", "UpdateUsageProfile", {})
19
+ .n("GlueClient", "UpdateUsageProfileCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateUsageProfileCommand)
22
+ .de(de_UpdateUsageProfileCommand)
23
+ .build() {
24
+ }
@@ -40,6 +40,7 @@ export * from "./CreateSessionCommand";
40
40
  export * from "./CreateTableCommand";
41
41
  export * from "./CreateTableOptimizerCommand";
42
42
  export * from "./CreateTriggerCommand";
43
+ export * from "./CreateUsageProfileCommand";
43
44
  export * from "./CreateUserDefinedFunctionCommand";
44
45
  export * from "./CreateWorkflowCommand";
45
46
  export * from "./DeleteBlueprintCommand";
@@ -66,6 +67,7 @@ export * from "./DeleteTableCommand";
66
67
  export * from "./DeleteTableOptimizerCommand";
67
68
  export * from "./DeleteTableVersionCommand";
68
69
  export * from "./DeleteTriggerCommand";
70
+ export * from "./DeleteUsageProfileCommand";
69
71
  export * from "./DeleteUserDefinedFunctionCommand";
70
72
  export * from "./DeleteWorkflowCommand";
71
73
  export * from "./GetBlueprintCommand";
@@ -130,6 +132,7 @@ export * from "./GetTriggersCommand";
130
132
  export * from "./GetUnfilteredPartitionMetadataCommand";
131
133
  export * from "./GetUnfilteredPartitionsMetadataCommand";
132
134
  export * from "./GetUnfilteredTableMetadataCommand";
135
+ export * from "./GetUsageProfileCommand";
133
136
  export * from "./GetUserDefinedFunctionCommand";
134
137
  export * from "./GetUserDefinedFunctionsCommand";
135
138
  export * from "./GetWorkflowCommand";
@@ -156,6 +159,7 @@ export * from "./ListSessionsCommand";
156
159
  export * from "./ListStatementsCommand";
157
160
  export * from "./ListTableOptimizerRunsCommand";
158
161
  export * from "./ListTriggersCommand";
162
+ export * from "./ListUsageProfilesCommand";
159
163
  export * from "./ListWorkflowsCommand";
160
164
  export * from "./PutDataCatalogEncryptionSettingsCommand";
161
165
  export * from "./PutResourcePolicyCommand";
@@ -209,5 +213,6 @@ export * from "./UpdateSourceControlFromJobCommand";
209
213
  export * from "./UpdateTableCommand";
210
214
  export * from "./UpdateTableOptimizerCommand";
211
215
  export * from "./UpdateTriggerCommand";
216
+ export * from "./UpdateUsageProfileCommand";
212
217
  export * from "./UpdateUserDefinedFunctionCommand";
213
218
  export * from "./UpdateWorkflowCommand";
@@ -184,6 +184,19 @@ export const ViewDialect = {
184
184
  REDSHIFT: "REDSHIFT",
185
185
  SPARK: "SPARK",
186
186
  };
187
+ export class OperationNotSupportedException extends __BaseException {
188
+ constructor(opts) {
189
+ super({
190
+ name: "OperationNotSupportedException",
191
+ $fault: "client",
192
+ ...opts,
193
+ });
194
+ this.name = "OperationNotSupportedException";
195
+ this.$fault = "client";
196
+ Object.setPrototypeOf(this, OperationNotSupportedException.prototype);
197
+ this.Message = opts.Message;
198
+ }
199
+ }
187
200
  export const PrincipalType = {
188
201
  GROUP: "GROUP",
189
202
  ROLE: "ROLE",
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListUsageProfilesCommand, } from "../commands/ListUsageProfilesCommand";
3
+ import { GlueClient } from "../GlueClient";
4
+ export const paginateListUsageProfiles = createPaginator(GlueClient, ListUsageProfilesCommand, "NextToken", "NextToken", "MaxResults");
@@ -38,5 +38,6 @@ export * from "./ListSchemasPaginator";
38
38
  export * from "./ListSessionsPaginator";
39
39
  export * from "./ListTableOptimizerRunsPaginator";
40
40
  export * from "./ListTriggersPaginator";
41
+ export * from "./ListUsageProfilesPaginator";
41
42
  export * from "./ListWorkflowsPaginator";
42
43
  export * from "./SearchTablesPaginator";
@@ -3,7 +3,7 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { GlueServiceException as __BaseException } from "../models/GlueServiceException";
5
5
  import { AccessDeniedException, AlreadyExistsException, EntityNotFoundException, FederationSourceException, FederationSourceRetryableException, GlueEncryptionException, IllegalSessionStateException, InternalServiceException, InvalidInputException, InvalidStateException, OperationTimeoutException, ResourceNotReadyException, ResourceNumberLimitExceededException, } from "../models/models_0";
6
- import { ConcurrentModificationException, ConditionCheckFailureException, ConflictException, CrawlerRunningException, FederatedResourceAlreadyExistsException, IdempotentParameterMismatchException, SchedulerTransitioningException, ValidationException, } from "../models/models_1";
6
+ import { ConcurrentModificationException, ConditionCheckFailureException, ConflictException, CrawlerRunningException, FederatedResourceAlreadyExistsException, IdempotentParameterMismatchException, OperationNotSupportedException, SchedulerTransitioningException, ValidationException, } from "../models/models_1";
7
7
  import { ColumnStatisticsTaskNotRunningException, ColumnStatisticsTaskRunningException, ColumnStatisticsTaskStoppingException, ConcurrentRunsExceededException, CrawlerNotRunningException, CrawlerStoppingException, IllegalBlueprintStateException, IllegalWorkflowStateException, MLTransformNotReadyException, NoScheduleException, PermissionTypeMismatchException, SchedulerNotRunningException, SchedulerRunningException, VersionMismatchException, } from "../models/models_2";
8
8
  export const se_BatchCreatePartitionCommand = async (input, context) => {
9
9
  const headers = sharedHeaders("BatchCreatePartition");
@@ -257,6 +257,12 @@ export const se_CreateTriggerCommand = async (input, context) => {
257
257
  body = JSON.stringify(_json(input));
258
258
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
259
259
  };
260
+ export const se_CreateUsageProfileCommand = async (input, context) => {
261
+ const headers = sharedHeaders("CreateUsageProfile");
262
+ let body;
263
+ body = JSON.stringify(_json(input));
264
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
265
+ };
260
266
  export const se_CreateUserDefinedFunctionCommand = async (input, context) => {
261
267
  const headers = sharedHeaders("CreateUserDefinedFunction");
262
268
  let body;
@@ -413,6 +419,12 @@ export const se_DeleteTriggerCommand = async (input, context) => {
413
419
  body = JSON.stringify(_json(input));
414
420
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
415
421
  };
422
+ export const se_DeleteUsageProfileCommand = async (input, context) => {
423
+ const headers = sharedHeaders("DeleteUsageProfile");
424
+ let body;
425
+ body = JSON.stringify(_json(input));
426
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
427
+ };
416
428
  export const se_DeleteUserDefinedFunctionCommand = async (input, context) => {
417
429
  const headers = sharedHeaders("DeleteUserDefinedFunction");
418
430
  let body;
@@ -797,6 +809,12 @@ export const se_GetUnfilteredTableMetadataCommand = async (input, context) => {
797
809
  body = JSON.stringify(se_GetUnfilteredTableMetadataRequest(input, context));
798
810
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
799
811
  };
812
+ export const se_GetUsageProfileCommand = async (input, context) => {
813
+ const headers = sharedHeaders("GetUsageProfile");
814
+ let body;
815
+ body = JSON.stringify(_json(input));
816
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
817
+ };
800
818
  export const se_GetUserDefinedFunctionCommand = async (input, context) => {
801
819
  const headers = sharedHeaders("GetUserDefinedFunction");
802
820
  let body;
@@ -953,6 +971,12 @@ export const se_ListTriggersCommand = async (input, context) => {
953
971
  body = JSON.stringify(_json(input));
954
972
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
955
973
  };
974
+ export const se_ListUsageProfilesCommand = async (input, context) => {
975
+ const headers = sharedHeaders("ListUsageProfiles");
976
+ let body;
977
+ body = JSON.stringify(_json(input));
978
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
979
+ };
956
980
  export const se_ListWorkflowsCommand = async (input, context) => {
957
981
  const headers = sharedHeaders("ListWorkflows");
958
982
  let body;
@@ -1271,6 +1295,12 @@ export const se_UpdateTriggerCommand = async (input, context) => {
1271
1295
  body = JSON.stringify(_json(input));
1272
1296
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1273
1297
  };
1298
+ export const se_UpdateUsageProfileCommand = async (input, context) => {
1299
+ const headers = sharedHeaders("UpdateUsageProfile");
1300
+ let body;
1301
+ body = JSON.stringify(_json(input));
1302
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
1303
+ };
1274
1304
  export const se_UpdateUserDefinedFunctionCommand = async (input, context) => {
1275
1305
  const headers = sharedHeaders("UpdateUserDefinedFunction");
1276
1306
  let body;
@@ -1829,6 +1859,19 @@ export const de_CreateTriggerCommand = async (output, context) => {
1829
1859
  };
1830
1860
  return response;
1831
1861
  };
1862
+ export const de_CreateUsageProfileCommand = async (output, context) => {
1863
+ if (output.statusCode >= 300) {
1864
+ return de_CommandError(output, context);
1865
+ }
1866
+ const data = await parseBody(output.body, context);
1867
+ let contents = {};
1868
+ contents = _json(data);
1869
+ const response = {
1870
+ $metadata: deserializeMetadata(output),
1871
+ ...contents,
1872
+ };
1873
+ return response;
1874
+ };
1832
1875
  export const de_CreateUserDefinedFunctionCommand = async (output, context) => {
1833
1876
  if (output.statusCode >= 300) {
1834
1877
  return de_CommandError(output, context);
@@ -2167,6 +2210,19 @@ export const de_DeleteTriggerCommand = async (output, context) => {
2167
2210
  };
2168
2211
  return response;
2169
2212
  };
2213
+ export const de_DeleteUsageProfileCommand = async (output, context) => {
2214
+ if (output.statusCode >= 300) {
2215
+ return de_CommandError(output, context);
2216
+ }
2217
+ const data = await parseBody(output.body, context);
2218
+ let contents = {};
2219
+ contents = _json(data);
2220
+ const response = {
2221
+ $metadata: deserializeMetadata(output),
2222
+ ...contents,
2223
+ };
2224
+ return response;
2225
+ };
2170
2226
  export const de_DeleteUserDefinedFunctionCommand = async (output, context) => {
2171
2227
  if (output.statusCode >= 300) {
2172
2228
  return de_CommandError(output, context);
@@ -2999,6 +3055,19 @@ export const de_GetUnfilteredTableMetadataCommand = async (output, context) => {
2999
3055
  };
3000
3056
  return response;
3001
3057
  };
3058
+ export const de_GetUsageProfileCommand = async (output, context) => {
3059
+ if (output.statusCode >= 300) {
3060
+ return de_CommandError(output, context);
3061
+ }
3062
+ const data = await parseBody(output.body, context);
3063
+ let contents = {};
3064
+ contents = de_GetUsageProfileResponse(data, context);
3065
+ const response = {
3066
+ $metadata: deserializeMetadata(output),
3067
+ ...contents,
3068
+ };
3069
+ return response;
3070
+ };
3002
3071
  export const de_GetUserDefinedFunctionCommand = async (output, context) => {
3003
3072
  if (output.statusCode >= 300) {
3004
3073
  return de_CommandError(output, context);
@@ -3337,6 +3406,19 @@ export const de_ListTriggersCommand = async (output, context) => {
3337
3406
  };
3338
3407
  return response;
3339
3408
  };
3409
+ export const de_ListUsageProfilesCommand = async (output, context) => {
3410
+ if (output.statusCode >= 300) {
3411
+ return de_CommandError(output, context);
3412
+ }
3413
+ const data = await parseBody(output.body, context);
3414
+ let contents = {};
3415
+ contents = de_ListUsageProfilesResponse(data, context);
3416
+ const response = {
3417
+ $metadata: deserializeMetadata(output),
3418
+ ...contents,
3419
+ };
3420
+ return response;
3421
+ };
3340
3422
  export const de_ListWorkflowsCommand = async (output, context) => {
3341
3423
  if (output.statusCode >= 300) {
3342
3424
  return de_CommandError(output, context);
@@ -4026,6 +4108,19 @@ export const de_UpdateTriggerCommand = async (output, context) => {
4026
4108
  };
4027
4109
  return response;
4028
4110
  };
4111
+ export const de_UpdateUsageProfileCommand = async (output, context) => {
4112
+ if (output.statusCode >= 300) {
4113
+ return de_CommandError(output, context);
4114
+ }
4115
+ const data = await parseBody(output.body, context);
4116
+ let contents = {};
4117
+ contents = _json(data);
4118
+ const response = {
4119
+ $metadata: deserializeMetadata(output),
4120
+ ...contents,
4121
+ };
4122
+ return response;
4123
+ };
4029
4124
  export const de_UpdateUserDefinedFunctionCommand = async (output, context) => {
4030
4125
  if (output.statusCode >= 300) {
4031
4126
  return de_CommandError(output, context);
@@ -4110,6 +4205,9 @@ const de_CommandError = async (output, context) => {
4110
4205
  case "ValidationException":
4111
4206
  case "com.amazonaws.glue#ValidationException":
4112
4207
  throw await de_ValidationExceptionRes(parsedOutput, context);
4208
+ case "OperationNotSupportedException":
4209
+ case "com.amazonaws.glue#OperationNotSupportedException":
4210
+ throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
4113
4211
  case "CrawlerRunningException":
4114
4212
  case "com.amazonaws.glue#CrawlerRunningException":
4115
4213
  throw await de_CrawlerRunningExceptionRes(parsedOutput, context);
@@ -4407,6 +4505,15 @@ const de_NoScheduleExceptionRes = async (parsedOutput, context) => {
4407
4505
  });
4408
4506
  return __decorateServiceException(exception, body);
4409
4507
  };
4508
+ const de_OperationNotSupportedExceptionRes = async (parsedOutput, context) => {
4509
+ const body = parsedOutput.body;
4510
+ const deserialized = _json(body);
4511
+ const exception = new OperationNotSupportedException({
4512
+ $metadata: deserializeMetadata(parsedOutput),
4513
+ ...deserialized,
4514
+ });
4515
+ return __decorateServiceException(exception, body);
4516
+ };
4410
4517
  const de_OperationTimeoutExceptionRes = async (parsedOutput, context) => {
4411
4518
  const body = parsedOutput.body;
4412
4519
  const deserialized = _json(body);
@@ -6488,6 +6595,15 @@ const de_GetUnfilteredTableMetadataResponse = (output, context) => {
6488
6595
  Table: (_) => de_Table(_, context),
6489
6596
  });
6490
6597
  };
6598
+ const de_GetUsageProfileResponse = (output, context) => {
6599
+ return take(output, {
6600
+ Configuration: _json,
6601
+ CreatedOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
6602
+ Description: __expectString,
6603
+ LastModifiedOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
6604
+ Name: __expectString,
6605
+ });
6606
+ };
6491
6607
  const de_GetUserDefinedFunctionResponse = (output, context) => {
6492
6608
  return take(output, {
6493
6609
  UserDefinedFunction: (_) => de_UserDefinedFunction(_, context),
@@ -6556,6 +6672,7 @@ const de_Job = (output, context) => {
6556
6672
  NonOverridableArguments: _json,
6557
6673
  NotificationProperty: _json,
6558
6674
  NumberOfWorkers: __expectInt32,
6675
+ ProfileName: __expectString,
6559
6676
  Role: __expectString,
6560
6677
  SecurityConfiguration: __expectString,
6561
6678
  SourceControlDetails: _json,
@@ -6599,6 +6716,7 @@ const de_JobRun = (output, context) => {
6599
6716
  NumberOfWorkers: __expectInt32,
6600
6717
  PredecessorRuns: _json,
6601
6718
  PreviousRunId: __expectString,
6719
+ ProfileName: __expectString,
6602
6720
  SecurityConfiguration: __expectString,
6603
6721
  StartedOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
6604
6722
  Timeout: __expectInt32,
@@ -6742,6 +6860,12 @@ const de_ListTableOptimizerRunsResponse = (output, context) => {
6742
6860
  TableOptimizerRuns: (_) => de_TableOptimizerRuns(_, context),
6743
6861
  });
6744
6862
  };
6863
+ const de_ListUsageProfilesResponse = (output, context) => {
6864
+ return take(output, {
6865
+ NextToken: __expectString,
6866
+ Profiles: (_) => de_UsageProfileDefinitionList(_, context),
6867
+ });
6868
+ };
6745
6869
  const de_Mapping = (output, context) => {
6746
6870
  return take(output, {
6747
6871
  Children: (_) => de_Mappings(_, context),
@@ -6878,6 +7002,7 @@ const de_Session = (output, context) => {
6878
7002
  IdleTimeout: __expectInt32,
6879
7003
  MaxCapacity: __limitedParseDouble,
6880
7004
  NumberOfWorkers: __expectInt32,
7005
+ ProfileName: __expectString,
6881
7006
  Progress: __limitedParseDouble,
6882
7007
  Role: __expectString,
6883
7008
  SecurityConfiguration: __expectString,
@@ -7055,6 +7180,22 @@ const de_UpdateColumnStatisticsForTableResponse = (output, context) => {
7055
7180
  Errors: (_) => de_ColumnStatisticsErrors(_, context),
7056
7181
  });
7057
7182
  };
7183
+ const de_UsageProfileDefinition = (output, context) => {
7184
+ return take(output, {
7185
+ CreatedOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
7186
+ Description: __expectString,
7187
+ LastModifiedOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
7188
+ Name: __expectString,
7189
+ });
7190
+ };
7191
+ const de_UsageProfileDefinitionList = (output, context) => {
7192
+ const retVal = (output || [])
7193
+ .filter((e) => e != null)
7194
+ .map((entry) => {
7195
+ return de_UsageProfileDefinition(entry, context);
7196
+ });
7197
+ return retVal;
7198
+ };
7058
7199
  const de_UserDefinedFunction = (output, context) => {
7059
7200
  return take(output, {
7060
7201
  CatalogId: __expectString,
@@ -41,6 +41,7 @@ import { CreateSessionCommandInput, CreateSessionCommandOutput } from "./command
41
41
  import { CreateTableCommandInput, CreateTableCommandOutput } from "./commands/CreateTableCommand";
42
42
  import { CreateTableOptimizerCommandInput, CreateTableOptimizerCommandOutput } from "./commands/CreateTableOptimizerCommand";
43
43
  import { CreateTriggerCommandInput, CreateTriggerCommandOutput } from "./commands/CreateTriggerCommand";
44
+ import { CreateUsageProfileCommandInput, CreateUsageProfileCommandOutput } from "./commands/CreateUsageProfileCommand";
44
45
  import { CreateUserDefinedFunctionCommandInput, CreateUserDefinedFunctionCommandOutput } from "./commands/CreateUserDefinedFunctionCommand";
45
46
  import { CreateWorkflowCommandInput, CreateWorkflowCommandOutput } from "./commands/CreateWorkflowCommand";
46
47
  import { DeleteBlueprintCommandInput, DeleteBlueprintCommandOutput } from "./commands/DeleteBlueprintCommand";
@@ -67,6 +68,7 @@ import { DeleteTableCommandInput, DeleteTableCommandOutput } from "./commands/De
67
68
  import { DeleteTableOptimizerCommandInput, DeleteTableOptimizerCommandOutput } from "./commands/DeleteTableOptimizerCommand";
68
69
  import { DeleteTableVersionCommandInput, DeleteTableVersionCommandOutput } from "./commands/DeleteTableVersionCommand";
69
70
  import { DeleteTriggerCommandInput, DeleteTriggerCommandOutput } from "./commands/DeleteTriggerCommand";
71
+ import { DeleteUsageProfileCommandInput, DeleteUsageProfileCommandOutput } from "./commands/DeleteUsageProfileCommand";
70
72
  import { DeleteUserDefinedFunctionCommandInput, DeleteUserDefinedFunctionCommandOutput } from "./commands/DeleteUserDefinedFunctionCommand";
71
73
  import { DeleteWorkflowCommandInput, DeleteWorkflowCommandOutput } from "./commands/DeleteWorkflowCommand";
72
74
  import { GetBlueprintCommandInput, GetBlueprintCommandOutput } from "./commands/GetBlueprintCommand";
@@ -131,6 +133,7 @@ import { GetTriggersCommandInput, GetTriggersCommandOutput } from "./commands/Ge
131
133
  import { GetUnfilteredPartitionMetadataCommandInput, GetUnfilteredPartitionMetadataCommandOutput } from "./commands/GetUnfilteredPartitionMetadataCommand";
132
134
  import { GetUnfilteredPartitionsMetadataCommandInput, GetUnfilteredPartitionsMetadataCommandOutput } from "./commands/GetUnfilteredPartitionsMetadataCommand";
133
135
  import { GetUnfilteredTableMetadataCommandInput, GetUnfilteredTableMetadataCommandOutput } from "./commands/GetUnfilteredTableMetadataCommand";
136
+ import { GetUsageProfileCommandInput, GetUsageProfileCommandOutput } from "./commands/GetUsageProfileCommand";
134
137
  import { GetUserDefinedFunctionCommandInput, GetUserDefinedFunctionCommandOutput } from "./commands/GetUserDefinedFunctionCommand";
135
138
  import { GetUserDefinedFunctionsCommandInput, GetUserDefinedFunctionsCommandOutput } from "./commands/GetUserDefinedFunctionsCommand";
136
139
  import { GetWorkflowCommandInput, GetWorkflowCommandOutput } from "./commands/GetWorkflowCommand";
@@ -157,6 +160,7 @@ import { ListSessionsCommandInput, ListSessionsCommandOutput } from "./commands/
157
160
  import { ListStatementsCommandInput, ListStatementsCommandOutput } from "./commands/ListStatementsCommand";
158
161
  import { ListTableOptimizerRunsCommandInput, ListTableOptimizerRunsCommandOutput } from "./commands/ListTableOptimizerRunsCommand";
159
162
  import { ListTriggersCommandInput, ListTriggersCommandOutput } from "./commands/ListTriggersCommand";
163
+ import { ListUsageProfilesCommandInput, ListUsageProfilesCommandOutput } from "./commands/ListUsageProfilesCommand";
160
164
  import { ListWorkflowsCommandInput, ListWorkflowsCommandOutput } from "./commands/ListWorkflowsCommand";
161
165
  import { PutDataCatalogEncryptionSettingsCommandInput, PutDataCatalogEncryptionSettingsCommandOutput } from "./commands/PutDataCatalogEncryptionSettingsCommand";
162
166
  import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
@@ -210,6 +214,7 @@ import { UpdateSourceControlFromJobCommandInput, UpdateSourceControlFromJobComma
210
214
  import { UpdateTableCommandInput, UpdateTableCommandOutput } from "./commands/UpdateTableCommand";
211
215
  import { UpdateTableOptimizerCommandInput, UpdateTableOptimizerCommandOutput } from "./commands/UpdateTableOptimizerCommand";
212
216
  import { UpdateTriggerCommandInput, UpdateTriggerCommandOutput } from "./commands/UpdateTriggerCommand";
217
+ import { UpdateUsageProfileCommandInput, UpdateUsageProfileCommandOutput } from "./commands/UpdateUsageProfileCommand";
213
218
  import { UpdateUserDefinedFunctionCommandInput, UpdateUserDefinedFunctionCommandOutput } from "./commands/UpdateUserDefinedFunctionCommand";
214
219
  import { UpdateWorkflowCommandInput, UpdateWorkflowCommandOutput } from "./commands/UpdateWorkflowCommand";
215
220
  import { GlueClient } from "./GlueClient";
@@ -468,6 +473,12 @@ export interface Glue {
468
473
  createTrigger(args: CreateTriggerCommandInput, options?: __HttpHandlerOptions): Promise<CreateTriggerCommandOutput>;
469
474
  createTrigger(args: CreateTriggerCommandInput, cb: (err: any, data?: CreateTriggerCommandOutput) => void): void;
470
475
  createTrigger(args: CreateTriggerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTriggerCommandOutput) => void): void;
476
+ /**
477
+ * @see {@link CreateUsageProfileCommand}
478
+ */
479
+ createUsageProfile(args: CreateUsageProfileCommandInput, options?: __HttpHandlerOptions): Promise<CreateUsageProfileCommandOutput>;
480
+ createUsageProfile(args: CreateUsageProfileCommandInput, cb: (err: any, data?: CreateUsageProfileCommandOutput) => void): void;
481
+ createUsageProfile(args: CreateUsageProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateUsageProfileCommandOutput) => void): void;
471
482
  /**
472
483
  * @see {@link CreateUserDefinedFunctionCommand}
473
484
  */
@@ -625,6 +636,12 @@ export interface Glue {
625
636
  deleteTrigger(args: DeleteTriggerCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTriggerCommandOutput>;
626
637
  deleteTrigger(args: DeleteTriggerCommandInput, cb: (err: any, data?: DeleteTriggerCommandOutput) => void): void;
627
638
  deleteTrigger(args: DeleteTriggerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTriggerCommandOutput) => void): void;
639
+ /**
640
+ * @see {@link DeleteUsageProfileCommand}
641
+ */
642
+ deleteUsageProfile(args: DeleteUsageProfileCommandInput, options?: __HttpHandlerOptions): Promise<DeleteUsageProfileCommandOutput>;
643
+ deleteUsageProfile(args: DeleteUsageProfileCommandInput, cb: (err: any, data?: DeleteUsageProfileCommandOutput) => void): void;
644
+ deleteUsageProfile(args: DeleteUsageProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteUsageProfileCommandOutput) => void): void;
628
645
  /**
629
646
  * @see {@link DeleteUserDefinedFunctionCommand}
630
647
  */
@@ -1025,6 +1042,12 @@ export interface Glue {
1025
1042
  getUnfilteredTableMetadata(args: GetUnfilteredTableMetadataCommandInput, options?: __HttpHandlerOptions): Promise<GetUnfilteredTableMetadataCommandOutput>;
1026
1043
  getUnfilteredTableMetadata(args: GetUnfilteredTableMetadataCommandInput, cb: (err: any, data?: GetUnfilteredTableMetadataCommandOutput) => void): void;
1027
1044
  getUnfilteredTableMetadata(args: GetUnfilteredTableMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUnfilteredTableMetadataCommandOutput) => void): void;
1045
+ /**
1046
+ * @see {@link GetUsageProfileCommand}
1047
+ */
1048
+ getUsageProfile(args: GetUsageProfileCommandInput, options?: __HttpHandlerOptions): Promise<GetUsageProfileCommandOutput>;
1049
+ getUsageProfile(args: GetUsageProfileCommandInput, cb: (err: any, data?: GetUsageProfileCommandOutput) => void): void;
1050
+ getUsageProfile(args: GetUsageProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUsageProfileCommandOutput) => void): void;
1028
1051
  /**
1029
1052
  * @see {@link GetUserDefinedFunctionCommand}
1030
1053
  */
@@ -1197,6 +1220,13 @@ export interface Glue {
1197
1220
  listTriggers(args: ListTriggersCommandInput, options?: __HttpHandlerOptions): Promise<ListTriggersCommandOutput>;
1198
1221
  listTriggers(args: ListTriggersCommandInput, cb: (err: any, data?: ListTriggersCommandOutput) => void): void;
1199
1222
  listTriggers(args: ListTriggersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTriggersCommandOutput) => void): void;
1223
+ /**
1224
+ * @see {@link ListUsageProfilesCommand}
1225
+ */
1226
+ listUsageProfiles(): Promise<ListUsageProfilesCommandOutput>;
1227
+ listUsageProfiles(args: ListUsageProfilesCommandInput, options?: __HttpHandlerOptions): Promise<ListUsageProfilesCommandOutput>;
1228
+ listUsageProfiles(args: ListUsageProfilesCommandInput, cb: (err: any, data?: ListUsageProfilesCommandOutput) => void): void;
1229
+ listUsageProfiles(args: ListUsageProfilesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListUsageProfilesCommandOutput) => void): void;
1200
1230
  /**
1201
1231
  * @see {@link ListWorkflowsCommand}
1202
1232
  */
@@ -1521,6 +1551,12 @@ export interface Glue {
1521
1551
  updateTrigger(args: UpdateTriggerCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTriggerCommandOutput>;
1522
1552
  updateTrigger(args: UpdateTriggerCommandInput, cb: (err: any, data?: UpdateTriggerCommandOutput) => void): void;
1523
1553
  updateTrigger(args: UpdateTriggerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTriggerCommandOutput) => void): void;
1554
+ /**
1555
+ * @see {@link UpdateUsageProfileCommand}
1556
+ */
1557
+ updateUsageProfile(args: UpdateUsageProfileCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUsageProfileCommandOutput>;
1558
+ updateUsageProfile(args: UpdateUsageProfileCommandInput, cb: (err: any, data?: UpdateUsageProfileCommandOutput) => void): void;
1559
+ updateUsageProfile(args: UpdateUsageProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUsageProfileCommandOutput) => void): void;
1524
1560
  /**
1525
1561
  * @see {@link UpdateUserDefinedFunctionCommand}
1526
1562
  */