@aws-sdk/client-migrationhub-config 3.433.0 → 3.435.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/README.md CHANGED
@@ -9,7 +9,6 @@ AWS SDK for JavaScript MigrationHubConfig Client for Node.js, Browser and React
9
9
  <p>The AWS Migration Hub home region APIs are available specifically for working with your
10
10
  Migration Hub home region. You can use these APIs to determine a home region, as well as to
11
11
  create and work with controls that describe the home region.</p>
12
-
13
12
  <ul>
14
13
  <li>
15
14
  <p>You must make API calls for write actions (create, notify, associate, disassociate,
@@ -29,7 +28,6 @@ is returned.</p>
29
28
  home region.</p>
30
29
  </li>
31
30
  </ul>
32
-
33
31
  <p>For specific API usage, see the sections that follow in this AWS Migration Hub Home Region
34
32
  API reference. </p>
35
33
 
@@ -235,6 +233,14 @@ CreateHomeRegionControl
235
233
 
236
234
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-migrationhub-config/classes/createhomeregioncontrolcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-migrationhub-config/interfaces/createhomeregioncontrolcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-migrationhub-config/interfaces/createhomeregioncontrolcommandoutput.html)
237
235
 
236
+ </details>
237
+ <details>
238
+ <summary>
239
+ DeleteHomeRegionControl
240
+ </summary>
241
+
242
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-migrationhub-config/classes/deletehomeregioncontrolcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-migrationhub-config/interfaces/deletehomeregioncontrolcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-migrationhub-config/interfaces/deletehomeregioncontrolcommandoutput.html)
243
+
238
244
  </details>
239
245
  <details>
240
246
  <summary>
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MigrationHubConfig = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const CreateHomeRegionControlCommand_1 = require("./commands/CreateHomeRegionControlCommand");
6
+ const DeleteHomeRegionControlCommand_1 = require("./commands/DeleteHomeRegionControlCommand");
6
7
  const DescribeHomeRegionControlsCommand_1 = require("./commands/DescribeHomeRegionControlsCommand");
7
8
  const GetHomeRegionCommand_1 = require("./commands/GetHomeRegionCommand");
8
9
  const MigrationHubConfigClient_1 = require("./MigrationHubConfigClient");
9
10
  const commands = {
10
11
  CreateHomeRegionControlCommand: CreateHomeRegionControlCommand_1.CreateHomeRegionControlCommand,
12
+ DeleteHomeRegionControlCommand: DeleteHomeRegionControlCommand_1.DeleteHomeRegionControlCommand,
11
13
  DescribeHomeRegionControlsCommand: DescribeHomeRegionControlsCommand_1.DescribeHomeRegionControlsCommand,
12
14
  GetHomeRegionCommand: GetHomeRegionCommand_1.GetHomeRegionCommand,
13
15
  };
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteHomeRegionControlCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class DeleteHomeRegionControlCommand 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, DeleteHomeRegionControlCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "MigrationHubConfigClient";
29
+ const commandName = "DeleteHomeRegionControlCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSMigrationHubMultiAccountService",
38
+ operation: "DeleteHomeRegionControl",
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_json1_1_1.se_DeleteHomeRegionControlCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_DeleteHomeRegionControlCommand)(output, context);
49
+ }
50
+ }
51
+ exports.DeleteHomeRegionControlCommand = DeleteHomeRegionControlCommand;
@@ -2,5 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./CreateHomeRegionControlCommand"), exports);
5
+ tslib_1.__exportStar(require("./DeleteHomeRegionControlCommand"), exports);
5
6
  tslib_1.__exportStar(require("./DescribeHomeRegionControlsCommand"), exports);
