@aws-sdk/client-glue 3.197.0 → 3.199.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist-cjs/protocols/Aws_json1_1.js +30 -0
- package/dist-es/protocols/Aws_json1_1.js +30 -0
- package/dist-types/models/models_0.d.ts +8 -0
- package/dist-types/models/models_1.d.ts +8 -0
- package/dist-types/models/models_2.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/dist-types/ts3.4/models/models_1.d.ts +2 -0
- package/dist-types/ts3.4/models/models_2.d.ts +2 -0
- package/package.json +29 -29
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.199.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.198.0...v3.199.0) (2022-10-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-glue
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.198.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.197.0...v3.198.0) (2022-10-27)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **client-glue:** Added support for custom datatypes when using custom csv classifier. ([3711a1f](https://github.com/aws/aws-sdk-js-v3/commit/3711a1f878e86f8ecfffa374b79cea428f41497f))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.197.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.196.0...v3.197.0) (2022-10-26)
|
|
7
26
|
|
|
8
27
|
|
|
@@ -11245,6 +11245,10 @@ const serializeAws_json1_1CreateCsvClassifierRequest = (input, context) => {
|
|
|
11245
11245
|
return {
|
|
11246
11246
|
...(input.AllowSingleColumn != null && { AllowSingleColumn: input.AllowSingleColumn }),
|
|
11247
11247
|
...(input.ContainsHeader != null && { ContainsHeader: input.ContainsHeader }),
|
|
11248
|
+
...(input.CustomDatatypeConfigured != null && { CustomDatatypeConfigured: input.CustomDatatypeConfigured }),
|
|
11249
|
+
...(input.CustomDatatypes != null && {
|
|
11250
|
+
CustomDatatypes: serializeAws_json1_1CustomDatatypes(input.CustomDatatypes, context),
|
|
11251
|
+
}),
|
|
11248
11252
|
...(input.Delimiter != null && { Delimiter: input.Delimiter }),
|
|
11249
11253
|
...(input.DisableValueTrimming != null && { DisableValueTrimming: input.DisableValueTrimming }),
|
|
11250
11254
|
...(input.Header != null && { Header: serializeAws_json1_1CsvHeader(input.Header, context) }),
|
|
@@ -11508,6 +11512,13 @@ const serializeAws_json1_1CustomCode = (input, context) => {
|
|
|
11508
11512
|
}),
|
|
11509
11513
|
};
|
|
11510
11514
|
};
|
|
11515
|
+
const serializeAws_json1_1CustomDatatypes = (input, context) => {
|
|
11516
|
+
return input
|
|
11517
|
+
.filter((e) => e != null)
|
|
11518
|
+
.map((entry) => {
|
|
11519
|
+
return entry;
|
|
11520
|
+
});
|
|
11521
|
+
};
|
|
11511
11522
|
const serializeAws_json1_1CustomEntityTypeNames = (input, context) => {
|
|
11512
11523
|
return input
|
|
11513
11524
|
.filter((e) => e != null)
|
|
@@ -14159,6 +14170,10 @@ const serializeAws_json1_1UpdateCsvClassifierRequest = (input, context) => {
|
|
|
14159
14170
|
return {
|
|
14160
14171
|
...(input.AllowSingleColumn != null && { AllowSingleColumn: input.AllowSingleColumn }),
|
|
14161
14172
|
...(input.ContainsHeader != null && { ContainsHeader: input.ContainsHeader }),
|
|
14173
|
+
...(input.CustomDatatypeConfigured != null && { CustomDatatypeConfigured: input.CustomDatatypeConfigured }),
|
|
14174
|
+
...(input.CustomDatatypes != null && {
|
|
14175
|
+
CustomDatatypes: serializeAws_json1_1CustomDatatypes(input.CustomDatatypes, context),
|
|
14176
|
+
}),
|
|
14162
14177
|
...(input.Delimiter != null && { Delimiter: input.Delimiter }),
|
|
14163
14178
|
...(input.DisableValueTrimming != null && { DisableValueTrimming: input.DisableValueTrimming }),
|
|
14164
14179
|
...(input.Header != null && { Header: serializeAws_json1_1CsvHeader(input.Header, context) }),
|
|
@@ -15611,6 +15626,10 @@ const deserializeAws_json1_1CsvClassifier = (output, context) => {
|
|
|
15611
15626
|
CreationTime: output.CreationTime != null
|
|
15612
15627
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
15613
15628
|
: undefined,
|
|
15629
|
+
CustomDatatypeConfigured: (0, smithy_client_1.expectBoolean)(output.CustomDatatypeConfigured),
|
|
15630
|
+
CustomDatatypes: output.CustomDatatypes != null
|
|
15631
|
+
? deserializeAws_json1_1CustomDatatypes(output.CustomDatatypes, context)
|
|
15632
|
+
: undefined,
|
|
15614
15633
|
Delimiter: (0, smithy_client_1.expectString)(output.Delimiter),
|
|
15615
15634
|
DisableValueTrimming: (0, smithy_client_1.expectBoolean)(output.DisableValueTrimming),
|
|
15616
15635
|
Header: output.Header != null ? deserializeAws_json1_1CsvHeader(output.Header, context) : undefined,
|
|
@@ -15642,6 +15661,17 @@ const deserializeAws_json1_1CustomCode = (output, context) => {
|
|
|
15642
15661
|
OutputSchemas: output.OutputSchemas != null ? deserializeAws_json1_1GlueSchemas(output.OutputSchemas, context) : undefined,
|
|
15643
15662
|
};
|
|
15644
15663
|
};
|
|
15664
|
+
const deserializeAws_json1_1CustomDatatypes = (output, context) => {
|
|
15665
|
+
const retVal = (output || [])
|
|
15666
|
+
.filter((e) => e != null)
|
|
15667
|
+
.map((entry) => {
|
|
15668
|
+
if (entry === null) {
|
|
15669
|
+
return null;
|
|
15670
|
+
}
|
|
15671
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
15672
|
+
});
|
|
15673
|
+
return retVal;
|
|
15674
|
+
};
|
|
15645
15675
|
const deserializeAws_json1_1CustomEntityType = (output, context) => {
|
|
15646
15676
|
return {
|
|
15647
15677
|
ContextWords: output.ContextWords != null ? deserializeAws_json1_1ContextWords(output.ContextWords, context) : undefined,
|
|
@@ -10863,6 +10863,10 @@ const serializeAws_json1_1CreateCsvClassifierRequest = (input, context) => {
|
|
|
10863
10863
|
return {
|
|
10864
10864
|
...(input.AllowSingleColumn != null && { AllowSingleColumn: input.AllowSingleColumn }),
|
|
10865
10865
|
...(input.ContainsHeader != null && { ContainsHeader: input.ContainsHeader }),
|
|
10866
|
+
...(input.CustomDatatypeConfigured != null && { CustomDatatypeConfigured: input.CustomDatatypeConfigured }),
|
|
10867
|
+
...(input.CustomDatatypes != null && {
|
|
10868
|
+
CustomDatatypes: serializeAws_json1_1CustomDatatypes(input.CustomDatatypes, context),
|
|
10869
|
+
}),
|
|
10866
10870
|
...(input.Delimiter != null && { Delimiter: input.Delimiter }),
|
|
10867
10871
|
...(input.DisableValueTrimming != null && { DisableValueTrimming: input.DisableValueTrimming }),
|
|
10868
10872
|
...(input.Header != null && { Header: serializeAws_json1_1CsvHeader(input.Header, context) }),
|
|
@@ -11126,6 +11130,13 @@ const serializeAws_json1_1CustomCode = (input, context) => {
|
|
|
11126
11130
|
}),
|
|
11127
11131
|
};
|
|
11128
11132
|
};
|
|
11133
|
+
const serializeAws_json1_1CustomDatatypes = (input, context) => {
|
|
11134
|
+
return input
|
|
11135
|
+
.filter((e) => e != null)
|
|
11136
|
+
.map((entry) => {
|
|
11137
|
+
return entry;
|
|
11138
|
+
});
|
|
11139
|
+
};
|
|
11129
11140
|
const serializeAws_json1_1CustomEntityTypeNames = (input, context) => {
|
|
11130
11141
|
return input
|
|
11131
11142
|
.filter((e) => e != null)
|
|
@@ -13777,6 +13788,10 @@ const serializeAws_json1_1UpdateCsvClassifierRequest = (input, context) => {
|
|
|
13777
13788
|
return {
|
|
13778
13789
|
...(input.AllowSingleColumn != null && { AllowSingleColumn: input.AllowSingleColumn }),
|
|
13779
13790
|
...(input.ContainsHeader != null && { ContainsHeader: input.ContainsHeader }),
|
|
13791
|
+
...(input.CustomDatatypeConfigured != null && { CustomDatatypeConfigured: input.CustomDatatypeConfigured }),
|
|
13792
|
+
...(input.CustomDatatypes != null && {
|
|
13793
|
+
CustomDatatypes: serializeAws_json1_1CustomDatatypes(input.CustomDatatypes, context),
|
|
13794
|
+
}),
|
|
13780
13795
|
...(input.Delimiter != null && { Delimiter: input.Delimiter }),
|
|
13781
13796
|
...(input.DisableValueTrimming != null && { DisableValueTrimming: input.DisableValueTrimming }),
|
|
13782
13797
|
...(input.Header != null && { Header: serializeAws_json1_1CsvHeader(input.Header, context) }),
|
|
@@ -15229,6 +15244,10 @@ const deserializeAws_json1_1CsvClassifier = (output, context) => {
|
|
|
15229
15244
|
CreationTime: output.CreationTime != null
|
|
15230
15245
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
15231
15246
|
: undefined,
|
|
15247
|
+
CustomDatatypeConfigured: __expectBoolean(output.CustomDatatypeConfigured),
|
|
15248
|
+
CustomDatatypes: output.CustomDatatypes != null
|
|
15249
|
+
? deserializeAws_json1_1CustomDatatypes(output.CustomDatatypes, context)
|
|
15250
|
+
: undefined,
|
|
15232
15251
|
Delimiter: __expectString(output.Delimiter),
|
|
15233
15252
|
DisableValueTrimming: __expectBoolean(output.DisableValueTrimming),
|
|
15234
15253
|
Header: output.Header != null ? deserializeAws_json1_1CsvHeader(output.Header, context) : undefined,
|
|
@@ -15260,6 +15279,17 @@ const deserializeAws_json1_1CustomCode = (output, context) => {
|
|
|
15260
15279
|
OutputSchemas: output.OutputSchemas != null ? deserializeAws_json1_1GlueSchemas(output.OutputSchemas, context) : undefined,
|
|
15261
15280
|
};
|
|
15262
15281
|
};
|
|
15282
|
+
const deserializeAws_json1_1CustomDatatypes = (output, context) => {
|
|
15283
|
+
const retVal = (output || [])
|
|
15284
|
+
.filter((e) => e != null)
|
|
15285
|
+
.map((entry) => {
|
|
15286
|
+
if (entry === null) {
|
|
15287
|
+
return null;
|
|
15288
|
+
}
|
|
15289
|
+
return __expectString(entry);
|
|
15290
|
+
});
|
|
15291
|
+
return retVal;
|
|
15292
|
+
};
|
|
15263
15293
|
const deserializeAws_json1_1CustomEntityType = (output, context) => {
|
|
15264
15294
|
return {
|
|
15265
15295
|
ContextWords: output.ContextWords != null ? deserializeAws_json1_1ContextWords(output.ContextWords, context) : undefined,
|
|
@@ -4298,6 +4298,14 @@ export interface CreateCsvClassifierRequest {
|
|
|
4298
4298
|
* <p>Enables the processing of files that contain only one column.</p>
|
|
4299
4299
|
*/
|
|
4300
4300
|
AllowSingleColumn?: boolean;
|
|
4301
|
+
/**
|
|
4302
|
+
* <p>Enables the configuration of custom datatypes.</p>
|
|
4303
|
+
*/
|
|
4304
|
+
CustomDatatypeConfigured?: boolean;
|
|
4305
|
+
/**
|
|
4306
|
+
* <p>Creates a list of supported custom datatypes.</p>
|
|
4307
|
+
*/
|
|
4308
|
+
CustomDatatypes?: string[];
|
|
4301
4309
|
}
|
|
4302
4310
|
/**
|
|
4303
4311
|
* <p>Specifies a <code>grok</code> classifier for <code>CreateClassifier</code>
|
|
@@ -679,6 +679,14 @@ export interface CsvClassifier {
|
|
|
679
679
|
* <p>Enables the processing of files that contain only one column.</p>
|
|
680
680
|
*/
|
|
681
681
|
AllowSingleColumn?: boolean;
|
|
682
|
+
/**
|
|
683
|
+
* <p>Enables the custom datatype to be configured.</p>
|
|
684
|
+
*/
|
|
685
|
+
CustomDatatypeConfigured?: boolean;
|
|
686
|
+
/**
|
|
687
|
+
* <p>A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", "SHORT", "STRING", "TIMESTAMP".</p>
|
|
688
|
+
*/
|
|
689
|
+
CustomDatatypes?: string[];
|
|
682
690
|
}
|
|
683
691
|
/**
|
|
684
692
|
* <p>A classifier that uses <code>grok</code> patterns.</p>
|
|
@@ -817,6 +817,14 @@ export interface UpdateCsvClassifierRequest {
|
|
|
817
817
|
* <p>Enables the processing of files that contain only one column.</p>
|
|
818
818
|
*/
|
|
819
819
|
AllowSingleColumn?: boolean;
|
|
820
|
+
/**
|
|
821
|
+
* <p>Specifies the configuration of custom datatypes.</p>
|
|
822
|
+
*/
|
|
823
|
+
CustomDatatypeConfigured?: boolean;
|
|
824
|
+
/**
|
|
825
|
+
* <p>Specifies a list of supported custom datatypes.</p>
|
|
826
|
+
*/
|
|
827
|
+
CustomDatatypes?: string[];
|
|
820
828
|
}
|
|
821
829
|
/**
|
|
822
830
|
* <p>Specifies a grok classifier to update when passed to
|
|
@@ -1412,6 +1412,8 @@ export interface CreateCsvClassifierRequest {
|
|
|
1412
1412
|
Header?: string[];
|
|
1413
1413
|
DisableValueTrimming?: boolean;
|
|
1414
1414
|
AllowSingleColumn?: boolean;
|
|
1415
|
+
CustomDatatypeConfigured?: boolean;
|
|
1416
|
+
CustomDatatypes?: string[];
|
|
1415
1417
|
}
|
|
1416
1418
|
export interface CreateGrokClassifierRequest {
|
|
1417
1419
|
Classification: string | undefined;
|
|
@@ -303,6 +303,8 @@ export interface CsvClassifier {
|
|
|
303
303
|
Header?: string[];
|
|
304
304
|
DisableValueTrimming?: boolean;
|
|
305
305
|
AllowSingleColumn?: boolean;
|
|
306
|
+
CustomDatatypeConfigured?: boolean;
|
|
307
|
+
CustomDatatypes?: string[];
|
|
306
308
|
}
|
|
307
309
|
export interface GrokClassifier {
|
|
308
310
|
Name: string | undefined;
|
|
@@ -393,6 +393,8 @@ export interface UpdateCsvClassifierRequest {
|
|
|
393
393
|
Header?: string[];
|
|
394
394
|
DisableValueTrimming?: boolean;
|
|
395
395
|
AllowSingleColumn?: boolean;
|
|
396
|
+
CustomDatatypeConfigured?: boolean;
|
|
397
|
+
CustomDatatypes?: string[];
|
|
396
398
|
}
|
|
397
399
|
export interface UpdateGrokClassifierRequest {
|
|
398
400
|
Name: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-glue",
|
|
3
3
|
"description": "AWS SDK for JavaScript Glue Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.199.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,39 +19,39 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.199.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.198.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.199.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.199.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.198.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.198.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.199.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.198.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.198.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.198.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.198.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.198.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.198.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.198.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.198.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.198.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.198.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.199.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.198.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.198.0",
|
|
42
|
+
"@aws-sdk/types": "3.198.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.198.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
45
45
|
"@aws-sdk/util-base64-node": "3.188.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.188.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.198.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.198.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.198.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-browser": "3.198.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-node": "3.198.0",
|
|
53
53
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
54
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
54
|
+
"@aws-sdk/util-utf8-node": "3.199.0",
|
|
55
55
|
"tslib": "^2.3.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|