@aws-sdk/client-networkmonitor 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.
Files changed (56) hide show
  1. package/dist-cjs/index.js +23 -125
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateMonitorCommand.js +2 -14
  4. package/dist-es/commands/CreateProbeCommand.js +2 -14
  5. package/dist-es/commands/DeleteMonitorCommand.js +2 -14
  6. package/dist-es/commands/DeleteProbeCommand.js +2 -14
  7. package/dist-es/commands/GetMonitorCommand.js +2 -14
  8. package/dist-es/commands/GetProbeCommand.js +2 -14
  9. package/dist-es/commands/ListMonitorsCommand.js +2 -14
  10. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  11. package/dist-es/commands/TagResourceCommand.js +2 -14
  12. package/dist-es/commands/UntagResourceCommand.js +2 -14
  13. package/dist-es/commands/UpdateMonitorCommand.js +2 -14
  14. package/dist-es/commands/UpdateProbeCommand.js +2 -14
  15. package/dist-es/index.js +1 -0
  16. package/dist-es/runtimeConfig.browser.js +0 -2
  17. package/dist-es/runtimeConfig.js +1 -2
  18. package/dist-es/runtimeConfig.native.js +0 -2
  19. package/dist-es/runtimeConfig.shared.js +2 -0
  20. package/dist-types/commandBuilder.d.ts +18 -0
  21. package/dist-types/commands/CreateMonitorCommand.d.ts +3 -8
  22. package/dist-types/commands/CreateProbeCommand.d.ts +3 -8
  23. package/dist-types/commands/DeleteMonitorCommand.d.ts +3 -8
  24. package/dist-types/commands/DeleteProbeCommand.d.ts +3 -8
  25. package/dist-types/commands/GetMonitorCommand.d.ts +3 -8
  26. package/dist-types/commands/GetProbeCommand.d.ts +3 -8
  27. package/dist-types/commands/ListMonitorsCommand.d.ts +3 -8
  28. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  29. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  30. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  31. package/dist-types/commands/UpdateMonitorCommand.d.ts +3 -8
  32. package/dist-types/commands/UpdateProbeCommand.d.ts +3 -8
  33. package/dist-types/index.d.ts +1 -0
  34. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  35. package/dist-types/runtimeConfig.d.ts +1 -1
  36. package/dist-types/runtimeConfig.native.d.ts +1 -1
  37. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  38. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  39. package/dist-types/ts3.4/commands/CreateMonitorCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/CreateProbeCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/DeleteMonitorCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/DeleteProbeCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/GetMonitorCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/GetProbeCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/ListMonitorsCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/UpdateMonitorCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/UpdateProbeCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/index.d.ts +1 -0
  52. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  53. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  54. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  55. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  56. 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, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, 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, Hash, calculateBodyLength } = require("@smithy/core/serde");
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 defaultNetworkMonitorHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -570,6 +572,7 @@ const getRuntimeConfig$1 = (config) => {
570
572
  serviceTarget: "NetworkMonitor",
571
573
  },
572
574
  serviceId: config?.serviceId ?? "NetworkMonitor",
575
+ sha256: config?.sha256 ?? Sha256,
573
576
  urlParser: config?.urlParser ?? parseUrl,
574
577
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
575
578
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -603,7 +606,6 @@ const getRuntimeConfig = (config) => {
603
606
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
604
607
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
605
608
  }, config),
606
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
607
609
  streamCollector: config?.streamCollector ?? streamCollector,
608
610
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
609
611
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -691,148 +693,44 @@ class NetworkMonitorClient extends Client {
691
693
  }
692
694
  }
693
695
 
