@aws-sdk/client-account 3.267.0 → 3.271.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/Account.js +60 -0
- package/dist-cjs/commands/DisableRegionCommand.js +46 -0
- package/dist-cjs/commands/EnableRegionCommand.js +46 -0
- package/dist-cjs/commands/GetRegionOptStatusCommand.js +46 -0
- package/dist-cjs/commands/ListRegionsCommand.js +46 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/models/models_0.js +62 -1
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListRegionsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +330 -1
- package/dist-es/Account.js +60 -0
- package/dist-es/commands/DisableRegionCommand.js +42 -0
- package/dist-es/commands/EnableRegionCommand.js +42 -0
- package/dist-es/commands/GetRegionOptStatusCommand.js +42 -0
- package/dist-es/commands/ListRegionsCommand.js +42 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +52 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListRegionsPaginator.js +32 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +322 -1
- package/dist-types/Account.d.ts +38 -8
- package/dist-types/AccountClient.d.ts +21 -17
- package/dist-types/commands/DeleteAlternateContactCommand.d.ts +2 -2
- package/dist-types/commands/DisableRegionCommand.d.ts +37 -0
- package/dist-types/commands/EnableRegionCommand.d.ts +37 -0
- package/dist-types/commands/GetAlternateContactCommand.d.ts +2 -2
- package/dist-types/commands/GetContactInformationCommand.d.ts +1 -1
- package/dist-types/commands/GetRegionOptStatusCommand.d.ts +37 -0
- package/dist-types/commands/ListRegionsCommand.d.ts +39 -0
- package/dist-types/commands/PutAlternateContactCommand.d.ts +2 -2
- package/dist-types/commands/PutContactInformationCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +259 -6
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListRegionsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +12 -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 +4 -4
- package/dist-types/ts3.4/Account.d.ts +68 -0
- package/dist-types/ts3.4/AccountClient.d.ts +28 -4
- package/dist-types/ts3.4/commands/DisableRegionCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/EnableRegionCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/GetRegionOptStatusCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListRegionsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +74 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListRegionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -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 +4 -4
- package/package.json +29 -29
package/dist-cjs/Account.js
CHANGED
|
@@ -3,8 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Account = void 0;
|
|
4
4
|
const AccountClient_1 = require("./AccountClient");
|
|
5
5
|
const DeleteAlternateContactCommand_1 = require("./commands/DeleteAlternateContactCommand");
|
|
6
|
+
const DisableRegionCommand_1 = require("./commands/DisableRegionCommand");
|
|
7
|
+
const EnableRegionCommand_1 = require("./commands/EnableRegionCommand");
|
|
6
8
|
const GetAlternateContactCommand_1 = require("./commands/GetAlternateContactCommand");
|
|
7
9
|
const GetContactInformationCommand_1 = require("./commands/GetContactInformationCommand");
|
|
10
|
+
const GetRegionOptStatusCommand_1 = require("./commands/GetRegionOptStatusCommand");
|
|
11
|
+
const ListRegionsCommand_1 = require("./commands/ListRegionsCommand");
|
|
8
12
|
const PutAlternateContactCommand_1 = require("./commands/PutAlternateContactCommand");
|
|
9
13
|
const PutContactInformationCommand_1 = require("./commands/PutContactInformationCommand");
|
|
10
14
|
class Account extends AccountClient_1.AccountClient {
|
|
@@ -22,6 +26,34 @@ class Account extends AccountClient_1.AccountClient {
|
|
|
22
26
|
return this.send(command, optionsOrCb);
|
|
23
27
|
}
|
|
24
28
|
}
|
|
29
|
+
disableRegion(args, optionsOrCb, cb) {
|
|
30
|
+
const command = new DisableRegionCommand_1.DisableRegionCommand(args);
|
|
31
|
+
if (typeof optionsOrCb === "function") {
|
|
32
|
+
this.send(command, optionsOrCb);
|
|
33
|
+
}
|
|
34
|
+
else if (typeof cb === "function") {
|
|
35
|
+
if (typeof optionsOrCb !== "object")
|
|
36
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
37
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
return this.send(command, optionsOrCb);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
enableRegion(args, optionsOrCb, cb) {
|
|
44
|
+
const command = new EnableRegionCommand_1.EnableRegionCommand(args);
|
|
45
|
+
if (typeof optionsOrCb === "function") {
|
|
46
|
+
this.send(command, optionsOrCb);
|
|
47
|
+
}
|
|
48
|
+
else if (typeof cb === "function") {
|
|
49
|
+
if (typeof optionsOrCb !== "object")
|
|
50
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
51
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
return this.send(command, optionsOrCb);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
25
57
|
getAlternateContact(args, optionsOrCb, cb) {
|
|
26
58
|
const command = new GetAlternateContactCommand_1.GetAlternateContactCommand(args);
|
|
27
59
|
if (typeof optionsOrCb === "function") {
|
|
@@ -50,6 +82,34 @@ class Account extends AccountClient_1.AccountClient {
|
|
|
50
82
|
return this.send(command, optionsOrCb);
|
|
51
83
|
}
|
|
52
84
|
}
|
|
85
|
+
getRegionOptStatus(args, optionsOrCb, cb) {
|
|
86
|
+
const command = new GetRegionOptStatusCommand_1.GetRegionOptStatusCommand(args);
|
|
87
|
+
if (typeof optionsOrCb === "function") {
|
|
88
|
+
this.send(command, optionsOrCb);
|
|
89
|
+
}
|
|
90
|
+
else if (typeof cb === "function") {
|
|
91
|
+
if (typeof optionsOrCb !== "object")
|
|
92
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
return this.send(command, optionsOrCb);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
listRegions(args, optionsOrCb, cb) {
|
|
100
|
+
const command = new ListRegionsCommand_1.ListRegionsCommand(args);
|
|
101
|
+
if (typeof optionsOrCb === "function") {
|
|
102
|
+
this.send(command, optionsOrCb);
|
|
103
|
+
}
|
|
104
|
+
else if (typeof cb === "function") {
|
|
105
|
+
if (typeof optionsOrCb !== "object")
|
|
106
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
107
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
return this.send(command, optionsOrCb);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
53
113
|
putAlternateContact(args, optionsOrCb, cb) {
|
|
54
114
|
const command = new PutAlternateContactCommand_1.PutAlternateContactCommand(args);
|
|
55
115
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DisableRegionCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DisableRegionCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DisableRegionCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "AccountClient";
|
|
28
|
+
const commandName = "DisableRegionCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DisableRegionRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: (output) => output,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DisableRegionCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DisableRegionCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DisableRegionCommand = DisableRegionCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnableRegionCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class EnableRegionCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, EnableRegionCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "AccountClient";
|
|
28
|
+
const commandName = "EnableRegionCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.EnableRegionRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: (output) => output,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1EnableRegionCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1EnableRegionCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.EnableRegionCommand = EnableRegionCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetRegionOptStatusCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class GetRegionOptStatusCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetRegionOptStatusCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "AccountClient";
|
|
28
|
+
const commandName = "GetRegionOptStatusCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.GetRegionOptStatusRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.GetRegionOptStatusResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1GetRegionOptStatusCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1GetRegionOptStatusCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.GetRegionOptStatusCommand = GetRegionOptStatusCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListRegionsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ListRegionsCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListRegionsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "AccountClient";
|
|
28
|
+
const commandName = "ListRegionsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListRegionsRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListRegionsResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListRegionsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListRegionsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListRegionsCommand = ListRegionsCommand;
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./DeleteAlternateContactCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./DisableRegionCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./EnableRegionCommand"), exports);
|
|
5
7
|
tslib_1.__exportStar(require("./GetAlternateContactCommand"), exports);
|
|
6
8
|
tslib_1.__exportStar(require("./GetContactInformationCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./GetRegionOptStatusCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./ListRegionsCommand"), exports);
|
|
7
11
|
tslib_1.__exportStar(require("./PutAlternateContactCommand"), exports);
|
|
8
12
|
tslib_1.__exportStar(require("./PutContactInformationCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const y = "required", z = "type", A = "fn", B = "argv", C = "ref", D = "properties", E = "headers", F = "authSchemes", G = "signingName", H = "signingRegion";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = { [y]: false, [z]: "String" }, h = { [y]: true, "default": false, [z]: "Boolean" }, i = { [C]: "Endpoint" }, j = {}, k = { [C]: "Region" }, l = { [A]: "getAttr", [B]: [{ [C]: e }, "name"] }, m = { [c]: "FIPS and DualStack are enabled, but this partition does not support one or both", [z]: c }, n = { [c]: "FIPS is enabled but this partition does not support FIPS", [z]: c }, o = { [c]: "DualStack is enabled but this partition does not support DualStack", [z]: c }, p = { "url": "https://account.us-east-1.amazonaws.com", [D]: { [F]: [{ "name": "sigv4", [G]: "account", [H]: "us-east-1" }] }, [E]: {} }, q = { "url": "https://account.cn-northwest-1.amazonaws.com.cn", [D]: { [F]: [{ "name": "sigv4", [G]: "account", [H]: "cn-northwest-1" }] }, [E]: {} }, r = [{ [A]: "booleanEquals", [B]: [{ [C]: "UseFIPS" }, true] }], s = [{ [A]: "booleanEquals", [B]: [{ [C]: "UseDualStack" }, true] }], t = [k], u = [{ [A]: "booleanEquals", [B]: [{ [C]: "UseFIPS" }, true] }, { [A]: "booleanEquals", [B]: [{ [C]: "UseDualStack" }, true] }], v = [{ [A]: "booleanEquals", [B]: [true, { [A]: "getAttr", [B]: [{ [C]: e }, "supportsFIPS"] }] }, { [A]: "booleanEquals", [B]: [true, { [A]: "getAttr", [B]: [{ [C]: e }, "supportsDualStack"] }] }], w = [{ [A]: "booleanEquals", [B]: [true, { [A]: "getAttr", [B]: [{ [C]: e }, "supportsFIPS"] }] }], x = [{ [A]: "booleanEquals", [B]: [true, { [A]: "getAttr", [B]: [{ [C]: e }, "supportsDualStack"] }] }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [A]: a, [B]: [i] }], [z]: b, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [z]: c }, { [z]: b, rules: [{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [z]: c }, { endpoint: { url: i, [D]: j, [E]: j }, [z]: d }] }] }, { [z]: b, rules: [{ conditions: [{ [A]: a, [B]: t }], [z]: b, rules: [{ conditions: [{ [A]: "aws.partition", [B]: t, assign: e }], [z]: b, rules: [{ conditions: [{ [A]: f, [B]: [l, "aws"] }], [z]: b, rules: [{ conditions: u, [z]: b, rules: [{ conditions: v, [z]: b, rules: [{ endpoint: { url: "https://account-fips.{Region}.api.aws", [D]: j, [E]: j }, [z]: d }] }, m] }, { conditions: r, [z]: b, rules: [{ conditions: w, [z]: b, rules: [{ endpoint: { url: "https://account-fips.{Region}.amazonaws.com", [D]: j, [E]: j }, [z]: d }] }, n] }, { conditions: s, [z]: b, rules: [{ conditions: x, [z]: b, rules: [{ endpoint: { url: "https://account.{Region}.api.aws", [D]: j, [E]: j }, [z]: d }] }, o] }, { endpoint: p, [z]: d }] }, { conditions: [{ [A]: f, [B]: [l, "aws-cn"] }], [z]: b, rules: [{ conditions: u, [z]: b, rules: [{ conditions: v, [z]: b, rules: [{ endpoint: { url: "https://account-fips.{Region}.api.amazonwebservices.com.cn", [D]: j, [E]: j }, [z]: d }] }, m] }, { conditions: r, [z]: b, rules: [{ conditions: w, [z]: b, rules: [{ endpoint: { url: "https://account-fips.{Region}.amazonaws.com.cn", [D]: j, [E]: j }, [z]: d }] }, n] }, { conditions: s, [z]: b, rules: [{ conditions: x, [z]: b, rules: [{ endpoint: { url: "https://account.{Region}.api.amazonwebservices.com.cn", [D]: j, [E]: j }, [z]: d }] }, o] }, { endpoint: q, [z]: d }] }, { conditions: u, [z]: b, rules: [{ conditions: v, [z]: b, rules: [{ [z]: b, rules: [{ endpoint: { url: "https://account-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [D]: j, [E]: j }, [z]: d }] }] }, m] }, { conditions: r, [z]: b, rules: [{ conditions: w, [z]: b, rules: [{ [z]: b, rules: [{ endpoint: { url: "https://account-fips.{Region}.{PartitionResult#dnsSuffix}", [D]: j, [E]: j }, [z]: d }] }] }, n] }, { conditions: s, [z]: b, rules: [{ conditions: x, [z]: b, rules: [{ [z]: b, rules: [{ endpoint: { url: "https://account.{Region}.{PartitionResult#dualStackDnsSuffix}", [D]: j, [E]: j }, [z]: d }] }] }, o] }, { [z]: b, rules: [{ conditions: [{ [A]: f, [B]: [k, "aws-global"] }], endpoint: p, [z]: d }, { conditions: [{ [A]: f, [B]: [k, "aws-cn-global"] }], endpoint: q, [z]: d }, { endpoint: { url: "https://account.{Region}.{PartitionResult#dnsSuffix}", [D]: j, [E]: j }, [z]: d }] }] }] }, { error: "Invalid Configuration: Missing Region", [z]: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
package/dist-cjs/index.js
CHANGED
|
@@ -6,5 +6,6 @@ tslib_1.__exportStar(require("./Account"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./AccountClient"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
9
10
|
var AccountServiceException_1 = require("./models/AccountServiceException");
|
|
10
11
|
Object.defineProperty(exports, "AccountServiceException", { enumerable: true, get: function () { return AccountServiceException_1.AccountServiceException; } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PutContactInformationRequestFilterSensitiveLog = exports.GetContactInformationResponseFilterSensitiveLog = exports.ContactInformationFilterSensitiveLog = exports.GetContactInformationRequestFilterSensitiveLog = exports.PutAlternateContactRequestFilterSensitiveLog = exports.GetAlternateContactResponseFilterSensitiveLog = exports.AlternateContactFilterSensitiveLog = exports.GetAlternateContactRequestFilterSensitiveLog = exports.DeleteAlternateContactRequestFilterSensitiveLog = exports.ValidationException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AlternateContactType = exports.AccessDeniedException = void 0;
|
|
3
|
+
exports.ListRegionsResponseFilterSensitiveLog = exports.RegionFilterSensitiveLog = exports.ListRegionsRequestFilterSensitiveLog = exports.GetRegionOptStatusResponseFilterSensitiveLog = exports.GetRegionOptStatusRequestFilterSensitiveLog = exports.EnableRegionRequestFilterSensitiveLog = exports.DisableRegionRequestFilterSensitiveLog = exports.PutContactInformationRequestFilterSensitiveLog = exports.GetContactInformationResponseFilterSensitiveLog = exports.ContactInformationFilterSensitiveLog = exports.GetContactInformationRequestFilterSensitiveLog = exports.PutAlternateContactRequestFilterSensitiveLog = exports.GetAlternateContactResponseFilterSensitiveLog = exports.AlternateContactFilterSensitiveLog = exports.GetAlternateContactRequestFilterSensitiveLog = exports.ValidationExceptionFieldFilterSensitiveLog = exports.DeleteAlternateContactRequestFilterSensitiveLog = exports.RegionOptStatus = exports.ConflictException = exports.ValidationException = exports.ValidationExceptionReason = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AlternateContactType = exports.AccessDeniedException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
const AccountServiceException_1 = require("./AccountServiceException");
|
|
6
6
|
class AccessDeniedException extends AccountServiceException_1.AccountServiceException {
|
|
@@ -65,6 +65,11 @@ class TooManyRequestsException extends AccountServiceException_1.AccountServiceE
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
exports.TooManyRequestsException = TooManyRequestsException;
|
|
68
|
+
var ValidationExceptionReason;
|
|
69
|
+
(function (ValidationExceptionReason) {
|
|
70
|
+
ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "fieldValidationFailed";
|
|
71
|
+
ValidationExceptionReason["INVALID_REGION_OPT_TARGET"] = "invalidRegionOptTarget";
|
|
72
|
+
})(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
|
|
68
73
|
class ValidationException extends AccountServiceException_1.AccountServiceException {
|
|
69
74
|
constructor(opts) {
|
|
70
75
|
super({
|
|
@@ -75,13 +80,41 @@ class ValidationException extends AccountServiceException_1.AccountServiceExcept
|
|
|
75
80
|
this.name = "ValidationException";
|
|
76
81
|
this.$fault = "client";
|
|
77
82
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
83
|
+
this.reason = opts.reason;
|
|
84
|
+
this.fieldList = opts.fieldList;
|
|
78
85
|
}
|
|
79
86
|
}
|
|
80
87
|
exports.ValidationException = ValidationException;
|
|
88
|
+
class ConflictException extends AccountServiceException_1.AccountServiceException {
|
|
89
|
+
constructor(opts) {
|
|
90
|
+
super({
|
|
91
|
+
name: "ConflictException",
|
|
92
|
+
$fault: "client",
|
|
93
|
+
...opts,
|
|
94
|
+
});
|
|
95
|
+
this.name = "ConflictException";
|
|
96
|
+
this.$fault = "client";
|
|
97
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.ConflictException = ConflictException;
|
|
101
|
+
var RegionOptStatus;
|
|
102
|
+
(function (RegionOptStatus) {
|
|
103
|
+
RegionOptStatus["DISABLED"] = "DISABLED";
|
|
104
|
+
RegionOptStatus["DISABLING"] = "DISABLING";
|
|
105
|
+
RegionOptStatus["ENABLED"] = "ENABLED";
|
|
106
|
+
RegionOptStatus["ENABLED_BY_DEFAULT"] = "ENABLED_BY_DEFAULT";
|
|
107
|
+
RegionOptStatus["ENABLING"] = "ENABLING";
|
|
108
|
+
})(RegionOptStatus = exports.RegionOptStatus || (exports.RegionOptStatus = {}));
|
|
81
109
|
const DeleteAlternateContactRequestFilterSensitiveLog = (obj) => ({
|
|
82
110
|
...obj,
|
|
83
111
|
});
|
|
84
112
|
exports.DeleteAlternateContactRequestFilterSensitiveLog = DeleteAlternateContactRequestFilterSensitiveLog;
|
|
113
|
+
const ValidationExceptionFieldFilterSensitiveLog = (obj) => ({
|
|
114
|
+
...obj,
|
|
115
|
+
...(obj.message && { message: smithy_client_1.SENSITIVE_STRING }),
|
|
116
|
+
});
|
|
117
|
+
exports.ValidationExceptionFieldFilterSensitiveLog = ValidationExceptionFieldFilterSensitiveLog;
|
|
85
118
|
const GetAlternateContactRequestFilterSensitiveLog = (obj) => ({
|
|
86
119
|
...obj,
|
|
87
120
|
});
|
|
@@ -137,3 +170,31 @@ const PutContactInformationRequestFilterSensitiveLog = (obj) => ({
|
|
|
137
170
|
...(obj.ContactInformation && { ContactInformation: (0, exports.ContactInformationFilterSensitiveLog)(obj.ContactInformation) }),
|
|
138
171
|
});
|
|
139
172
|
exports.PutContactInformationRequestFilterSensitiveLog = PutContactInformationRequestFilterSensitiveLog;
|
|
173
|
+
const DisableRegionRequestFilterSensitiveLog = (obj) => ({
|
|
174
|
+
...obj,
|
|
175
|
+
});
|
|
176
|
+
exports.DisableRegionRequestFilterSensitiveLog = DisableRegionRequestFilterSensitiveLog;
|
|
177
|
+
const EnableRegionRequestFilterSensitiveLog = (obj) => ({
|
|
178
|
+
...obj,
|
|
179
|
+
});
|
|
180
|
+
exports.EnableRegionRequestFilterSensitiveLog = EnableRegionRequestFilterSensitiveLog;
|
|
181
|
+
const GetRegionOptStatusRequestFilterSensitiveLog = (obj) => ({
|
|
182
|
+
...obj,
|
|
183
|
+
});
|
|
184
|
+
exports.GetRegionOptStatusRequestFilterSensitiveLog = GetRegionOptStatusRequestFilterSensitiveLog;
|
|
185
|
+
const GetRegionOptStatusResponseFilterSensitiveLog = (obj) => ({
|
|
186
|
+
...obj,
|
|
187
|
+
});
|
|
188
|
+
exports.GetRegionOptStatusResponseFilterSensitiveLog = GetRegionOptStatusResponseFilterSensitiveLog;
|
|
189
|
+
const ListRegionsRequestFilterSensitiveLog = (obj) => ({
|
|
190
|
+
...obj,
|
|
191
|
+
});
|
|
192
|
+
exports.ListRegionsRequestFilterSensitiveLog = ListRegionsRequestFilterSensitiveLog;
|
|
193
|
+
const RegionFilterSensitiveLog = (obj) => ({
|
|
194
|
+
...obj,
|
|
195
|
+
});
|
|
196
|
+
exports.RegionFilterSensitiveLog = RegionFilterSensitiveLog;
|
|
197
|
+
const ListRegionsResponseFilterSensitiveLog = (obj) => ({
|
|
198
|
+
...obj,
|
|
199
|
+
});
|
|
200
|
+
exports.ListRegionsResponseFilterSensitiveLog = ListRegionsResponseFilterSensitiveLog;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListRegions = void 0;
|
|
4
|
+
const Account_1 = require("../Account");
|
|
5
|
+
const AccountClient_1 = require("../AccountClient");
|
|
6
|
+
const ListRegionsCommand_1 = require("../commands/ListRegionsCommand");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListRegionsCommand_1.ListRegionsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listRegions(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListRegions(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Account_1.Account) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof AccountClient_1.AccountClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Account | AccountClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListRegions = paginateListRegions;
|