@aws-sdk/client-notificationscontacts 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 (47) hide show
  1. package/dist-cjs/index.js +20 -95
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/ActivateEmailContactCommand.js +2 -14
  4. package/dist-es/commands/CreateEmailContactCommand.js +2 -14
  5. package/dist-es/commands/DeleteEmailContactCommand.js +2 -14
  6. package/dist-es/commands/GetEmailContactCommand.js +2 -14
  7. package/dist-es/commands/ListEmailContactsCommand.js +2 -14
  8. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  9. package/dist-es/commands/SendActivationCodeCommand.js +2 -14
  10. package/dist-es/commands/TagResourceCommand.js +2 -14
  11. package/dist-es/commands/UntagResourceCommand.js +2 -14
  12. package/dist-es/index.js +1 -0
  13. package/dist-es/runtimeConfig.browser.js +0 -2
  14. package/dist-es/runtimeConfig.js +1 -2
  15. package/dist-es/runtimeConfig.native.js +0 -2
  16. package/dist-es/runtimeConfig.shared.js +2 -0
  17. package/dist-types/commandBuilder.d.ts +18 -0
  18. package/dist-types/commands/ActivateEmailContactCommand.d.ts +3 -8
  19. package/dist-types/commands/CreateEmailContactCommand.d.ts +3 -8
  20. package/dist-types/commands/DeleteEmailContactCommand.d.ts +3 -8
  21. package/dist-types/commands/GetEmailContactCommand.d.ts +3 -8
  22. package/dist-types/commands/ListEmailContactsCommand.d.ts +3 -8
  23. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  24. package/dist-types/commands/SendActivationCodeCommand.d.ts +3 -8
  25. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  26. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  27. package/dist-types/index.d.ts +1 -0
  28. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  29. package/dist-types/runtimeConfig.d.ts +1 -1
  30. package/dist-types/runtimeConfig.native.d.ts +1 -1
  31. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  32. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  33. package/dist-types/ts3.4/commands/ActivateEmailContactCommand.d.ts +7 -16
  34. package/dist-types/ts3.4/commands/CreateEmailContactCommand.d.ts +7 -16
  35. package/dist-types/ts3.4/commands/DeleteEmailContactCommand.d.ts +7 -16
  36. package/dist-types/ts3.4/commands/GetEmailContactCommand.d.ts +7 -16
  37. package/dist-types/ts3.4/commands/ListEmailContactsCommand.d.ts +7 -16
  38. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  39. package/dist-types/ts3.4/commands/SendActivationCodeCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/index.d.ts +1 -0
  43. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  44. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  45. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  46. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  47. 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 defaultNotificationsContactsHttpAuthSchemeParametersProvider = 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.1075.0";
70
+ var version = "3.1077.0";
69
71
  var packageInfo = {
70
72
  version: version};
71
73
 
@@ -518,6 +520,7 @@ const getRuntimeConfig$1 = (config) => {
518
520
  serviceTarget: "NotificationsContacts",
519
521
  },
520
522
  serviceId: config?.serviceId ?? "NotificationsContacts",
523
+ sha256: config?.sha256 ?? Sha256,
521
524
  urlParser: config?.urlParser ?? parseUrl,
522
525
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
523
526
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -551,7 +554,6 @@ const getRuntimeConfig = (config) => {
551
554
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
552
555
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
553
556
  }, config),
554
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
555
557
  streamCollector: config?.streamCollector ?? streamCollector,
556
558
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
557
559
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -639,112 +641,35 @@ class NotificationsContactsClient extends Client {
639
641
  }
640
642
  }
641
643
 