6
7
  tslib_1.__exportStar(require("./GetHomeRegionCommand"), 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 q = "required", r = "fn", s = "argv", t = "ref";
5
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://migrationhub-config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://migrationhub-config-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://migrationhub-config.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://migrationhub-config.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
+ const s = "required", t = "fn", u = "argv", v = "ref";
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://migrationhub-config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://migrationhub-config-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://migrationhub-config.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://migrationhub-config.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
7
7
  exports.ruleSet = _data;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_GetHomeRegionCommand = exports.de_DescribeHomeRegionControlsCommand = exports.de_CreateHomeRegionControlCommand = exports.se_GetHomeRegionCommand = exports.se_DescribeHomeRegionControlsCommand = exports.se_CreateHomeRegionControlCommand = void 0;
3
+ exports.de_GetHomeRegionCommand = exports.de_DescribeHomeRegionControlsCommand = exports.de_DeleteHomeRegionControlCommand = exports.de_CreateHomeRegionControlCommand = exports.se_GetHomeRegionCommand = exports.se_DescribeHomeRegionControlsCommand = exports.se_DeleteHomeRegionControlCommand = exports.se_CreateHomeRegionControlCommand = void 0;
4
4
  const protocol_http_1 = require("@smithy/protocol-http");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const MigrationHubConfigServiceException_1 = require("../models/MigrationHubConfigServiceException");
@@ -12,6 +12,13 @@ const se_CreateHomeRegionControlCommand = async (input, context) => {
12
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
13
  };
14
14
  exports.se_CreateHomeRegionControlCommand = se_CreateHomeRegionControlCommand;
15
+ const se_DeleteHomeRegionControlCommand = async (input, context) => {
16
+ const headers = sharedHeaders("DeleteHomeRegionControl");
17
+ let body;
18
+ body = JSON.stringify((0, smithy_client_1._json)(input));
19
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
20
+ };
21
+ exports.se_DeleteHomeRegionControlCommand = se_DeleteHomeRegionControlCommand;
15
22
  const se_DescribeHomeRegionControlsCommand = async (input, context) => {
16
23
  const headers = sharedHeaders("DescribeHomeRegionControls");
17
24
  let body;
@@ -74,6 +81,51 @@ const de_CreateHomeRegionControlCommandError = async (output, context) => {
74
81
  });
75
82
  }
76
83
  };
84
+ const de_DeleteHomeRegionControlCommand = async (output, context) => {
85
+ if (output.statusCode >= 300) {
86
+ return de_DeleteHomeRegionControlCommandError(output, context);
87
+ }
88
+ const data = await parseBody(output.body, context);
89
+ let contents = {};
90
+ contents = (0, smithy_client_1._json)(data);
91
+ const response = {
92
+ $metadata: deserializeMetadata(output),
93
+ ...contents,
94
+ };
95
+ return response;
96
+ };
97
+ exports.de_DeleteHomeRegionControlCommand = de_DeleteHomeRegionControlCommand;
98
+ const de_DeleteHomeRegionControlCommandError = async (output, context) => {
99
+ const parsedOutput = {
100
+ ...output,
101
+ body: await parseErrorBody(output.body, context),
102
+ };
103
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
104
+ switch (errorCode) {
105
+ case "AccessDeniedException":
106
+ case "com.amazonaws.migrationhubconfig#AccessDeniedException":
107
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
108
+ case "InternalServerError":
109
+ case "com.amazonaws.migrationhubconfig#InternalServerError":
110
+ throw await de_InternalServerErrorRes(parsedOutput, context);
111
+ case "InvalidInputException":
112
+ case "com.amazonaws.migrationhubconfig#InvalidInputException":
113
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
114
+ case "ServiceUnavailableException":
115
+ case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
116
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
117
+ case "ThrottlingException":
118
+ case "com.amazonaws.migrationhubconfig#ThrottlingException":
119
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
120
+ default:
121
+ const parsedBody = parsedOutput.body;
122
+ return throwDefaultError({
123
+ output,
124
+ parsedBody,
125
+ errorCode,
126
+ });
127
+ }
128
+ };
77
129
  const de_DescribeHomeRegionControlsCommand = async (output, context) => {
78
130
  if (output.statusCode >= 300) {
79
131
  return de_DescribeHomeRegionControlsCommandError(output, context);
@@ -1,10 +1,12 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { CreateHomeRegionControlCommand, } from "./commands/CreateHomeRegionControlCommand";
3
+ import { DeleteHomeRegionControlCommand, } from "./commands/DeleteHomeRegionControlCommand";
3
4
  import { DescribeHomeRegionControlsCommand, } from "./commands/DescribeHomeRegionControlsCommand";
4
5
  import { GetHomeRegionCommand, } from "./commands/GetHomeRegionCommand";
5
6
  import { MigrationHubConfigClient } from "./MigrationHubConfigClient";
6
7
  const commands = {
7
8
  CreateHomeRegionControlCommand,
9
+ DeleteHomeRegionControlCommand,
8
10
  DescribeHomeRegionControlsCommand,
9
11
  GetHomeRegionCommand,
10
12
  };
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_DeleteHomeRegionControlCommand, se_DeleteHomeRegionControlCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class DeleteHomeRegionControlCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteHomeRegionControlCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "MigrationHubConfigClient";
26
+ const commandName = "DeleteHomeRegionControlCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AWSMigrationHubMultiAccountService",
35
+ operation: "DeleteHomeRegionControl",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_DeleteHomeRegionControlCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DeleteHomeRegionControlCommand(output, context);
46
+ }
47
+ }
@@ -1,3 +1,4 @@
1
1
  export * from "./CreateHomeRegionControlCommand";
