@aws-sdk/client-dsql 3.1077.0 → 3.1079.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.
Files changed (56) hide show
  1. package/dist-cjs/index.js +24 -163
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateClusterCommand.js +2 -14
  4. package/dist-es/commands/CreateStreamCommand.js +2 -14
  5. package/dist-es/commands/DeleteClusterCommand.js +2 -14
  6. package/dist-es/commands/DeleteClusterPolicyCommand.js +2 -14
  7. package/dist-es/commands/DeleteStreamCommand.js +2 -14
  8. package/dist-es/commands/GetClusterCommand.js +2 -14
  9. package/dist-es/commands/GetClusterPolicyCommand.js +2 -14
  10. package/dist-es/commands/GetStreamCommand.js +2 -14
  11. package/dist-es/commands/GetVpcEndpointServiceNameCommand.js +2 -14
  12. package/dist-es/commands/ListClustersCommand.js +2 -14
  13. package/dist-es/commands/ListStreamsCommand.js +2 -14
  14. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  15. package/dist-es/commands/PutClusterPolicyCommand.js +2 -14
  16. package/dist-es/commands/TagResourceCommand.js +2 -14
  17. package/dist-es/commands/UntagResourceCommand.js +2 -14
  18. package/dist-es/commands/UpdateClusterCommand.js +2 -14
  19. package/dist-es/index.js +1 -0
  20. package/dist-types/commandBuilder.d.ts +18 -0
  21. package/dist-types/commands/CreateClusterCommand.d.ts +3 -8
  22. package/dist-types/commands/CreateStreamCommand.d.ts +3 -8
  23. package/dist-types/commands/DeleteClusterCommand.d.ts +3 -8
  24. package/dist-types/commands/DeleteClusterPolicyCommand.d.ts +3 -8
  25. package/dist-types/commands/DeleteStreamCommand.d.ts +3 -8
  26. package/dist-types/commands/GetClusterCommand.d.ts +3 -8
  27. package/dist-types/commands/GetClusterPolicyCommand.d.ts +3 -8
  28. package/dist-types/commands/GetStreamCommand.d.ts +3 -8
  29. package/dist-types/commands/GetVpcEndpointServiceNameCommand.d.ts +3 -8
  30. package/dist-types/commands/ListClustersCommand.d.ts +3 -8
  31. package/dist-types/commands/ListStreamsCommand.d.ts +3 -8
  32. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  33. package/dist-types/commands/PutClusterPolicyCommand.d.ts +3 -8
  34. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  35. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  36. package/dist-types/commands/UpdateClusterCommand.d.ts +3 -8
  37. package/dist-types/index.d.ts +1 -0
  38. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  39. package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/CreateStreamCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/DeleteClusterPolicyCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/DeleteStreamCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/GetClusterCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/GetClusterPolicyCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/GetStreamCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/GetVpcEndpointServiceNameCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/PutClusterPolicyCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/UpdateClusterCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/index.d.ts +1 -0
  56. package/package.json +8 -8
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, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
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");
@@ -66,7 +67,7 @@ const commonParams = {
66
67
  Region: { type: "builtInParams", name: "region" },
67
68
  };
68
69
 
69
- var version = "3.1076.0";
70
+ var version = "3.1078.0";
70
71
  var packageInfo = {
71
72
  version: version};
72
73
 
@@ -805,196 +806,56 @@ class DSQLClient extends Client {
805
806
  }
806
807
  }
807
808
 
808
- class CreateClusterCommand extends Command
809
- .classBuilder()
810
- .ep(commonParams)
811
- .m(function (Command, cs, config, o) {
812
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
813
- })
814
- .s("DSQL", "CreateCluster", {})
815
- .n("DSQLClient", "CreateClusterCommand")
816
- .sc(CreateCluster$)
817
- .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$) {
818
814
  }
819
815
 
