@aws-sdk/client-migration-hub 3.405.0 → 3.409.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/endpoint/ruleset.js +3 -3
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-types/commands/DescribeApplicationStateCommand.d.ts +1 -1
- package/dist-types/commands/DescribeMigrationTaskCommand.d.ts +2 -2
- package/dist-types/commands/ListApplicationStatesCommand.d.ts +1 -1
- package/dist-types/commands/ListMigrationTasksCommand.d.ts +1 -1
- package/dist-types/commands/NotifyApplicationStateCommand.d.ts +1 -1
- package/dist-types/commands/NotifyMigrationTaskStateCommand.d.ts +1 -1
- package/dist-types/commands/PutResourceAttributesCommand.d.ts +1 -1
- package/package.json +12 -12
|
@@ -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 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://mgh-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://mgh-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://mgh.{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://mgh.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
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://mgh-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://mgh-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://mgh.{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://mgh.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -36,7 +36,7 @@ export interface DescribeApplicationStateCommandOutput extends DescribeApplicati
|
|
|
36
36
|
* const command = new DescribeApplicationStateCommand(input);
|
|
37
37
|
* const response = await client.send(command);
|
|
38
38
|
* // { // DescribeApplicationStateResult
|
|
39
|
-
* // ApplicationStatus: "
|
|
39
|
+
* // ApplicationStatus: "NOT_STARTED" || "IN_PROGRESS" || "COMPLETED",
|
|
40
40
|
* // LastUpdatedTime: new Date("TIMESTAMP"),
|
|
41
41
|
* // };
|
|
42
42
|
*
|
|
@@ -41,14 +41,14 @@ export interface DescribeMigrationTaskCommandOutput extends DescribeMigrationTas
|
|
|
41
41
|
* // ProgressUpdateStream: "STRING_VALUE",
|
|
42
42
|
* // MigrationTaskName: "STRING_VALUE",
|
|
43
43
|
* // Task: { // Task
|
|
44
|
-
* // Status: "
|
|
44
|
+
* // Status: "NOT_STARTED" || "IN_PROGRESS" || "FAILED" || "COMPLETED", // required
|
|
45
45
|
* // StatusDetail: "STRING_VALUE",
|
|
46
46
|
* // ProgressPercent: Number("int"),
|
|
47
47
|
* // },
|
|
48
48
|
* // UpdateDateTime: new Date("TIMESTAMP"),
|
|
49
49
|
* // ResourceAttributeList: [ // LatestResourceAttributeList
|
|
50
50
|
* // { // ResourceAttribute
|
|
51
|
-
* // Type: "
|
|
51
|
+
* // Type: "IPV4_ADDRESS" || "IPV6_ADDRESS" || "MAC_ADDRESS" || "FQDN" || "VM_MANAGER_ID" || "VM_MANAGED_OBJECT_REFERENCE" || "VM_NAME" || "VM_PATH" || "BIOS_ID" || "MOTHERBOARD_SERIAL_NUMBER", // required
|
|
52
52
|
* // Value: "STRING_VALUE", // required
|
|
53
53
|
* // },
|
|
54
54
|
* // ],
|
|
@@ -45,7 +45,7 @@ export interface ListApplicationStatesCommandOutput extends ListApplicationState
|
|
|
45
45
|
* // ApplicationStateList: [ // ApplicationStateList
|
|
46
46
|
* // { // ApplicationState
|
|
47
47
|
* // ApplicationId: "STRING_VALUE",
|
|
48
|
-
* // ApplicationStatus: "
|
|
48
|
+
* // ApplicationStatus: "NOT_STARTED" || "IN_PROGRESS" || "COMPLETED",
|
|
49
49
|
* // LastUpdatedTime: new Date("TIMESTAMP"),
|
|
50
50
|
* // },
|
|
51
51
|
* // ],
|
|
@@ -56,7 +56,7 @@ export interface ListMigrationTasksCommandOutput extends ListMigrationTasksResul
|
|
|
56
56
|
* // { // MigrationTaskSummary
|
|
57
57
|
* // ProgressUpdateStream: "STRING_VALUE",
|
|
58
58
|
* // MigrationTaskName: "STRING_VALUE",
|
|
59
|
-
* // Status: "
|
|
59
|
+
* // Status: "NOT_STARTED" || "IN_PROGRESS" || "FAILED" || "COMPLETED",
|
|
60
60
|
* // ProgressPercent: Number("int"),
|
|
61
61
|
* // StatusDetail: "STRING_VALUE",
|
|
62
62
|
* // UpdateDateTime: new Date("TIMESTAMP"),
|
|
@@ -35,7 +35,7 @@ export interface NotifyApplicationStateCommandOutput extends NotifyApplicationSt
|
|
|
35
35
|
* const client = new MigrationHubClient(config);
|
|
36
36
|
* const input = { // NotifyApplicationStateRequest
|
|
37
37
|
* ApplicationId: "STRING_VALUE", // required
|
|
38
|
-
* Status: "
|
|
38
|
+
* Status: "NOT_STARTED" || "IN_PROGRESS" || "COMPLETED", // required
|
|
39
39
|
* UpdateDateTime: new Date("TIMESTAMP"),
|
|
40
40
|
* DryRun: true || false,
|
|
41
41
|
* };
|
|
@@ -51,7 +51,7 @@ export interface NotifyMigrationTaskStateCommandOutput extends NotifyMigrationTa
|
|
|
51
51
|
* ProgressUpdateStream: "STRING_VALUE", // required
|
|
52
52
|
* MigrationTaskName: "STRING_VALUE", // required
|
|
53
53
|
* Task: { // Task
|
|
54
|
-
* Status: "
|
|
54
|
+
* Status: "NOT_STARTED" || "IN_PROGRESS" || "FAILED" || "COMPLETED", // required
|
|
55
55
|
* StatusDetail: "STRING_VALUE",
|
|
56
56
|
* ProgressPercent: Number("int"),
|
|
57
57
|
* },
|
|
@@ -60,7 +60,7 @@ export interface PutResourceAttributesCommandOutput extends PutResourceAttribute
|
|
|
60
60
|
* MigrationTaskName: "STRING_VALUE", // required
|
|
61
61
|
* ResourceAttributeList: [ // ResourceAttributeList // required
|
|
62
62
|
* { // ResourceAttribute
|
|
63
|
-
* Type: "
|
|
63
|
+
* Type: "IPV4_ADDRESS" || "IPV6_ADDRESS" || "MAC_ADDRESS" || "FQDN" || "VM_MANAGER_ID" || "VM_MANAGED_OBJECT_REFERENCE" || "VM_NAME" || "VM_PATH" || "BIOS_ID" || "MOTHERBOARD_SERIAL_NUMBER", // required
|
|
64
64
|
* Value: "STRING_VALUE", // required
|
|
65
65
|
* },
|
|
66
66
|
* ],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-migration-hub",
|
|
3
3
|
"description": "AWS SDK for JavaScript Migration Hub Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.409.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,17 +21,17 @@
|
|
|
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.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.409.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.409.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.408.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.408.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.408.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.408.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.408.0",
|
|
31
|
+
"@aws-sdk/types": "3.408.0",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.408.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.408.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.408.0",
|
|
35
35
|
"@smithy/config-resolver": "^2.0.5",
|
|
36
36
|
"@smithy/fetch-http-handler": "^2.0.5",
|
|
37
37
|
"@smithy/hash-node": "^2.0.5",
|