@aws-sdk/client-keyspaces 3.54.0 → 3.56.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/README.md +3 -7
- package/dist-cjs/KeyspacesClient.js +13 -13
- package/dist-cjs/commands/CreateKeyspaceCommand.js +3 -3
- package/dist-cjs/commands/CreateTableCommand.js +3 -3
- package/dist-cjs/commands/DeleteKeyspaceCommand.js +3 -3
- package/dist-cjs/commands/DeleteTableCommand.js +3 -3
- package/dist-cjs/commands/GetKeyspaceCommand.js +3 -3
- package/dist-cjs/commands/GetTableCommand.js +3 -3
- package/dist-cjs/commands/ListKeyspacesCommand.js +3 -3
- package/dist-cjs/commands/ListTablesCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/RestoreTableCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateTableCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_json1_0.js +64 -64
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Keyspaces.js +13 -13
- package/dist-es/pagination/ListKeyspacesPaginator.js +4 -4
- package/dist-es/pagination/ListTablesPaginator.js +4 -4
- package/dist-es/pagination/ListTagsForResourcePaginator.js +4 -4
- package/dist-types/Keyspaces.d.ts +27 -47
- package/dist-types/KeyspacesClient.d.ts +4 -8
- package/dist-types/commands/CreateKeyspaceCommand.d.ts +2 -2
- package/dist-types/commands/CreateTableCommand.d.ts +2 -2
- package/dist-types/commands/DeleteTableCommand.d.ts +1 -2
- package/dist-types/commands/RestoreTableCommand.d.ts +18 -33
- package/dist-types/models/models_0.d.ts +91 -318
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -180,7 +180,7 @@ const deserializeAws_json1_0CreateKeyspaceCommandError = async (output, context)
|
|
|
180
180
|
$fault: "client",
|
|
181
181
|
$metadata: deserializeMetadata(output),
|
|
182
182
|
});
|
|
183
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
183
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
186
|
const deserializeAws_json1_0CreateTableCommand = async (output, context) => {
|
|
@@ -231,7 +231,7 @@ const deserializeAws_json1_0CreateTableCommandError = async (output, context) =>
|
|
|
231
231
|
$fault: "client",
|
|
232
232
|
$metadata: deserializeMetadata(output),
|
|
233
233
|
});
|
|
234
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
234
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
235
235
|
}
|
|
236
236
|
};
|
|
237
237
|
const deserializeAws_json1_0DeleteKeyspaceCommand = async (output, context) => {
|
|
@@ -282,7 +282,7 @@ const deserializeAws_json1_0DeleteKeyspaceCommandError = async (output, context)
|
|
|
282
282
|
$fault: "client",
|
|
283
283
|
$metadata: deserializeMetadata(output),
|
|
284
284
|
});
|
|
285
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
285
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
288
|
const deserializeAws_json1_0DeleteTableCommand = async (output, context) => {
|
|
@@ -333,7 +333,7 @@ const deserializeAws_json1_0DeleteTableCommandError = async (output, context) =>
|
|
|
333
333
|
$fault: "client",
|
|
334
334
|
$metadata: deserializeMetadata(output),
|
|
335
335
|
});
|
|
336
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
336
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
const deserializeAws_json1_0GetKeyspaceCommand = async (output, context) => {
|
|
@@ -381,7 +381,7 @@ const deserializeAws_json1_0GetKeyspaceCommandError = async (output, context) =>
|
|
|
381
381
|
$fault: "client",
|
|
382
382
|
$metadata: deserializeMetadata(output),
|
|
383
383
|
});
|
|
384
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
384
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
385
385
|
}
|
|
386
386
|
};
|
|
387
387
|
const deserializeAws_json1_0GetTableCommand = async (output, context) => {
|
|
@@ -429,7 +429,7 @@ const deserializeAws_json1_0GetTableCommandError = async (output, context) => {
|
|
|
429
429
|
$fault: "client",
|
|
430
430
|
$metadata: deserializeMetadata(output),
|
|
431
431
|
});
|
|
432
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
432
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
433
433
|
}
|
|
434
434
|
};
|
|
435
435
|
const deserializeAws_json1_0ListKeyspacesCommand = async (output, context) => {
|
|
@@ -477,7 +477,7 @@ const deserializeAws_json1_0ListKeyspacesCommandError = async (output, context)
|
|
|
477
477
|
$fault: "client",
|
|
478
478
|
$metadata: deserializeMetadata(output),
|
|
479
479
|
});
|
|
480
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
480
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
481
481
|
}
|
|
482
482
|
};
|
|
483
483
|
const deserializeAws_json1_0ListTablesCommand = async (output, context) => {
|
|
@@ -525,7 +525,7 @@ const deserializeAws_json1_0ListTablesCommandError = async (output, context) =>
|
|
|
525
525
|
$fault: "client",
|
|
526
526
|
$metadata: deserializeMetadata(output),
|
|
527
527
|
});
|
|
528
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
528
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
529
529
|
}
|
|
530
530
|
};
|
|
531
531
|
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -573,7 +573,7 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
573
573
|
$fault: "client",
|
|
574
574
|
$metadata: deserializeMetadata(output),
|
|
575
575
|
});
|
|
576
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
576
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
577
577
|
}
|
|
578
578
|
};
|
|
579
579
|
const deserializeAws_json1_0RestoreTableCommand = async (output, context) => {
|
|
@@ -624,7 +624,7 @@ const deserializeAws_json1_0RestoreTableCommandError = async (output, context) =
|
|
|
624
624
|
$fault: "client",
|
|
625
625
|
$metadata: deserializeMetadata(output),
|
|
626
626
|
});
|
|
627
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
627
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
628
628
|
}
|
|
629
629
|
};
|
|
630
630
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
@@ -672,7 +672,7 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
672
672
|
$fault: "client",
|
|
673
673
|
$metadata: deserializeMetadata(output),
|
|
674
674
|
});
|
|
675
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
675
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
676
676
|
}
|
|
677
677
|
};
|
|
678
678
|
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
@@ -723,7 +723,7 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
723
723
|
$fault: "client",
|
|
724
724
|
$metadata: deserializeMetadata(output),
|
|
725
725
|
});
|
|
726
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
726
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
727
727
|
}
|
|
728
728
|
};
|
|
729
729
|
const deserializeAws_json1_0UpdateTableCommand = async (output, context) => {
|
|
@@ -774,7 +774,7 @@ const deserializeAws_json1_0UpdateTableCommandError = async (output, context) =>
|
|
|
774
774
|
$fault: "client",
|
|
775
775
|
$metadata: deserializeMetadata(output),
|
|
776
776
|
});
|
|
777
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
777
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
778
778
|
}
|
|
779
779
|
};
|
|
780
780
|
const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -784,7 +784,7 @@ const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput,
|
|
|
784
784
|
$metadata: deserializeMetadata(parsedOutput),
|
|
785
785
|
...deserialized,
|
|
786
786
|
});
|
|
787
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
787
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
788
788
|
};
|
|
789
789
|
const deserializeAws_json1_0ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
790
790
|
const body = parsedOutput.body;
|
|
@@ -793,7 +793,7 @@ const deserializeAws_json1_0ConflictExceptionResponse = async (parsedOutput, con
|
|
|
793
793
|
$metadata: deserializeMetadata(parsedOutput),
|
|
794
794
|
...deserialized,
|
|
795
795
|
});
|
|
796
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
796
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
797
797
|
};
|
|
798
798
|
const deserializeAws_json1_0InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
799
799
|
const body = parsedOutput.body;
|
|
@@ -802,7 +802,7 @@ const deserializeAws_json1_0InternalServerExceptionResponse = async (parsedOutpu
|
|
|
802
802
|
$metadata: deserializeMetadata(parsedOutput),
|
|
803
803
|
...deserialized,
|
|
804
804
|
});
|
|
805
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
805
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
806
806
|
};
|
|
807
807
|
const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
808
808
|
const body = parsedOutput.body;
|
|
@@ -811,7 +811,7 @@ const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOut
|
|
|
811
811
|
$metadata: deserializeMetadata(parsedOutput),
|
|
812
812
|
...deserialized,
|
|
813
813
|
});
|
|
814
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
814
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
815
815
|
};
|
|
816
816
|
const deserializeAws_json1_0ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
817
817
|
const body = parsedOutput.body;
|
|
@@ -820,7 +820,7 @@ const deserializeAws_json1_0ServiceQuotaExceededExceptionResponse = async (parse
|
|
|
820
820
|
$metadata: deserializeMetadata(parsedOutput),
|
|
821
821
|
...deserialized,
|
|
822
822
|
});
|
|
823
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
823
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
824
824
|
};
|
|
825
825
|
const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
826
826
|
const body = parsedOutput.body;
|
|
@@ -829,7 +829,7 @@ const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, c
|
|
|
829
829
|
$metadata: deserializeMetadata(parsedOutput),
|
|
830
830
|
...deserialized,
|
|
831
831
|
});
|
|
832
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
832
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
833
833
|
};
|
|
834
834
|
const serializeAws_json1_0CapacitySpecification = (input, context) => {
|
|
835
835
|
return {
|
|
@@ -1100,23 +1100,23 @@ const serializeAws_json1_0UpdateTableRequest = (input, context) => {
|
|
|
1100
1100
|
};
|
|
1101
1101
|
const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
1102
1102
|
return {
|
|
1103
|
-
message: smithy_client_1.expectString(output.message),
|
|
1103
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
1104
1104
|
};
|
|
1105
1105
|
};
|
|
1106
1106
|
const deserializeAws_json1_0CapacitySpecificationSummary = (output, context) => {
|
|
1107
1107
|
return {
|
|
1108
1108
|
lastUpdateToPayPerRequestTimestamp: output.lastUpdateToPayPerRequestTimestamp !== undefined && output.lastUpdateToPayPerRequestTimestamp !== null
|
|
1109
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateToPayPerRequestTimestamp)))
|
|
1109
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateToPayPerRequestTimestamp)))
|
|
1110
1110
|
: undefined,
|
|
1111
|
-
readCapacityUnits: smithy_client_1.expectLong(output.readCapacityUnits),
|
|
1112
|
-
throughputMode: smithy_client_1.expectString(output.throughputMode),
|
|
1113
|
-
writeCapacityUnits: smithy_client_1.expectLong(output.writeCapacityUnits),
|
|
1111
|
+
readCapacityUnits: (0, smithy_client_1.expectLong)(output.readCapacityUnits),
|
|
1112
|
+
throughputMode: (0, smithy_client_1.expectString)(output.throughputMode),
|
|
1113
|
+
writeCapacityUnits: (0, smithy_client_1.expectLong)(output.writeCapacityUnits),
|
|
1114
1114
|
};
|
|
1115
1115
|
};
|
|
1116
1116
|
const deserializeAws_json1_0ClusteringKey = (output, context) => {
|
|
1117
1117
|
return {
|
|
1118
|
-
name: smithy_client_1.expectString(output.name),
|
|
1119
|
-
orderBy: smithy_client_1.expectString(output.orderBy),
|
|
1118
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1119
|
+
orderBy: (0, smithy_client_1.expectString)(output.orderBy),
|
|
1120
1120
|
};
|
|
1121
1121
|
};
|
|
1122
1122
|
const deserializeAws_json1_0ClusteringKeyList = (output, context) => {
|
|
@@ -1132,8 +1132,8 @@ const deserializeAws_json1_0ClusteringKeyList = (output, context) => {
|
|
|
1132
1132
|
};
|
|
1133
1133
|
const deserializeAws_json1_0ColumnDefinition = (output, context) => {
|
|
1134
1134
|
return {
|
|
1135
|
-
name: smithy_client_1.expectString(output.name),
|
|
1136
|
-
type: smithy_client_1.expectString(output.type),
|
|
1135
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1136
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
1137
1137
|
};
|
|
1138
1138
|
};
|
|
1139
1139
|
const deserializeAws_json1_0ColumnDefinitionList = (output, context) => {
|
|
@@ -1149,22 +1149,22 @@ const deserializeAws_json1_0ColumnDefinitionList = (output, context) => {
|
|
|
1149
1149
|
};
|
|
1150
1150
|
const deserializeAws_json1_0Comment = (output, context) => {
|
|
1151
1151
|
return {
|
|
1152
|
-
message: smithy_client_1.expectString(output.message),
|
|
1152
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
1153
1153
|
};
|
|
1154
1154
|
};
|
|
1155
1155
|
const deserializeAws_json1_0ConflictException = (output, context) => {
|
|
1156
1156
|
return {
|
|
1157
|
-
message: smithy_client_1.expectString(output.message),
|
|
1157
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
1158
1158
|
};
|
|
1159
1159
|
};
|
|
1160
1160
|
const deserializeAws_json1_0CreateKeyspaceResponse = (output, context) => {
|
|
1161
1161
|
return {
|
|
1162
|
-
resourceArn: smithy_client_1.expectString(output.resourceArn),
|
|
1162
|
+
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
1163
1163
|
};
|
|
1164
1164
|
};
|
|
1165
1165
|
const deserializeAws_json1_0CreateTableResponse = (output, context) => {
|
|
1166
1166
|
return {
|
|
1167
|
-
resourceArn: smithy_client_1.expectString(output.resourceArn),
|
|
1167
|
+
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
1168
1168
|
};
|
|
1169
1169
|
};
|
|
1170
1170
|
const deserializeAws_json1_0DeleteKeyspaceResponse = (output, context) => {
|
|
@@ -1175,14 +1175,14 @@ const deserializeAws_json1_0DeleteTableResponse = (output, context) => {
|
|
|
1175
1175
|
};
|
|
1176
1176
|
const deserializeAws_json1_0EncryptionSpecification = (output, context) => {
|
|
1177
1177
|
return {
|
|
1178
|
-
kmsKeyIdentifier: smithy_client_1.expectString(output.kmsKeyIdentifier),
|
|
1179
|
-
type: smithy_client_1.expectString(output.type),
|
|
1178
|
+
kmsKeyIdentifier: (0, smithy_client_1.expectString)(output.kmsKeyIdentifier),
|
|
1179
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
1180
1180
|
};
|
|
1181
1181
|
};
|
|
1182
1182
|
const deserializeAws_json1_0GetKeyspaceResponse = (output, context) => {
|
|
1183
1183
|
return {
|
|
1184
|
-
keyspaceName: smithy_client_1.expectString(output.keyspaceName),
|
|
1185
|
-
resourceArn: smithy_client_1.expectString(output.resourceArn),
|
|
1184
|
+
keyspaceName: (0, smithy_client_1.expectString)(output.keyspaceName),
|
|
1185
|
+
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
1186
1186
|
};
|
|
1187
1187
|
};
|
|
1188
1188
|
const deserializeAws_json1_0GetTableResponse = (output, context) => {
|
|
@@ -1194,22 +1194,22 @@ const deserializeAws_json1_0GetTableResponse = (output, context) => {
|
|
|
1194
1194
|
? deserializeAws_json1_0Comment(output.comment, context)
|
|
1195
1195
|
: undefined,
|
|
1196
1196
|
creationTimestamp: output.creationTimestamp !== undefined && output.creationTimestamp !== null
|
|
1197
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTimestamp)))
|
|
1197
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTimestamp)))
|
|
1198
1198
|
: undefined,
|
|
1199
|
-
defaultTimeToLive: smithy_client_1.expectInt32(output.defaultTimeToLive),
|
|
1199
|
+
defaultTimeToLive: (0, smithy_client_1.expectInt32)(output.defaultTimeToLive),
|
|
1200
1200
|
encryptionSpecification: output.encryptionSpecification !== undefined && output.encryptionSpecification !== null
|
|
1201
1201
|
? deserializeAws_json1_0EncryptionSpecification(output.encryptionSpecification, context)
|
|
1202
1202
|
: undefined,
|
|
1203
|
-
keyspaceName: smithy_client_1.expectString(output.keyspaceName),
|
|
1203
|
+
keyspaceName: (0, smithy_client_1.expectString)(output.keyspaceName),
|
|
1204
1204
|
pointInTimeRecovery: output.pointInTimeRecovery !== undefined && output.pointInTimeRecovery !== null
|
|
1205
1205
|
? deserializeAws_json1_0PointInTimeRecoverySummary(output.pointInTimeRecovery, context)
|
|
1206
1206
|
: undefined,
|
|
1207
|
-
resourceArn: smithy_client_1.expectString(output.resourceArn),
|
|
1207
|
+
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
1208
1208
|
schemaDefinition: output.schemaDefinition !== undefined && output.schemaDefinition !== null
|
|
1209
1209
|
? deserializeAws_json1_0SchemaDefinition(output.schemaDefinition, context)
|
|
1210
1210
|
: undefined,
|
|
1211
|
-
status: smithy_client_1.expectString(output.status),
|
|
1212
|
-
tableName: smithy_client_1.expectString(output.tableName),
|
|
1211
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
1212
|
+
tableName: (0, smithy_client_1.expectString)(output.tableName),
|
|
1213
1213
|
ttl: output.ttl !== undefined && output.ttl !== null
|
|
1214
1214
|
? deserializeAws_json1_0TimeToLive(output.ttl, context)
|
|
1215
1215
|
: undefined,
|
|
@@ -1217,13 +1217,13 @@ const deserializeAws_json1_0GetTableResponse = (output, context) => {
|
|
|
1217
1217
|
};
|
|
1218
1218
|
const deserializeAws_json1_0InternalServerException = (output, context) => {
|
|
1219
1219
|
return {
|
|
1220
|
-
message: smithy_client_1.expectString(output.message),
|
|
1220
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
1221
1221
|
};
|
|
1222
1222
|
};
|
|
1223
1223
|
const deserializeAws_json1_0KeyspaceSummary = (output, context) => {
|
|
1224
1224
|
return {
|
|
1225
|
-
keyspaceName: smithy_client_1.expectString(output.keyspaceName),
|
|
1226
|
-
resourceArn: smithy_client_1.expectString(output.resourceArn),
|
|
1225
|
+
keyspaceName: (0, smithy_client_1.expectString)(output.keyspaceName),
|
|
1226
|
+
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
1227
1227
|
};
|
|
1228
1228
|
};
|
|
1229
1229
|
const deserializeAws_json1_0KeyspaceSummaryList = (output, context) => {
|
|
@@ -1242,12 +1242,12 @@ const deserializeAws_json1_0ListKeyspacesResponse = (output, context) => {
|
|
|
1242
1242
|
keyspaces: output.keyspaces !== undefined && output.keyspaces !== null
|
|
1243
1243
|
? deserializeAws_json1_0KeyspaceSummaryList(output.keyspaces, context)
|
|
1244
1244
|
: undefined,
|
|
1245
|
-
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
1245
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1246
1246
|
};
|
|
1247
1247
|
};
|
|
1248
1248
|
const deserializeAws_json1_0ListTablesResponse = (output, context) => {
|
|
1249
1249
|
return {
|
|
1250
|
-
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
1250
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1251
1251
|
tables: output.tables !== undefined && output.tables !== null
|
|
1252
1252
|
? deserializeAws_json1_0TableSummaryList(output.tables, context)
|
|
1253
1253
|
: undefined,
|
|
@@ -1255,7 +1255,7 @@ const deserializeAws_json1_0ListTablesResponse = (output, context) => {
|
|
|
1255
1255
|
};
|
|
1256
1256
|
const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
|
|
1257
1257
|
return {
|
|
1258
|
-
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
1258
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1259
1259
|
tags: output.tags !== undefined && output.tags !== null
|
|
1260
1260
|
? deserializeAws_json1_0TagList(output.tags, context)
|
|
1261
1261
|
: undefined,
|
|
@@ -1263,7 +1263,7 @@ const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
|
|
|
1263
1263
|
};
|
|
1264
1264
|
const deserializeAws_json1_0PartitionKey = (output, context) => {
|
|
1265
1265
|
return {
|
|
1266
|
-
name: smithy_client_1.expectString(output.name),
|
|
1266
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1267
1267
|
};
|
|
1268
1268
|
};
|
|
1269
1269
|
const deserializeAws_json1_0PartitionKeyList = (output, context) => {
|
|
@@ -1280,20 +1280,20 @@ const deserializeAws_json1_0PartitionKeyList = (output, context) => {
|
|
|
1280
1280
|
const deserializeAws_json1_0PointInTimeRecoverySummary = (output, context) => {
|
|
1281
1281
|
return {
|
|
1282
1282
|
earliestRestorableTimestamp: output.earliestRestorableTimestamp !== undefined && output.earliestRestorableTimestamp !== null
|
|
1283
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.earliestRestorableTimestamp)))
|
|
1283
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.earliestRestorableTimestamp)))
|
|
1284
1284
|
: undefined,
|
|
1285
|
-
status: smithy_client_1.expectString(output.status),
|
|
1285
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
1286
1286
|
};
|
|
1287
1287
|
};
|
|
1288
1288
|
const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
|
|
1289
1289
|
return {
|
|
1290
|
-
message: smithy_client_1.expectString(output.message),
|
|
1291
|
-
resourceArn: smithy_client_1.expectString(output.resourceArn),
|
|
1290
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
1291
|
+
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
1292
1292
|
};
|
|
1293
1293
|
};
|
|
1294
1294
|
const deserializeAws_json1_0RestoreTableResponse = (output, context) => {
|
|
1295
1295
|
return {
|
|
1296
|
-
restoredTableARN: smithy_client_1.expectString(output.restoredTableARN),
|
|
1296
|
+
restoredTableARN: (0, smithy_client_1.expectString)(output.restoredTableARN),
|
|
1297
1297
|
};
|
|
1298
1298
|
};
|
|
1299
1299
|
const deserializeAws_json1_0SchemaDefinition = (output, context) => {
|
|
@@ -1314,12 +1314,12 @@ const deserializeAws_json1_0SchemaDefinition = (output, context) => {
|
|
|
1314
1314
|
};
|
|
1315
1315
|
const deserializeAws_json1_0ServiceQuotaExceededException = (output, context) => {
|
|
1316
1316
|
return {
|
|
1317
|
-
message: smithy_client_1.expectString(output.message),
|
|
1317
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
1318
1318
|
};
|
|
1319
1319
|
};
|
|
1320
1320
|
const deserializeAws_json1_0StaticColumn = (output, context) => {
|
|
1321
1321
|
return {
|
|
1322
|
-
name: smithy_client_1.expectString(output.name),
|
|
1322
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1323
1323
|
};
|
|
1324
1324
|
};
|
|
1325
1325
|
const deserializeAws_json1_0StaticColumnList = (output, context) => {
|
|
@@ -1335,9 +1335,9 @@ const deserializeAws_json1_0StaticColumnList = (output, context) => {
|
|
|
1335
1335
|
};
|
|
1336
1336
|
const deserializeAws_json1_0TableSummary = (output, context) => {
|
|
1337
1337
|
return {
|
|
1338
|
-
keyspaceName: smithy_client_1.expectString(output.keyspaceName),
|
|
1339
|
-
resourceArn: smithy_client_1.expectString(output.resourceArn),
|
|
1340
|
-
tableName: smithy_client_1.expectString(output.tableName),
|
|
1338
|
+
keyspaceName: (0, smithy_client_1.expectString)(output.keyspaceName),
|
|
1339
|
+
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
1340
|
+
tableName: (0, smithy_client_1.expectString)(output.tableName),
|
|
1341
1341
|
};
|
|
1342
1342
|
};
|
|
1343
1343
|
const deserializeAws_json1_0TableSummaryList = (output, context) => {
|
|
@@ -1353,8 +1353,8 @@ const deserializeAws_json1_0TableSummaryList = (output, context) => {
|
|
|
1353
1353
|
};
|
|
1354
1354
|
const deserializeAws_json1_0Tag = (output, context) => {
|
|
1355
1355
|
return {
|
|
1356
|
-
key: smithy_client_1.expectString(output.key),
|
|
1357
|
-
value: smithy_client_1.expectString(output.value),
|
|
1356
|
+
key: (0, smithy_client_1.expectString)(output.key),
|
|
1357
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
1358
1358
|
};
|
|
1359
1359
|
};
|
|
1360
1360
|
const deserializeAws_json1_0TagList = (output, context) => {
|
|
@@ -1373,7 +1373,7 @@ const deserializeAws_json1_0TagResourceResponse = (output, context) => {
|
|
|
1373
1373
|
};
|
|
1374
1374
|
const deserializeAws_json1_0TimeToLive = (output, context) => {
|
|
1375
1375
|
return {
|
|
1376
|
-
status: smithy_client_1.expectString(output.status),
|
|
1376
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
1377
1377
|
};
|
|
1378
1378
|
};
|
|
1379
1379
|
const deserializeAws_json1_0UntagResourceResponse = (output, context) => {
|
|
@@ -1381,12 +1381,12 @@ const deserializeAws_json1_0UntagResourceResponse = (output, context) => {
|
|
|
1381
1381
|
};
|
|
1382
1382
|
const deserializeAws_json1_0UpdateTableResponse = (output, context) => {
|
|
1383
1383
|
return {
|
|
1384
|
-
resourceArn: smithy_client_1.expectString(output.resourceArn),
|
|
1384
|
+
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
1385
1385
|
};
|
|
1386
1386
|
};
|
|
1387
1387
|
const deserializeAws_json1_0ValidationException = (output, context) => {
|
|
1388
1388
|
return {
|
|
1389
|
-
message: smithy_client_1.expectString(output.message),
|
|
1389
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
1390
1390
|
};
|
|
1391
1391
|
};
|
|
1392
1392
|
const deserializeMetadata = (output) => {
|
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
39
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
41
|
}),
|
|
42
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
-
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
47
|
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
48
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|
package/dist-es/Keyspaces.js
CHANGED
|
@@ -25,7 +25,7 @@ var Keyspaces = (function (_super) {
|
|
|
25
25
|
}
|
|
26
26
|
else if (typeof cb === "function") {
|
|
27
27
|
if (typeof optionsOrCb !== "object")
|
|
28
|
-
throw new Error("Expect http options but get "
|
|
28
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
29
29
|
this.send(command, optionsOrCb || {}, cb);
|
|
30
30
|
}
|
|
31
31
|
else {
|
|
@@ -39,7 +39,7 @@ var Keyspaces = (function (_super) {
|
|
|
39
39
|
}
|
|
40
40
|
else if (typeof cb === "function") {
|
|
41
41
|
if (typeof optionsOrCb !== "object")
|
|
42
|
-
throw new Error("Expect http options but get "
|
|
42
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
43
43
|
this.send(command, optionsOrCb || {}, cb);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
@@ -53,7 +53,7 @@ var Keyspaces = (function (_super) {
|
|
|
53
53
|
}
|
|
54
54
|
else if (typeof cb === "function") {
|
|
55
55
|
if (typeof optionsOrCb !== "object")
|
|
56
|
-
throw new Error("Expect http options but get "
|
|
56
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
57
57
|
this.send(command, optionsOrCb || {}, cb);
|
|
58
58
|
}
|
|
59
59
|
else {
|
|
@@ -67,7 +67,7 @@ var Keyspaces = (function (_super) {
|
|
|
67
67
|
}
|
|
68
68
|
else if (typeof cb === "function") {
|
|
69
69
|
if (typeof optionsOrCb !== "object")
|
|
70
|
-
throw new Error("Expect http options but get "
|
|
70
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
71
71
|
this.send(command, optionsOrCb || {}, cb);
|
|
72
72
|
}
|
|
73
73
|
else {
|
|
@@ -81,7 +81,7 @@ var Keyspaces = (function (_super) {
|
|
|
81
81
|
}
|
|
82
82
|
else if (typeof cb === "function") {
|
|
83
83
|
if (typeof optionsOrCb !== "object")
|
|
84
|
-
throw new Error("Expect http options but get "
|
|
84
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
85
85
|
this.send(command, optionsOrCb || {}, cb);
|
|
86
86
|
}
|
|
87
87
|
else {
|
|
@@ -95,7 +95,7 @@ var Keyspaces = (function (_super) {
|
|
|
95
95
|
}
|
|
96
96
|
else if (typeof cb === "function") {
|
|
97
97
|
if (typeof optionsOrCb !== "object")
|
|
98
|
-
throw new Error("Expect http options but get "
|
|
98
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
99
99
|
this.send(command, optionsOrCb || {}, cb);
|
|
100
100
|
}
|
|
101
101
|
else {
|
|
@@ -109,7 +109,7 @@ var Keyspaces = (function (_super) {
|
|
|
109
109
|
}
|
|
110
110
|
else if (typeof cb === "function") {
|
|
111
111
|
if (typeof optionsOrCb !== "object")
|
|
112
|
-
throw new Error("Expect http options but get "
|
|
112
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
113
113
|
this.send(command, optionsOrCb || {}, cb);
|
|
114
114
|
}
|
|
115
115
|
else {
|
|
@@ -123,7 +123,7 @@ var Keyspaces = (function (_super) {
|
|
|
123
123
|
}
|
|
124
124
|
else if (typeof cb === "function") {
|
|
125
125
|
if (typeof optionsOrCb !== "object")
|
|
126
|
-
throw new Error("Expect http options but get "
|
|
126
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
127
127
|
this.send(command, optionsOrCb || {}, cb);
|
|
128
128
|
}
|
|
129
129
|
else {
|
|
@@ -137,7 +137,7 @@ var Keyspaces = (function (_super) {
|
|
|
137
137
|
}
|
|
138
138
|
else if (typeof cb === "function") {
|
|
139
139
|
if (typeof optionsOrCb !== "object")
|
|
140
|
-
throw new Error("Expect http options but get "
|
|
140
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
141
141
|
this.send(command, optionsOrCb || {}, cb);
|
|
142
142
|
}
|
|
143
143
|
else {
|
|
@@ -151,7 +151,7 @@ var Keyspaces = (function (_super) {
|
|
|
151
151
|
}
|
|
152
152
|
else if (typeof cb === "function") {
|
|
153
153
|
if (typeof optionsOrCb !== "object")
|
|
154
|
-
throw new Error("Expect http options but get "
|
|
154
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
155
155
|
this.send(command, optionsOrCb || {}, cb);
|
|
156
156
|
}
|
|
157
157
|
else {
|
|
@@ -165,7 +165,7 @@ var Keyspaces = (function (_super) {
|
|
|
165
165
|
}
|
|
166
166
|
else if (typeof cb === "function") {
|
|
167
167
|
if (typeof optionsOrCb !== "object")
|
|
168
|
-
throw new Error("Expect http options but get "
|
|
168
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
169
169
|
this.send(command, optionsOrCb || {}, cb);
|
|
170
170
|
}
|
|
171
171
|
else {
|
|
@@ -179,7 +179,7 @@ var Keyspaces = (function (_super) {
|
|
|
179
179
|
}
|
|
180
180
|
else if (typeof cb === "function") {
|
|
181
181
|
if (typeof optionsOrCb !== "object")
|
|
182
|
-
throw new Error("Expect http options but get "
|
|
182
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
183
183
|
this.send(command, optionsOrCb || {}, cb);
|
|
184
184
|
}
|
|
185
185
|
else {
|
|
@@ -193,7 +193,7 @@ var Keyspaces = (function (_super) {
|
|
|
193
193
|
}
|
|
194
194
|
else if (typeof cb === "function") {
|
|
195
195
|
if (typeof optionsOrCb !== "object")
|
|
196
|
-
throw new Error("Expect http options but get "
|
|
196
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
197
197
|
this.send(command, optionsOrCb || {}, cb);
|
|
198
198
|
}
|
|
199
199
|
else {
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListKeyspacesCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListKeyspacesCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listKeyspaces.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listKeyspaces.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListKeyspaces(config, input) {
|
|
|
48
48
|
input.nextToken = token;
|
|
49
49
|
input["maxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof Keyspaces)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof KeyspacesClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|