642
- class ActivateEmailContactCommand extends Command
643
- .classBuilder()
644
- .ep(commonParams)
645
- .m(function (Command, cs, config, o) {
646
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
647
- })
648
- .s("NotificationsContacts", "ActivateEmailContact", {})
649
- .n("NotificationsContactsClient", "ActivateEmailContactCommand")
650
- .sc(ActivateEmailContact$)
651
- .build() {
644
+ const command = makeBuilder(commonParams, "NotificationsContacts", "NotificationsContactsClient", getEndpointPlugin);
645
+ const _ep0 = {};
646
+ const _mw0 = (Command, cs, config, o) => [];
647
+
648
+ class ActivateEmailContactCommand extends command(_ep0, _mw0, "ActivateEmailContact", ActivateEmailContact$) {
652
649
  }
653
650
 
654
- class CreateEmailContactCommand extends Command
655
- .classBuilder()
656
- .ep(commonParams)
657
- .m(function (Command, cs, config, o) {
658
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
659
- })
660
- .s("NotificationsContacts", "CreateEmailContact", {})
661
- .n("NotificationsContactsClient", "CreateEmailContactCommand")
662
- .sc(CreateEmailContact$)
663
- .build() {
651
+ class CreateEmailContactCommand extends command(_ep0, _mw0, "CreateEmailContact", CreateEmailContact$) {
664
652
  }
665
653
 
666
- class DeleteEmailContactCommand extends Command
667
- .classBuilder()
668
- .ep(commonParams)
669
- .m(function (Command, cs, config, o) {
670
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
671
- })
672
- .s("NotificationsContacts", "DeleteEmailContact", {})
673
- .n("NotificationsContactsClient", "DeleteEmailContactCommand")
674
- .sc(DeleteEmailContact$)
675
- .build() {
654
+ class DeleteEmailContactCommand extends command(_ep0, _mw0, "DeleteEmailContact", DeleteEmailContact$) {
676
655
  }
677
656
 
678
- class GetEmailContactCommand extends Command
679
- .classBuilder()
680
- .ep(commonParams)
681
- .m(function (Command, cs, config, o) {
682
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
683
- })
684
- .s("NotificationsContacts", "GetEmailContact", {})
685
- .n("NotificationsContactsClient", "GetEmailContactCommand")
686
- .sc(GetEmailContact$)
687
- .build() {
657
+ class GetEmailContactCommand extends command(_ep0, _mw0, "GetEmailContact", GetEmailContact$) {
688
658
  }
689
659
 
690
- class ListEmailContactsCommand extends Command
691
- .classBuilder()
692
- .ep(commonParams)
693
- .m(function (Command, cs, config, o) {
694
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
695
- })
696
- .s("NotificationsContacts", "ListEmailContacts", {})
697
- .n("NotificationsContactsClient", "ListEmailContactsCommand")
698
- .sc(ListEmailContacts$)
699
- .build() {
660
+ class ListEmailContactsCommand extends command(_ep0, _mw0, "ListEmailContacts", ListEmailContacts$) {
700
661
  }
701
662
 
702
- class ListTagsForResourceCommand extends Command
703
- .classBuilder()
704
- .ep(commonParams)
705
- .m(function (Command, cs, config, o) {
706
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
707
- })
708
- .s("NotificationsContacts", "ListTagsForResource", {})
709
- .n("NotificationsContactsClient", "ListTagsForResourceCommand")
710
- .sc(ListTagsForResource$)
711
- .build() {
663
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
712
664
  }
713
665
 
714
- class SendActivationCodeCommand extends Command
715
- .classBuilder()
716
- .ep(commonParams)
717
- .m(function (Command, cs, config, o) {
718
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
719
- })
720
- .s("NotificationsContacts", "SendActivationCode", {})
721
- .n("NotificationsContactsClient", "SendActivationCodeCommand")
722
- .sc(SendActivationCode$)
723
- .build() {
666
+ class SendActivationCodeCommand extends command(_ep0, _mw0, "SendActivationCode", SendActivationCode$) {
724
667
  }
725
668
 
726
- class TagResourceCommand extends Command
727
- .classBuilder()
728
- .ep(commonParams)
729
- .m(function (Command, cs, config, o) {
730
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
731
- })
732
- .s("NotificationsContacts", "TagResource", {})
733
- .n("NotificationsContactsClient", "TagResourceCommand")
734
- .sc(TagResource$)
735
- .build() {
669
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
736
670
  }
737
671
 
738
- class UntagResourceCommand extends Command
739
- .classBuilder()
740
- .ep(commonParams)
741
- .m(function (Command, cs, config, o) {
742
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
743
- })
744
- .s("NotificationsContacts", "UntagResource", {})
745
- .n("NotificationsContactsClient", "UntagResourceCommand")
746
- .sc(UntagResource$)
747
- .build() {
672
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
748
673
  }
749
674
 
750
675
  const paginateListEmailContacts = createPaginator(NotificationsContactsClient, ListEmailContactsCommand, "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, "NotificationsContacts", "NotificationsContactsClient", 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 { ActivateEmailContact$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ActivateEmailContactCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("NotificationsContacts", "ActivateEmailContact", {})
13
- .n("NotificationsContactsClient", "ActivateEmailContactCommand")
14
- .sc(ActivateEmailContact$)
15
- .build() {
3
+ export class ActivateEmailContactCommand extends command(_ep0, _mw0, "ActivateEmailContact", ActivateEmailContact$) {
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 { CreateEmailContact$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateEmailContactCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("NotificationsContacts", "CreateEmailContact", {})
13
- .n("NotificationsContactsClient", "CreateEmailContactCommand")
14
- .sc(CreateEmailContact$)
15
- .build() {
3
+ export class CreateEmailContactCommand extends command(_ep0, _mw0, "CreateEmailContact", CreateEmailContact$) {
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 { DeleteEmailContact$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteEmailContactCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("NotificationsContacts", "DeleteEmailContact", {})
13
- .n("NotificationsContactsClient", "DeleteEmailContactCommand")
14
- .sc(DeleteEmailContact$)
15
- .build() {
3
+ export class DeleteEmailContactCommand extends command(_ep0, _mw0, "DeleteEmailContact", DeleteEmailContact$) {
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 { GetEmailContact$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetEmailContactCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("NotificationsContacts", "GetEmailContact", {})
13
- .n("NotificationsContactsClient", "GetEmailContactCommand")
14
- .sc(GetEmailContact$)
15
- .build() {
3
+ export class GetEmailContactCommand extends command(_ep0, _mw0, "GetEmailContact", GetEmailContact$) {
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 { ListEmailContacts$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListEmailContactsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("NotificationsContacts", "ListEmailContacts", {})
13
- .n("NotificationsContactsClient", "ListEmailContactsCommand")
14
- .sc(ListEmailContacts$)
15
- .build() {
3
+ export class ListEmailContactsCommand extends command(_ep0, _mw0, "ListEmailContacts", ListEmailContacts$) {
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("NotificationsContacts", "ListTagsForResource", {})
13
- .n("NotificationsContactsClient", "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 { SendActivationCode$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class SendActivationCodeCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("NotificationsContacts", "SendActivationCode", {})
13
- .n("NotificationsContactsClient", "SendActivationCodeCommand")
14
- .sc(SendActivationCode$)
15
- .build() {
3
+ export class SendActivationCodeCommand extends command(_ep0, _mw0, "SendActivationCode", SendActivationCode$) {
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("NotificationsContacts", "TagResource", {})
13
- .n("NotificationsContactsClient", "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("NotificationsContacts", "UntagResource", {})
13
- .n("NotificationsContactsClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./NotificationsContactsClient";
2
2
  export * from "./NotificationsContacts";
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: "NotificationsContacts",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "NotificationsContacts",
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 { NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./NotificationsContactsClient";
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, NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, NotificationsContactsClientResolvedConfig, 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 { ActivateEmailContactRequest, ActivateEmailContactResponse } from "../models/models_0";
4
- import type { NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NotificationsContactsClient";
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 ActivateEmailContactCommandInput extends ActivateEmailContactRe
22
19
  export interface ActivateEmailContactCommandOutput extends ActivateEmailContactResponse, __MetadataBearer {
23
20
  }
24
21
  declare const ActivateEmailContactCommand_base: {
25
- new (input: ActivateEmailContactCommandInput): import("@smithy/core/client").CommandImpl<ActivateEmailContactCommandInput, ActivateEmailContactCommandOutput, NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: ActivateEmailContactCommandInput): import("@smithy/core/client").CommandImpl<ActivateEmailContactCommandInput, ActivateEmailContactCommandOutput, NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: ActivateEmailContactCommandInput): import("@smithy/core/client").CommandImpl<ActivateEmailContactCommandInput, ActivateEmailContactCommandOutput, import("..").NotificationsContactsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ActivateEmailContactCommandInput): import("@smithy/core/client").CommandImpl<ActivateEmailContactCommandInput, ActivateEmailContactCommandOutput, import("..").NotificationsContactsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Activates an email contact using an activation code. This code is in the activation email sent to the email address associated with this email contact.</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 { CreateEmailContactRequest, CreateEmailContactResponse } from "../models/models_0";
4
- import type { NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NotificationsContactsClient";
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 CreateEmailContactCommandInput extends CreateEmailContactReques
22
19
  export interface CreateEmailContactCommandOutput extends CreateEmailContactResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateEmailContactCommand_base: {
25
- new (input: CreateEmailContactCommandInput): import("@smithy/core/client").CommandImpl<CreateEmailContactCommandInput, CreateEmailContactCommandOutput, NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateEmailContactCommandInput): import("@smithy/core/client").CommandImpl<CreateEmailContactCommandInput, CreateEmailContactCommandOutput, NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateEmailContactCommandInput): import("@smithy/core/client").CommandImpl<CreateEmailContactCommandInput, CreateEmailContactCommandOutput, import("..").NotificationsContactsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateEmailContactCommandInput): import("@smithy/core/client").CommandImpl<CreateEmailContactCommandInput, CreateEmailContactCommandOutput, import("..").NotificationsContactsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates an email contact for the provided email address.</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 { DeleteEmailContactRequest, DeleteEmailContactResponse } from "../models/models_0";
4
- import type { NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NotificationsContactsClient";
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 DeleteEmailContactCommandInput extends DeleteEmailContactReques
22
19
  export interface DeleteEmailContactCommandOutput extends DeleteEmailContactResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DeleteEmailContactCommand_base: {
25
- new (input: DeleteEmailContactCommandInput): import("@smithy/core/client").CommandImpl<DeleteEmailContactCommandInput, DeleteEmailContactCommandOutput, NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteEmailContactCommandInput): import("@smithy/core/client").CommandImpl<DeleteEmailContactCommandInput, DeleteEmailContactCommandOutput, NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteEmailContactCommandInput): import("@smithy/core/client").CommandImpl<DeleteEmailContactCommandInput, DeleteEmailContactCommandOutput, import("..").NotificationsContactsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteEmailContactCommandInput): import("@smithy/core/client").CommandImpl<DeleteEmailContactCommandInput, DeleteEmailContactCommandOutput, import("..").NotificationsContactsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes an email contact.</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 { GetEmailContactRequest, GetEmailContactResponse } from "../models/models_0";
4
- import type { NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NotificationsContactsClient";
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 GetEmailContactCommandInput extends GetEmailContactRequest {
22
19
  export interface GetEmailContactCommandOutput extends GetEmailContactResponse, __MetadataBearer {
23
20
  }
24
21
  declare const GetEmailContactCommand_base: {
25
- new (input: GetEmailContactCommandInput): import("@smithy/core/client").CommandImpl<GetEmailContactCommandInput, GetEmailContactCommandOutput, NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: GetEmailContactCommandInput): import("@smithy/core/client").CommandImpl<GetEmailContactCommandInput, GetEmailContactCommandOutput, NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetEmailContactCommandInput): import("@smithy/core/client").CommandImpl<GetEmailContactCommandInput, GetEmailContactCommandOutput, import("..").NotificationsContactsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetEmailContactCommandInput): import("@smithy/core/client").CommandImpl<GetEmailContactCommandInput, GetEmailContactCommandOutput, import("..").NotificationsContactsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Returns an email contact.</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 { ListEmailContactsRequest, ListEmailContactsResponse } from "../models/models_0";
4
- import type { NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NotificationsContactsClient";
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 ListEmailContactsCommandInput extends ListEmailContactsRequest
22
19
  export interface ListEmailContactsCommandOutput extends ListEmailContactsResponse, __MetadataBearer {
23
20
  }
24
21
  declare const ListEmailContactsCommand_base: {
25
- new (input: ListEmailContactsCommandInput): import("@smithy/core/client").CommandImpl<ListEmailContactsCommandInput, ListEmailContactsCommandOutput, NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [ListEmailContactsCommandInput]): import("@smithy/core/client").CommandImpl<ListEmailContactsCommandInput, ListEmailContactsCommandOutput, NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: ListEmailContactsCommandInput): import("@smithy/core/client").CommandImpl<ListEmailContactsCommandInput, ListEmailContactsCommandOutput, import("..").NotificationsContactsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [ListEmailContactsCommandInput]): import("@smithy/core/client").CommandImpl<ListEmailContactsCommandInput, ListEmailContactsCommandOutput, import("..").NotificationsContactsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Lists all email contacts created under the Account.</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 { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
4
- import type { NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NotificationsContactsClient";
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 ListTagsForResourceCommandInput extends ListTagsForResourceRequ
22
19
  export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
23
20
  }
24
21
  declare const ListTagsForResourceCommand_base: {
25
- new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, NotificationsContactsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, import("..").NotificationsContactsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, import("..").NotificationsContactsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The resource can be a user, server, or role.</p>