@aws-sdk/client-account 3.477.0 → 3.481.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist-cjs/commands/DeleteAlternateContactCommand.js +18 -41
  2. package/dist-cjs/commands/DisableRegionCommand.js +18 -41
  3. package/dist-cjs/commands/EnableRegionCommand.js +18 -41
  4. package/dist-cjs/commands/GetAlternateContactCommand.js +18 -41
  5. package/dist-cjs/commands/GetContactInformationCommand.js +18 -41
  6. package/dist-cjs/commands/GetRegionOptStatusCommand.js +18 -41
  7. package/dist-cjs/commands/ListRegionsCommand.js +18 -41
  8. package/dist-cjs/commands/PutAlternateContactCommand.js +18 -41
  9. package/dist-cjs/commands/PutContactInformationCommand.js +18 -41
  10. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  11. package/dist-cjs/pagination/ListRegionsPaginator.js +2 -24
  12. package/dist-es/commands/DeleteAlternateContactCommand.js +18 -41
  13. package/dist-es/commands/DisableRegionCommand.js +18 -41
  14. package/dist-es/commands/EnableRegionCommand.js +18 -41
  15. package/dist-es/commands/GetAlternateContactCommand.js +18 -41
  16. package/dist-es/commands/GetContactInformationCommand.js +18 -41
  17. package/dist-es/commands/GetRegionOptStatusCommand.js +18 -41
  18. package/dist-es/commands/ListRegionsCommand.js +18 -41
  19. package/dist-es/commands/PutAlternateContactCommand.js +18 -41
  20. package/dist-es/commands/PutContactInformationCommand.js +18 -41
  21. package/dist-es/endpoint/EndpointParameters.js +6 -0
  22. package/dist-es/pagination/ListRegionsPaginator.js +2 -23
  23. package/dist-types/commands/DeleteAlternateContactCommand.d.ts +6 -21
  24. package/dist-types/commands/DisableRegionCommand.d.ts +6 -21
  25. package/dist-types/commands/EnableRegionCommand.d.ts +6 -21
  26. package/dist-types/commands/GetAlternateContactCommand.d.ts +6 -21
  27. package/dist-types/commands/GetContactInformationCommand.d.ts +6 -21
  28. package/dist-types/commands/GetRegionOptStatusCommand.d.ts +6 -21
  29. package/dist-types/commands/ListRegionsCommand.d.ts +6 -21
  30. package/dist-types/commands/PutAlternateContactCommand.d.ts +6 -21
  31. package/dist-types/commands/PutContactInformationCommand.d.ts +6 -21
  32. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  33. package/dist-types/pagination/ListRegionsPaginator.d.ts +1 -1
  34. package/dist-types/ts3.4/commands/DeleteAlternateContactCommand.d.ts +12 -24
  35. package/dist-types/ts3.4/commands/DisableRegionCommand.d.ts +14 -23
  36. package/dist-types/ts3.4/commands/EnableRegionCommand.d.ts +14 -23
  37. package/dist-types/ts3.4/commands/GetAlternateContactCommand.d.ts +14 -23
  38. package/dist-types/ts3.4/commands/GetContactInformationCommand.d.ts +12 -24
  39. package/dist-types/ts3.4/commands/GetRegionOptStatusCommand.d.ts +14 -23
  40. package/dist-types/ts3.4/commands/ListRegionsCommand.d.ts +14 -23
  41. package/dist-types/ts3.4/commands/PutAlternateContactCommand.d.ts +14 -23
  42. package/dist-types/ts3.4/commands/PutContactInformationCommand.d.ts +12 -24
  43. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  44. package/dist-types/ts3.4/pagination/ListRegionsPaginator.d.ts +3 -3
  45. package/package.json +11 -11
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class DeleteAlternateContactCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteAlternateContactCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AccountClient";
29
- const commandName = "DeleteAlternateContactCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "Account",
38
- operation: "DeleteAlternateContact",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_DeleteAlternateContactCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DeleteAlternateContactCommand)(output, context);
49
- }
10
+ class DeleteAlternateContactCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("Account", "DeleteAlternateContact", {})
22
+ .n("AccountClient", "DeleteAlternateContactCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DeleteAlternateContactCommand)
25
+ .de(Aws_restJson1_1.de_DeleteAlternateContactCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DeleteAlternateContactCommand = DeleteAlternateContactCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class DisableRegionCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DisableRegionCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AccountClient";
29
- const commandName = "DisableRegionCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "Account",
38
- operation: "DisableRegion",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_DisableRegionCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DisableRegionCommand)(output, context);
49
- }
10
+ class DisableRegionCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("Account", "DisableRegion", {})
22
+ .n("AccountClient", "DisableRegionCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DisableRegionCommand)
25
+ .de(Aws_restJson1_1.de_DisableRegionCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DisableRegionCommand = DisableRegionCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class EnableRegionCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, EnableRegionCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AccountClient";
29
- const commandName = "EnableRegionCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "Account",
38
- operation: "EnableRegion",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_EnableRegionCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_EnableRegionCommand)(output, context);
49
- }
10
+ class EnableRegionCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("Account", "EnableRegion", {})
22
+ .n("AccountClient", "EnableRegionCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_EnableRegionCommand)
25
+ .de(Aws_restJson1_1.de_EnableRegionCommand)
26
+ .build() {
50
27
  }
51
28
  exports.EnableRegionCommand = EnableRegionCommand;
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class GetAlternateContactCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAlternateContactCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "AccountClient";
30
- const commandName = "GetAlternateContactCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: (_) => _,
36
- outputFilterSensitiveLog: models_0_1.GetAlternateContactResponseFilterSensitiveLog,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "Account",
39
- operation: "GetAlternateContact",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_GetAlternateContactCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_GetAlternateContactCommand)(output, context);
50
- }
11
+ class GetAlternateContactCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("Account", "GetAlternateContact", {})
23
+ .n("AccountClient", "GetAlternateContactCommand")
24
+ .f(void 0, models_0_1.GetAlternateContactResponseFilterSensitiveLog)
25
+ .ser(Aws_restJson1_1.se_GetAlternateContactCommand)
26
+ .de(Aws_restJson1_1.de_GetAlternateContactCommand)
27
+ .build() {
51
28
  }