820
- class CreateStreamCommand extends Command
821
- .classBuilder()
822
- .ep(commonParams)
823
- .m(function (Command, cs, config, o) {
824
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
825
- })
826
- .s("DSQL", "CreateStream", {})
827
- .n("DSQLClient", "CreateStreamCommand")
828
- .sc(CreateStream$)
829
- .build() {
816
+ class CreateStreamCommand extends command(_ep0, _mw0, "CreateStream", CreateStream$) {
830
817
  }
831
818
 
832
- class DeleteClusterCommand extends Command
833
- .classBuilder()
834
- .ep(commonParams)
835
- .m(function (Command, cs, config, o) {
836
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
837
- })
838
- .s("DSQL", "DeleteCluster", {})
839
- .n("DSQLClient", "DeleteClusterCommand")
840
- .sc(DeleteCluster$)
841
- .build() {
819
+ class DeleteClusterCommand extends command(_ep0, _mw0, "DeleteCluster", DeleteCluster$) {
842
820
  }
843
821
 
844
- class DeleteClusterPolicyCommand extends Command
845
- .classBuilder()
846
- .ep(commonParams)
847
- .m(function (Command, cs, config, o) {
848
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
849
- })
850
- .s("DSQL", "DeleteClusterPolicy", {})
851
- .n("DSQLClient", "DeleteClusterPolicyCommand")
852
- .sc(DeleteClusterPolicy$)
853
- .build() {
822
+ class DeleteClusterPolicyCommand extends command(_ep0, _mw0, "DeleteClusterPolicy", DeleteClusterPolicy$) {
854
823
  }
855
824
 
856
- class DeleteStreamCommand extends Command
857
- .classBuilder()
858
- .ep(commonParams)
859
- .m(function (Command, cs, config, o) {
860
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
861
- })
862
- .s("DSQL", "DeleteStream", {})
863
- .n("DSQLClient", "DeleteStreamCommand")
864
- .sc(DeleteStream$)
865
- .build() {
825
+ class DeleteStreamCommand extends command(_ep0, _mw0, "DeleteStream", DeleteStream$) {
866
826
  }
867
827
 
868
- class GetClusterCommand extends Command
869
- .classBuilder()
870
- .ep(commonParams)
871
- .m(function (Command, cs, config, o) {
872
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
873
- })
874
- .s("DSQL", "GetCluster", {})
875
- .n("DSQLClient", "GetClusterCommand")
876
- .sc(GetCluster$)
877
- .build() {
828
+ class GetClusterCommand extends command(_ep0, _mw0, "GetCluster", GetCluster$) {
878
829
  }
879
830
 
880
- class GetClusterPolicyCommand extends Command
881
- .classBuilder()
882
- .ep(commonParams)
883
- .m(function (Command, cs, config, o) {
884
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
885
- })
886
- .s("DSQL", "GetClusterPolicy", {})
887
- .n("DSQLClient", "GetClusterPolicyCommand")
888
- .sc(GetClusterPolicy$)
889
- .build() {
831
+ class GetClusterPolicyCommand extends command(_ep0, _mw0, "GetClusterPolicy", GetClusterPolicy$) {
890
832
  }
891
833
 
892
- class GetStreamCommand extends Command
893
- .classBuilder()
894
- .ep(commonParams)
895
- .m(function (Command, cs, config, o) {
896
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
897
- })
898
- .s("DSQL", "GetStream", {})
899
- .n("DSQLClient", "GetStreamCommand")
900
- .sc(GetStream$)
901
- .build() {
834
+ class GetStreamCommand extends command(_ep0, _mw0, "GetStream", GetStream$) {
902
835
  }
903
836
 
904
- class GetVpcEndpointServiceNameCommand extends Command
905
- .classBuilder()
906
- .ep(commonParams)
907
- .m(function (Command, cs, config, o) {
908
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
909
- })
910
- .s("DSQL", "GetVpcEndpointServiceName", {})
911
- .n("DSQLClient", "GetVpcEndpointServiceNameCommand")
912
- .sc(GetVpcEndpointServiceName$)
913
- .build() {
837
+ class GetVpcEndpointServiceNameCommand extends command(_ep0, _mw0, "GetVpcEndpointServiceName", GetVpcEndpointServiceName$) {
914
838
  }
915
839
 
916
- class ListClustersCommand extends Command
917
- .classBuilder()
918
- .ep(commonParams)
919
- .m(function (Command, cs, config, o) {
920
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
921
- })
922
- .s("DSQL", "ListClusters", {})
923
- .n("DSQLClient", "ListClustersCommand")
924
- .sc(ListClusters$)
925
- .build() {
840
+ class ListClustersCommand extends command(_ep0, _mw0, "ListClusters", ListClusters$) {
926
841
  }
927
842
 
928
- class ListStreamsCommand extends Command
929
- .classBuilder()
930
- .ep(commonParams)
931
- .m(function (Command, cs, config, o) {
932
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
933
- })
934
- .s("DSQL", "ListStreams", {})
935
- .n("DSQLClient", "ListStreamsCommand")
936
- .sc(ListStreams$)
937
- .build() {
843
+ class ListStreamsCommand extends command(_ep0, _mw0, "ListStreams", ListStreams$) {
938
844
  }
939
845
 
940
- class ListTagsForResourceCommand extends Command
941
- .classBuilder()
942
- .ep(commonParams)
943
- .m(function (Command, cs, config, o) {
944
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
945
- })
946
- .s("DSQL", "ListTagsForResource", {})
947
- .n("DSQLClient", "ListTagsForResourceCommand")
948
- .sc(ListTagsForResource$)
949
- .build() {
846
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
950
847
  }
951
848
 
952
- class PutClusterPolicyCommand extends Command
953
- .classBuilder()
954
- .ep(commonParams)
955
- .m(function (Command, cs, config, o) {
956
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
957
- })
958
- .s("DSQL", "PutClusterPolicy", {})
959
- .n("DSQLClient", "PutClusterPolicyCommand")
960
- .sc(PutClusterPolicy$)
961
- .build() {
849
+ class PutClusterPolicyCommand extends command(_ep0, _mw0, "PutClusterPolicy", PutClusterPolicy$) {
962
850
  }
963
851
 
964
- class TagResourceCommand extends Command
965
- .classBuilder()
966
- .ep(commonParams)
967
- .m(function (Command, cs, config, o) {
968
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
969
- })
970
- .s("DSQL", "TagResource", {})
971
- .n("DSQLClient", "TagResourceCommand")
972
- .sc(TagResource$)
973
- .build() {
852
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
974
853
  }
975
854
 
976
- class UntagResourceCommand extends Command
977
- .classBuilder()
978
- .ep(commonParams)
979
- .m(function (Command, cs, config, o) {
980
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
981
- })
982
- .s("DSQL", "UntagResource", {})
983
- .n("DSQLClient", "UntagResourceCommand")
984
- .sc(UntagResource$)
985
- .build() {
855
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
986
856
  }
987
857
 
988
- class UpdateClusterCommand extends Command
989
- .classBuilder()
990
- .ep(commonParams)
991
- .m(function (Command, cs, config, o) {
992
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
993
- })
994
- .s("DSQL", "UpdateCluster", {})
995
- .n("DSQLClient", "UpdateClusterCommand")
996
- .sc(UpdateCluster$)
997
- .build() {
858
+ class UpdateClusterCommand extends command(_ep0, _mw0, "UpdateCluster", UpdateCluster$) {
998
859
  }
999
860
 
1000
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 { Command as $Command } from "@smithy/core/client";
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 { $Command };
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 { Command as $Command } from "@smithy/core/client";
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 { $Command };
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 { Command as $Command } from "@smithy/core/client";
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 { $Command };
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 { Command as $Command } from "@smithy/core/client";
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 { $Command };
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 { Command as $Command } from "@smithy/core/client";
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 { $Command };
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 { Command as $Command } from "@smithy/core/client";
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 { $Command };
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 { Command as $Command } from "@smithy/core/client";
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 { $Command };
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 { Command as $Command } from "@smithy/core/client";
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 { $Command };
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 { Command as $Command } from "@smithy/core/client";
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 { $Command };
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 { Command as $Command } from "@smithy/core/client";
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 { $Command };
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 { Command as $Command } from "@smithy/core/client";
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 { $Command };
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 { Command as $Command } from "@smithy/core/client";
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 { $Command };
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 { Command as $Command } from "@smithy/core/client";
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 { $Command };
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 { Command as $Command } from "@smithy/core/client";
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 { $Command };
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 { Command as $Command } from "@smithy/core/client";
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 { $Command };
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 { Command as $Command } from "@smithy/core/client";
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 { $Command };
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,6 +1,7 @@
1
1
  export * from "./DSQLClient";
2
2
  export * from "./DSQL";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./waiters";
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { DSQLClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./DSQLClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, DSQLClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, DSQLClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { DSQLClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DSQLClient";
4
2
  import type { CreateClusterInput, CreateClusterOutput } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateClusterCommandInput extends CreateClusterInput {
22
19
  export interface CreateClusterCommandOutput extends CreateClusterOutput, __MetadataBearer {
23
20
  }
24
21
  declare const CreateClusterCommand_base: {
25
- new (input: CreateClusterCommandInput): import("@smithy/core/client").CommandImpl<CreateClusterCommandInput, CreateClusterCommandOutput, DSQLClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [CreateClusterCommandInput]): import("@smithy/core/client").CommandImpl<CreateClusterCommandInput, CreateClusterCommandOutput, DSQLClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateClusterCommandInput): import("@smithy/core/client").CommandImpl<CreateClusterCommandInput, CreateClusterCommandOutput, import("..").DSQLClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [CreateClusterCommandInput]): import("@smithy/core/client").CommandImpl<CreateClusterCommandInput, CreateClusterCommandOutput, import("..").DSQLClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>The CreateCluster API allows you to create both single-Region clusters and multi-Region clusters. With the addition of the <i>multiRegionProperties</i> parameter, you can create a cluster with witness Region support and establish peer relationships with clusters in other Regions during creation.</p> <note> <p>Creating multi-Region clusters requires additional IAM permissions beyond those needed for single-Region clusters, as detailed in the <b>Required permissions</b> section below.</p> </note> <p> <b>Required permissions</b> </p> <dl> <dt>dsql:CreateCluster</dt> <dd> <p>Required to create a cluster.</p> <p>Resources: <code>arn:aws:dsql:region:account-id:cluster/*</code> </p> </dd> <dt>dsql:TagResource</dt> <dd> <p>Permission to add tags to a resource.</p> <p>Resources: <code>arn:aws:dsql:region:account-id:cluster/*</code> </p> </dd> <dt>dsql:PutMultiRegionProperties</dt> <dd> <p>Permission to configure multi-Region properties for a cluster.</p> <p>Resources: <code>arn:aws:dsql:region:account-id:cluster/*</code> </p> </dd> <dt>dsql:AddPeerCluster</dt> <dd> <p>When specifying <code>multiRegionProperties.clusters</code>, permission to add peer clusters.</p> <p>Resources:</p> <ul> <li> <p>Local cluster: <code>arn:aws:dsql:region:account-id:cluster/*</code> </p> </li> <li> <p>Each peer cluster: exact ARN of each specified peer cluster</p> </li> </ul> </dd> <dt>dsql:PutWitnessRegion</dt> <dd> <p>When specifying <code>multiRegionProperties.witnessRegion</code>, permission to set a witness Region. This permission is checked both in the cluster Region and in the witness Region.</p> <p>Resources: <code>arn:aws:dsql:region:account-id:cluster/*</code> </p> <p>Condition Keys: <code>dsql:WitnessRegion</code> (matching the specified witness region)</p> </dd> </dl> <important> <ul> <li> <p>The witness Region specified in <code>multiRegionProperties.witnessRegion</code> cannot be the same as the cluster's Region.</p> </li> </ul> </important>