2
+ export * from "./DeleteHomeRegionControlCommand";
2
3
  export * from "./DescribeHomeRegionControlsCommand";
3
4
  export * from "./GetHomeRegionCommand";
@@ -1,4 +1,4 @@
1
- const q = "required", r = "fn", s = "argv", t = "ref";
2
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://migrationhub-config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://migrationhub-config-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://migrationhub-config.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://migrationhub-config.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
1
+ const s = "required", t = "fn", u = "argv", v = "ref";
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://migrationhub-config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://migrationhub-config-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://migrationhub-config.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://migrationhub-config.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
4
4
  export const ruleSet = _data;
@@ -8,6 +8,12 @@ export const se_CreateHomeRegionControlCommand = async (input, context) => {
8
8
  body = JSON.stringify(_json(input));
9
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
10
10
  };
11
+ export const se_DeleteHomeRegionControlCommand = async (input, context) => {
12
+ const headers = sharedHeaders("DeleteHomeRegionControl");
13
+ let body;
14
+ body = JSON.stringify(_json(input));
15
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
+ };
11
17
  export const se_DescribeHomeRegionControlsCommand = async (input, context) => {
12
18
  const headers = sharedHeaders("DescribeHomeRegionControls");
13
19
  let body;
@@ -67,6 +73,50 @@ const de_CreateHomeRegionControlCommandError = async (output, context) => {
67
73
  });
68
74
  }
69
75
  };
