Skip to content

Commit 546dab6

Browse files
author
awstools
committed
feat(client-glue): This release adds APIs to create, read, delete, list, and batch read of Glue custom entity types
1 parent f07f481 commit 546dab6

23 files changed

+2261
-573
lines changed

clients/client-glue/src/Glue.ts

+170
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ import {
3535
BatchGetCrawlersCommandInput,
3636
BatchGetCrawlersCommandOutput,
3737
} from "./commands/BatchGetCrawlersCommand";
38+
import {
39+
BatchGetCustomEntityTypesCommand,
40+
BatchGetCustomEntityTypesCommandInput,
41+
BatchGetCustomEntityTypesCommandOutput,
42+
} from "./commands/BatchGetCustomEntityTypesCommand";
3843
import {
3944
BatchGetDevEndpointsCommand,
4045
BatchGetDevEndpointsCommandInput,
@@ -105,6 +110,11 @@ import {
105110
CreateCrawlerCommandInput,
106111
CreateCrawlerCommandOutput,
107112
} from "./commands/CreateCrawlerCommand";
113+
import {
114+
CreateCustomEntityTypeCommand,
115+
CreateCustomEntityTypeCommandInput,
116+
CreateCustomEntityTypeCommandOutput,
117+
} from "./commands/CreateCustomEntityTypeCommand";
108118
import {
109119
CreateDatabaseCommand,
110120
CreateDatabaseCommandInput,
@@ -202,6 +212,11 @@ import {
202212
DeleteCrawlerCommandInput,
203213
DeleteCrawlerCommandOutput,
204214
} from "./commands/DeleteCrawlerCommand";
215+
import {
216+
DeleteCustomEntityTypeCommand,
217+
DeleteCustomEntityTypeCommandInput,
218+
DeleteCustomEntityTypeCommandOutput,
219+
} from "./commands/DeleteCustomEntityTypeCommand";
205220
import {
206221
DeleteDatabaseCommand,
207222
DeleteDatabaseCommandInput,
@@ -336,6 +351,11 @@ import {
336351
GetCrawlerMetricsCommandOutput,
337352
} from "./commands/GetCrawlerMetricsCommand";
338353
import { GetCrawlersCommand, GetCrawlersCommandInput, GetCrawlersCommandOutput } from "./commands/GetCrawlersCommand";
354+
import {
355+
GetCustomEntityTypeCommand,
356+
GetCustomEntityTypeCommandInput,
357+
GetCustomEntityTypeCommandOutput,
358+
} from "./commands/GetCustomEntityTypeCommand";
339359
import { GetDatabaseCommand, GetDatabaseCommandInput, GetDatabaseCommandOutput } from "./commands/GetDatabaseCommand";
340360
import {
341361
GetDatabasesCommand,
@@ -522,6 +542,11 @@ import {
522542
ListCrawlersCommandInput,
523543
ListCrawlersCommandOutput,
524544
} from "./commands/ListCrawlersCommand";
545+
import {
546+
ListCustomEntityTypesCommand,
547+
ListCustomEntityTypesCommandInput,
548+
ListCustomEntityTypesCommandOutput,
549+
} from "./commands/ListCustomEntityTypesCommand";
525550
import {
526551
ListDevEndpointsCommand,
527552
ListDevEndpointsCommandInput,
@@ -1007,6 +1032,35 @@ export class Glue extends GlueClient {
10071032
}
10081033
}
10091034

1035+
public batchGetCustomEntityTypes(
1036+
args: BatchGetCustomEntityTypesCommandInput,
1037+
options?: __HttpHandlerOptions
1038+
): Promise<BatchGetCustomEntityTypesCommandOutput>;
1039+
public batchGetCustomEntityTypes(
1040+
args: BatchGetCustomEntityTypesCommandInput,
1041+
cb: (err: any, data?: BatchGetCustomEntityTypesCommandOutput) => void
1042+
): void;
1043+
public batchGetCustomEntityTypes(
1044+
args: BatchGetCustomEntityTypesCommandInput,
1045+
options: __HttpHandlerOptions,
1046+
cb: (err: any, data?: BatchGetCustomEntityTypesCommandOutput) => void
1047+
): void;
1048+
public batchGetCustomEntityTypes(
1049+
args: BatchGetCustomEntityTypesCommandInput,
1050+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: BatchGetCustomEntityTypesCommandOutput) => void),
1051+
cb?: (err: any, data?: BatchGetCustomEntityTypesCommandOutput) => void
1052+
): Promise<BatchGetCustomEntityTypesCommandOutput> | void {
1053+
const command = new BatchGetCustomEntityTypesCommand(args);
1054+
if (typeof optionsOrCb === "function") {
1055+
this.send(command, optionsOrCb);
1056+
} else if (typeof cb === "function") {
1057+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1058+
this.send(command, optionsOrCb || {}, cb);
1059+
} else {
1060+
return this.send(command, optionsOrCb);
1061+
}
1062+
}
1063+
10101064
/**
10111065
* <p>Returns a list of resource metadata for a given list of development endpoint names. After
10121066
* calling the <code>ListDevEndpoints</code> operation, you can call this operation to access the
@@ -1462,6 +1516,35 @@ export class Glue extends GlueClient {
14621516
}
14631517
}
14641518

1519+
public createCustomEntityType(
1520+
args: CreateCustomEntityTypeCommandInput,
1521+
options?: __HttpHandlerOptions
1522+
): Promise<CreateCustomEntityTypeCommandOutput>;
1523+
public createCustomEntityType(
1524+
args: CreateCustomEntityTypeCommandInput,
1525+
cb: (err: any, data?: CreateCustomEntityTypeCommandOutput) => void
1526+
): void;
1527+
public createCustomEntityType(
1528+
args: CreateCustomEntityTypeCommandInput,
1529+
options: __HttpHandlerOptions,
1530+
cb: (err: any, data?: CreateCustomEntityTypeCommandOutput) => void
1531+
): void;
1532+
public createCustomEntityType(
1533+
args: CreateCustomEntityTypeCommandInput,
1534+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateCustomEntityTypeCommandOutput) => void),
1535+
cb?: (err: any, data?: CreateCustomEntityTypeCommandOutput) => void
1536+
): Promise<CreateCustomEntityTypeCommandOutput> | void {
1537+
const command = new CreateCustomEntityTypeCommand(args);
1538+
if (typeof optionsOrCb === "function") {
1539+
this.send(command, optionsOrCb);
1540+
} else if (typeof cb === "function") {
1541+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1542+
this.send(command, optionsOrCb || {}, cb);
1543+
} else {
1544+
return this.send(command, optionsOrCb);
1545+
}
1546+
}
1547+
14651548
/**
14661549
* <p>Creates a new database in a Data Catalog.</p>
14671550
*/
@@ -2135,6 +2218,35 @@ export class Glue extends GlueClient {
21352218
}
21362219
}
21372220

2221+
public deleteCustomEntityType(
2222+
args: DeleteCustomEntityTypeCommandInput,
2223+
options?: __HttpHandlerOptions
2224+
): Promise<DeleteCustomEntityTypeCommandOutput>;
2225+
public deleteCustomEntityType(
2226+
args: DeleteCustomEntityTypeCommandInput,
2227+
cb: (err: any, data?: DeleteCustomEntityTypeCommandOutput) => void
2228+
): void;
2229+
public deleteCustomEntityType(
2230+
args: DeleteCustomEntityTypeCommandInput,
2231+
options: __HttpHandlerOptions,
2232+
cb: (err: any, data?: DeleteCustomEntityTypeCommandOutput) => void
2233+
): void;
2234+
public deleteCustomEntityType(
2235+
args: DeleteCustomEntityTypeCommandInput,
2236+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteCustomEntityTypeCommandOutput) => void),
2237+
cb?: (err: any, data?: DeleteCustomEntityTypeCommandOutput) => void
2238+
): Promise<DeleteCustomEntityTypeCommandOutput> | void {
2239+
const command = new DeleteCustomEntityTypeCommand(args);
2240+
if (typeof optionsOrCb === "function") {
2241+
this.send(command, optionsOrCb);
2242+
} else if (typeof cb === "function") {
2243+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2244+
this.send(command, optionsOrCb || {}, cb);
2245+
} else {
2246+
return this.send(command, optionsOrCb);
2247+
}
2248+
}
2249+
21382250
/**
21392251
* <p>Removes a specified database from a Data Catalog.</p>
21402252
* <note>
@@ -3102,6 +3214,35 @@ export class Glue extends GlueClient {
31023214
}
31033215
}
31043216

3217+
public getCustomEntityType(
3218+
args: GetCustomEntityTypeCommandInput,
3219+
options?: __HttpHandlerOptions
3220+
): Promise<GetCustomEntityTypeCommandOutput>;
3221+
public getCustomEntityType(
3222+
args: GetCustomEntityTypeCommandInput,
3223+
cb: (err: any, data?: GetCustomEntityTypeCommandOutput) => void
3224+
): void;
3225+
public getCustomEntityType(
3226+
args: GetCustomEntityTypeCommandInput,
3227+
options: __HttpHandlerOptions,
3228+
cb: (err: any, data?: GetCustomEntityTypeCommandOutput) => void
3229+
): void;
3230+
public getCustomEntityType(
3231+
args: GetCustomEntityTypeCommandInput,
3232+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetCustomEntityTypeCommandOutput) => void),
3233+
cb?: (err: any, data?: GetCustomEntityTypeCommandOutput) => void
3234+
): Promise<GetCustomEntityTypeCommandOutput> | void {
3235+
const command = new GetCustomEntityTypeCommand(args);
3236+
if (typeof optionsOrCb === "function") {
3237+
this.send(command, optionsOrCb);
3238+
} else if (typeof cb === "function") {
3239+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3240+
this.send(command, optionsOrCb || {}, cb);
3241+
} else {
3242+
return this.send(command, optionsOrCb);
3243+
}
3244+
}
3245+
31053246
/**
31063247
* <p>Retrieves the definition of a specified database.</p>
31073248
*/
@@ -4625,6 +4766,35 @@ export class Glue extends GlueClient {
46254766
}
46264767
}
46274768

