@aws-sdk/client-account 3.927.0 → 3.929.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 +528 -707
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/AccountClient.js +2 -0
- package/dist-es/commands/AcceptPrimaryEmailUpdateCommand.js +3 -10
- package/dist-es/commands/DeleteAlternateContactCommand.js +3 -9
- package/dist-es/commands/DisableRegionCommand.js +3 -9
- package/dist-es/commands/EnableRegionCommand.js +3 -9
- package/dist-es/commands/GetAccountInformationCommand.js +3 -10
- package/dist-es/commands/GetAlternateContactCommand.js +3 -10
- package/dist-es/commands/GetContactInformationCommand.js +3 -10
- package/dist-es/commands/GetPrimaryEmailCommand.js +3 -10
- package/dist-es/commands/GetRegionOptStatusCommand.js +3 -9
- package/dist-es/commands/ListRegionsCommand.js +3 -9
- package/dist-es/commands/PutAccountNameCommand.js +3 -10
- package/dist-es/commands/PutAlternateContactCommand.js +3 -10
- package/dist-es/commands/PutContactInformationCommand.js +3 -10
- package/dist-es/commands/StartPrimaryEmailUpdateCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -67
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +482 -0
- package/dist-types/AccountClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -48
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +70 -0
- package/dist-types/ts3.4/AccountClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -36
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +76 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_restJson1.js +0 -515
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -128
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -173
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const url_parser_1 = require("@smithy/url-parser");
|
|
7
8
|
const util_base64_1 = require("@smithy/util-base64");
|
|
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
|
|
|
25
26
|
},
|
|
26
27
|
],
|
|
27
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.account" }),
|
|
28
30
|
serviceId: config?.serviceId ?? "Account",
|
|
29
31
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
32
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
package/dist-es/AccountClient.js
CHANGED
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class AccountClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_AcceptPrimaryEmailUpdateCommand, se_AcceptPrimaryEmailUpdateCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { AcceptPrimaryEmailUpdate } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class AcceptPrimaryEmailUpdateCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("Account", "AcceptPrimaryEmailUpdate", {})
|
|
18
13
|
.n("AccountClient", "AcceptPrimaryEmailUpdateCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_AcceptPrimaryEmailUpdateCommand)
|
|
21
|
-
.de(de_AcceptPrimaryEmailUpdateCommand)
|
|
14
|
+
.sc(AcceptPrimaryEmailUpdate)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DeleteAlternateContact } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DeleteAlternateContactCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("Account", "DeleteAlternateContact", {})
|
|
17
13
|
.n("AccountClient", "DeleteAlternateContactCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DeleteAlternateContactCommand)
|
|
20
|
-
.de(de_DeleteAlternateContactCommand)
|
|
14
|
+
.sc(DeleteAlternateContact)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DisableRegion } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DisableRegionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("Account", "DisableRegion", {})
|
|
17
13
|
.n("AccountClient", "DisableRegionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DisableRegionCommand)
|
|
20
|
-
.de(de_DisableRegionCommand)
|
|
14
|
+
.sc(DisableRegion)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { EnableRegion } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class EnableRegionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("Account", "EnableRegion", {})
|
|
17
13
|
.n("AccountClient", "EnableRegionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_EnableRegionCommand)
|
|
20
|
-
.de(de_EnableRegionCommand)
|
|
14
|
+
.sc(EnableRegion)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_GetAccountInformationCommand, se_GetAccountInformationCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { GetAccountInformation } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class GetAccountInformationCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("Account", "GetAccountInformation", {})
|
|
18
13
|
.n("AccountClient", "GetAccountInformationCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_GetAccountInformationCommand)
|
|
21
|
-
.de(de_GetAccountInformationCommand)
|
|
14
|
+
.sc(GetAccountInformation)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_GetAlternateContactCommand, se_GetAlternateContactCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { GetAlternateContact } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class GetAlternateContactCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("Account", "GetAlternateContact", {})
|
|
18
13
|
.n("AccountClient", "GetAlternateContactCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_GetAlternateContactCommand)
|
|
21
|
-
.de(de_GetAlternateContactCommand)
|
|
14
|
+
.sc(GetAlternateContact)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_GetContactInformationCommand, se_GetContactInformationCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { GetContactInformation } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class GetContactInformationCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("Account", "GetContactInformation", {})
|
|
18
13
|
.n("AccountClient", "GetContactInformationCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_GetContactInformationCommand)
|
|
21
|
-
.de(de_GetContactInformationCommand)
|
|
14
|
+
.sc(GetContactInformation)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_GetPrimaryEmailCommand, se_GetPrimaryEmailCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { GetPrimaryEmail } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class GetPrimaryEmailCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("Account", "GetPrimaryEmail", {})
|
|
18
13
|
.n("AccountClient", "GetPrimaryEmailCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_GetPrimaryEmailCommand)
|
|
21
|
-
.de(de_GetPrimaryEmailCommand)
|
|
14
|
+
.sc(GetPrimaryEmail)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { GetRegionOptStatus } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class GetRegionOptStatusCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("Account", "GetRegionOptStatus", {})
|
|
17
13
|
.n("AccountClient", "GetRegionOptStatusCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_GetRegionOptStatusCommand)
|
|
20
|
-
.de(de_GetRegionOptStatusCommand)
|
|
14
|
+
.sc(GetRegionOptStatus)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListRegions } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListRegionsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("Account", "ListRegions", {})
|
|
17
13
|
.n("AccountClient", "ListRegionsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListRegionsCommand)
|
|
20
|
-
.de(de_ListRegionsCommand)
|
|
14
|
+
.sc(ListRegions)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_PutAccountNameCommand, se_PutAccountNameCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { PutAccountName } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class PutAccountNameCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("Account", "PutAccountName", {})
|
|
18
13
|
.n("AccountClient", "PutAccountNameCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_PutAccountNameCommand)
|
|
21
|
-
.de(de_PutAccountNameCommand)
|
|
14
|
+
.sc(PutAccountName)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_PutAlternateContactCommand, se_PutAlternateContactCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { PutAlternateContact } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class PutAlternateContactCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("Account", "PutAlternateContact", {})
|
|
18
13
|
.n("AccountClient", "PutAlternateContactCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_PutAlternateContactCommand)
|
|
21
|
-
.de(de_PutAlternateContactCommand)
|
|
14
|
+
.sc(PutAlternateContact)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_PutContactInformationCommand, se_PutContactInformationCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { PutContactInformation } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class PutContactInformationCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("Account", "PutContactInformation", {})
|
|
18
13
|
.n("AccountClient", "PutContactInformationCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_PutContactInformationCommand)
|
|
21
|
-
.de(de_PutContactInformationCommand)
|
|
14
|
+
.sc(PutContactInformation)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_StartPrimaryEmailUpdateCommand, se_StartPrimaryEmailUpdateCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { StartPrimaryEmailUpdate } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class StartPrimaryEmailUpdateCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("Account", "StartPrimaryEmailUpdate", {})
|
|
18
13
|
.n("AccountClient", "StartPrimaryEmailUpdateCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_StartPrimaryEmailUpdateCommand)
|
|
21
|
-
.de(de_StartPrimaryEmailUpdateCommand)
|
|
14
|
+
.sc(StartPrimaryEmailUpdate)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { AccountServiceException as __BaseException } from "./AccountServiceException";
|
|
3
2
|
export const PrimaryEmailUpdateStatus = {
|
|
4
3
|
ACCEPTED: "ACCEPTED",
|
|
@@ -110,69 +109,3 @@ export const RegionOptStatus = {
|
|
|
110
109
|
ENABLED_BY_DEFAULT: "ENABLED_BY_DEFAULT",
|
|
111
110
|
ENABLING: "ENABLING",
|
|
112
111
|
};
|
|
113
|
-
export const AcceptPrimaryEmailUpdateRequestFilterSensitiveLog = (obj) => ({
|
|
114
|
-
...obj,
|
|
115
|
-
...(obj.PrimaryEmail && { PrimaryEmail: SENSITIVE_STRING }),
|
|
116
|
-
...(obj.Otp && { Otp: SENSITIVE_STRING }),
|
|
117
|
-
});
|
|
118
|
-
export const ValidationExceptionFieldFilterSensitiveLog = (obj) => ({
|
|
119
|
-
...obj,
|
|
120
|
-
...(obj.message && { message: SENSITIVE_STRING }),
|
|
121
|
-
});
|
|
122
|
-
export const GetAccountInformationResponseFilterSensitiveLog = (obj) => ({
|
|
123
|
-
...obj,
|
|
124
|
-
...(obj.AccountName && { AccountName: SENSITIVE_STRING }),
|
|
125
|
-
});
|
|
126
|
-
export const PutAccountNameRequestFilterSensitiveLog = (obj) => ({
|
|
127
|
-
...obj,
|
|
128
|
-
...(obj.AccountName && { AccountName: SENSITIVE_STRING }),
|
|
129
|
-
});
|
|
130
|
-
export const AlternateContactFilterSensitiveLog = (obj) => ({
|
|
131
|
-
...obj,
|
|
132
|
-
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
133
|
-
...(obj.Title && { Title: SENSITIVE_STRING }),
|
|
134
|
-
...(obj.EmailAddress && { EmailAddress: SENSITIVE_STRING }),
|
|
135
|
-
...(obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }),
|
|
136
|
-
});
|
|
137
|
-
export const GetAlternateContactResponseFilterSensitiveLog = (obj) => ({
|
|
138
|
-
...obj,
|
|
139
|
-
...(obj.AlternateContact && { AlternateContact: AlternateContactFilterSensitiveLog(obj.AlternateContact) }),
|
|
140
|
-
});
|
|
141
|
-
export const PutAlternateContactRequestFilterSensitiveLog = (obj) => ({
|
|
142
|
-
...obj,
|
|
143
|
-
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
144
|
-
...(obj.Title && { Title: SENSITIVE_STRING }),
|
|
145
|
-
...(obj.EmailAddress && { EmailAddress: SENSITIVE_STRING }),
|
|
146
|
-
...(obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }),
|
|
147
|
-
});
|
|
148
|
-
export const ContactInformationFilterSensitiveLog = (obj) => ({
|
|
149
|
-
...obj,
|
|
150
|
-
...(obj.FullName && { FullName: SENSITIVE_STRING }),
|
|
151
|
-
...(obj.AddressLine1 && { AddressLine1: SENSITIVE_STRING }),
|
|
152
|
-
...(obj.AddressLine2 && { AddressLine2: SENSITIVE_STRING }),
|
|
153
|
-
...(obj.AddressLine3 && { AddressLine3: SENSITIVE_STRING }),
|
|
154
|
-
...(obj.City && { City: SENSITIVE_STRING }),
|
|
155
|
-
...(obj.StateOrRegion && { StateOrRegion: SENSITIVE_STRING }),
|
|
156
|
-
...(obj.DistrictOrCounty && { DistrictOrCounty: SENSITIVE_STRING }),
|
|
157
|
-
...(obj.PostalCode && { PostalCode: SENSITIVE_STRING }),
|
|
158
|
-
...(obj.CountryCode && { CountryCode: SENSITIVE_STRING }),
|
|
159
|
-
...(obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }),
|
|
160
|
-
...(obj.CompanyName && { CompanyName: SENSITIVE_STRING }),
|
|
161
|
-
...(obj.WebsiteUrl && { WebsiteUrl: SENSITIVE_STRING }),
|
|
162
|
-
});
|
|
163
|
-
export const GetContactInformationResponseFilterSensitiveLog = (obj) => ({
|
|
164
|
-
...obj,
|
|
165
|
-
...(obj.ContactInformation && { ContactInformation: ContactInformationFilterSensitiveLog(obj.ContactInformation) }),
|
|
166
|
-
});
|
|
167
|
-
export const PutContactInformationRequestFilterSensitiveLog = (obj) => ({
|
|
168
|
-
...obj,
|
|
169
|
-
...(obj.ContactInformation && { ContactInformation: ContactInformationFilterSensitiveLog(obj.ContactInformation) }),
|
|
170
|
-
});
|
|
171
|
-
export const GetPrimaryEmailResponseFilterSensitiveLog = (obj) => ({
|
|
172
|
-
...obj,
|
|
173
|
-
...(obj.PrimaryEmail && { PrimaryEmail: SENSITIVE_STRING }),
|
|
174
|
-
});
|
|
175
|
-
export const StartPrimaryEmailUpdateRequestFilterSensitiveLog = (obj) => ({
|
|
176
|
-
...obj,
|
|
177
|
-
...(obj.PrimaryEmail && { PrimaryEmail: SENSITIVE_STRING }),
|
|
178
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.account" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "Account",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|