76
+ export const de_DeleteHomeRegionControlCommand = async (output, context) => {
77
+ if (output.statusCode >= 300) {
78
+ return de_DeleteHomeRegionControlCommandError(output, context);
79
+ }
80
+ const data = await parseBody(output.body, context);
81
+ let contents = {};
82
+ contents = _json(data);
83
+ const response = {
84
+ $metadata: deserializeMetadata(output),
85
+ ...contents,
86
+ };
87
+ return response;
88
+ };
89
+ const de_DeleteHomeRegionControlCommandError = async (output, context) => {
90
+ const parsedOutput = {
91
+ ...output,
92
+ body: await parseErrorBody(output.body, context),
93
+ };
94
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
95
+ switch (errorCode) {
96
+ case "AccessDeniedException":
97
+ case "com.amazonaws.migrationhubconfig#AccessDeniedException":
98
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
99
+ case "InternalServerError":
100
+ case "com.amazonaws.migrationhubconfig#InternalServerError":
101
+ throw await de_InternalServerErrorRes(parsedOutput, context);
102
+ case "InvalidInputException":
103
+ case "com.amazonaws.migrationhubconfig#InvalidInputException":
104
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
105
+ case "ServiceUnavailableException":
106
+ case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
107
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
108
+ case "ThrottlingException":
109
+ case "com.amazonaws.migrationhubconfig#ThrottlingException":
110
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
111
+ default:
112
+ const parsedBody = parsedOutput.body;
113
+ return throwDefaultError({
114
+ output,
115
+ parsedBody,
116
+ errorCode,
117
+ });
118
+ }
119
+ };
70
120
  export const de_DescribeHomeRegionControlsCommand = async (output, context) => {
71
121
  if (output.statusCode >= 300) {
72
122
  return de_DescribeHomeRegionControlsCommandError(output, context);
@@ -1,5 +1,6 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { CreateHomeRegionControlCommandInput, CreateHomeRegionControlCommandOutput } from "./commands/CreateHomeRegionControlCommand";
3
+ import { DeleteHomeRegionControlCommandInput, DeleteHomeRegionControlCommandOutput } from "./commands/DeleteHomeRegionControlCommand";
3
4
  import { DescribeHomeRegionControlsCommandInput, DescribeHomeRegionControlsCommandOutput } from "./commands/DescribeHomeRegionControlsCommand";
4
5
  import { GetHomeRegionCommandInput, GetHomeRegionCommandOutput } from "./commands/GetHomeRegionCommand";
5
6
  import { MigrationHubConfigClient } from "./MigrationHubConfigClient";
@@ -10,6 +11,12 @@ export interface MigrationHubConfig {
10
11
  createHomeRegionControl(args: CreateHomeRegionControlCommandInput, options?: __HttpHandlerOptions): Promise<CreateHomeRegionControlCommandOutput>;
11
12
  createHomeRegionControl(args: CreateHomeRegionControlCommandInput, cb: (err: any, data?: CreateHomeRegionControlCommandOutput) => void): void;
12
13
  createHomeRegionControl(args: CreateHomeRegionControlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateHomeRegionControlCommandOutput) => void): void;
14
+ /**
15
+ * @see {@link DeleteHomeRegionControlCommand}
16
+ */
17
+ deleteHomeRegionControl(args: DeleteHomeRegionControlCommandInput, options?: __HttpHandlerOptions): Promise<DeleteHomeRegionControlCommandOutput>;
18
+ deleteHomeRegionControl(args: DeleteHomeRegionControlCommandInput, cb: (err: any, data?: DeleteHomeRegionControlCommandOutput) => void): void;
19
+ deleteHomeRegionControl(args: DeleteHomeRegionControlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteHomeRegionControlCommandOutput) => void): void;
13
20
  /**
14
21
  * @see {@link DescribeHomeRegionControlsCommand}
15
22
  */
@@ -28,7 +35,6 @@ export interface MigrationHubConfig {
28
35
  * <p>The AWS Migration Hub home region APIs are available specifically for working with your
29
36
  * Migration Hub home region. You can use these APIs to determine a home region, as well as to
30
37
  * create and work with controls that describe the home region.</p>
31
- *
32
38
  * <ul>
33
39
  * <li>
34
40
  * <p>You must make API calls for write actions (create, notify, associate, disassociate,
@@ -48,7 +54,6 @@ export interface MigrationHubConfig {
48
54
  * home region.</p>
49
55
  * </li>
50
56
  * </ul>
51
- *
52
57
  * <p>For specific API usage, see the sections that follow in this AWS Migration Hub Home Region
53
58
  * API reference. </p>
54
59
  */
@@ -9,6 +9,7 @@ import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
9
9
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
10
10
  import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
11
11
  import { CreateHomeRegionControlCommandInput, CreateHomeRegionControlCommandOutput } from "./commands/CreateHomeRegionControlCommand";
12
+ import { DeleteHomeRegionControlCommandInput, DeleteHomeRegionControlCommandOutput } from "./commands/DeleteHomeRegionControlCommand";
12
13
  import { DescribeHomeRegionControlsCommandInput, DescribeHomeRegionControlsCommandOutput } from "./commands/DescribeHomeRegionControlsCommand";
13
14
  import { GetHomeRegionCommandInput, GetHomeRegionCommandOutput } from "./commands/GetHomeRegionCommand";
14
15
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
@@ -17,11 +18,11 @@ export { __Client };
17
18
  /**
18
19
  * @public
19
20
  */
20
- export type ServiceInputTypes = CreateHomeRegionControlCommandInput | DescribeHomeRegionControlsCommandInput | GetHomeRegionCommandInput;
21
+ export type ServiceInputTypes = CreateHomeRegionControlCommandInput | DeleteHomeRegionControlCommandInput | DescribeHomeRegionControlsCommandInput | GetHomeRegionCommandInput;
21
22
  /**
22
23
  * @public
23
24
  */
24
- export type ServiceOutputTypes = CreateHomeRegionControlCommandOutput | DescribeHomeRegionControlsCommandOutput | GetHomeRegionCommandOutput;
25
+ export type ServiceOutputTypes = CreateHomeRegionControlCommandOutput | DeleteHomeRegionControlCommandOutput | DescribeHomeRegionControlsCommandOutput | GetHomeRegionCommandOutput;
25
26
  /**
26
27
  * @public
27
28
  */
@@ -158,7 +159,6 @@ export interface MigrationHubConfigClientResolvedConfig extends MigrationHubConf
158
159
  * <p>The AWS Migration Hub home region APIs are available specifically for working with your
159
160
  * Migration Hub home region. You can use these APIs to determine a home region, as well as to
160
161
  * create and work with controls that describe the home region.</p>
161
- *
162
162
  * <ul>
163
163
  * <li>
164
164
  * <p>You must make API calls for write actions (create, notify, associate, disassociate,
@@ -178,7 +178,6 @@ export interface MigrationHubConfigClientResolvedConfig extends MigrationHubConf
178
178
  * home region.</p>
179
179
  * </li>
180
180
  * </ul>
181
- *
182
181
  * <p>For specific API usage, see the sections that follow in this AWS Migration Hub Home Region
183
182
  * API reference. </p>
184
183
  */
@@ -0,0 +1,89 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { MigrationHubConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubConfigClient";
5
+ import { DeleteHomeRegionControlRequest, DeleteHomeRegionControlResult } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteHomeRegionControlCommand}.
14
+ */
15
+ export interface DeleteHomeRegionControlCommandInput extends DeleteHomeRegionControlRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteHomeRegionControlCommand}.
21
+ */
22
+ export interface DeleteHomeRegionControlCommandOutput extends DeleteHomeRegionControlResult, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>This operation deletes the home region configuration for the calling account. The operation does not delete discovery or migration tracking data in the home region.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { MigrationHubConfigClient, DeleteHomeRegionControlCommand } from "@aws-sdk/client-migrationhub-config"; // ES Modules import
31
+ * // const { MigrationHubConfigClient, DeleteHomeRegionControlCommand } = require("@aws-sdk/client-migrationhub-config"); // CommonJS import
32
+ * const client = new MigrationHubConfigClient(config);
33
+ * const input = { // DeleteHomeRegionControlRequest
34
+ * ControlId: "STRING_VALUE", // required
35
+ * };
36
+ * const command = new DeleteHomeRegionControlCommand(input);
37
+ * const response = await client.send(command);
38
+ * // {};
39
+ *
40
+ * ```
41
+ *
42
+ * @param DeleteHomeRegionControlCommandInput - {@link DeleteHomeRegionControlCommandInput}
43
+ * @returns {@link DeleteHomeRegionControlCommandOutput}
44
+ * @see {@link DeleteHomeRegionControlCommandInput} for command's `input` shape.
45
+ * @see {@link DeleteHomeRegionControlCommandOutput} for command's `response` shape.
46
+ * @see {@link MigrationHubConfigClientResolvedConfig | config} for MigrationHubConfigClient's `config` shape.
47
+ *
48
+ * @throws {@link AccessDeniedException} (client fault)
49
+ * <p>You do not have sufficient access to perform this action.</p>
50
+ *
51
+ * @throws {@link InternalServerError} (server fault)
52
+ * <p>Exception raised when an internal, configuration, or dependency error is
53
+ * encountered.</p>
54
+ *
55
+ * @throws {@link InvalidInputException} (client fault)
56
+ * <p>Exception raised when the provided input violates a policy constraint or is entered in the
57
+ * wrong format or data type.</p>
58
+ *
59
+ * @throws {@link ServiceUnavailableException} (server fault)
60
+ * <p>Exception raised when a request fails due to temporary unavailability of the
61
+ * service.</p>
62
+ *
63
+ * @throws {@link ThrottlingException} (client fault)
64
+ * <p>The request was denied due to request throttling.</p>
65
+ *
66
+ * @throws {@link MigrationHubConfigServiceException}
67
+ * <p>Base exception class for all service exceptions from MigrationHubConfig service.</p>
68
+ *
69
+ */
70
+ export declare class DeleteHomeRegionControlCommand extends $Command<DeleteHomeRegionControlCommandInput, DeleteHomeRegionControlCommandOutput, MigrationHubConfigClientResolvedConfig> {
71
+ readonly input: DeleteHomeRegionControlCommandInput;
72
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
73
+ /**
74
+ * @public
75
+ */
76
+ constructor(input: DeleteHomeRegionControlCommandInput);
77
+ /**
78
+ * @internal
79
+ */
80
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubConfigClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteHomeRegionControlCommandInput, DeleteHomeRegionControlCommandOutput>;
81
+ /**
82
+ * @internal
83
+ */
84
+ private serialize;
85
+ /**
86
+ * @internal
87
+ */
88
+ private deserialize;
89
+ }
@@ -1,3 +1,4 @@
1
1
  export * from "./CreateHomeRegionControlCommand";
2
+ export * from "./DeleteHomeRegionControlCommand";
2
3
  export * from "./DescribeHomeRegionControlsCommand";
3
4
  export * from "./GetHomeRegionCommand";
@@ -2,7 +2,6 @@
2
2
  * <p>The AWS Migration Hub home region APIs are available specifically for working with your
3
3
  * Migration Hub home region. You can use these APIs to determine a home region, as well as to
4
4
  * create and work with controls that describe the home region.</p>
5
- *
6
5
  * <ul>
7
6
  * <li>
8
7
  * <p>You must make API calls for write actions (create, notify, associate, disassociate,
@@ -22,7 +21,6 @@
22
21
  * home region.</p>
23
22
  * </li>
24
23
  * </ul>
25
- *
26
24
  * <p>For specific API usage, see the sections that follow in this AWS Migration Hub Home Region
27
25
  * API reference. </p>
28
26
  *
@@ -183,6 +183,22 @@ export declare class ThrottlingException extends __BaseException {
183
183
  */
184
184
  constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
185
185
  }
186
+ /**
187
+ * @public
188
+ */
189
+ export interface DeleteHomeRegionControlRequest {
190
+ /**
191
+ * @public
192
+ * <p>A unique identifier that's generated for each home region control. It's always a string
193
+ * that begins with "hrc-" followed by 12 lowercase letters and numbers.</p>
194
+ */
195
+ ControlId: string | undefined;
196
+ }
197
+ /**
198
+ * @public
199
+ */
200
+ export interface DeleteHomeRegionControlResult {
201
+ }
186
202
  /**
187
203
  * @public
188
204
  */
@@ -1,12 +1,17 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
2
  import { SerdeContext as __SerdeContext } from "@smithy/types";
3
3
  import { CreateHomeRegionControlCommandInput, CreateHomeRegionControlCommandOutput } from "../commands/CreateHomeRegionControlCommand";
4
+ import { DeleteHomeRegionControlCommandInput, DeleteHomeRegionControlCommandOutput } from "../commands/DeleteHomeRegionControlCommand";
4
5
  import { DescribeHomeRegionControlsCommandInput, DescribeHomeRegionControlsCommandOutput } from "../commands/DescribeHomeRegionControlsCommand";
5
6
  import { GetHomeRegionCommandInput, GetHomeRegionCommandOutput } from "../commands/GetHomeRegionCommand";
6
7
  /**
7
8
  * serializeAws_json1_1CreateHomeRegionControlCommand
8
9
  */
9
10
  export declare const se_CreateHomeRegionControlCommand: (input: CreateHomeRegionControlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
11
+ /**
12
+ * serializeAws_json1_1DeleteHomeRegionControlCommand
13
+ */
14
+ export declare const se_DeleteHomeRegionControlCommand: (input: DeleteHomeRegionControlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
10
15
  /**
11
16
  * serializeAws_json1_1DescribeHomeRegionControlsCommand
12
17
  */
@@ -19,6 +24,10 @@ export declare const se_GetHomeRegionCommand: (input: GetHomeRegionCommandInput,
19
24
  * deserializeAws_json1_1CreateHomeRegionControlCommand
20
25
  */
21
26
  export declare const de_CreateHomeRegionControlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateHomeRegionControlCommandOutput>;
27
+ /**
28
+ * deserializeAws_json1_1DeleteHomeRegionControlCommand
29
+ */
30
+ export declare const de_DeleteHomeRegionControlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteHomeRegionControlCommandOutput>;
22
31
  /**
23
32
  * deserializeAws_json1_1DescribeHomeRegionControlsCommand
24
33
  */
@@ -3,6 +3,10 @@ import {
3
3
  CreateHomeRegionControlCommandInput,
4
4
  CreateHomeRegionControlCommandOutput,
5
5
  } from "./commands/CreateHomeRegionControlCommand";
6
+ import {
7
+ DeleteHomeRegionControlCommandInput,
8
+ DeleteHomeRegionControlCommandOutput,
9
+ } from "./commands/DeleteHomeRegionControlCommand";
6
10
  import {
7
11
  DescribeHomeRegionControlsCommandInput,
8
12
  DescribeHomeRegionControlsCommandOutput,
@@ -26,6 +30,19 @@ export interface MigrationHubConfig {
26
30
  options: __HttpHandlerOptions,
27
31
  cb: (err: any, data?: CreateHomeRegionControlCommandOutput) => void
28
32
  ): void;
33
+ deleteHomeRegionControl(
34
+ args: DeleteHomeRegionControlCommandInput,
35
+ options?: __HttpHandlerOptions
36
+ ): Promise<DeleteHomeRegionControlCommandOutput>;
37
+ deleteHomeRegionControl(
38
+ args: DeleteHomeRegionControlCommandInput,
39
+ cb: (err: any, data?: DeleteHomeRegionControlCommandOutput) => void
40
+ ): void;
41
+ deleteHomeRegionControl(
42
+ args: DeleteHomeRegionControlCommandInput,
43
+ options: __HttpHandlerOptions,
44
+ cb: (err: any, data?: DeleteHomeRegionControlCommandOutput) => void
45
+ ): void;
29
46
  describeHomeRegionControls(
30
47
  args: DescribeHomeRegionControlsCommandInput,
31
48
  options?: __HttpHandlerOptions
@@ -49,6 +49,10 @@ import {
49
49
  CreateHomeRegionControlCommandInput,
50
50
  CreateHomeRegionControlCommandOutput,
51
51
  } from "./commands/CreateHomeRegionControlCommand";
52
+ import {
53
+ DeleteHomeRegionControlCommandInput,
54
+ DeleteHomeRegionControlCommandOutput,
55
+ } from "./commands/DeleteHomeRegionControlCommand";
52
56
  import {
53
57
  DescribeHomeRegionControlsCommandInput,
54
58
  DescribeHomeRegionControlsCommandOutput,
@@ -66,10 +70,12 @@ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
66
70
  export { __Client };
67
71
  export type ServiceInputTypes =
68
72
  | CreateHomeRegionControlCommandInput
73
+ | DeleteHomeRegionControlCommandInput
69
74
  | DescribeHomeRegionControlsCommandInput
70
75
  | GetHomeRegionCommandInput;
71
76
  export type ServiceOutputTypes =
72
77
  | CreateHomeRegionControlCommandOutput
78
+ | DeleteHomeRegionControlCommandOutput
73
79
  | DescribeHomeRegionControlsCommandOutput
74
80
  | GetHomeRegionCommandOutput;
75
81
  export interface ClientDefaults
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ MigrationHubConfigClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../MigrationHubConfigClient";
14
+ import {
15
+ DeleteHomeRegionControlRequest,
16
+ DeleteHomeRegionControlResult,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface DeleteHomeRegionControlCommandInput
20
+ extends DeleteHomeRegionControlRequest {}
21
+ export interface DeleteHomeRegionControlCommandOutput
22
+ extends DeleteHomeRegionControlResult,
23
+ __MetadataBearer {}
24
+ export declare class DeleteHomeRegionControlCommand extends $Command<
25
+ DeleteHomeRegionControlCommandInput,
26
+ DeleteHomeRegionControlCommandOutput,
27
+ MigrationHubConfigClientResolvedConfig
28
+ > {
29
+ readonly input: DeleteHomeRegionControlCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: DeleteHomeRegionControlCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: MigrationHubConfigClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<
37
+ DeleteHomeRegionControlCommandInput,
38
+ DeleteHomeRegionControlCommandOutput
39
+ >;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -1,3 +1,4 @@
1
1
  export * from "./CreateHomeRegionControlCommand";
2
+ export * from "./DeleteHomeRegionControlCommand";
2
3
  export * from "./DescribeHomeRegionControlsCommand";
3
4
  export * from "./GetHomeRegionCommand";
@@ -69,6 +69,10 @@ export declare class ThrottlingException extends __BaseException {
69
69
  opts: __ExceptionOptionType<ThrottlingException, __BaseException>
70
70
  );
71
71
  }
72
+ export interface DeleteHomeRegionControlRequest {
73
+ ControlId: string | undefined;
74
+ }
75
+ export interface DeleteHomeRegionControlResult {}
72
76
  export interface DescribeHomeRegionControlsRequest {
73
77
  ControlId?: string;
74
78
  HomeRegion?: string;
@@ -7,6 +7,10 @@ import {
7
7
  CreateHomeRegionControlCommandInput,
8
8
  CreateHomeRegionControlCommandOutput,
9
9
  } from "../commands/CreateHomeRegionControlCommand";
10
+ import {
11
+ DeleteHomeRegionControlCommandInput,
12
+ DeleteHomeRegionControlCommandOutput,
13
+ } from "../commands/DeleteHomeRegionControlCommand";
10
14
  import {
11
15
  DescribeHomeRegionControlsCommandInput,
12
16
  DescribeHomeRegionControlsCommandOutput,
@@ -19,6 +23,10 @@ export declare const se_CreateHomeRegionControlCommand: (
19
23
  input: CreateHomeRegionControlCommandInput,
20
24
  context: __SerdeContext
21
25
  ) => Promise<__HttpRequest>;
26
+ export declare const se_DeleteHomeRegionControlCommand: (
27
+ input: DeleteHomeRegionControlCommandInput,
28
+ context: __SerdeContext
29
+ ) => Promise<__HttpRequest>;
22
30
  export declare const se_DescribeHomeRegionControlsCommand: (
23
31
  input: DescribeHomeRegionControlsCommandInput,
24
32
  context: __SerdeContext
@@ -31,6 +39,10 @@ export declare const de_CreateHomeRegionControlCommand: (
31
39
  output: __HttpResponse,
32
40
  context: __SerdeContext
33
41
  ) => Promise<CreateHomeRegionControlCommandOutput>;
42
+ export declare const de_DeleteHomeRegionControlCommand: (
43
+ output: __HttpResponse,
44
+ context: __SerdeContext
45
+ ) => Promise<DeleteHomeRegionControlCommandOutput>;
34
46
  export declare const de_DescribeHomeRegionControlsCommand: (
35
47
  output: __HttpResponse,
36
48
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-migrationhub-config",
3
3
  "description": "AWS SDK for JavaScript Migrationhub Config Client for Node.js, Browser and React Native",
4
- "version": "3.433.0",
4
+ "version": "3.435.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,8 +21,8 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.433.0",
25
- "@aws-sdk/credential-provider-node": "3.433.0",
24
+ "@aws-sdk/client-sts": "3.435.0",
25
+ "@aws-sdk/credential-provider-node": "3.435.0",
26
26
  "@aws-sdk/middleware-host-header": "3.433.0",
27
27
  "@aws-sdk/middleware-logger": "3.433.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.433.0",