4769+
public listCustomEntityTypes(
4770+
args: ListCustomEntityTypesCommandInput,
4771+
options?: __HttpHandlerOptions
4772+
): Promise<ListCustomEntityTypesCommandOutput>;
4773+
public listCustomEntityTypes(
4774+
args: ListCustomEntityTypesCommandInput,
4775+
cb: (err: any, data?: ListCustomEntityTypesCommandOutput) => void
4776+
): void;
4777+
public listCustomEntityTypes(
4778+
args: ListCustomEntityTypesCommandInput,
4779+
options: __HttpHandlerOptions,
4780+
cb: (err: any, data?: ListCustomEntityTypesCommandOutput) => void
4781+
): void;
4782+
public listCustomEntityTypes(
4783+
args: ListCustomEntityTypesCommandInput,
4784+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListCustomEntityTypesCommandOutput) => void),
4785+
cb?: (err: any, data?: ListCustomEntityTypesCommandOutput) => void
4786+
): Promise<ListCustomEntityTypesCommandOutput> | void {
4787+
const command = new ListCustomEntityTypesCommand(args);
4788+
if (typeof optionsOrCb === "function") {
4789+
this.send(command, optionsOrCb);
4790+
} else if (typeof cb === "function") {
4791+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
4792+
this.send(command, optionsOrCb || {}, cb);
4793+
} else {
4794+
return this.send(command, optionsOrCb);
4795+
}
4796+
}
4797+
46284798
/**
46294799
* <p>Retrieves the names of all <code>DevEndpoint</code> resources in this Amazon Web Services account, or the
46304800
* resources with the specified tag. This operation allows you to see which resources are

clients/client-glue/src/GlueClient.ts

+30
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ import {
7070
} from "./commands/BatchDeleteTableVersionCommand";
7171
import { BatchGetBlueprintsCommandInput, BatchGetBlueprintsCommandOutput } from "./commands/BatchGetBlueprintsCommand";
7272
import { BatchGetCrawlersCommandInput, BatchGetCrawlersCommandOutput } from "./commands/BatchGetCrawlersCommand";
73+
import {
74+
BatchGetCustomEntityTypesCommandInput,
75+
BatchGetCustomEntityTypesCommandOutput,
76+
} from "./commands/BatchGetCustomEntityTypesCommand";
7377
import {
7478
BatchGetDevEndpointsCommandInput,
7579
BatchGetDevEndpointsCommandOutput,
@@ -93,6 +97,10 @@ import { CreateBlueprintCommandInput, CreateBlueprintCommandOutput } from "./com
9397
import { CreateClassifierCommandInput, CreateClassifierCommandOutput } from "./commands/CreateClassifierCommand";
9498
import { CreateConnectionCommandInput, CreateConnectionCommandOutput } from "./commands/CreateConnectionCommand";
9599
import { CreateCrawlerCommandInput, CreateCrawlerCommandOutput } from "./commands/CreateCrawlerCommand";
100+
import {
101+
CreateCustomEntityTypeCommandInput,
102+
CreateCustomEntityTypeCommandOutput,
103+
} from "./commands/CreateCustomEntityTypeCommand";
96104
import { CreateDatabaseCommandInput, CreateDatabaseCommandOutput } from "./commands/CreateDatabaseCommand";
97105
import { CreateDevEndpointCommandInput, CreateDevEndpointCommandOutput } from "./commands/CreateDevEndpointCommand";
98106
import { CreateJobCommandInput, CreateJobCommandOutput } from "./commands/CreateJobCommand";
@@ -129,6 +137,10 @@ import {
129137
} from "./commands/DeleteColumnStatisticsForTableCommand";
130138
import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "./commands/DeleteConnectionCommand";
131139
import { DeleteCrawlerCommandInput, DeleteCrawlerCommandOutput } from "./commands/DeleteCrawlerCommand";
140+
import {
141+
DeleteCustomEntityTypeCommandInput,
142+
DeleteCustomEntityTypeCommandOutput,
143+
} from "./commands/DeleteCustomEntityTypeCommand";
132144
import { DeleteDatabaseCommandInput, DeleteDatabaseCommandOutput } from "./commands/DeleteDatabaseCommand";
133145
import { DeleteDevEndpointCommandInput, DeleteDevEndpointCommandOutput } from "./commands/DeleteDevEndpointCommand";
134146
import { DeleteJobCommandInput, DeleteJobCommandOutput } from "./commands/DeleteJobCommand";
@@ -183,6 +195,10 @@ import { GetConnectionsCommandInput, GetConnectionsCommandOutput } from "./comma
183195
import { GetCrawlerCommandInput, GetCrawlerCommandOutput } from "./commands/GetCrawlerCommand";
184196
import { GetCrawlerMetricsCommandInput, GetCrawlerMetricsCommandOutput } from "./commands/GetCrawlerMetricsCommand";
185197
import { GetCrawlersCommandInput, GetCrawlersCommandOutput } from "./commands/GetCrawlersCommand";
198+
import {
199+
GetCustomEntityTypeCommandInput,
200+
GetCustomEntityTypeCommandOutput,
201+
} from "./commands/GetCustomEntityTypeCommand";
186202
import { GetDatabaseCommandInput, GetDatabaseCommandOutput } from "./commands/GetDatabaseCommand";
187203
import { GetDatabasesCommandInput, GetDatabasesCommandOutput } from "./commands/GetDatabasesCommand";
188204
import {
@@ -275,6 +291,10 @@ import {
275291
} from "./commands/ImportCatalogToGlueCommand";
276292
import { ListBlueprintsCommandInput, ListBlueprintsCommandOutput } from "./commands/ListBlueprintsCommand";
277293
import { ListCrawlersCommandInput, ListCrawlersCommandOutput } from "./commands/ListCrawlersCommand";
294+
import {
295+
ListCustomEntityTypesCommandInput,
296+
ListCustomEntityTypesCommandOutput,
297+
} from "./commands/ListCustomEntityTypesCommand";
278298
import { ListDevEndpointsCommandInput, ListDevEndpointsCommandOutput } from "./commands/ListDevEndpointsCommand";
279299
import { ListJobsCommandInput, ListJobsCommandOutput } from "./commands/ListJobsCommand";
280300
import { ListMLTransformsCommandInput, ListMLTransformsCommandOutput } from "./commands/ListMLTransformsCommand";
@@ -389,6 +409,7 @@ export type ServiceInputTypes =
389409
| BatchDeleteTableVersionCommandInput
390410
| BatchGetBlueprintsCommandInput
391411
| BatchGetCrawlersCommandInput
412+
| BatchGetCustomEntityTypesCommandInput
392413
| BatchGetDevEndpointsCommandInput
393414
| BatchGetJobsCommandInput
394415
| BatchGetPartitionCommandInput
@@ -403,6 +424,7 @@ export type ServiceInputTypes =
403424
| CreateClassifierCommandInput
404425
| CreateConnectionCommandInput
405426
| CreateCrawlerCommandInput
427+
| CreateCustomEntityTypeCommandInput
406428
| CreateDatabaseCommandInput
407429
| CreateDevEndpointCommandInput
408430
| CreateJobCommandInput
@@ -424,6 +446,7 @@ export type ServiceInputTypes =
424446
| DeleteColumnStatisticsForTableCommandInput
425447
| DeleteConnectionCommandInput
426448
| DeleteCrawlerCommandInput
449+
| DeleteCustomEntityTypeCommandInput
427450
| DeleteDatabaseCommandInput
428451
| DeleteDevEndpointCommandInput
429452
| DeleteJobCommandInput
@@ -454,6 +477,7 @@ export type ServiceInputTypes =
454477
| GetCrawlerCommandInput
455478
| GetCrawlerMetricsCommandInput
456479
| GetCrawlersCommandInput
480+
| GetCustomEntityTypeCommandInput
457481
| GetDataCatalogEncryptionSettingsCommandInput
458482
| GetDatabaseCommandInput
459483
| GetDatabasesCommandInput
@@ -504,6 +528,7 @@ export type ServiceInputTypes =
504528
| ImportCatalogToGlueCommandInput
505529
| ListBlueprintsCommandInput
506530
| ListCrawlersCommandInput
531+
| ListCustomEntityTypesCommandInput
507532
| ListDevEndpointsCommandInput
508533
| ListJobsCommandInput
509534
| ListMLTransformsCommandInput
@@ -569,6 +594,7 @@ export type ServiceOutputTypes =
569594
| BatchDeleteTableVersionCommandOutput
570595
| BatchGetBlueprintsCommandOutput
571596
| BatchGetCrawlersCommandOutput
597+
| BatchGetCustomEntityTypesCommandOutput
572598
| BatchGetDevEndpointsCommandOutput
573599
| BatchGetJobsCommandOutput
574600
| BatchGetPartitionCommandOutput
@@ -583,6 +609,7 @@ export type ServiceOutputTypes =
583609
| CreateClassifierCommandOutput
584610
| CreateConnectionCommandOutput
585611
| CreateCrawlerCommandOutput
612+
| CreateCustomEntityTypeCommandOutput
586613
| CreateDatabaseCommandOutput
587614
| CreateDevEndpointCommandOutput
588615
| CreateJobCommandOutput
@@ -604,6 +631,7 @@ export type ServiceOutputTypes =
604631
| DeleteColumnStatisticsForTableCommandOutput
605632
| DeleteConnectionCommandOutput
606633
| DeleteCrawlerCommandOutput
634+
| DeleteCustomEntityTypeCommandOutput
607635
| DeleteDatabaseCommandOutput
608636
| DeleteDevEndpointCommandOutput
609637
| DeleteJobCommandOutput
@@ -634,6 +662,7 @@ export type ServiceOutputTypes =
634662
| GetCrawlerCommandOutput
635663
| GetCrawlerMetricsCommandOutput
636664
| GetCrawlersCommandOutput
665+
| GetCustomEntityTypeCommandOutput
637666
| GetDataCatalogEncryptionSettingsCommandOutput
638667
| GetDatabaseCommandOutput
639668
| GetDatabasesCommandOutput
@@ -684,6 +713,7 @@ export type ServiceOutputTypes =
684713
| ImportCatalogToGlueCommandOutput
685714
| ListBlueprintsCommandOutput
686715
| ListCrawlersCommandOutput
716+
| ListCustomEntityTypesCommandOutput
687717
| ListDevEndpointsCommandOutput
688718
| ListJobsCommandOutput
689719
| ListMLTransformsCommandOutput

0 commit comments

Comments
 (0)