@aws-sdk/client-account 3.1076.0 → 3.1078.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +26 -155
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/AcceptPrimaryEmailUpdateCommand.js +2 -14
- package/dist-es/commands/DeleteAlternateContactCommand.js +2 -14
- package/dist-es/commands/DisableRegionCommand.js +2 -14
- package/dist-es/commands/EnableRegionCommand.js +2 -14
- package/dist-es/commands/GetAccountInformationCommand.js +2 -14
- package/dist-es/commands/GetAlternateContactCommand.js +2 -14
- package/dist-es/commands/GetContactInformationCommand.js +2 -14
- package/dist-es/commands/GetGovCloudAccountInformationCommand.js +2 -14
- package/dist-es/commands/GetPrimaryEmailCommand.js +2 -14
- package/dist-es/commands/GetRegionOptStatusCommand.js +2 -14
- package/dist-es/commands/ListRegionsCommand.js +2 -14
- package/dist-es/commands/PutAccountNameCommand.js +2 -14
- package/dist-es/commands/PutAlternateContactCommand.js +2 -14
- package/dist-es/commands/PutContactInformationCommand.js +2 -14
- package/dist-es/commands/StartPrimaryEmailUpdateCommand.js +2 -14
- package/dist-es/index.js +1 -0
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/AcceptPrimaryEmailUpdateCommand.d.ts +3 -8
- package/dist-types/commands/DeleteAlternateContactCommand.d.ts +3 -8
- package/dist-types/commands/DisableRegionCommand.d.ts +3 -8
- package/dist-types/commands/EnableRegionCommand.d.ts +3 -8
- package/dist-types/commands/GetAccountInformationCommand.d.ts +3 -8
- package/dist-types/commands/GetAlternateContactCommand.d.ts +3 -8
- package/dist-types/commands/GetContactInformationCommand.d.ts +3 -8
- package/dist-types/commands/GetGovCloudAccountInformationCommand.d.ts +3 -8
- package/dist-types/commands/GetPrimaryEmailCommand.d.ts +3 -8
- package/dist-types/commands/GetRegionOptStatusCommand.d.ts +3 -8
- package/dist-types/commands/ListRegionsCommand.d.ts +3 -8
- package/dist-types/commands/PutAccountNameCommand.d.ts +3 -8
- package/dist-types/commands/PutAlternateContactCommand.d.ts +3 -8
- package/dist-types/commands/PutContactInformationCommand.d.ts +3 -8
- package/dist-types/commands/StartPrimaryEmailUpdateCommand.d.ts +3 -8
- package/dist-types/index.d.ts +1 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
- package/dist-types/ts3.4/commands/AcceptPrimaryEmailUpdateCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/DeleteAlternateContactCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/DisableRegionCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/EnableRegionCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetAccountInformationCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetAlternateContactCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetContactInformationCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetGovCloudAccountInformationCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetPrimaryEmailCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetRegionOptStatusCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListRegionsCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/PutAccountNameCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/PutAlternateContactCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/PutContactInformationCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/StartPrimaryEmailUpdateCommand.d.ts +7 -16
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +8 -10
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
3
|
-
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client,
|
|
4
|
-
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { Command: $Command } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = $Command;
|
|
5
6
|
exports.__Client = Client;
|
|
6
7
|
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
8
|
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
|
|
|
10
11
|
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
12
|
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
13
|
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
-
const { toUtf8, fromUtf8, toBase64, fromBase64,
|
|
14
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
15
|
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
16
|
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
17
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
16
18
|
|
|
17
19
|
const defaultAccountHttpAuthSchemeParametersProvider = 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.
|
|
72
|
+
var version = "3.1077.0";
|
|
71
73
|
var packageInfo = {
|
|
72
74
|
version: version};
|
|
73
75
|
|
|
@@ -629,6 +631,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
629
631
|
serviceTarget: "Account",
|
|
630
632
|
},
|
|
631
633
|
serviceId: config?.serviceId ?? "Account",
|
|
634
|
+
sha256: config?.sha256 ?? Sha256,
|
|
632
635
|
urlParser: config?.urlParser ?? parseUrl,
|
|
633
636
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
634
637
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -662,7 +665,6 @@ const getRuntimeConfig = (config) => {
|
|
|
662
665
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
663
666
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
664
667
|
}, config),
|
|
665
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
666
668
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
667
669
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
668
670
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -750,184 +752,53 @@ class AccountClient extends Client {
|
|
|
750
752
|
}
|
|
751
753
|
}
|
|
752
754
|
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
})
|
|
759
|
-
.s("Account", "AcceptPrimaryEmailUpdate", {})
|
|
760
|
-
.n("AccountClient", "AcceptPrimaryEmailUpdateCommand")
|
|
761
|
-
.sc(AcceptPrimaryEmailUpdate$)
|
|
762
|
-
.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$) {
|
|
763
760
|
}
|
|
764
761
|
|
|
765
|
-
class DeleteAlternateContactCommand extends
|
|
766
|
-
.classBuilder()
|
|
767
|
-
.ep(commonParams)
|
|
768
|
-
.m(function (Command, cs, config, o) {
|
|
769
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
770
|
-
})
|
|
771
|
-
.s("Account", "DeleteAlternateContact", {})
|
|
772
|
-
.n("AccountClient", "DeleteAlternateContactCommand")
|
|
773
|
-
.sc(DeleteAlternateContact$)
|
|
774
|
-
.build() {
|
|
762
|
+
class DeleteAlternateContactCommand extends command(_ep0, _mw0, "DeleteAlternateContact", DeleteAlternateContact$) {
|
|
775
763
|
}
|
|
776
764
|
|
|
777
|
-
class DisableRegionCommand extends
|
|
778
|
-
.classBuilder()
|
|
779
|
-
.ep(commonParams)
|
|
780
|
-
.m(function (Command, cs, config, o) {
|
|
781
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
782
|
-
})
|
|
783
|
-
.s("Account", "DisableRegion", {})
|
|
784
|
-
.n("AccountClient", "DisableRegionCommand")
|
|
785
|
-
.sc(DisableRegion$)
|
|
786
|
-
.build() {
|
|
765
|
+
class DisableRegionCommand extends command(_ep0, _mw0, "DisableRegion", DisableRegion$) {
|
|
787
766
|
}
|
|
788
767
|
|
|
789
|
-
class EnableRegionCommand extends
|
|
790
|
-
.classBuilder()
|
|
791
|
-
.ep(commonParams)
|
|
792
|
-
.m(function (Command, cs, config, o) {
|
|
793
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
794
|
-
})
|
|
795
|
-
.s("Account", "EnableRegion", {})
|
|
796
|
-
.n("AccountClient", "EnableRegionCommand")
|
|
797
|
-
.sc(EnableRegion$)
|
|
798
|
-
.build() {
|
|
768
|
+
class EnableRegionCommand extends command(_ep0, _mw0, "EnableRegion", EnableRegion$) {
|
|
799
769
|
}
|
|
800
770
|
|
|
801
|
-
class GetAccountInformationCommand extends
|
|
802
|
-
.classBuilder()
|
|
803
|
-
.ep(commonParams)
|
|
804
|
-
.m(function (Command, cs, config, o) {
|
|
805
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
806
|
-
})
|
|
807
|
-
.s("Account", "GetAccountInformation", {})
|
|
808
|
-
.n("AccountClient", "GetAccountInformationCommand")
|
|
809
|
-
.sc(GetAccountInformation$)
|
|
810
|
-
.build() {
|
|
771
|
+
class GetAccountInformationCommand extends command(_ep0, _mw0, "GetAccountInformation", GetAccountInformation$) {
|
|
811
772
|
}
|
|
812
773
|
|
|
813
|
-
class GetAlternateContactCommand extends
|
|
814
|
-
.classBuilder()
|
|
815
|
-
.ep(commonParams)
|
|
816
|
-
.m(function (Command, cs, config, o) {
|
|
817
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
818
|
-
})
|
|
819
|
-
.s("Account", "GetAlternateContact", {})
|
|
820
|
-
.n("AccountClient", "GetAlternateContactCommand")
|
|
821
|
-
.sc(GetAlternateContact$)
|
|
822
|
-
.build() {
|
|
774
|
+
class GetAlternateContactCommand extends command(_ep0, _mw0, "GetAlternateContact", GetAlternateContact$) {
|
|
823
775
|
}
|
|
824
776
|
|
|
825
|
-
class GetContactInformationCommand extends
|
|
826
|
-
.classBuilder()
|
|
827
|
-
.ep(commonParams)
|
|
828
|
-
.m(function (Command, cs, config, o) {
|
|
829
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
830
|
-
})
|
|
831
|
-
.s("Account", "GetContactInformation", {})
|
|
832
|
-
.n("AccountClient", "GetContactInformationCommand")
|
|
833
|
-
.sc(GetContactInformation$)
|
|
834
|
-
.build() {
|
|
777
|
+
class GetContactInformationCommand extends command(_ep0, _mw0, "GetContactInformation", GetContactInformation$) {
|
|
835
778
|
}
|
|
836
779
|
|
|
837
|
-
class GetGovCloudAccountInformationCommand extends
|
|
838
|
-
.classBuilder()
|
|
839
|
-
.ep(commonParams)
|
|
840
|
-
.m(function (Command, cs, config, o) {
|
|
841
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
842
|
-
})
|
|
843
|
-
.s("Account", "GetGovCloudAccountInformation", {})
|
|
844
|
-
.n("AccountClient", "GetGovCloudAccountInformationCommand")
|
|
845
|
-
.sc(GetGovCloudAccountInformation$)
|
|
846
|
-
.build() {
|
|
780
|
+
class GetGovCloudAccountInformationCommand extends command(_ep0, _mw0, "GetGovCloudAccountInformation", GetGovCloudAccountInformation$) {
|
|
847
781
|
}
|
|
848
782
|
|
|
849
|
-
class GetPrimaryEmailCommand extends
|
|
850
|
-
.classBuilder()
|
|
851
|
-
.ep(commonParams)
|
|
852
|
-
.m(function (Command, cs, config, o) {
|
|
853
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
854
|
-
})
|
|
855
|
-
.s("Account", "GetPrimaryEmail", {})
|
|
856
|
-
.n("AccountClient", "GetPrimaryEmailCommand")
|
|
857
|
-
.sc(GetPrimaryEmail$)
|
|
858
|
-
.build() {
|
|
783
|
+
class GetPrimaryEmailCommand extends command(_ep0, _mw0, "GetPrimaryEmail", GetPrimaryEmail$) {
|
|
859
784
|
}
|
|
860
785
|
|
|
861
|
-
class GetRegionOptStatusCommand extends
|
|
862
|
-
.classBuilder()
|
|
863
|
-
.ep(commonParams)
|
|
864
|
-
.m(function (Command, cs, config, o) {
|
|
865
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
866
|
-
})
|
|
867
|
-
.s("Account", "GetRegionOptStatus", {})
|
|
868
|
-
.n("AccountClient", "GetRegionOptStatusCommand")
|
|
869
|
-
.sc(GetRegionOptStatus$)
|
|
870
|
-
.build() {
|
|
786
|
+
class GetRegionOptStatusCommand extends command(_ep0, _mw0, "GetRegionOptStatus", GetRegionOptStatus$) {
|
|
871
787
|
}
|
|
872
788
|
|
|
873
|
-
class ListRegionsCommand extends
|
|
874
|
-
.classBuilder()
|
|
875
|
-
.ep(commonParams)
|
|
876
|
-
.m(function (Command, cs, config, o) {
|
|
877
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
878
|
-
})
|
|
879
|
-
.s("Account", "ListRegions", {})
|
|
880
|
-
.n("AccountClient", "ListRegionsCommand")
|
|
881
|
-
.sc(ListRegions$)
|
|
882
|
-
.build() {
|
|
789
|
+
class ListRegionsCommand extends command(_ep0, _mw0, "ListRegions", ListRegions$) {
|
|
883
790
|
}
|
|
884
791
|
|
|
885
|
-
class PutAccountNameCommand extends
|
|
886
|
-
.classBuilder()
|
|
887
|
-
.ep(commonParams)
|
|
888
|
-
.m(function (Command, cs, config, o) {
|
|
889
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
890
|
-
})
|
|
891
|
-
.s("Account", "PutAccountName", {})
|
|
892
|
-
.n("AccountClient", "PutAccountNameCommand")
|
|
893
|
-
.sc(PutAccountName$)
|
|
894
|
-
.build() {
|
|
792
|
+
class PutAccountNameCommand extends command(_ep0, _mw0, "PutAccountName", PutAccountName$) {
|
|
895
793
|
}
|
|
896
794
|
|
|
897
|
-
class PutAlternateContactCommand extends
|
|
898
|
-
.classBuilder()
|
|
899
|
-
.ep(commonParams)
|
|
900
|
-
.m(function (Command, cs, config, o) {
|
|
901
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
902
|
-
})
|
|
903
|
-
.s("Account", "PutAlternateContact", {})
|
|
904
|
-
.n("AccountClient", "PutAlternateContactCommand")
|
|
905
|
-
.sc(PutAlternateContact$)
|
|
906
|
-
.build() {
|
|
795
|
+
class PutAlternateContactCommand extends command(_ep0, _mw0, "PutAlternateContact", PutAlternateContact$) {
|
|
907
796
|
}
|
|
908
797
|
|
|
909
|
-
class PutContactInformationCommand extends
|
|
910
|
-
.classBuilder()
|
|
911
|
-
.ep(commonParams)
|
|
912
|
-
.m(function (Command, cs, config, o) {
|
|
913
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
914
|
-
})
|
|
915
|
-
.s("Account", "PutContactInformation", {})
|
|
916
|
-
.n("AccountClient", "PutContactInformationCommand")
|
|
917
|
-
.sc(PutContactInformation$)
|
|
918
|
-
.build() {
|
|
798
|
+
class PutContactInformationCommand extends command(_ep0, _mw0, "PutContactInformation", PutContactInformation$) {
|
|
919
799
|
}
|
|
920
800
|
|
|
921
|
-
class StartPrimaryEmailUpdateCommand extends
|
|
922
|
-
.classBuilder()
|
|
923
|
-
.ep(commonParams)
|
|
924
|
-
.m(function (Command, cs, config, o) {
|
|
925
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
926
|
-
})
|
|
927
|
-
.s("Account", "StartPrimaryEmailUpdate", {})
|
|
928
|
-
.n("AccountClient", "StartPrimaryEmailUpdateCommand")
|
|
929
|
-
.sc(StartPrimaryEmailUpdate$)
|
|
930
|
-
.build() {
|
|
801
|
+
class StartPrimaryEmailUpdateCommand extends command(_ep0, _mw0, "StartPrimaryEmailUpdate", StartPrimaryEmailUpdate$) {
|
|
931
802
|
}
|
|
932
803
|
|
|
933
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
22
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
23
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
24
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
25
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
26
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
27
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
|
|
|
5
5
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
6
6
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
7
7
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
8
|
-
import { calculateBodyLength
|
|
8
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
9
9
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
10
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
11
|
export const getRuntimeConfig = (config) => {
|
|
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
35
35
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
36
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
37
|
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
38
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
39
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
40
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
5
|
...browserDefaults,
|
|
7
6
|
...config,
|
|
8
7
|
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
8
|
};
|
|
11
9
|
};
|
|
@@ -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: "Account",
|
|
32
33
|
},
|
|
33
34
|
serviceId: config?.serviceId ?? "Account",
|
|
35
|
+
sha256: config?.sha256 ?? Sha256,
|
|
34
36
|
urlParser: config?.urlParser ?? parseUrl,
|
|
35
37
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
38
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|