@aws-sdk/client-account 3.1077.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 (53) hide show
  1. package/dist-cjs/index.js +23 -153
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/AcceptPrimaryEmailUpdateCommand.js +2 -14
  4. package/dist-es/commands/DeleteAlternateContactCommand.js +2 -14
  5. package/dist-es/commands/DisableRegionCommand.js +2 -14
  6. package/dist-es/commands/EnableRegionCommand.js +2 -14
  7. package/dist-es/commands/GetAccountInformationCommand.js +2 -14
  8. package/dist-es/commands/GetAlternateContactCommand.js +2 -14
  9. package/dist-es/commands/GetContactInformationCommand.js +2 -14
  10. package/dist-es/commands/GetGovCloudAccountInformationCommand.js +2 -14
  11. package/dist-es/commands/GetPrimaryEmailCommand.js +2 -14
  12. package/dist-es/commands/GetRegionOptStatusCommand.js +2 -14
  13. package/dist-es/commands/ListRegionsCommand.js +2 -14
  14. package/dist-es/commands/PutAccountNameCommand.js +2 -14
  15. package/dist-es/commands/PutAlternateContactCommand.js +2 -14
  16. package/dist-es/commands/PutContactInformationCommand.js +2 -14
  17. package/dist-es/commands/StartPrimaryEmailUpdateCommand.js +2 -14
  18. package/dist-es/index.js +1 -0
  19. package/dist-types/commandBuilder.d.ts +18 -0
  20. package/dist-types/commands/AcceptPrimaryEmailUpdateCommand.d.ts +3 -8
  21. package/dist-types/commands/DeleteAlternateContactCommand.d.ts +3 -8
  22. package/dist-types/commands/DisableRegionCommand.d.ts +3 -8
  23. package/dist-types/commands/EnableRegionCommand.d.ts +3 -8
  24. package/dist-types/commands/GetAccountInformationCommand.d.ts +3 -8
  25. package/dist-types/commands/GetAlternateContactCommand.d.ts +3 -8
  26. package/dist-types/commands/GetContactInformationCommand.d.ts +3 -8
  27. package/dist-types/commands/GetGovCloudAccountInformationCommand.d.ts +3 -8
  28. package/dist-types/commands/GetPrimaryEmailCommand.d.ts +3 -8
  29. package/dist-types/commands/GetRegionOptStatusCommand.d.ts +3 -8
  30. package/dist-types/commands/ListRegionsCommand.d.ts +3 -8
  31. package/dist-types/commands/PutAccountNameCommand.d.ts +3 -8
  32. package/dist-types/commands/PutAlternateContactCommand.d.ts +3 -8
  33. package/dist-types/commands/PutContactInformationCommand.d.ts +3 -8
  34. package/dist-types/commands/StartPrimaryEmailUpdateCommand.d.ts +3 -8
  35. package/dist-types/index.d.ts +1 -0
  36. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  37. package/dist-types/ts3.4/commands/AcceptPrimaryEmailUpdateCommand.d.ts +7 -16
  38. package/dist-types/ts3.4/commands/DeleteAlternateContactCommand.d.ts +7 -16
  39. package/dist-types/ts3.4/commands/DisableRegionCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/EnableRegionCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/GetAccountInformationCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/GetAlternateContactCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/GetContactInformationCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/GetGovCloudAccountInformationCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/GetPrimaryEmailCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/GetRegionOptStatusCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/ListRegionsCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/PutAccountNameCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/PutAlternateContactCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/PutContactInformationCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/StartPrimaryEmailUpdateCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/index.d.ts +1 -0
  53. 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, 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");
@@ -68,7 +69,7 @@ const commonParams = {
68
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
69
70
  };
70
71
 
71
- var version = "3.1076.0";
72
+ var version = "3.1077.0";
72
73
  var packageInfo = {
73
74
  version: version};
74
75
 
@@ -751,184 +752,53 @@ class AccountClient extends Client {
751
752
  }
752
753
  }
753
754
 
