Skip to content

Commit a57a464

Browse files
author
awstools
committed
docs(client-glue): This release adds documentation for the APIs to create, read, delete, list, and batch read of AWS Glue custom patterns, and for Lake Formation configuration settings in the AWS Glue crawler.
1 parent 1ee3b39 commit a57a464

File tree

9 files changed

+295
-20
lines changed

9 files changed

+295
-20
lines changed

clients/client-glue/src/Glue.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,9 @@ export class Glue extends GlueClient {
10321032
}
10331033
}
10341034

1035+
/**
1036+
* <p>Retrieves the details for the custom patterns specified by a list of names.</p>
1037+
*/
10351038
public batchGetCustomEntityTypes(
10361039
args: BatchGetCustomEntityTypesCommandInput,
10371040
options?: __HttpHandlerOptions
@@ -1516,6 +1519,11 @@ export class Glue extends GlueClient {
15161519
}
15171520
}
15181521

1522+
/**
1523+
* <p>Creates a custom pattern that is used to detect sensitive data across the columns and rows of your structured data.</p>
1524+
*
1525+
* <p>Each custom pattern you create specifies a regular expression and an optional list of context words. If no context words are passed only a regular expression is checked.</p>
1526+
*/
15191527
public createCustomEntityType(
15201528
args: CreateCustomEntityTypeCommandInput,
15211529
options?: __HttpHandlerOptions
@@ -2218,6 +2226,9 @@ export class Glue extends GlueClient {
22182226
}
22192227
}
22202228

2229+
/**
2230+
* <p>Deletes a custom pattern by specifying its name.</p>
2231+
*/
22212232
public deleteCustomEntityType(
22222233
args: DeleteCustomEntityTypeCommandInput,
22232234
options?: __HttpHandlerOptions
@@ -3214,6 +3225,9 @@ export class Glue extends GlueClient {
32143225
}
32153226
}
32163227

3228+
/**
3229+
* <p>Retrieves the details of a custom pattern by specifying its name.</p>
3230+
*/
32173231
public getCustomEntityType(
32183232
args: GetCustomEntityTypeCommandInput,
32193233
options?: __HttpHandlerOptions
@@ -4766,6 +4780,9 @@ export class Glue extends GlueClient {
47664780
}
47674781
}
47684782