52
29
  exports.GetAlternateContactCommand = GetAlternateContactCommand;
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class GetContactInformationCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetContactInformationCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "AccountClient";
30
- const commandName = "GetContactInformationCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: (_) => _,
36
- outputFilterSensitiveLog: models_0_1.GetContactInformationResponseFilterSensitiveLog,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "Account",
39
- operation: "GetContactInformation",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_GetContactInformationCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_GetContactInformationCommand)(output, context);
50
- }
11
+ class GetContactInformationCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("Account", "GetContactInformation", {})
23
+ .n("AccountClient", "GetContactInformationCommand")
24
+ .f(void 0, models_0_1.GetContactInformationResponseFilterSensitiveLog)
25
+ .ser(Aws_restJson1_1.se_GetContactInformationCommand)
26
+ .de(Aws_restJson1_1.de_GetContactInformationCommand)
27
+ .build() {
51
28
  }
52
29
  exports.GetContactInformationCommand = GetContactInformationCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class GetRegionOptStatusCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetRegionOptStatusCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AccountClient";
29
- const commandName = "GetRegionOptStatusCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "Account",
38
- operation: "GetRegionOptStatus",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_GetRegionOptStatusCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_GetRegionOptStatusCommand)(output, context);
49
- }
10
+ class GetRegionOptStatusCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("Account", "GetRegionOptStatus", {})
22
+ .n("AccountClient", "GetRegionOptStatusCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_GetRegionOptStatusCommand)
25
+ .de(Aws_restJson1_1.de_GetRegionOptStatusCommand)
26
+ .build() {
50
27
  }
51
28
  exports.GetRegionOptStatusCommand = GetRegionOptStatusCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class ListRegionsCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListRegionsCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AccountClient";
29
- const commandName = "ListRegionsCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "Account",
38
- operation: "ListRegions",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_ListRegionsCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ListRegionsCommand)(output, context);
49
- }
10
+ class ListRegionsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("Account", "ListRegions", {})
22
+ .n("AccountClient", "ListRegionsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListRegionsCommand)
25
+ .de(Aws_restJson1_1.de_ListRegionsCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListRegionsCommand = ListRegionsCommand;
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class PutAlternateContactCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutAlternateContactCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "AccountClient";
30
- const commandName = "PutAlternateContactCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.PutAlternateContactRequestFilterSensitiveLog,
36
- outputFilterSensitiveLog: (_) => _,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "Account",
39
- operation: "PutAlternateContact",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_PutAlternateContactCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_PutAlternateContactCommand)(output, context);
50
- }
11
+ class PutAlternateContactCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("Account", "PutAlternateContact", {})
23
+ .n("AccountClient", "PutAlternateContactCommand")
24
+ .f(models_0_1.PutAlternateContactRequestFilterSensitiveLog, void 0)
25
+ .ser(Aws_restJson1_1.se_PutAlternateContactCommand)
26
+ .de(Aws_restJson1_1.de_PutAlternateContactCommand)
27
+ .build() {
51
28
  }
52
29
  exports.PutAlternateContactCommand = PutAlternateContactCommand;
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class PutContactInformationCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutContactInformationCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "AccountClient";
30
- const commandName = "PutContactInformationCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.PutContactInformationRequestFilterSensitiveLog,
36
- outputFilterSensitiveLog: (_) => _,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "Account",
39
- operation: "PutContactInformation",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_PutContactInformationCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_PutContactInformationCommand)(output, context);
50
- }
11
+ class PutContactInformationCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("Account", "PutContactInformation", {})
23
+ .n("AccountClient", "PutContactInformationCommand")
24
+ .f(models_0_1.PutContactInformationRequestFilterSensitiveLog, void 0)
25
+ .ser(Aws_restJson1_1.se_PutContactInformationCommand)
26
+ .de(Aws_restJson1_1.de_PutContactInformationCommand)
27
+ .build() {
51
28
  }
52
29
  exports.PutContactInformationCommand = PutContactInformationCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };