@aws-sdk/client-dsql 3.1076.0 → 3.1078.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/dist-cjs/index.js +27 -165
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/CreateClusterCommand.js +2 -14
- package/dist-es/commands/CreateStreamCommand.js +2 -14
- package/dist-es/commands/DeleteClusterCommand.js +2 -14
- package/dist-es/commands/DeleteClusterPolicyCommand.js +2 -14
- package/dist-es/commands/DeleteStreamCommand.js +2 -14
- package/dist-es/commands/GetClusterCommand.js +2 -14
- package/dist-es/commands/GetClusterPolicyCommand.js +2 -14
- package/dist-es/commands/GetStreamCommand.js +2 -14
- package/dist-es/commands/GetVpcEndpointServiceNameCommand.js +2 -14
- package/dist-es/commands/ListClustersCommand.js +2 -14
- package/dist-es/commands/ListStreamsCommand.js +2 -14
- package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
- package/dist-es/commands/PutClusterPolicyCommand.js +2 -14
- package/dist-es/commands/TagResourceCommand.js +2 -14
- package/dist-es/commands/UntagResourceCommand.js +2 -14
- package/dist-es/commands/UpdateClusterCommand.js +2 -14
- package/dist-es/index.js +1 -0
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/CreateClusterCommand.d.ts +3 -8
- package/dist-types/commands/CreateStreamCommand.d.ts +3 -8
- package/dist-types/commands/DeleteClusterCommand.d.ts +3 -8
- package/dist-types/commands/DeleteClusterPolicyCommand.d.ts +3 -8
- package/dist-types/commands/DeleteStreamCommand.d.ts +3 -8
- package/dist-types/commands/GetClusterCommand.d.ts +3 -8
- package/dist-types/commands/GetClusterPolicyCommand.d.ts +3 -8
- package/dist-types/commands/GetStreamCommand.d.ts +3 -8
- package/dist-types/commands/GetVpcEndpointServiceNameCommand.d.ts +3 -8
- package/dist-types/commands/ListClustersCommand.d.ts +3 -8
- package/dist-types/commands/ListStreamsCommand.d.ts +3 -8
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
- package/dist-types/commands/PutClusterPolicyCommand.d.ts +3 -8
- package/dist-types/commands/TagResourceCommand.d.ts +3 -8
- package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
- package/dist-types/commands/UpdateClusterCommand.d.ts +3 -8
- package/dist-types/index.d.ts +1 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
- package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/CreateStreamCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/DeleteClusterPolicyCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/DeleteStreamCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetClusterCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetClusterPolicyCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetStreamCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetVpcEndpointServiceNameCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/PutClusterPolicyCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/UpdateClusterCommand.d.ts +7 -16
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +8 -10
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
3
|
-
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client,
|
|
4
|
-
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { Command: $Command } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = $Command;
|
|
5
6
|
exports.__Client = Client;
|
|
6
7
|
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
8
|
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
|
|
|
10
11
|
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
12
|
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
13
|
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
-
const { toUtf8, fromUtf8, toBase64, fromBase64,
|
|
14
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
15
|
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
16
|
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
17
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
16
18
|
|
|
17
19
|
const defaultDSQLHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
20
|
return {
|
|
@@ -65,7 +67,7 @@ const commonParams = {
|
|
|
65
67
|
Region: { type: "builtInParams", name: "region" },
|
|
66
68
|
};
|
|
67
69
|
|
|
68
|
-
var version = "3.
|
|
70
|
+
var version = "3.1077.0";
|
|
69
71
|
var packageInfo = {
|
|
70
72
|
version: version};
|
|
71
73
|
|
|
@@ -683,6 +685,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
683
685
|
serviceTarget: "DSQL",
|
|
684
686
|
},
|
|
685
687
|
serviceId: config?.serviceId ?? "DSQL",
|
|
688
|
+
sha256: config?.sha256 ?? Sha256,
|
|
686
689
|
urlParser: config?.urlParser ?? parseUrl,
|
|
687
690
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
688
691
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -716,7 +719,6 @@ const getRuntimeConfig = (config) => {
|
|
|
716
719
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
717
720
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
718
721
|
}, config),
|
|
719
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
720
722
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
721
723
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
722
724
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -804,196 +806,56 @@ class DSQLClient extends Client {
|
|
|
804
806
|
}
|
|
805
807
|
}
|
|
806
808
|
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
})
|
|
813
|
-
.s("DSQL", "CreateCluster", {})
|
|
814
|
-
.n("DSQLClient", "CreateClusterCommand")
|
|
815
|
-
.sc(CreateCluster$)
|
|
816
|
-
.build() {
|
|
809
|
+
const command = makeBuilder(commonParams, "DSQL", "DSQLClient", getEndpointPlugin);
|
|
810
|
+
const _ep0 = {};
|
|
811
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
812
|
+
|
|
813
|
+
class CreateClusterCommand extends command(_ep0, _mw0, "CreateCluster", CreateCluster$) {
|
|
817
814
|
}
|
|
818
815
|
|
|
819
|
-
class CreateStreamCommand extends
|
|
820
|
-
.classBuilder()
|
|
821
|
-
.ep(commonParams)
|
|
822
|
-
.m(function (Command, cs, config, o) {
|
|
823
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
824
|
-
})
|
|
825
|
-
.s("DSQL", "CreateStream", {})
|
|
826
|
-
.n("DSQLClient", "CreateStreamCommand")
|
|
827
|
-
.sc(CreateStream$)
|
|
828
|
-
.build() {
|
|
816
|
+
class CreateStreamCommand extends command(_ep0, _mw0, "CreateStream", CreateStream$) {
|
|
829
817
|
}
|
|
830
818
|
|
|
831
|
-
class DeleteClusterCommand extends
|
|
832
|
-
.classBuilder()
|
|
833
|
-
.ep(commonParams)
|
|
834
|
-
.m(function (Command, cs, config, o) {
|
|
835
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
836
|
-
})
|
|
837
|
-
.s("DSQL", "DeleteCluster", {})
|
|
838
|
-
.n("DSQLClient", "DeleteClusterCommand")
|
|
839
|
-
.sc(DeleteCluster$)
|
|
840
|
-
.build() {
|
|
819
|
+
class DeleteClusterCommand extends command(_ep0, _mw0, "DeleteCluster", DeleteCluster$) {
|
|
841
820
|
}
|
|
842
821
|
|
|
843
|
-
class DeleteClusterPolicyCommand extends
|
|
844
|
-
.classBuilder()
|
|
845
|
-
.ep(commonParams)
|
|
846
|
-
.m(function (Command, cs, config, o) {
|
|
847
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
848
|
-
})
|
|
849
|
-
.s("DSQL", "DeleteClusterPolicy", {})
|
|
850
|
-
.n("DSQLClient", "DeleteClusterPolicyCommand")
|
|
851
|
-
.sc(DeleteClusterPolicy$)
|
|
852
|
-
.build() {
|
|
822
|
+
class DeleteClusterPolicyCommand extends command(_ep0, _mw0, "DeleteClusterPolicy", DeleteClusterPolicy$) {
|
|
853
823
|
}
|
|
854
824
|
|
|
855
|
-
class DeleteStreamCommand extends
|
|
856
|
-
.classBuilder()
|
|
857
|
-
.ep(commonParams)
|
|
858
|
-
.m(function (Command, cs, config, o) {
|
|
859
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
860
|
-
})
|
|
861
|
-
.s("DSQL", "DeleteStream", {})
|
|
862
|
-
.n("DSQLClient", "DeleteStreamCommand")
|
|
863
|
-
.sc(DeleteStream$)
|
|
864
|
-
.build() {
|
|
825
|
+
class DeleteStreamCommand extends command(_ep0, _mw0, "DeleteStream", DeleteStream$) {
|
|
865
826
|
}
|
|
866
827
|
|
|
867
|
-
class GetClusterCommand extends
|
|
868
|
-
.classBuilder()
|
|
869
|
-
.ep(commonParams)
|
|
870
|
-
.m(function (Command, cs, config, o) {
|
|
871
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
872
|
-
})
|
|
873
|
-
.s("DSQL", "GetCluster", {})
|
|
874
|
-
.n("DSQLClient", "GetClusterCommand")
|
|
875
|
-
.sc(GetCluster$)
|
|
876
|
-
.build() {
|
|
828
|
+
class GetClusterCommand extends command(_ep0, _mw0, "GetCluster", GetCluster$) {
|
|
877
829
|
}
|
|
878
830
|
|
|
879
|
-
class GetClusterPolicyCommand extends
|
|
880
|
-
.classBuilder()
|
|
881
|
-
.ep(commonParams)
|
|
882
|
-
.m(function (Command, cs, config, o) {
|
|
883
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
884
|
-
})
|
|
885
|
-
.s("DSQL", "GetClusterPolicy", {})
|
|
886
|
-
.n("DSQLClient", "GetClusterPolicyCommand")
|
|
887
|
-
.sc(GetClusterPolicy$)
|
|
888
|
-
.build() {
|
|
831
|
+
class GetClusterPolicyCommand extends command(_ep0, _mw0, "GetClusterPolicy", GetClusterPolicy$) {
|
|
889
832
|
}
|
|
890
833
|
|
|
891
|
-
class GetStreamCommand extends
|
|
892
|
-
.classBuilder()
|
|
893
|
-
.ep(commonParams)
|
|
894
|
-
.m(function (Command, cs, config, o) {
|
|
895
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
896
|
-
})
|
|
897
|
-
.s("DSQL", "GetStream", {})
|
|
898
|
-
.n("DSQLClient", "GetStreamCommand")
|
|
899
|
-
.sc(GetStream$)
|
|
900
|
-
.build() {
|
|
834
|
+
class GetStreamCommand extends command(_ep0, _mw0, "GetStream", GetStream$) {
|
|
901
835
|
}
|
|
902
836
|
|
|
903
|
-
class GetVpcEndpointServiceNameCommand extends
|
|
904
|
-
.classBuilder()
|
|
905
|
-
.ep(commonParams)
|
|
906
|
-
.m(function (Command, cs, config, o) {
|
|
907
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
908
|
-
})
|
|
909
|
-
.s("DSQL", "GetVpcEndpointServiceName", {})
|
|
910
|
-
.n("DSQLClient", "GetVpcEndpointServiceNameCommand")
|
|
911
|
-
.sc(GetVpcEndpointServiceName$)
|
|
912
|
-
.build() {
|
|
837
|
+
class GetVpcEndpointServiceNameCommand extends command(_ep0, _mw0, "GetVpcEndpointServiceName", GetVpcEndpointServiceName$) {
|
|
913
838
|
}
|
|
914
839
|
|
|
915
|
-
class ListClustersCommand extends
|
|
916
|
-
.classBuilder()
|
|
917
|
-
.ep(commonParams)
|
|
918
|
-
.m(function (Command, cs, config, o) {
|
|
919
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
920
|
-
})
|
|
921
|
-
.s("DSQL", "ListClusters", {})
|
|
922
|
-
.n("DSQLClient", "ListClustersCommand")
|
|
923
|
-
.sc(ListClusters$)
|
|
924
|
-
.build() {
|
|
840
|
+
class ListClustersCommand extends command(_ep0, _mw0, "ListClusters", ListClusters$) {
|
|
925
841
|
}
|
|
926
842
|
|
|
927
|
-
class ListStreamsCommand extends
|
|
928
|
-
.classBuilder()
|
|
929
|
-
.ep(commonParams)
|
|
930
|
-
.m(function (Command, cs, config, o) {
|
|
931
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
932
|
-
})
|
|
933
|
-
.s("DSQL", "ListStreams", {})
|
|
934
|
-
.n("DSQLClient", "ListStreamsCommand")
|
|
935
|
-
.sc(ListStreams$)
|
|
936
|
-
.build() {
|
|
843
|
+
class ListStreamsCommand extends command(_ep0, _mw0, "ListStreams", ListStreams$) {
|
|
937
844
|
}
|
|
938
845
|
|
|
939
|
-
class ListTagsForResourceCommand extends
|
|
940
|
-
.classBuilder()
|
|
941
|
-
.ep(commonParams)
|
|
942
|
-
.m(function (Command, cs, config, o) {
|
|
943
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
944
|
-
})
|
|
945
|
-
.s("DSQL", "ListTagsForResource", {})
|
|
946
|
-
.n("DSQLClient", "ListTagsForResourceCommand")
|
|
947
|
-
.sc(ListTagsForResource$)
|
|
948
|
-
.build() {
|
|
846
|
+
class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
|
|
949
847
|
}
|
|
950
848
|
|
|
951
|
-
class PutClusterPolicyCommand extends
|
|
952
|
-
.classBuilder()
|
|
953
|
-
.ep(commonParams)
|
|
954
|
-
.m(function (Command, cs, config, o) {
|
|
955
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
956
|
-
})
|
|
957
|
-
.s("DSQL", "PutClusterPolicy", {})
|
|
958
|
-
.n("DSQLClient", "PutClusterPolicyCommand")
|
|
959
|
-
.sc(PutClusterPolicy$)
|
|
960
|
-
.build() {
|
|
849
|
+
class PutClusterPolicyCommand extends command(_ep0, _mw0, "PutClusterPolicy", PutClusterPolicy$) {
|
|
961
850
|
}
|
|
962
851
|
|
|
963
|
-
class TagResourceCommand extends
|
|
964
|
-
.classBuilder()
|
|
965
|
-
.ep(commonParams)
|
|
966
|
-
.m(function (Command, cs, config, o) {
|
|
967
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
968
|
-
})
|
|
969
|
-
.s("DSQL", "TagResource", {})
|
|
970
|
-
.n("DSQLClient", "TagResourceCommand")
|
|
971
|
-
.sc(TagResource$)
|
|
972
|
-
.build() {
|
|
852
|
+
class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
|
|
973
853
|
}
|
|
974
854
|
|
|
975
|
-
class UntagResourceCommand extends
|
|
976
|
-
.classBuilder()
|
|
977
|
-
.ep(commonParams)
|
|
978
|
-
.m(function (Command, cs, config, o) {
|
|
979
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
980
|
-
})
|
|
981
|
-
.s("DSQL", "UntagResource", {})
|
|
982
|
-
.n("DSQLClient", "UntagResourceCommand")
|
|
983
|
-
.sc(UntagResource$)
|
|
984
|
-
.build() {
|
|
855
|
+
class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
|
|
985
856
|
}
|
|
986
857
|
|
|
987
|
-
class UpdateClusterCommand extends
|
|
988
|
-
.classBuilder()
|
|
989
|
-
.ep(commonParams)
|
|
990
|
-
.m(function (Command, cs, config, o) {
|
|
991
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
992
|
-
})
|
|
993
|
-
.s("DSQL", "UpdateCluster", {})
|
|
994
|
-
.n("DSQLClient", "UpdateClusterCommand")
|
|
995
|
-
.sc(UpdateCluster$)
|
|
996
|
-
.build() {
|
|
858
|
+
class UpdateClusterCommand extends command(_ep0, _mw0, "UpdateCluster", UpdateCluster$) {
|
|
997
859
|
}
|
|
998
860
|
|
|
999
861
|
const paginateListClusters = createPaginator(DSQLClient, ListClustersCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { makeBuilder } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "./endpoint/EndpointParameters";
|
|
4
|
+
export const command = makeBuilder(commonParams, "DSQL", "DSQLClient", getEndpointPlugin);
|
|
5
|
+
export const _ep0 = {};
|
|
6
|
+
export const _mw0 = (Command, cs, config, o) => [];
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { CreateCluster$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class CreateClusterCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("DSQL", "CreateCluster", {})
|
|
13
|
-
.n("DSQLClient", "CreateClusterCommand")
|
|
14
|
-
.sc(CreateCluster$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class CreateClusterCommand extends command(_ep0, _mw0, "CreateCluster", CreateCluster$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { CreateStream$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class CreateStreamCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("DSQL", "CreateStream", {})
|
|
13
|
-
.n("DSQLClient", "CreateStreamCommand")
|
|
14
|
-
.sc(CreateStream$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class CreateStreamCommand extends command(_ep0, _mw0, "CreateStream", CreateStream$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { DeleteCluster$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class DeleteClusterCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("DSQL", "DeleteCluster", {})
|
|
13
|
-
.n("DSQLClient", "DeleteClusterCommand")
|
|
14
|
-
.sc(DeleteCluster$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class DeleteClusterCommand extends command(_ep0, _mw0, "DeleteCluster", DeleteCluster$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { DeleteClusterPolicy$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class DeleteClusterPolicyCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("DSQL", "DeleteClusterPolicy", {})
|
|
13
|
-
.n("DSQLClient", "DeleteClusterPolicyCommand")
|
|
14
|
-
.sc(DeleteClusterPolicy$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class DeleteClusterPolicyCommand extends command(_ep0, _mw0, "DeleteClusterPolicy", DeleteClusterPolicy$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { DeleteStream$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class DeleteStreamCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("DSQL", "DeleteStream", {})
|
|
13
|
-
.n("DSQLClient", "DeleteStreamCommand")
|
|
14
|
-
.sc(DeleteStream$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class DeleteStreamCommand extends command(_ep0, _mw0, "DeleteStream", DeleteStream$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetCluster$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetClusterCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("DSQL", "GetCluster", {})
|
|
13
|
-
.n("DSQLClient", "GetClusterCommand")
|
|
14
|
-
.sc(GetCluster$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetClusterCommand extends command(_ep0, _mw0, "GetCluster", GetCluster$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetClusterPolicy$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetClusterPolicyCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("DSQL", "GetClusterPolicy", {})
|
|
13
|
-
.n("DSQLClient", "GetClusterPolicyCommand")
|
|
14
|
-
.sc(GetClusterPolicy$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetClusterPolicyCommand extends command(_ep0, _mw0, "GetClusterPolicy", GetClusterPolicy$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetStream$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetStreamCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("DSQL", "GetStream", {})
|
|
13
|
-
.n("DSQLClient", "GetStreamCommand")
|
|
14
|
-
.sc(GetStream$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetStreamCommand extends command(_ep0, _mw0, "GetStream", GetStream$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetVpcEndpointServiceName$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetVpcEndpointServiceNameCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("DSQL", "GetVpcEndpointServiceName", {})
|
|
13
|
-
.n("DSQLClient", "GetVpcEndpointServiceNameCommand")
|
|
14
|
-
.sc(GetVpcEndpointServiceName$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetVpcEndpointServiceNameCommand extends command(_ep0, _mw0, "GetVpcEndpointServiceName", GetVpcEndpointServiceName$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ListClusters$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListClustersCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("DSQL", "ListClusters", {})
|
|
13
|
-
.n("DSQLClient", "ListClustersCommand")
|
|
14
|
-
.sc(ListClusters$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListClustersCommand extends command(_ep0, _mw0, "ListClusters", ListClusters$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ListStreams$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListStreamsCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("DSQL", "ListStreams", {})
|
|
13
|
-
.n("DSQLClient", "ListStreamsCommand")
|
|
14
|
-
.sc(ListStreams$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListStreamsCommand extends command(_ep0, _mw0, "ListStreams", ListStreams$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ListTagsForResource$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListTagsForResourceCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("DSQL", "ListTagsForResource", {})
|
|
13
|
-
.n("DSQLClient", "ListTagsForResourceCommand")
|
|
14
|
-
.sc(ListTagsForResource$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { PutClusterPolicy$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class PutClusterPolicyCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("DSQL", "PutClusterPolicy", {})
|
|
13
|
-
.n("DSQLClient", "PutClusterPolicyCommand")
|
|
14
|
-
.sc(PutClusterPolicy$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class PutClusterPolicyCommand extends command(_ep0, _mw0, "PutClusterPolicy", PutClusterPolicy$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { TagResource$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class TagResourceCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("DSQL", "TagResource", {})
|
|
13
|
-
.n("DSQLClient", "TagResourceCommand")
|
|
14
|
-
.sc(TagResource$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { UntagResource$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class UntagResourceCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("DSQL", "UntagResource", {})
|
|
13
|
-
.n("DSQLClient", "UntagResourceCommand")
|
|
14
|
-
.sc(UntagResource$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { UpdateCluster$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class UpdateClusterCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("DSQL", "UpdateCluster", {})
|
|
13
|
-
.n("DSQLClient", "UpdateClusterCommand")
|
|
14
|
-
.sc(UpdateCluster$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class UpdateClusterCommand extends command(_ep0, _mw0, "UpdateCluster", UpdateCluster$) {
|
|
16
4
|
}
|
package/dist-es/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
22
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
23
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
24
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
25
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
26
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
27
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
|
|
|
5
5
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
6
6
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
7
7
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
8
|
-
import { calculateBodyLength
|
|
8
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
9
9
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
10
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
11
|
export const getRuntimeConfig = (config) => {
|
|
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
35
35
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
36
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
37
|
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
38
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
39
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
40
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
5
|
...browserDefaults,
|
|
7
6
|
...config,
|
|
8
7
|
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
8
|
};
|
|
11
9
|
};
|