4783+
/**
4784+
* <p>Lists all the custom patterns that have been created.</p>
4785+
*/
47694786
public listCustomEntityTypes(
47704787
args: ListCustomEntityTypesCommandInput,
47714788
options?: __HttpHandlerOptions

clients/client-glue/src/commands/BatchGetCustomEntityTypesCommand.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@ import {
2121
export interface BatchGetCustomEntityTypesCommandInput extends BatchGetCustomEntityTypesRequest {}
2222
export interface BatchGetCustomEntityTypesCommandOutput extends BatchGetCustomEntityTypesResponse, __MetadataBearer {}
2323

24+
/**
25+
* <p>Retrieves the details for the custom patterns specified by a list of names.</p>
26+
* @example
27+
* Use a bare-bones client and the command you need to make an API call.
28+
* ```javascript
29+
* import { GlueClient, BatchGetCustomEntityTypesCommand } from "@aws-sdk/client-glue"; // ES Modules import
30+
* // const { GlueClient, BatchGetCustomEntityTypesCommand } = require("@aws-sdk/client-glue"); // CommonJS import
31+
* const client = new GlueClient(config);
32+
* const command = new BatchGetCustomEntityTypesCommand(input);
33+
* const response = await client.send(command);
34+
* ```
35+
*
36+
* @see {@link BatchGetCustomEntityTypesCommandInput} for command's `input` shape.
37+
* @see {@link BatchGetCustomEntityTypesCommandOutput} for command's `response` shape.
38+
* @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape.
39+
*
40+
*/
2441
export class BatchGetCustomEntityTypesCommand extends $Command<
2542
BatchGetCustomEntityTypesCommandInput,
2643
BatchGetCustomEntityTypesCommandOutput,

clients/client-glue/src/commands/CreateCustomEntityTypeCommand.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,25 @@ import {
2121
export interface CreateCustomEntityTypeCommandInput extends CreateCustomEntityTypeRequest {}
2222
export interface CreateCustomEntityTypeCommandOutput extends CreateCustomEntityTypeResponse, __MetadataBearer {}
2323

24+
/**
25+
* <p>Creates a custom pattern that is used to detect sensitive data across the columns and rows of your structured data.</p>
26+
*
27+
* <p>Each custom pattern you create specifies a regular expression and an optional list of context words. If no context words are passed only a regular expression is checked.</p>
28+
* @example
29+
* Use a bare-bones client and the command you need to make an API call.
30+
* ```javascript
31+
* import { GlueClient, CreateCustomEntityTypeCommand } from "@aws-sdk/client-glue"; // ES Modules import
32+
* // const { GlueClient, CreateCustomEntityTypeCommand } = require("@aws-sdk/client-glue"); // CommonJS import
33+
* const client = new GlueClient(config);
34+
* const command = new CreateCustomEntityTypeCommand(input);
35+
* const response = await client.send(command);
36+
* ```
37+
*
38+
* @see {@link CreateCustomEntityTypeCommandInput} for command's `input` shape.
39+
* @see {@link CreateCustomEntityTypeCommandOutput} for command's `response` shape.
40+
* @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape.
41+
*
42+
*/
2443
export class CreateCustomEntityTypeCommand extends $Command<
2544
CreateCustomEntityTypeCommandInput,
2645
CreateCustomEntityTypeCommandOutput,

clients/client-glue/src/commands/DeleteCustomEntityTypeCommand.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@ import {
2121
export interface DeleteCustomEntityTypeCommandInput extends DeleteCustomEntityTypeRequest {}
2222
export interface DeleteCustomEntityTypeCommandOutput extends DeleteCustomEntityTypeResponse, __MetadataBearer {}
2323

24+
/**
25+
* <p>Deletes a custom pattern by specifying its name.</p>
26+
* @example
27+
* Use a bare-bones client and the command you need to make an API call.
28+
* ```javascript
29+
* import { GlueClient, DeleteCustomEntityTypeCommand } from "@aws-sdk/client-glue"; // ES Modules import
30+
* // const { GlueClient, DeleteCustomEntityTypeCommand } = require("@aws-sdk/client-glue"); // CommonJS import
31+
* const client = new GlueClient(config);
32+
* const command = new DeleteCustomEntityTypeCommand(input);
33+
* const response = await client.send(command);
34+
* ```
35+
*
36+
* @see {@link DeleteCustomEntityTypeCommandInput} for command's `input` shape.
37+
* @see {@link DeleteCustomEntityTypeCommandOutput} for command's `response` shape.
38+
* @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape.
39+
*
40+
*/
2441
export class DeleteCustomEntityTypeCommand extends $Command<
2542
DeleteCustomEntityTypeCommandInput,
2643
DeleteCustomEntityTypeCommandOutput,

clients/client-glue/src/commands/GetCustomEntityTypeCommand.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@ import {
2121
export interface GetCustomEntityTypeCommandInput extends GetCustomEntityTypeRequest {}
2222
export interface GetCustomEntityTypeCommandOutput extends GetCustomEntityTypeResponse, __MetadataBearer {}
2323

24+
/**
25+
* <p>Retrieves the details of a custom pattern by specifying its name.</p>
26+
* @example
27+
* Use a bare-bones client and the command you need to make an API call.
28+
* ```javascript
29+
* import { GlueClient, GetCustomEntityTypeCommand } from "@aws-sdk/client-glue"; // ES Modules import
30+
* // const { GlueClient, GetCustomEntityTypeCommand } = require("@aws-sdk/client-glue"); // CommonJS import
31+
* const client = new GlueClient(config);
32+
* const command = new GetCustomEntityTypeCommand(input);
33+
* const response = await client.send(command);
34+
* ```
35+
*
36+
* @see {@link GetCustomEntityTypeCommandInput} for command's `input` shape.
37+
* @see {@link GetCustomEntityTypeCommandOutput} for command's `response` shape.
38+
* @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape.
39+
*
40+
*/
2441
export class GetCustomEntityTypeCommand extends $Command<
2542
GetCustomEntityTypeCommandInput,
2643
GetCustomEntityTypeCommandOutput,

clients/client-glue/src/commands/ListCustomEntityTypesCommand.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@ import {
2121
export interface ListCustomEntityTypesCommandInput extends ListCustomEntityTypesRequest {}
2222
export interface ListCustomEntityTypesCommandOutput extends ListCustomEntityTypesResponse, __MetadataBearer {}
2323

24+
/**
25+
* <p>Lists all the custom patterns that have been created.</p>
26+
* @example
27+
* Use a bare-bones client and the command you need to make an API call.
28+
* ```javascript
29+
* import { GlueClient, ListCustomEntityTypesCommand } from "@aws-sdk/client-glue"; // ES Modules import
30+
* // const { GlueClient, ListCustomEntityTypesCommand } = require("@aws-sdk/client-glue"); // CommonJS import
31+
* const client = new GlueClient(config);
32+
* const command = new ListCustomEntityTypesCommand(input);
33+
* const response = await client.send(command);
34+
* ```
35+
*
36+
* @see {@link ListCustomEntityTypesCommandInput} for command's `input` shape.
37+
* @see {@link ListCustomEntityTypesCommandOutput} for command's `response` shape.
38+
* @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape.
39+
*
40+
*/
2441
export class ListCustomEntityTypesCommand extends $Command<
2542
ListCustomEntityTypesCommandInput,
2643
ListCustomEntityTypesCommandOutput,

clients/client-glue/src/models/models_0.ts

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,8 +1185,18 @@ export namespace BatchGetCrawlersRequest {
11851185
});
11861186
}
11871187

1188+
/**
1189+
* <p>Specifies AWS Lake Formation configuration settings for the crawler.</p>
1190+
*/
11881191
export interface LakeFormationConfiguration {
1192+
/**
1193+
* <p>Specifies whether to use AWS Lake Formation credentials for the crawler instead of the IAM role credentials.</p>
1194+
*/
11891195
UseLakeFormationCredentials?: boolean;
1196+
1197+
/**
1198+
* <p>Required for cross account crawls. For same account crawls as the target data, this can be left as null.</p>
1199+
*/
11901200
AccountId?: string;
11911201
}
11921202

@@ -1735,6 +1745,9 @@ export interface Crawler {
17351745
*/
17361746
CrawlerSecurityConfiguration?: string;
17371747

1748+
/**
1749+
* <p>Specifies whether the crawler should use AWS Lake Formation credentials for the crawler instead of the IAM role credentials.</p>
1750+
*/
17381751
LakeFormationConfiguration?: LakeFormationConfiguration;
17391752
}
17401753

@@ -1769,6 +1782,9 @@ export namespace BatchGetCrawlersResponse {
17691782
}
17701783

17711784
export interface BatchGetCustomEntityTypesRequest {
1785+
/**
1786+
* <p>A list of names of the custom patterns that you want to retrieve.</p>
1787+
*/
17721788
Names: string[] | undefined;
17731789
}
17741790

@@ -1781,9 +1797,25 @@ export namespace BatchGetCustomEntityTypesRequest {
17811797
});
17821798
}
17831799

1800+
/**
1801+
* <p>An object representing a custom pattern for detecting sensitive data across the columns and rows of your structured data.</p>
1802+
*/
17841803
export interface CustomEntityType {
1804+
/**
1805+
* <p>A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique per Amazon Web Services account.</p>
1806+
*/
17851807
Name: string | undefined;
1808+
1809+
/**
1810+
* <p>A regular expression string that is used for detecting sensitive data in a custom pattern.</p>
1811+
*/
17861812
RegexString: string | undefined;
1813+
1814+
/**
1815+
* <p>A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.</p>
1816+
*
1817+
* <p>If no context words are passed only a regular expression is checked.</p>
1818+
*/
17871819
ContextWords?: string[];
17881820
}
17891821

@@ -1797,7 +1829,14 @@ export namespace CustomEntityType {
17971829
}
17981830

17991831
export interface BatchGetCustomEntityTypesResponse {
1832+
/**
1833+
* <p>A list of <code>CustomEntityType</code> objects representing the custom patterns that have been created.</p>
1834+
*/
18001835
CustomEntityTypes?: CustomEntityType[];
1836+
1837+
/**
1838+
* <p>A list of the names of custom patterns that were not found.</p>
1839+
*/
18011840
CustomEntityTypesNotFound?: string[];
18021841
}
18031842

@@ -4248,7 +4287,11 @@ export interface CreateCrawlerRequest {
42484287
*/
42494288
LineageConfiguration?: LineageConfiguration;
42504289

4290+
/**
4291+
* <p>Specifies AWS Lake Formation configuration settings for the crawler.</p>
4292+
*/
42514293
LakeFormationConfiguration?: LakeFormationConfiguration;
4294+
42524295
/**
42534296
* <p>Crawler configuration information. This versioned JSON
42544297
* string allows users to specify aspects of a crawler's behavior.
@@ -4291,8 +4334,21 @@ export namespace CreateCrawlerResponse {
42914334
}
42924335

42934336
export interface CreateCustomEntityTypeRequest {
4337+
/**
4338+
* <p>A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique per Amazon Web Services account.</p>
4339+
*/
42944340
Name: string | undefined;
4341+
4342+
/**
4343+
* <p>A regular expression string that is used for detecting sensitive data in a custom pattern.</p>
4344+
*/
42954345
RegexString: string | undefined;
4346+
4347+
/**
4348+
* <p>A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.</p>
4349+
*
4350+
* <p>If no context words are passed only a regular expression is checked.</p>
4351+
*/
42964352
ContextWords?: string[];
42974353
}
42984354

@@ -4306,6 +4362,9 @@ export namespace CreateCustomEntityTypeRequest {
43064362
}
43074363

43084364
export interface CreateCustomEntityTypeResponse {
4365+
/**
4366+
* <p>The name of the custom pattern you created.</p>
4367+
*/
43094368
Name?: string;
43104369
}
43114370

@@ -6894,6 +6953,9 @@ export class SchedulerTransitioningException extends __BaseException {
68946953
}
68956954

68966955
export interface DeleteCustomEntityTypeRequest {
6956+
/**
6957+
* <p>The name of the custom pattern that you want to delete.</p>
6958+
*/
68976959
Name: string | undefined;
68986960
}
68996961

@@ -6907,6 +6969,9 @@ export namespace DeleteCustomEntityTypeRequest {
69076969
}
69086970

69096971
export interface DeleteCustomEntityTypeResponse {
6972+
/**
6973+
* <p>The name of the custom pattern you deleted.</p>
6974+
*/
69106975
Name?: string;
69116976
}
69126977

clients/client-glue/src/models/models_1.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,9 @@ export namespace GetCrawlersResponse {
765765
}
766766

767767
export interface GetCustomEntityTypeRequest {
768+
/**
769+
* <p>The name of the custom pattern that you want to retrieve.</p>
770+
*/
768771
Name: string | undefined;
769772
}
770773

@@ -778,8 +781,19 @@ export namespace GetCustomEntityTypeRequest {
778781
}
779782

780783
export interface GetCustomEntityTypeResponse {
784+
/**
785+
* <p>The name of the custom pattern that you retrieved.</p>
786+
*/
781787
Name?: string;
788+
789+
/**
790+
* <p>A regular expression string that is used for detecting sensitive data in a custom pattern.</p>
791+
*/
782792
RegexString?: string;
793+
794+
/**
795+
* <p>A list of context words if specified when you created the custom pattern. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.</p>
796+
*/
783797
ContextWords?: string[];
784798
}
785799

@@ -5117,7 +5131,14 @@ export namespace ListCrawlersResponse {
51175131
}
51185132

51195133
export interface ListCustomEntityTypesRequest {
5134+
/**
5135+
* <p>A paginated token to offset the results.</p>
5136+
*/
51205137
NextToken?: string;
5138+
5139+
/**
5140+
* <p>The maximum number of results to return.</p>
5141+
*/
51215142
MaxResults?: number;
51225143
}
51235144

@@ -5131,7 +5152,14 @@ export namespace ListCustomEntityTypesRequest {
51315152
}
51325153

51335154
export interface ListCustomEntityTypesResponse {
5155+
/**
5156+
* <p>A list of <code>CustomEntityType</code> objects representing custom patterns.</p>
5157+
*/
51345158
CustomEntityTypes?: CustomEntityType[];
5159+
5160+
/**
5161+
* <p>A pagination token, if more results are available.</p>
5162+
*/
51355163
NextToken?: string;
51365164
}
51375165

@@ -7903,7 +7931,11 @@ export interface UpdateCrawlerRequest {
79037931
*/
79047932
LineageConfiguration?: LineageConfiguration;
79057933

7934+
/**
7935+
* <p>Specifies AWS Lake Formation configuration settings for the crawler.</p>
7936+
*/
79067937
LakeFormationConfiguration?: LakeFormationConfiguration;
7938+
79077939
/**
79087940
* <p>Crawler configuration information. This versioned JSON string allows users
79097941
* to specify aspects of a crawler's behavior.

0 commit comments

Comments
 (0)