694
- class CreateMonitorCommand extends Command
695
- .classBuilder()
696
- .ep(commonParams)
697
- .m(function (Command, cs, config, o) {
698
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
699
- })
700
- .s("NetworkMonitor", "CreateMonitor", {})
701
- .n("NetworkMonitorClient", "CreateMonitorCommand")
702
- .sc(CreateMonitor$)
703
- .build() {
696
+ const command = makeBuilder(commonParams, "NetworkMonitor", "NetworkMonitorClient", getEndpointPlugin);
697
+ const _ep0 = {};
698
+ const _mw0 = (Command, cs, config, o) => [];
699
+
700
+ class CreateMonitorCommand extends command(_ep0, _mw0, "CreateMonitor", CreateMonitor$) {
704
701
  }
705
702
 
706
- class CreateProbeCommand extends Command
707
- .classBuilder()
708
- .ep(commonParams)
709
- .m(function (Command, cs, config, o) {
710
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
711
- })
712
- .s("NetworkMonitor", "CreateProbe", {})
713
- .n("NetworkMonitorClient", "CreateProbeCommand")
714
- .sc(CreateProbe$)
715
- .build() {
703
+ class CreateProbeCommand extends command(_ep0, _mw0, "CreateProbe", CreateProbe$) {
716
704
  }
717
705
 
718
- class DeleteMonitorCommand extends Command
719
- .classBuilder()
720
- .ep(commonParams)
721
- .m(function (Command, cs, config, o) {
722
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
723
- })
724
- .s("NetworkMonitor", "DeleteMonitor", {})
725
- .n("NetworkMonitorClient", "DeleteMonitorCommand")
726
- .sc(DeleteMonitor$)
727
- .build() {
706
+ class DeleteMonitorCommand extends command(_ep0, _mw0, "DeleteMonitor", DeleteMonitor$) {
728
707
  }
729
708
 
730
- class DeleteProbeCommand extends Command
731
- .classBuilder()
732
- .ep(commonParams)
733
- .m(function (Command, cs, config, o) {
734
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
735
- })
736
- .s("NetworkMonitor", "DeleteProbe", {})
737
- .n("NetworkMonitorClient", "DeleteProbeCommand")
738
- .sc(DeleteProbe$)
739
- .build() {
709
+ class DeleteProbeCommand extends command(_ep0, _mw0, "DeleteProbe", DeleteProbe$) {
740
710
  }
741
711
 
742
- class GetMonitorCommand extends Command
743
- .classBuilder()
744
- .ep(commonParams)
745
- .m(function (Command, cs, config, o) {
746
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
747
- })
748
- .s("NetworkMonitor", "GetMonitor", {})
749
- .n("NetworkMonitorClient", "GetMonitorCommand")
750
- .sc(GetMonitor$)
751
- .build() {
712
+ class GetMonitorCommand extends command(_ep0, _mw0, "GetMonitor", GetMonitor$) {
752
713
  }
753
714
 
754
- class GetProbeCommand extends Command
755
- .classBuilder()
756
- .ep(commonParams)
757
- .m(function (Command, cs, config, o) {
758
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
759
- })
760
- .s("NetworkMonitor", "GetProbe", {})
761
- .n("NetworkMonitorClient", "GetProbeCommand")
762
- .sc(GetProbe$)
763
- .build() {
715
+ class GetProbeCommand extends command(_ep0, _mw0, "GetProbe", GetProbe$) {
764
716
  }
765
717
 
766
- class ListMonitorsCommand extends Command
767
- .classBuilder()
768
- .ep(commonParams)
769
- .m(function (Command, cs, config, o) {
770
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
771
- })
772
- .s("NetworkMonitor", "ListMonitors", {})
773
- .n("NetworkMonitorClient", "ListMonitorsCommand")
774
- .sc(ListMonitors$)
775
- .build() {
718
+ class ListMonitorsCommand extends command(_ep0, _mw0, "ListMonitors", ListMonitors$) {
776
719
  }
777
720
 
778
- class ListTagsForResourceCommand extends Command
779
- .classBuilder()
780
- .ep(commonParams)
781
- .m(function (Command, cs, config, o) {
782
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
783
- })
784
- .s("NetworkMonitor", "ListTagsForResource", {})
785
- .n("NetworkMonitorClient", "ListTagsForResourceCommand")
786
- .sc(ListTagsForResource$)
787
- .build() {
721
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
788
722
  }
789
723
 
790
- class TagResourceCommand extends Command
791
- .classBuilder()
792
- .ep(commonParams)
793
- .m(function (Command, cs, config, o) {
794
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
795
- })
796
- .s("NetworkMonitor", "TagResource", {})
797
- .n("NetworkMonitorClient", "TagResourceCommand")
798
- .sc(TagResource$)
799
- .build() {
724
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
800
725
  }
801
726
 
802
- class UntagResourceCommand extends Command
803
- .classBuilder()
804
- .ep(commonParams)
805
- .m(function (Command, cs, config, o) {
806
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
807
- })
808
- .s("NetworkMonitor", "UntagResource", {})
809
- .n("NetworkMonitorClient", "UntagResourceCommand")
810
- .sc(UntagResource$)
811
- .build() {
727
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
812
728
  }
813
729
 
814
- class UpdateMonitorCommand extends Command
815
- .classBuilder()
816
- .ep(commonParams)
817
- .m(function (Command, cs, config, o) {
818
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
819
- })
820
- .s("NetworkMonitor", "UpdateMonitor", {})
821
- .n("NetworkMonitorClient", "UpdateMonitorCommand")
822
- .sc(UpdateMonitor$)
823
- .build() {
730
+ class UpdateMonitorCommand extends command(_ep0, _mw0, "UpdateMonitor", UpdateMonitor$) {
824
731
  }
825
732
 
826
- class UpdateProbeCommand extends Command
827
- .classBuilder()
828
- .ep(commonParams)
829
- .m(function (Command, cs, config, o) {
830
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
831
- })
832
- .s("NetworkMonitor", "UpdateProbe", {})
833
- .n("NetworkMonitorClient", "UpdateProbeCommand")
834
- .sc(UpdateProbe$)
835
- .build() {
733
+ class UpdateProbeCommand extends command(_ep0, _mw0, "UpdateProbe", UpdateProbe$) {
836
734
  }
837
735
 
838
736
  const paginateListMonitors = createPaginator(NetworkMonitorClient, ListMonitorsCommand, "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, "NetworkMonitor", "NetworkMonitorClient", 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 { CreateMonitor$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateMonitorCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("NetworkMonitor", "CreateMonitor", {})
13
- .n("NetworkMonitorClient", "CreateMonitorCommand")
14
- .sc(CreateMonitor$)
15
- .build() {
3
+ export class CreateMonitorCommand extends command(_ep0, _mw0, "CreateMonitor", CreateMonitor$) {
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 { CreateProbe$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateProbeCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("NetworkMonitor", "CreateProbe", {})
13
- .n("NetworkMonitorClient", "CreateProbeCommand")
14
- .sc(CreateProbe$)
15
- .build() {
3
+ export class CreateProbeCommand extends command(_ep0, _mw0, "CreateProbe", CreateProbe$) {
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 { DeleteMonitor$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteMonitorCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("NetworkMonitor", "DeleteMonitor", {})
13
- .n("NetworkMonitorClient", "DeleteMonitorCommand")
14
- .sc(DeleteMonitor$)
15
- .build() {
3
+ export class DeleteMonitorCommand extends command(_ep0, _mw0, "DeleteMonitor", DeleteMonitor$) {
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 { DeleteProbe$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteProbeCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("NetworkMonitor", "DeleteProbe", {})
13
- .n("NetworkMonitorClient", "DeleteProbeCommand")
14
- .sc(DeleteProbe$)
15
- .build() {
3
+ export class DeleteProbeCommand extends command(_ep0, _mw0, "DeleteProbe", DeleteProbe$) {
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 { GetMonitor$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetMonitorCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("NetworkMonitor", "GetMonitor", {})
13
- .n("NetworkMonitorClient", "GetMonitorCommand")
14
- .sc(GetMonitor$)
15
- .build() {
3
+ export class GetMonitorCommand extends command(_ep0, _mw0, "GetMonitor", GetMonitor$) {
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 { GetProbe$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetProbeCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("NetworkMonitor", "GetProbe", {})
13
- .n("NetworkMonitorClient", "GetProbeCommand")
14
- .sc(GetProbe$)
15
- .build() {
3
+ export class GetProbeCommand extends command(_ep0, _mw0, "GetProbe", GetProbe$) {
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 { ListMonitors$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListMonitorsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("NetworkMonitor", "ListMonitors", {})
13
- .n("NetworkMonitorClient", "ListMonitorsCommand")
14
- .sc(ListMonitors$)
15
- .build() {
3
+ export class ListMonitorsCommand extends command(_ep0, _mw0, "ListMonitors", ListMonitors$) {
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("NetworkMonitor", "ListTagsForResource", {})
13
- .n("NetworkMonitorClient", "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 { 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("NetworkMonitor", "TagResource", {})
13
- .n("NetworkMonitorClient", "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("NetworkMonitor", "UntagResource", {})
13
- .n("NetworkMonitorClient", "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 { UpdateMonitor$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateMonitorCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("NetworkMonitor", "UpdateMonitor", {})
13
- .n("NetworkMonitorClient", "UpdateMonitorCommand")
14
- .sc(UpdateMonitor$)
15
- .build() {
3
+ export class UpdateMonitorCommand extends command(_ep0, _mw0, "UpdateMonitor", UpdateMonitor$) {
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 { UpdateProbe$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateProbeCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("NetworkMonitor", "UpdateProbe", {})
13
- .n("NetworkMonitorClient", "UpdateProbeCommand")
14
- .sc(UpdateProbe$)
15
- .build() {
3
+ export class UpdateProbeCommand extends command(_ep0, _mw0, "UpdateProbe", UpdateProbe$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./NetworkMonitorClient";
2
2
  export * from "./NetworkMonitor";
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 "./models/enums";
@@ -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)),
@@ -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, Hash } from "@smithy/core/serde";
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
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "NetworkMonitor",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "NetworkMonitor",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./NetworkMonitorClient";
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, NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, NetworkMonitorClientResolvedConfig, 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
2
  import type { CreateMonitorInput, CreateMonitorOutput } from "../models/models_0";
4
- import type { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
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 CreateMonitorCommandInput extends CreateMonitorInput {
22
19
  export interface CreateMonitorCommandOutput extends CreateMonitorOutput, __MetadataBearer {
23
20
  }
24
21
  declare const CreateMonitorCommand_base: {
25
- new (input: CreateMonitorCommandInput): import("@smithy/core/client").CommandImpl<CreateMonitorCommandInput, CreateMonitorCommandOutput, NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateMonitorCommandInput): import("@smithy/core/client").CommandImpl<CreateMonitorCommandInput, CreateMonitorCommandOutput, NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateMonitorCommandInput): import("@smithy/core/client").CommandImpl<CreateMonitorCommandInput, CreateMonitorCommandOutput, import("..").NetworkMonitorClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateMonitorCommandInput): import("@smithy/core/client").CommandImpl<CreateMonitorCommandInput, CreateMonitorCommandOutput, import("..").NetworkMonitorClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a monitor between a source subnet and destination IP address. Within a monitor you'll create one or more probes that monitor network traffic between your source Amazon Web Services VPC subnets and your destination IP addresses. Each probe then aggregates and sends metrics to Amazon CloudWatch.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CreateProbeInput, CreateProbeOutput } from "../models/models_0";
4
- import type { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
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 CreateProbeCommandInput extends CreateProbeInput {
22
19
  export interface CreateProbeCommandOutput extends CreateProbeOutput, __MetadataBearer {
23
20
  }
24
21
  declare const CreateProbeCommand_base: {
25
- new (input: CreateProbeCommandInput): import("@smithy/core/client").CommandImpl<CreateProbeCommandInput, CreateProbeCommandOutput, NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateProbeCommandInput): import("@smithy/core/client").CommandImpl<CreateProbeCommandInput, CreateProbeCommandOutput, NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateProbeCommandInput): import("@smithy/core/client").CommandImpl<CreateProbeCommandInput, CreateProbeCommandOutput, import("..").NetworkMonitorClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateProbeCommandInput): import("@smithy/core/client").CommandImpl<CreateProbeCommandInput, CreateProbeCommandOutput, import("..").NetworkMonitorClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Create a probe within a monitor. Once you create a probe, and it begins monitoring your
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DeleteMonitorInput, DeleteMonitorOutput } from "../models/models_0";
4
- import type { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
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 DeleteMonitorCommandInput extends DeleteMonitorInput {
22
19
  export interface DeleteMonitorCommandOutput extends DeleteMonitorOutput, __MetadataBearer {
23
20
  }
24
21
  declare const DeleteMonitorCommand_base: {
25
- new (input: DeleteMonitorCommandInput): import("@smithy/core/client").CommandImpl<DeleteMonitorCommandInput, DeleteMonitorCommandOutput, NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteMonitorCommandInput): import("@smithy/core/client").CommandImpl<DeleteMonitorCommandInput, DeleteMonitorCommandOutput, NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteMonitorCommandInput): import("@smithy/core/client").CommandImpl<DeleteMonitorCommandInput, DeleteMonitorCommandOutput, import("..").NetworkMonitorClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteMonitorCommandInput): import("@smithy/core/client").CommandImpl<DeleteMonitorCommandInput, DeleteMonitorCommandOutput, import("..").NetworkMonitorClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes a specified monitor.</p>