@aws-sdk/client-finspace-data 3.121.0 → 3.130.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +80 -109
- package/dist-es/protocols/Aws_restJson1.js +49 -78
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-finspace-data
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-finspace-data
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -69,12 +69,14 @@ const serializeAws_restJson1CreateChangesetCommand = async (input, context) => {
|
|
|
69
69
|
}
|
|
70
70
|
let body;
|
|
71
71
|
body = JSON.stringify({
|
|
72
|
-
...(input.changeType
|
|
72
|
+
...(input.changeType != null && { changeType: input.changeType }),
|
|
73
73
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
74
|
-
...(input.formatParams
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
...(input.formatParams != null && {
|
|
75
|
+
formatParams: serializeAws_restJson1FormatParams(input.formatParams, context),
|
|
76
|
+
}),
|
|
77
|
+
...(input.sourceParams != null && {
|
|
78
|
+
sourceParams: serializeAws_restJson1SourceParams(input.sourceParams, context),
|
|
79
|
+
}),
|
|
78
80
|
});
|
|
79
81
|
return new protocol_http_1.HttpRequest({
|
|
80
82
|
protocol,
|
|
@@ -96,20 +98,16 @@ const serializeAws_restJson1CreateDatasetCommand = async (input, context) => {
|
|
|
96
98
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2";
|
|
97
99
|
let body;
|
|
98
100
|
body = JSON.stringify({
|
|
99
|
-
...(input.alias
|
|
101
|
+
...(input.alias != null && { alias: input.alias }),
|
|
100
102
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
101
|
-
...(input.datasetDescription
|
|
102
|
-
|
|
103
|
-
...(input.
|
|
104
|
-
...(input.
|
|
105
|
-
...(input.
|
|
106
|
-
input.ownerInfo !== null && { ownerInfo: serializeAws_restJson1DatasetOwnerInfo(input.ownerInfo, context) }),
|
|
107
|
-
...(input.permissionGroupParams !== undefined &&
|
|
108
|
-
input.permissionGroupParams !== null && {
|
|
103
|
+
...(input.datasetDescription != null && { datasetDescription: input.datasetDescription }),
|
|
104
|
+
...(input.datasetTitle != null && { datasetTitle: input.datasetTitle }),
|
|
105
|
+
...(input.kind != null && { kind: input.kind }),
|
|
106
|
+
...(input.ownerInfo != null && { ownerInfo: serializeAws_restJson1DatasetOwnerInfo(input.ownerInfo, context) }),
|
|
107
|
+
...(input.permissionGroupParams != null && {
|
|
109
108
|
permissionGroupParams: serializeAws_restJson1PermissionGroupParams(input.permissionGroupParams, context),
|
|
110
109
|
}),
|
|
111
|
-
...(input.schemaDefinition
|
|
112
|
-
input.schemaDefinition !== null && {
|
|
110
|
+
...(input.schemaDefinition != null && {
|
|
113
111
|
schemaDefinition: serializeAws_restJson1SchemaUnion(input.schemaDefinition, context),
|
|
114
112
|
}),
|
|
115
113
|
});
|
|
@@ -143,19 +141,16 @@ const serializeAws_restJson1CreateDataViewCommand = async (input, context) => {
|
|
|
143
141
|
}
|
|
144
142
|
let body;
|
|
145
143
|
body = JSON.stringify({
|
|
146
|
-
...(input.asOfTimestamp
|
|
147
|
-
...(input.autoUpdate
|
|
144
|
+
...(input.asOfTimestamp != null && { asOfTimestamp: input.asOfTimestamp }),
|
|
145
|
+
...(input.autoUpdate != null && { autoUpdate: input.autoUpdate }),
|
|
148
146
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
149
|
-
...(input.destinationTypeParams
|
|
150
|
-
input.destinationTypeParams !== null && {
|
|
147
|
+
...(input.destinationTypeParams != null && {
|
|
151
148
|
destinationTypeParams: serializeAws_restJson1DataViewDestinationTypeParams(input.destinationTypeParams, context),
|
|
152
149
|
}),
|
|
153
|
-
...(input.partitionColumns
|
|
154
|
-
input.partitionColumns !== null && {
|
|
150
|
+
...(input.partitionColumns != null && {
|
|
155
151
|
partitionColumns: serializeAws_restJson1PartitionColumnList(input.partitionColumns, context),
|
|
156
152
|
}),
|
|
157
|
-
...(input.sortColumns
|
|
158
|
-
input.sortColumns !== null && { sortColumns: serializeAws_restJson1SortColumnList(input.sortColumns, context) }),
|
|
153
|
+
...(input.sortColumns != null && { sortColumns: serializeAws_restJson1SortColumnList(input.sortColumns, context) }),
|
|
159
154
|
});
|
|
160
155
|
return new protocol_http_1.HttpRequest({
|
|
161
156
|
protocol,
|
|
@@ -177,13 +172,12 @@ const serializeAws_restJson1CreatePermissionGroupCommand = async (input, context
|
|
|
177
172
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group";
|
|
178
173
|
let body;
|
|
179
174
|
body = JSON.stringify({
|
|
180
|
-
...(input.applicationPermissions
|
|
181
|
-
input.applicationPermissions !== null && {
|
|
175
|
+
...(input.applicationPermissions != null && {
|
|
182
176
|
applicationPermissions: serializeAws_restJson1ApplicationPermissionList(input.applicationPermissions, context),
|
|
183
177
|
}),
|
|
184
178
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
185
|
-
...(input.description
|
|
186
|
-
...(input.name
|
|
179
|
+
...(input.description != null && { description: input.description }),
|
|
180
|
+
...(input.name != null && { name: input.name }),
|
|
187
181
|
});
|
|
188
182
|
return new protocol_http_1.HttpRequest({
|
|
189
183
|
protocol,
|
|
@@ -205,14 +199,13 @@ const serializeAws_restJson1CreateUserCommand = async (input, context) => {
|
|
|
205
199
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user";
|
|
206
200
|
let body;
|
|
207
201
|
body = JSON.stringify({
|
|
208
|
-
...(input.ApiAccess
|
|
209
|
-
...(input.apiAccessPrincipalArn
|
|
210
|
-
input.apiAccessPrincipalArn !== null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn }),
|
|
202
|
+
...(input.ApiAccess != null && { ApiAccess: input.ApiAccess }),
|
|
203
|
+
...(input.apiAccessPrincipalArn != null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn }),
|
|
211
204
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
212
|
-
...(input.emailAddress
|
|
213
|
-
...(input.firstName
|
|
214
|
-
...(input.lastName
|
|
215
|
-
...(input.type
|
|
205
|
+
...(input.emailAddress != null && { emailAddress: input.emailAddress }),
|
|
206
|
+
...(input.firstName != null && { firstName: input.firstName }),
|
|
207
|
+
...(input.lastName != null && { lastName: input.lastName }),
|
|
208
|
+
...(input.type != null && { type: input.type }),
|
|
216
209
|
});
|
|
217
210
|
return new protocol_http_1.HttpRequest({
|
|
218
211
|
protocol,
|
|
@@ -608,7 +601,7 @@ const serializeAws_restJson1GetWorkingLocationCommand = async (input, context) =
|
|
|
608
601
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workingLocationV1";
|
|
609
602
|
let body;
|
|
610
603
|
body = JSON.stringify({
|
|
611
|
-
...(input.locationType
|
|
604
|
+
...(input.locationType != null && { locationType: input.locationType }),
|
|
612
605
|
});
|
|
613
606
|
return new protocol_http_1.HttpRequest({
|
|
614
607
|
protocol,
|
|
@@ -872,10 +865,12 @@ const serializeAws_restJson1UpdateChangesetCommand = async (input, context) => {
|
|
|
872
865
|
let body;
|
|
873
866
|
body = JSON.stringify({
|
|
874
867
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
875
|
-
...(input.formatParams
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
868
|
+
...(input.formatParams != null && {
|
|
869
|
+
formatParams: serializeAws_restJson1FormatParams(input.formatParams, context),
|
|
870
|
+
}),
|
|
871
|
+
...(input.sourceParams != null && {
|
|
872
|
+
sourceParams: serializeAws_restJson1SourceParams(input.sourceParams, context),
|
|
873
|
+
}),
|
|
879
874
|
});
|
|
880
875
|
return new protocol_http_1.HttpRequest({
|
|
881
876
|
protocol,
|
|
@@ -907,14 +902,12 @@ const serializeAws_restJson1UpdateDatasetCommand = async (input, context) => {
|
|
|
907
902
|
}
|
|
908
903
|
let body;
|
|
909
904
|
body = JSON.stringify({
|
|
910
|
-
...(input.alias
|
|
905
|
+
...(input.alias != null && { alias: input.alias }),
|
|
911
906
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
912
|
-
...(input.datasetDescription
|
|
913
|
-
|
|
914
|
-
...(input.
|
|
915
|
-
...(input.
|
|
916
|
-
...(input.schemaDefinition !== undefined &&
|
|
917
|
-
input.schemaDefinition !== null && {
|
|
907
|
+
...(input.datasetDescription != null && { datasetDescription: input.datasetDescription }),
|
|
908
|
+
...(input.datasetTitle != null && { datasetTitle: input.datasetTitle }),
|
|
909
|
+
...(input.kind != null && { kind: input.kind }),
|
|
910
|
+
...(input.schemaDefinition != null && {
|
|
918
911
|
schemaDefinition: serializeAws_restJson1SchemaUnion(input.schemaDefinition, context),
|
|
919
912
|
}),
|
|
920
913
|
});
|
|
@@ -948,13 +941,12 @@ const serializeAws_restJson1UpdatePermissionGroupCommand = async (input, context
|
|
|
948
941
|
}
|
|
949
942
|
let body;
|
|
950
943
|
body = JSON.stringify({
|
|
951
|
-
...(input.applicationPermissions
|
|
952
|
-
input.applicationPermissions !== null && {
|
|
944
|
+
...(input.applicationPermissions != null && {
|
|
953
945
|
applicationPermissions: serializeAws_restJson1ApplicationPermissionList(input.applicationPermissions, context),
|
|
954
946
|
}),
|
|
955
947
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
956
|
-
...(input.description
|
|
957
|
-
...(input.name
|
|
948
|
+
...(input.description != null && { description: input.description }),
|
|
949
|
+
...(input.name != null && { name: input.name }),
|
|
958
950
|
});
|
|
959
951
|
return new protocol_http_1.HttpRequest({
|
|
960
952
|
protocol,
|
|
@@ -986,13 +978,12 @@ const serializeAws_restJson1UpdateUserCommand = async (input, context) => {
|
|
|
986
978
|
}
|
|
987
979
|
let body;
|
|
988
980
|
body = JSON.stringify({
|
|
989
|
-
...(input.apiAccess
|
|
990
|
-
...(input.apiAccessPrincipalArn
|
|
991
|
-
input.apiAccessPrincipalArn !== null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn }),
|
|
981
|
+
...(input.apiAccess != null && { apiAccess: input.apiAccess }),
|
|
982
|
+
...(input.apiAccessPrincipalArn != null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn }),
|
|
992
983
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
993
|
-
...(input.firstName
|
|
994
|
-
...(input.lastName
|
|
995
|
-
...(input.type
|
|
984
|
+
...(input.firstName != null && { firstName: input.firstName }),
|
|
985
|
+
...(input.lastName != null && { lastName: input.lastName }),
|
|
986
|
+
...(input.type != null && { type: input.type }),
|
|
996
987
|
});
|
|
997
988
|
return new protocol_http_1.HttpRequest({
|
|
998
989
|
protocol,
|
|
@@ -2953,10 +2944,9 @@ const serializeAws_restJson1ApplicationPermissionList = (input, context) => {
|
|
|
2953
2944
|
};
|
|
2954
2945
|
const serializeAws_restJson1ColumnDefinition = (input, context) => {
|
|
2955
2946
|
return {
|
|
2956
|
-
...(input.columnDescription
|
|
2957
|
-
|
|
2958
|
-
...(input.
|
|
2959
|
-
...(input.dataType !== undefined && input.dataType !== null && { dataType: input.dataType }),
|
|
2947
|
+
...(input.columnDescription != null && { columnDescription: input.columnDescription }),
|
|
2948
|
+
...(input.columnName != null && { columnName: input.columnName }),
|
|
2949
|
+
...(input.dataType != null && { dataType: input.dataType }),
|
|
2960
2950
|
};
|
|
2961
2951
|
};
|
|
2962
2952
|
const serializeAws_restJson1ColumnList = (input, context) => {
|
|
@@ -2981,21 +2971,18 @@ const serializeAws_restJson1ColumnNameList = (input, context) => {
|
|
|
2981
2971
|
};
|
|
2982
2972
|
const serializeAws_restJson1DatasetOwnerInfo = (input, context) => {
|
|
2983
2973
|
return {
|
|
2984
|
-
...(input.email
|
|
2985
|
-
...(input.name
|
|
2986
|
-
...(input.phoneNumber
|
|
2974
|
+
...(input.email != null && { email: input.email }),
|
|
2975
|
+
...(input.name != null && { name: input.name }),
|
|
2976
|
+
...(input.phoneNumber != null && { phoneNumber: input.phoneNumber }),
|
|
2987
2977
|
};
|
|
2988
2978
|
};
|
|
2989
2979
|
const serializeAws_restJson1DataViewDestinationTypeParams = (input, context) => {
|
|
2990
2980
|
return {
|
|
2991
|
-
...(input.destinationType
|
|
2992
|
-
|
|
2993
|
-
...(input.s3DestinationExportFileFormat !== undefined &&
|
|
2994
|
-
input.s3DestinationExportFileFormat !== null && {
|
|
2981
|
+
...(input.destinationType != null && { destinationType: input.destinationType }),
|
|
2982
|
+
...(input.s3DestinationExportFileFormat != null && {
|
|
2995
2983
|
s3DestinationExportFileFormat: input.s3DestinationExportFileFormat,
|
|
2996
2984
|
}),
|
|
2997
|
-
...(input.s3DestinationExportFileFormatOptions
|
|
2998
|
-
input.s3DestinationExportFileFormatOptions !== null && {
|
|
2985
|
+
...(input.s3DestinationExportFileFormatOptions != null && {
|
|
2999
2986
|
s3DestinationExportFileFormatOptions: serializeAws_restJson1S3DestinationFormatOptions(input.s3DestinationExportFileFormatOptions, context),
|
|
3000
2987
|
}),
|
|
3001
2988
|
};
|
|
@@ -3023,17 +3010,15 @@ const serializeAws_restJson1PartitionColumnList = (input, context) => {
|
|
|
3023
3010
|
};
|
|
3024
3011
|
const serializeAws_restJson1PermissionGroupParams = (input, context) => {
|
|
3025
3012
|
return {
|
|
3026
|
-
...(input.datasetPermissions
|
|
3027
|
-
input.datasetPermissions !== null && {
|
|
3013
|
+
...(input.datasetPermissions != null && {
|
|
3028
3014
|
datasetPermissions: serializeAws_restJson1ResourcePermissionsList(input.datasetPermissions, context),
|
|
3029
3015
|
}),
|
|
3030
|
-
...(input.permissionGroupId
|
|
3031
|
-
input.permissionGroupId !== null && { permissionGroupId: input.permissionGroupId }),
|
|
3016
|
+
...(input.permissionGroupId != null && { permissionGroupId: input.permissionGroupId }),
|
|
3032
3017
|
};
|
|
3033
3018
|
};
|
|
3034
3019
|
const serializeAws_restJson1ResourcePermission = (input, context) => {
|
|
3035
3020
|
return {
|
|
3036
|
-
...(input.permission
|
|
3021
|
+
...(input.permission != null && { permission: input.permission }),
|
|
3037
3022
|
};
|
|
3038
3023
|
};
|
|
3039
3024
|
const serializeAws_restJson1ResourcePermissionsList = (input, context) => {
|
|
@@ -3059,18 +3044,15 @@ const serializeAws_restJson1S3DestinationFormatOptions = (input, context) => {
|
|
|
3059
3044
|
};
|
|
3060
3045
|
const serializeAws_restJson1SchemaDefinition = (input, context) => {
|
|
3061
3046
|
return {
|
|
3062
|
-
...(input.columns
|
|
3063
|
-
|
|
3064
|
-
...(input.primaryKeyColumns !== undefined &&
|
|
3065
|
-
input.primaryKeyColumns !== null && {
|
|
3047
|
+
...(input.columns != null && { columns: serializeAws_restJson1ColumnList(input.columns, context) }),
|
|
3048
|
+
...(input.primaryKeyColumns != null && {
|
|
3066
3049
|
primaryKeyColumns: serializeAws_restJson1ColumnNameList(input.primaryKeyColumns, context),
|
|
3067
3050
|
}),
|
|
3068
3051
|
};
|
|
3069
3052
|
};
|
|
3070
3053
|
const serializeAws_restJson1SchemaUnion = (input, context) => {
|
|
3071
3054
|
return {
|
|
3072
|
-
...(input.tabularSchemaConfig
|
|
3073
|
-
input.tabularSchemaConfig !== null && {
|
|
3055
|
+
...(input.tabularSchemaConfig != null && {
|
|
3074
3056
|
tabularSchemaConfig: serializeAws_restJson1SchemaDefinition(input.tabularSchemaConfig, context),
|
|
3075
3057
|
}),
|
|
3076
3058
|
};
|
|
@@ -3141,15 +3123,9 @@ const deserializeAws_restJson1ChangesetSummary = (output, context) => {
|
|
|
3141
3123
|
changesetId: (0, smithy_client_1.expectString)(output.changesetId),
|
|
3142
3124
|
createTime: (0, smithy_client_1.expectLong)(output.createTime),
|
|
3143
3125
|
datasetId: (0, smithy_client_1.expectString)(output.datasetId),
|
|
3144
|
-
errorInfo: output.errorInfo
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
formatParams: output.formatParams !== undefined && output.formatParams !== null
|
|
3148
|
-
? deserializeAws_restJson1FormatParams(output.formatParams, context)
|
|
3149
|
-
: undefined,
|
|
3150
|
-
sourceParams: output.sourceParams !== undefined && output.sourceParams !== null
|
|
3151
|
-
? deserializeAws_restJson1SourceParams(output.sourceParams, context)
|
|
3152
|
-
: undefined,
|
|
3126
|
+
errorInfo: output.errorInfo != null ? deserializeAws_restJson1ChangesetErrorInfo(output.errorInfo, context) : undefined,
|
|
3127
|
+
formatParams: output.formatParams != null ? deserializeAws_restJson1FormatParams(output.formatParams, context) : undefined,
|
|
3128
|
+
sourceParams: output.sourceParams != null ? deserializeAws_restJson1SourceParams(output.sourceParams, context) : undefined,
|
|
3153
3129
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3154
3130
|
updatedByChangesetId: (0, smithy_client_1.expectString)(output.updatedByChangesetId),
|
|
3155
3131
|
updatesChangesetId: (0, smithy_client_1.expectString)(output.updatesChangesetId),
|
|
@@ -3201,10 +3177,8 @@ const deserializeAws_restJson1Dataset = (output, context) => {
|
|
|
3201
3177
|
datasetTitle: (0, smithy_client_1.expectString)(output.datasetTitle),
|
|
3202
3178
|
kind: (0, smithy_client_1.expectString)(output.kind),
|
|
3203
3179
|
lastModifiedTime: (0, smithy_client_1.expectLong)(output.lastModifiedTime),
|
|
3204
|
-
ownerInfo: output.ownerInfo
|
|
3205
|
-
|
|
3206
|
-
: undefined,
|
|
3207
|
-
schemaDefinition: output.schemaDefinition !== undefined && output.schemaDefinition !== null
|
|
3180
|
+
ownerInfo: output.ownerInfo != null ? deserializeAws_restJson1DatasetOwnerInfo(output.ownerInfo, context) : undefined,
|
|
3181
|
+
schemaDefinition: output.schemaDefinition != null
|
|
3208
3182
|
? deserializeAws_restJson1SchemaUnion(output.schemaDefinition, context)
|
|
3209
3183
|
: undefined,
|
|
3210
3184
|
};
|
|
@@ -3231,7 +3205,7 @@ const deserializeAws_restJson1DataViewDestinationTypeParams = (output, context)
|
|
|
3231
3205
|
return {
|
|
3232
3206
|
destinationType: (0, smithy_client_1.expectString)(output.destinationType),
|
|
3233
3207
|
s3DestinationExportFileFormat: (0, smithy_client_1.expectString)(output.s3DestinationExportFileFormat),
|
|
3234
|
-
s3DestinationExportFileFormatOptions: output.s3DestinationExportFileFormatOptions
|
|
3208
|
+
s3DestinationExportFileFormatOptions: output.s3DestinationExportFileFormatOptions != null
|
|
3235
3209
|
? deserializeAws_restJson1S3DestinationFormatOptions(output.s3DestinationExportFileFormatOptions, context)
|
|
3236
3210
|
: undefined,
|
|
3237
3211
|
};
|
|
@@ -3261,19 +3235,15 @@ const deserializeAws_restJson1DataViewSummary = (output, context) => {
|
|
|
3261
3235
|
dataViewArn: (0, smithy_client_1.expectString)(output.dataViewArn),
|
|
3262
3236
|
dataViewId: (0, smithy_client_1.expectString)(output.dataViewId),
|
|
3263
3237
|
datasetId: (0, smithy_client_1.expectString)(output.datasetId),
|
|
3264
|
-
destinationTypeProperties: output.destinationTypeProperties
|
|
3238
|
+
destinationTypeProperties: output.destinationTypeProperties != null
|
|
3265
3239
|
? deserializeAws_restJson1DataViewDestinationTypeParams(output.destinationTypeProperties, context)
|
|
3266
3240
|
: undefined,
|
|
3267
|
-
errorInfo: output.errorInfo
|
|
3268
|
-
? deserializeAws_restJson1DataViewErrorInfo(output.errorInfo, context)
|
|
3269
|
-
: undefined,
|
|
3241
|
+
errorInfo: output.errorInfo != null ? deserializeAws_restJson1DataViewErrorInfo(output.errorInfo, context) : undefined,
|
|
3270
3242
|
lastModifiedTime: (0, smithy_client_1.expectLong)(output.lastModifiedTime),
|
|
3271
|
-
partitionColumns: output.partitionColumns
|
|
3243
|
+
partitionColumns: output.partitionColumns != null
|
|
3272
3244
|
? deserializeAws_restJson1PartitionColumnList(output.partitionColumns, context)
|
|
3273
3245
|
: undefined,
|
|
3274
|
-
sortColumns: output.sortColumns
|
|
3275
|
-
? deserializeAws_restJson1SortColumnList(output.sortColumns, context)
|
|
3276
|
-
: undefined,
|
|
3246
|
+
sortColumns: output.sortColumns != null ? deserializeAws_restJson1SortColumnList(output.sortColumns, context) : undefined,
|
|
3277
3247
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3278
3248
|
};
|
|
3279
3249
|
};
|
|
@@ -3301,7 +3271,7 @@ const deserializeAws_restJson1PartitionColumnList = (output, context) => {
|
|
|
3301
3271
|
};
|
|
3302
3272
|
const deserializeAws_restJson1PermissionGroup = (output, context) => {
|
|
3303
3273
|
return {
|
|
3304
|
-
applicationPermissions: output.applicationPermissions
|
|
3274
|
+
applicationPermissions: output.applicationPermissions != null
|
|
3305
3275
|
? deserializeAws_restJson1ApplicationPermissionList(output.applicationPermissions, context)
|
|
3306
3276
|
: undefined,
|
|
3307
3277
|
createTime: (0, smithy_client_1.expectLong)(output.createTime),
|
|
@@ -3360,17 +3330,15 @@ const deserializeAws_restJson1S3Location = (output, context) => {
|
|
|
3360
3330
|
};
|
|
3361
3331
|
const deserializeAws_restJson1SchemaDefinition = (output, context) => {
|
|
3362
3332
|
return {
|
|
3363
|
-
columns: output.columns
|
|
3364
|
-
|
|
3365
|
-
: undefined,
|
|
3366
|
-
primaryKeyColumns: output.primaryKeyColumns !== undefined && output.primaryKeyColumns !== null
|
|
3333
|
+
columns: output.columns != null ? deserializeAws_restJson1ColumnList(output.columns, context) : undefined,
|
|
3334
|
+
primaryKeyColumns: output.primaryKeyColumns != null
|
|
3367
3335
|
? deserializeAws_restJson1ColumnNameList(output.primaryKeyColumns, context)
|
|
3368
3336
|
: undefined,
|
|
3369
3337
|
};
|
|
3370
3338
|
};
|
|
3371
3339
|
const deserializeAws_restJson1SchemaUnion = (output, context) => {
|
|
3372
3340
|
return {
|
|
3373
|
-
tabularSchemaConfig: output.tabularSchemaConfig
|
|
3341
|
+
tabularSchemaConfig: output.tabularSchemaConfig != null
|
|
3374
3342
|
? deserializeAws_restJson1SchemaDefinition(output.tabularSchemaConfig, context)
|
|
3375
3343
|
: undefined,
|
|
3376
3344
|
};
|
|
@@ -3480,6 +3448,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3480
3448
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3481
3449
|
const sanitizeErrorCode = (rawValue) => {
|
|
3482
3450
|
let cleanValue = rawValue;
|
|
3451
|
+
if (typeof cleanValue === "number") {
|
|
3452
|
+
cleanValue = cleanValue.toString();
|
|
3453
|
+
}
|
|
3483
3454
|
if (cleanValue.indexOf(":") >= 0) {
|
|
3484
3455
|
cleanValue = cleanValue.split(":")[0];
|
|
3485
3456
|
}
|
|
@@ -74,9 +74,11 @@ export var serializeAws_restJson1CreateChangesetCommand = function (input, conte
|
|
|
74
74
|
else {
|
|
75
75
|
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
76
76
|
}
|
|
77
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.changeType
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.changeType != null && { changeType: input.changeType })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.formatParams != null && {
|
|
78
|
+
formatParams: serializeAws_restJson1FormatParams(input.formatParams, context),
|
|
79
|
+
})), (input.sourceParams != null && {
|
|
80
|
+
sourceParams: serializeAws_restJson1SourceParams(input.sourceParams, context),
|
|
81
|
+
})));
|
|
80
82
|
return [2, new __HttpRequest({
|
|
81
83
|
protocol: protocol,
|
|
82
84
|
hostname: hostname,
|
|
@@ -101,13 +103,9 @@ export var serializeAws_restJson1CreateDatasetCommand = function (input, context
|
|
|
101
103
|
"content-type": "application/json",
|
|
102
104
|
};
|
|
103
105
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasetsv2";
|
|
104
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alias
|
|
105
|
-
input.datasetDescription !== null && { datasetDescription: input.datasetDescription })), (input.datasetTitle !== undefined && input.datasetTitle !== null && { datasetTitle: input.datasetTitle })), (input.kind !== undefined && input.kind !== null && { kind: input.kind })), (input.ownerInfo !== undefined &&
|
|
106
|
-
input.ownerInfo !== null && { ownerInfo: serializeAws_restJson1DatasetOwnerInfo(input.ownerInfo, context) })), (input.permissionGroupParams !== undefined &&
|
|
107
|
-
input.permissionGroupParams !== null && {
|
|
106
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alias != null && { alias: input.alias })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.datasetDescription != null && { datasetDescription: input.datasetDescription })), (input.datasetTitle != null && { datasetTitle: input.datasetTitle })), (input.kind != null && { kind: input.kind })), (input.ownerInfo != null && { ownerInfo: serializeAws_restJson1DatasetOwnerInfo(input.ownerInfo, context) })), (input.permissionGroupParams != null && {
|
|
108
107
|
permissionGroupParams: serializeAws_restJson1PermissionGroupParams(input.permissionGroupParams, context),
|
|
109
|
-
})), (input.schemaDefinition
|
|
110
|
-
input.schemaDefinition !== null && {
|
|
108
|
+
})), (input.schemaDefinition != null && {
|
|
111
109
|
schemaDefinition: serializeAws_restJson1SchemaUnion(input.schemaDefinition, context),
|
|
112
110
|
})));
|
|
113
111
|
return [2, new __HttpRequest({
|
|
@@ -144,14 +142,11 @@ export var serializeAws_restJson1CreateDataViewCommand = function (input, contex
|
|
|
144
142
|
else {
|
|
145
143
|
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
146
144
|
}
|
|
147
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.asOfTimestamp
|
|
148
|
-
input.destinationTypeParams !== null && {
|
|
145
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.asOfTimestamp != null && { asOfTimestamp: input.asOfTimestamp })), (input.autoUpdate != null && { autoUpdate: input.autoUpdate })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.destinationTypeParams != null && {
|
|
149
146
|
destinationTypeParams: serializeAws_restJson1DataViewDestinationTypeParams(input.destinationTypeParams, context),
|
|
150
|
-
})), (input.partitionColumns
|
|
151
|
-
input.partitionColumns !== null && {
|
|
147
|
+
})), (input.partitionColumns != null && {
|
|
152
148
|
partitionColumns: serializeAws_restJson1PartitionColumnList(input.partitionColumns, context),
|
|
153
|
-
})), (input.sortColumns
|
|
154
|
-
input.sortColumns !== null && { sortColumns: serializeAws_restJson1SortColumnList(input.sortColumns, context) })));
|
|
149
|
+
})), (input.sortColumns != null && { sortColumns: serializeAws_restJson1SortColumnList(input.sortColumns, context) })));
|
|
155
150
|
return [2, new __HttpRequest({
|
|
156
151
|
protocol: protocol,
|
|
157
152
|
hostname: hostname,
|
|
@@ -176,10 +171,9 @@ export var serializeAws_restJson1CreatePermissionGroupCommand = function (input,
|
|
|
176
171
|
"content-type": "application/json",
|
|
177
172
|
};
|
|
178
173
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/permission-group";
|
|
179
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.applicationPermissions
|
|
180
|
-
input.applicationPermissions !== null && {
|
|
174
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.applicationPermissions != null && {
|
|
181
175
|
applicationPermissions: serializeAws_restJson1ApplicationPermissionList(input.applicationPermissions, context),
|
|
182
|
-
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.description
|
|
176
|
+
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })));
|
|
183
177
|
return [2, new __HttpRequest({
|
|
184
178
|
protocol: protocol,
|
|
185
179
|
hostname: hostname,
|
|
@@ -204,8 +198,7 @@ export var serializeAws_restJson1CreateUserCommand = function (input, context) {
|
|
|
204
198
|
"content-type": "application/json",
|
|
205
199
|
};
|
|
206
200
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/user";
|
|
207
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiAccess
|
|
208
|
-
input.apiAccessPrincipalArn !== null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.emailAddress !== undefined && input.emailAddress !== null && { emailAddress: input.emailAddress })), (input.firstName !== undefined && input.firstName !== null && { firstName: input.firstName })), (input.lastName !== undefined && input.lastName !== null && { lastName: input.lastName })), (input.type !== undefined && input.type !== null && { type: input.type })));
|
|
201
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiAccess != null && { ApiAccess: input.ApiAccess })), (input.apiAccessPrincipalArn != null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.emailAddress != null && { emailAddress: input.emailAddress })), (input.firstName != null && { firstName: input.firstName })), (input.lastName != null && { lastName: input.lastName })), (input.type != null && { type: input.type })));
|
|
209
202
|
return [2, new __HttpRequest({
|
|
210
203
|
protocol: protocol,
|
|
211
204
|
hostname: hostname,
|
|
@@ -655,7 +648,7 @@ export var serializeAws_restJson1GetWorkingLocationCommand = function (input, co
|
|
|
655
648
|
"content-type": "application/json",
|
|
656
649
|
};
|
|
657
650
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/workingLocationV1";
|
|
658
|
-
body = JSON.stringify(__assign({}, (input.locationType
|
|
651
|
+
body = JSON.stringify(__assign({}, (input.locationType != null && { locationType: input.locationType })));
|
|
659
652
|
return [2, new __HttpRequest({
|
|
660
653
|
protocol: protocol,
|
|
661
654
|
hostname: hostname,
|
|
@@ -940,9 +933,11 @@ export var serializeAws_restJson1UpdateChangesetCommand = function (input, conte
|
|
|
940
933
|
else {
|
|
941
934
|
throw new Error("No value provided for input HTTP label: changesetId.");
|
|
942
935
|
}
|
|
943
|
-
body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.formatParams
|
|
944
|
-
|
|
945
|
-
|
|
936
|
+
body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.formatParams != null && {
|
|
937
|
+
formatParams: serializeAws_restJson1FormatParams(input.formatParams, context),
|
|
938
|
+
})), (input.sourceParams != null && {
|
|
939
|
+
sourceParams: serializeAws_restJson1SourceParams(input.sourceParams, context),
|
|
940
|
+
})));
|
|
946
941
|
return [2, new __HttpRequest({
|
|
947
942
|
protocol: protocol,
|
|
948
943
|
hostname: hostname,
|
|
@@ -977,9 +972,7 @@ export var serializeAws_restJson1UpdateDatasetCommand = function (input, context
|
|
|
977
972
|
else {
|
|
978
973
|
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
979
974
|
}
|
|
980
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alias
|
|
981
|
-
input.datasetDescription !== null && { datasetDescription: input.datasetDescription })), (input.datasetTitle !== undefined && input.datasetTitle !== null && { datasetTitle: input.datasetTitle })), (input.kind !== undefined && input.kind !== null && { kind: input.kind })), (input.schemaDefinition !== undefined &&
|
|
982
|
-
input.schemaDefinition !== null && {
|
|
975
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alias != null && { alias: input.alias })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.datasetDescription != null && { datasetDescription: input.datasetDescription })), (input.datasetTitle != null && { datasetTitle: input.datasetTitle })), (input.kind != null && { kind: input.kind })), (input.schemaDefinition != null && {
|
|
983
976
|
schemaDefinition: serializeAws_restJson1SchemaUnion(input.schemaDefinition, context),
|
|
984
977
|
})));
|
|
985
978
|
return [2, new __HttpRequest({
|
|
@@ -1016,10 +1009,9 @@ export var serializeAws_restJson1UpdatePermissionGroupCommand = function (input,
|
|
|
1016
1009
|
else {
|
|
1017
1010
|
throw new Error("No value provided for input HTTP label: permissionGroupId.");
|
|
1018
1011
|
}
|
|
1019
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.applicationPermissions
|
|
1020
|
-
input.applicationPermissions !== null && {
|
|
1012
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.applicationPermissions != null && {
|
|
1021
1013
|
applicationPermissions: serializeAws_restJson1ApplicationPermissionList(input.applicationPermissions, context),
|
|
1022
|
-
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.description
|
|
1014
|
+
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })));
|
|
1023
1015
|
return [2, new __HttpRequest({
|
|
1024
1016
|
protocol: protocol,
|
|
1025
1017
|
hostname: hostname,
|
|
@@ -1054,8 +1046,7 @@ export var serializeAws_restJson1UpdateUserCommand = function (input, context) {
|
|
|
1054
1046
|
else {
|
|
1055
1047
|
throw new Error("No value provided for input HTTP label: userId.");
|
|
1056
1048
|
}
|
|
1057
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.apiAccess
|
|
1058
|
-
input.apiAccessPrincipalArn !== null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.firstName !== undefined && input.firstName !== null && { firstName: input.firstName })), (input.lastName !== undefined && input.lastName !== null && { lastName: input.lastName })), (input.type !== undefined && input.type !== null && { type: input.type })));
|
|
1049
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.apiAccess != null && { apiAccess: input.apiAccess })), (input.apiAccessPrincipalArn != null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.firstName != null && { firstName: input.firstName })), (input.lastName != null && { lastName: input.lastName })), (input.type != null && { type: input.type })));
|
|
1059
1050
|
return [2, new __HttpRequest({
|
|
1060
1051
|
protocol: protocol,
|
|
1061
1052
|
hostname: hostname,
|
|
@@ -3744,8 +3735,7 @@ var serializeAws_restJson1ApplicationPermissionList = function (input, context)
|
|
|
3744
3735
|
});
|
|
3745
3736
|
};
|
|
3746
3737
|
var serializeAws_restJson1ColumnDefinition = function (input, context) {
|
|
3747
|
-
return __assign(__assign(__assign({}, (input.columnDescription
|
|
3748
|
-
input.columnDescription !== null && { columnDescription: input.columnDescription })), (input.columnName !== undefined && input.columnName !== null && { columnName: input.columnName })), (input.dataType !== undefined && input.dataType !== null && { dataType: input.dataType }));
|
|
3738
|
+
return __assign(__assign(__assign({}, (input.columnDescription != null && { columnDescription: input.columnDescription })), (input.columnName != null && { columnName: input.columnName })), (input.dataType != null && { dataType: input.dataType }));
|
|
3749
3739
|
};
|
|
3750
3740
|
var serializeAws_restJson1ColumnList = function (input, context) {
|
|
3751
3741
|
return input
|
|
@@ -3768,15 +3758,12 @@ var serializeAws_restJson1ColumnNameList = function (input, context) {
|
|
|
3768
3758
|
});
|
|
3769
3759
|
};
|
|
3770
3760
|
var serializeAws_restJson1DatasetOwnerInfo = function (input, context) {
|
|
3771
|
-
return __assign(__assign(__assign({}, (input.email
|
|
3761
|
+
return __assign(__assign(__assign({}, (input.email != null && { email: input.email })), (input.name != null && { name: input.name })), (input.phoneNumber != null && { phoneNumber: input.phoneNumber }));
|
|
3772
3762
|
};
|
|
3773
3763
|
var serializeAws_restJson1DataViewDestinationTypeParams = function (input, context) {
|
|
3774
|
-
return __assign(__assign(__assign({}, (input.destinationType
|
|
3775
|
-
input.destinationType !== null && { destinationType: input.destinationType })), (input.s3DestinationExportFileFormat !== undefined &&
|
|
3776
|
-
input.s3DestinationExportFileFormat !== null && {
|
|
3764
|
+
return __assign(__assign(__assign({}, (input.destinationType != null && { destinationType: input.destinationType })), (input.s3DestinationExportFileFormat != null && {
|
|
3777
3765
|
s3DestinationExportFileFormat: input.s3DestinationExportFileFormat,
|
|
3778
|
-
})), (input.s3DestinationExportFileFormatOptions
|
|
3779
|
-
input.s3DestinationExportFileFormatOptions !== null && {
|
|
3766
|
+
})), (input.s3DestinationExportFileFormatOptions != null && {
|
|
3780
3767
|
s3DestinationExportFileFormatOptions: serializeAws_restJson1S3DestinationFormatOptions(input.s3DestinationExportFileFormatOptions, context),
|
|
3781
3768
|
}));
|
|
3782
3769
|
};
|
|
@@ -3801,14 +3788,12 @@ var serializeAws_restJson1PartitionColumnList = function (input, context) {
|
|
|
3801
3788
|
});
|
|
3802
3789
|
};
|
|
3803
3790
|
var serializeAws_restJson1PermissionGroupParams = function (input, context) {
|
|
3804
|
-
return __assign(__assign({}, (input.datasetPermissions
|
|
3805
|
-
input.datasetPermissions !== null && {
|
|
3791
|
+
return __assign(__assign({}, (input.datasetPermissions != null && {
|
|
3806
3792
|
datasetPermissions: serializeAws_restJson1ResourcePermissionsList(input.datasetPermissions, context),
|
|
3807
|
-
})), (input.permissionGroupId
|
|
3808
|
-
input.permissionGroupId !== null && { permissionGroupId: input.permissionGroupId }));
|
|
3793
|
+
})), (input.permissionGroupId != null && { permissionGroupId: input.permissionGroupId }));
|
|
3809
3794
|
};
|
|
3810
3795
|
var serializeAws_restJson1ResourcePermission = function (input, context) {
|
|
3811
|
-
return __assign({}, (input.permission
|
|
3796
|
+
return __assign({}, (input.permission != null && { permission: input.permission }));
|
|
3812
3797
|
};
|
|
3813
3798
|
var serializeAws_restJson1ResourcePermissionsList = function (input, context) {
|
|
3814
3799
|
return input
|
|
@@ -3831,15 +3816,12 @@ var serializeAws_restJson1S3DestinationFormatOptions = function (input, context)
|
|
|
3831
3816
|
}, {});
|
|
3832
3817
|
};
|
|
3833
3818
|
var serializeAws_restJson1SchemaDefinition = function (input, context) {
|
|
3834
|
-
return __assign(__assign({}, (input.columns
|
|
3835
|
-
input.columns !== null && { columns: serializeAws_restJson1ColumnList(input.columns, context) })), (input.primaryKeyColumns !== undefined &&
|
|
3836
|
-
input.primaryKeyColumns !== null && {
|
|
3819
|
+
return __assign(__assign({}, (input.columns != null && { columns: serializeAws_restJson1ColumnList(input.columns, context) })), (input.primaryKeyColumns != null && {
|
|
3837
3820
|
primaryKeyColumns: serializeAws_restJson1ColumnNameList(input.primaryKeyColumns, context),
|
|
3838
3821
|
}));
|
|
3839
3822
|
};
|
|
3840
3823
|
var serializeAws_restJson1SchemaUnion = function (input, context) {
|
|
3841
|
-
return __assign({}, (input.tabularSchemaConfig
|
|
3842
|
-
input.tabularSchemaConfig !== null && {
|
|
3824
|
+
return __assign({}, (input.tabularSchemaConfig != null && {
|
|
3843
3825
|
tabularSchemaConfig: serializeAws_restJson1SchemaDefinition(input.tabularSchemaConfig, context),
|
|
3844
3826
|
}));
|
|
3845
3827
|
};
|
|
@@ -3908,15 +3890,9 @@ var deserializeAws_restJson1ChangesetSummary = function (output, context) {
|
|
|
3908
3890
|
changesetId: __expectString(output.changesetId),
|
|
3909
3891
|
createTime: __expectLong(output.createTime),
|
|
3910
3892
|
datasetId: __expectString(output.datasetId),
|
|
3911
|
-
errorInfo: output.errorInfo
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
formatParams: output.formatParams !== undefined && output.formatParams !== null
|
|
3915
|
-
? deserializeAws_restJson1FormatParams(output.formatParams, context)
|
|
3916
|
-
: undefined,
|
|
3917
|
-
sourceParams: output.sourceParams !== undefined && output.sourceParams !== null
|
|
3918
|
-
? deserializeAws_restJson1SourceParams(output.sourceParams, context)
|
|
3919
|
-
: undefined,
|
|
3893
|
+
errorInfo: output.errorInfo != null ? deserializeAws_restJson1ChangesetErrorInfo(output.errorInfo, context) : undefined,
|
|
3894
|
+
formatParams: output.formatParams != null ? deserializeAws_restJson1FormatParams(output.formatParams, context) : undefined,
|
|
3895
|
+
sourceParams: output.sourceParams != null ? deserializeAws_restJson1SourceParams(output.sourceParams, context) : undefined,
|
|
3920
3896
|
status: __expectString(output.status),
|
|
3921
3897
|
updatedByChangesetId: __expectString(output.updatedByChangesetId),
|
|
3922
3898
|
updatesChangesetId: __expectString(output.updatesChangesetId),
|
|
@@ -3968,10 +3944,8 @@ var deserializeAws_restJson1Dataset = function (output, context) {
|
|
|
3968
3944
|
datasetTitle: __expectString(output.datasetTitle),
|
|
3969
3945
|
kind: __expectString(output.kind),
|
|
3970
3946
|
lastModifiedTime: __expectLong(output.lastModifiedTime),
|
|
3971
|
-
ownerInfo: output.ownerInfo
|
|
3972
|
-
|
|
3973
|
-
: undefined,
|
|
3974
|
-
schemaDefinition: output.schemaDefinition !== undefined && output.schemaDefinition !== null
|
|
3947
|
+
ownerInfo: output.ownerInfo != null ? deserializeAws_restJson1DatasetOwnerInfo(output.ownerInfo, context) : undefined,
|
|
3948
|
+
schemaDefinition: output.schemaDefinition != null
|
|
3975
3949
|
? deserializeAws_restJson1SchemaUnion(output.schemaDefinition, context)
|
|
3976
3950
|
: undefined,
|
|
3977
3951
|
};
|
|
@@ -3998,7 +3972,7 @@ var deserializeAws_restJson1DataViewDestinationTypeParams = function (output, co
|
|
|
3998
3972
|
return {
|
|
3999
3973
|
destinationType: __expectString(output.destinationType),
|
|
4000
3974
|
s3DestinationExportFileFormat: __expectString(output.s3DestinationExportFileFormat),
|
|
4001
|
-
s3DestinationExportFileFormatOptions: output.s3DestinationExportFileFormatOptions
|
|
3975
|
+
s3DestinationExportFileFormatOptions: output.s3DestinationExportFileFormatOptions != null
|
|
4002
3976
|
? deserializeAws_restJson1S3DestinationFormatOptions(output.s3DestinationExportFileFormatOptions, context)
|
|
4003
3977
|
: undefined,
|
|
4004
3978
|
};
|
|
@@ -4028,19 +4002,15 @@ var deserializeAws_restJson1DataViewSummary = function (output, context) {
|
|
|
4028
4002
|
dataViewArn: __expectString(output.dataViewArn),
|
|
4029
4003
|
dataViewId: __expectString(output.dataViewId),
|
|
4030
4004
|
datasetId: __expectString(output.datasetId),
|
|
4031
|
-
destinationTypeProperties: output.destinationTypeProperties
|
|
4005
|
+
destinationTypeProperties: output.destinationTypeProperties != null
|
|
4032
4006
|
? deserializeAws_restJson1DataViewDestinationTypeParams(output.destinationTypeProperties, context)
|
|
4033
4007
|
: undefined,
|
|
4034
|
-
errorInfo: output.errorInfo
|
|
4035
|
-
? deserializeAws_restJson1DataViewErrorInfo(output.errorInfo, context)
|
|
4036
|
-
: undefined,
|
|
4008
|
+
errorInfo: output.errorInfo != null ? deserializeAws_restJson1DataViewErrorInfo(output.errorInfo, context) : undefined,
|
|
4037
4009
|
lastModifiedTime: __expectLong(output.lastModifiedTime),
|
|
4038
|
-
partitionColumns: output.partitionColumns
|
|
4010
|
+
partitionColumns: output.partitionColumns != null
|
|
4039
4011
|
? deserializeAws_restJson1PartitionColumnList(output.partitionColumns, context)
|
|
4040
4012
|
: undefined,
|
|
4041
|
-
sortColumns: output.sortColumns
|
|
4042
|
-
? deserializeAws_restJson1SortColumnList(output.sortColumns, context)
|
|
4043
|
-
: undefined,
|
|
4013
|
+
sortColumns: output.sortColumns != null ? deserializeAws_restJson1SortColumnList(output.sortColumns, context) : undefined,
|
|
4044
4014
|
status: __expectString(output.status),
|
|
4045
4015
|
};
|
|
4046
4016
|
};
|
|
@@ -4067,7 +4037,7 @@ var deserializeAws_restJson1PartitionColumnList = function (output, context) {
|
|
|
4067
4037
|
};
|
|
4068
4038
|
var deserializeAws_restJson1PermissionGroup = function (output, context) {
|
|
4069
4039
|
return {
|
|
4070
|
-
applicationPermissions: output.applicationPermissions
|
|
4040
|
+
applicationPermissions: output.applicationPermissions != null
|
|
4071
4041
|
? deserializeAws_restJson1ApplicationPermissionList(output.applicationPermissions, context)
|
|
4072
4042
|
: undefined,
|
|
4073
4043
|
createTime: __expectLong(output.createTime),
|
|
@@ -4125,17 +4095,15 @@ var deserializeAws_restJson1S3Location = function (output, context) {
|
|
|
4125
4095
|
};
|
|
4126
4096
|
var deserializeAws_restJson1SchemaDefinition = function (output, context) {
|
|
4127
4097
|
return {
|
|
4128
|
-
columns: output.columns
|
|
4129
|
-
|
|
4130
|
-
: undefined,
|
|
4131
|
-
primaryKeyColumns: output.primaryKeyColumns !== undefined && output.primaryKeyColumns !== null
|
|
4098
|
+
columns: output.columns != null ? deserializeAws_restJson1ColumnList(output.columns, context) : undefined,
|
|
4099
|
+
primaryKeyColumns: output.primaryKeyColumns != null
|
|
4132
4100
|
? deserializeAws_restJson1ColumnNameList(output.primaryKeyColumns, context)
|
|
4133
4101
|
: undefined,
|
|
4134
4102
|
};
|
|
4135
4103
|
};
|
|
4136
4104
|
var deserializeAws_restJson1SchemaUnion = function (output, context) {
|
|
4137
4105
|
return {
|
|
4138
|
-
tabularSchemaConfig: output.tabularSchemaConfig
|
|
4106
|
+
tabularSchemaConfig: output.tabularSchemaConfig != null
|
|
4139
4107
|
? deserializeAws_restJson1SchemaDefinition(output.tabularSchemaConfig, context)
|
|
4140
4108
|
: undefined,
|
|
4141
4109
|
};
|
|
@@ -4251,6 +4219,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4251
4219
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4252
4220
|
var sanitizeErrorCode = function (rawValue) {
|
|
4253
4221
|
var cleanValue = rawValue;
|
|
4222
|
+
if (typeof cleanValue === "number") {
|
|
4223
|
+
cleanValue = cleanValue.toString();
|
|
4224
|
+
}
|
|
4254
4225
|
if (cleanValue.indexOf(":") >= 0) {
|
|
4255
4226
|
cleanValue = cleanValue.split(":")[0];
|
|
4256
4227
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-finspace-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Finspace Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.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",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1",
|