754
- class AcceptPrimaryEmailUpdateCommand extends Command
755
- .classBuilder()
756
- .ep(commonParams)
757
- .m(function (Command, cs, config, o) {
758
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
759
- })
760
- .s("Account", "AcceptPrimaryEmailUpdate", {})
761
- .n("AccountClient", "AcceptPrimaryEmailUpdateCommand")
762
- .sc(AcceptPrimaryEmailUpdate$)
763
- .build() {
755
+ const command = makeBuilder(commonParams, "Account", "AccountClient", getEndpointPlugin);
756
+ const _ep0 = {};
757
+ const _mw0 = (Command, cs, config, o) => [];
758
+
759
+ class AcceptPrimaryEmailUpdateCommand extends command(_ep0, _mw0, "AcceptPrimaryEmailUpdate", AcceptPrimaryEmailUpdate$) {
764
760
  }
765
761
 
766
- class DeleteAlternateContactCommand extends Command
767
- .classBuilder()
768
- .ep(commonParams)
769
- .m(function (Command, cs, config, o) {
770
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
771
- })
772
- .s("Account", "DeleteAlternateContact", {})
773
- .n("AccountClient", "DeleteAlternateContactCommand")
774
- .sc(DeleteAlternateContact$)
775
- .build() {
762
+ class DeleteAlternateContactCommand extends command(_ep0, _mw0, "DeleteAlternateContact", DeleteAlternateContact$) {
776
763
  }
777
764
 
778
- class DisableRegionCommand extends Command
779
- .classBuilder()
780
- .ep(commonParams)
781
- .m(function (Command, cs, config, o) {
782
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
783
- })
784
- .s("Account", "DisableRegion", {})
785
- .n("AccountClient", "DisableRegionCommand")
786
- .sc(DisableRegion$)
787
- .build() {
765
+ class DisableRegionCommand extends command(_ep0, _mw0, "DisableRegion", DisableRegion$) {
788
766
  }
789
767
 
790
- class EnableRegionCommand extends Command
791
- .classBuilder()
792
- .ep(commonParams)
793
- .m(function (Command, cs, config, o) {
794
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
795
- })
796
- .s("Account", "EnableRegion", {})
797
- .n("AccountClient", "EnableRegionCommand")
798
- .sc(EnableRegion$)
799
- .build() {
768
+ class EnableRegionCommand extends command(_ep0, _mw0, "EnableRegion", EnableRegion$) {
800
769
  }
801
770
 
802
- class GetAccountInformationCommand extends Command
803
- .classBuilder()
804
- .ep(commonParams)
805
- .m(function (Command, cs, config, o) {
806
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
807
- })
808
- .s("Account", "GetAccountInformation", {})
809
- .n("AccountClient", "GetAccountInformationCommand")
810
- .sc(GetAccountInformation$)
811
- .build() {
771
+ class GetAccountInformationCommand extends command(_ep0, _mw0, "GetAccountInformation", GetAccountInformation$) {
812
772
  }
813
773
 
814
- class GetAlternateContactCommand extends Command
815
- .classBuilder()
816
- .ep(commonParams)
817
- .m(function (Command, cs, config, o) {
818
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
819
- })
820
- .s("Account", "GetAlternateContact", {})
821
- .n("AccountClient", "GetAlternateContactCommand")
822
- .sc(GetAlternateContact$)
823
- .build() {
774
+ class GetAlternateContactCommand extends command(_ep0, _mw0, "GetAlternateContact", GetAlternateContact$) {
824
775
  }
825
776
 
826
- class GetContactInformationCommand extends Command
827
- .classBuilder()
828
- .ep(commonParams)
829
- .m(function (Command, cs, config, o) {
830
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
831
- })
832
- .s("Account", "GetContactInformation", {})
833
- .n("AccountClient", "GetContactInformationCommand")
834
- .sc(GetContactInformation$)
835
- .build() {
777
+ class GetContactInformationCommand extends command(_ep0, _mw0, "GetContactInformation", GetContactInformation$) {
836
778
  }
837
779
 
838
- class GetGovCloudAccountInformationCommand extends Command
839
- .classBuilder()
840
- .ep(commonParams)
841
- .m(function (Command, cs, config, o) {
842
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
843
- })
844
- .s("Account", "GetGovCloudAccountInformation", {})
845
- .n("AccountClient", "GetGovCloudAccountInformationCommand")
846
- .sc(GetGovCloudAccountInformation$)
847
- .build() {
780
+ class GetGovCloudAccountInformationCommand extends command(_ep0, _mw0, "GetGovCloudAccountInformation", GetGovCloudAccountInformation$) {
848
781
  }
849
782
 
850
- class GetPrimaryEmailCommand extends Command
851
- .classBuilder()
852
- .ep(commonParams)
853
- .m(function (Command, cs, config, o) {
854
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
855
- })
856
- .s("Account", "GetPrimaryEmail", {})
857
- .n("AccountClient", "GetPrimaryEmailCommand")
858
- .sc(GetPrimaryEmail$)
859
- .build() {
783
+ class GetPrimaryEmailCommand extends command(_ep0, _mw0, "GetPrimaryEmail", GetPrimaryEmail$) {
860
784
  }
861
785
 
862
- class GetRegionOptStatusCommand extends Command
863
- .classBuilder()
864
- .ep(commonParams)
865
- .m(function (Command, cs, config, o) {
866
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
867
- })
868
- .s("Account", "GetRegionOptStatus", {})
869
- .n("AccountClient", "GetRegionOptStatusCommand")
870
- .sc(GetRegionOptStatus$)
871
- .build() {
786
+ class GetRegionOptStatusCommand extends command(_ep0, _mw0, "GetRegionOptStatus", GetRegionOptStatus$) {
872
787
  }
873
788
 
874
- class ListRegionsCommand extends Command
875
- .classBuilder()
876
- .ep(commonParams)
877
- .m(function (Command, cs, config, o) {
878
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
879
- })
880
- .s("Account", "ListRegions", {})
881
- .n("AccountClient", "ListRegionsCommand")
882
- .sc(ListRegions$)
883
- .build() {
789
+ class ListRegionsCommand extends command(_ep0, _mw0, "ListRegions", ListRegions$) {
884
790
  }
885
791
 
886
- class PutAccountNameCommand extends Command
887
- .classBuilder()
888
- .ep(commonParams)
889
- .m(function (Command, cs, config, o) {
890
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
891
- })
892
- .s("Account", "PutAccountName", {})
893
- .n("AccountClient", "PutAccountNameCommand")
894
- .sc(PutAccountName$)
895
- .build() {
792
+ class PutAccountNameCommand extends command(_ep0, _mw0, "PutAccountName", PutAccountName$) {
896
793
  }
897
794
 
898
- class PutAlternateContactCommand extends Command
899
- .classBuilder()
900
- .ep(commonParams)
901
- .m(function (Command, cs, config, o) {
902
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
903
- })
904
- .s("Account", "PutAlternateContact", {})
905
- .n("AccountClient", "PutAlternateContactCommand")
906
- .sc(PutAlternateContact$)
907
- .build() {
795
+ class PutAlternateContactCommand extends command(_ep0, _mw0, "PutAlternateContact", PutAlternateContact$) {
908
796
  }
909
797
 
910
- class PutContactInformationCommand extends Command
911
- .classBuilder()
912
- .ep(commonParams)
913
- .m(function (Command, cs, config, o) {
914
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
915
- })
916
- .s("Account", "PutContactInformation", {})
917
- .n("AccountClient", "PutContactInformationCommand")
918
- .sc(PutContactInformation$)
919
- .build() {
798
+ class PutContactInformationCommand extends command(_ep0, _mw0, "PutContactInformation", PutContactInformation$) {
920
799
  }
921
800
 
922
- class StartPrimaryEmailUpdateCommand extends Command
923
- .classBuilder()
924
- .ep(commonParams)
925
- .m(function (Command, cs, config, o) {
926
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
927
- })
928
- .s("Account", "StartPrimaryEmailUpdate", {})
929
- .n("AccountClient", "StartPrimaryEmailUpdateCommand")
930
- .sc(StartPrimaryEmailUpdate$)
931
- .build() {
801
+ class StartPrimaryEmailUpdateCommand extends command(_ep0, _mw0, "StartPrimaryEmailUpdate", StartPrimaryEmailUpdate$) {
932
802
  }
933
803
 
934
804
  const paginateListRegions = createPaginator(AccountClient, ListRegionsCommand, "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, "Account", "AccountClient", 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 { AcceptPrimaryEmailUpdate$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AcceptPrimaryEmailUpdateCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Account", "AcceptPrimaryEmailUpdate", {})
13
- .n("AccountClient", "AcceptPrimaryEmailUpdateCommand")
14
- .sc(AcceptPrimaryEmailUpdate$)
15
- .build() {
3
+ export class AcceptPrimaryEmailUpdateCommand extends command(_ep0, _mw0, "AcceptPrimaryEmailUpdate", AcceptPrimaryEmailUpdate$) {
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 { DeleteAlternateContact$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteAlternateContactCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Account", "DeleteAlternateContact", {})
13
- .n("AccountClient", "DeleteAlternateContactCommand")
14
- .sc(DeleteAlternateContact$)
15
- .build() {
3
+ export class DeleteAlternateContactCommand extends command(_ep0, _mw0, "DeleteAlternateContact", DeleteAlternateContact$) {
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 { DisableRegion$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DisableRegionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Account", "DisableRegion", {})
13
- .n("AccountClient", "DisableRegionCommand")
14
- .sc(DisableRegion$)
15
- .build() {
3
+ export class DisableRegionCommand extends command(_ep0, _mw0, "DisableRegion", DisableRegion$) {
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 { EnableRegion$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class EnableRegionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Account", "EnableRegion", {})
13
- .n("AccountClient", "EnableRegionCommand")
14
- .sc(EnableRegion$)
15
- .build() {
3
+ export class EnableRegionCommand extends command(_ep0, _mw0, "EnableRegion", EnableRegion$) {
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 { GetAccountInformation$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetAccountInformationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Account", "GetAccountInformation", {})
13
- .n("AccountClient", "GetAccountInformationCommand")
14
- .sc(GetAccountInformation$)
15
- .build() {
3
+ export class GetAccountInformationCommand extends command(_ep0, _mw0, "GetAccountInformation", GetAccountInformation$) {
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 { GetAlternateContact$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetAlternateContactCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Account", "GetAlternateContact", {})
13
- .n("AccountClient", "GetAlternateContactCommand")
14
- .sc(GetAlternateContact$)
15
- .build() {
3
+ export class GetAlternateContactCommand extends command(_ep0, _mw0, "GetAlternateContact", GetAlternateContact$) {
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 { GetContactInformation$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetContactInformationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Account", "GetContactInformation", {})
13
- .n("AccountClient", "GetContactInformationCommand")
14
- .sc(GetContactInformation$)
15
- .build() {
3
+ export class GetContactInformationCommand extends command(_ep0, _mw0, "GetContactInformation", GetContactInformation$) {
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 { GetGovCloudAccountInformation$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetGovCloudAccountInformationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Account", "GetGovCloudAccountInformation", {})
13
- .n("AccountClient", "GetGovCloudAccountInformationCommand")
14
- .sc(GetGovCloudAccountInformation$)
15
- .build() {
3
+ export class GetGovCloudAccountInformationCommand extends command(_ep0, _mw0, "GetGovCloudAccountInformation", GetGovCloudAccountInformation$) {
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 { GetPrimaryEmail$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetPrimaryEmailCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Account", "GetPrimaryEmail", {})
13
- .n("AccountClient", "GetPrimaryEmailCommand")
14
- .sc(GetPrimaryEmail$)
15
- .build() {
3
+ export class GetPrimaryEmailCommand extends command(_ep0, _mw0, "GetPrimaryEmail", GetPrimaryEmail$) {
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 { GetRegionOptStatus$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetRegionOptStatusCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Account", "GetRegionOptStatus", {})
13
- .n("AccountClient", "GetRegionOptStatusCommand")
14
- .sc(GetRegionOptStatus$)
15
- .build() {
3
+ export class GetRegionOptStatusCommand extends command(_ep0, _mw0, "GetRegionOptStatus", GetRegionOptStatus$) {
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 { ListRegions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListRegionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Account", "ListRegions", {})
13
- .n("AccountClient", "ListRegionsCommand")
14
- .sc(ListRegions$)
15
- .build() {
3
+ export class ListRegionsCommand extends command(_ep0, _mw0, "ListRegions", ListRegions$) {
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 { PutAccountName$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutAccountNameCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Account", "PutAccountName", {})
13
- .n("AccountClient", "PutAccountNameCommand")
14
- .sc(PutAccountName$)
15
- .build() {
3
+ export class PutAccountNameCommand extends command(_ep0, _mw0, "PutAccountName", PutAccountName$) {
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 { PutAlternateContact$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutAlternateContactCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Account", "PutAlternateContact", {})
13
- .n("AccountClient", "PutAlternateContactCommand")
14
- .sc(PutAlternateContact$)
15
- .build() {
3
+ export class PutAlternateContactCommand extends command(_ep0, _mw0, "PutAlternateContact", PutAlternateContact$) {
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 { PutContactInformation$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutContactInformationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Account", "PutContactInformation", {})
13
- .n("AccountClient", "PutContactInformationCommand")
14
- .sc(PutContactInformation$)
15
- .build() {
3
+ export class PutContactInformationCommand extends command(_ep0, _mw0, "PutContactInformation", PutContactInformation$) {
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 { StartPrimaryEmailUpdate$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StartPrimaryEmailUpdateCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Account", "StartPrimaryEmailUpdate", {})
13
- .n("AccountClient", "StartPrimaryEmailUpdateCommand")
14
- .sc(StartPrimaryEmailUpdate$)
15
- .build() {
3
+ export class StartPrimaryEmailUpdateCommand extends command(_ep0, _mw0, "StartPrimaryEmailUpdate", StartPrimaryEmailUpdate$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./AccountClient";
2
2
  export * from "./Account";
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";
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./AccountClient";
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, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, AccountClientResolvedConfig, 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 { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient";
4
2
  import type { AcceptPrimaryEmailUpdateRequest, AcceptPrimaryEmailUpdateResponse } 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 AcceptPrimaryEmailUpdateCommandInput extends AcceptPrimaryEmail
22
19
  export interface AcceptPrimaryEmailUpdateCommandOutput extends AcceptPrimaryEmailUpdateResponse, __MetadataBearer {
23
20
  }
24
21
  declare const AcceptPrimaryEmailUpdateCommand_base: {
25
- new (input: AcceptPrimaryEmailUpdateCommandInput): import("@smithy/core/client").CommandImpl<AcceptPrimaryEmailUpdateCommandInput, AcceptPrimaryEmailUpdateCommandOutput, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: AcceptPrimaryEmailUpdateCommandInput): import("@smithy/core/client").CommandImpl<AcceptPrimaryEmailUpdateCommandInput, AcceptPrimaryEmailUpdateCommandOutput, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: AcceptPrimaryEmailUpdateCommandInput): import("@smithy/core/client").CommandImpl<AcceptPrimaryEmailUpdateCommandInput, AcceptPrimaryEmailUpdateCommandOutput, import("..").AccountClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: AcceptPrimaryEmailUpdateCommandInput): import("@smithy/core/client").CommandImpl<AcceptPrimaryEmailUpdateCommandInput, AcceptPrimaryEmailUpdateCommandOutput, import("..").AccountClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Accepts the request that originated from <a>StartPrimaryEmailUpdate</a> to update the primary email address (also known as the root user email address) for the specified 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
- import type { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient";
4
2
  import type { DeleteAlternateContactRequest } 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 DeleteAlternateContactCommandInput extends DeleteAlternateConta
22
19
  export interface DeleteAlternateContactCommandOutput extends __MetadataBearer {
23
20
  }
24
21
  declare const DeleteAlternateContactCommand_base: {
25
- new (input: DeleteAlternateContactCommandInput): import("@smithy/core/client").CommandImpl<DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteAlternateContactCommandInput): import("@smithy/core/client").CommandImpl<DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteAlternateContactCommandInput): import("@smithy/core/client").CommandImpl<DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput, import("..").AccountClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteAlternateContactCommandInput): import("@smithy/core/client").CommandImpl<DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput, import("..").AccountClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes the specified alternate contact from an Amazon Web Services account.</p> <p>For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-alternate.html">Update the alternate contacts for your Amazon Web Services account</a>.</p> <note> <p>Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enable trusted access for Amazon Web Services Account Management</a>.</p> </note>