@aws-sdk/client-migration-hub 3.33.0 → 3.36.1
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/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/MigrationHub.js +1 -10
- package/{dist/cjs → dist-cjs}/MigrationHubClient.js +8 -22
- package/dist-cjs/commands/AssociateCreatedArtifactCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/AssociateDiscoveredResourceCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/CreateProgressUpdateStreamCommand.js +2 -31
- package/dist-cjs/commands/DeleteProgressUpdateStreamCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeApplicationStateCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeMigrationTaskCommand.js +2 -27
- package/dist-cjs/commands/DisassociateCreatedArtifactCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/DisassociateDiscoveredResourceCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ImportMigrationTaskCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/ListApplicationStatesCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/ListCreatedArtifactsCommand.js +2 -41
- package/{dist/cjs → dist-cjs}/commands/ListDiscoveredResourcesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListMigrationTasksCommand.js +2 -40
- package/{dist/cjs → dist-cjs}/commands/ListProgressUpdateStreamsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/NotifyApplicationStateCommand.js +2 -30
- package/dist-cjs/commands/NotifyMigrationTaskStateCommand.js +36 -0
- package/dist-cjs/commands/PutResourceAttributesCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -157
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListApplicationStatesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListCreatedArtifactsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListDiscoveredResourcesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListMigrationTasksPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListProgressUpdateStreamsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/MigrationHub.js +2 -11
- package/{dist/es → dist-es}/MigrationHubClient.js +2 -16
- package/dist-es/commands/AssociateCreatedArtifactCommand.js +39 -0
- package/{dist/es → dist-es}/commands/AssociateDiscoveredResourceCommand.js +4 -31
- package/{dist/es → dist-es}/commands/CreateProgressUpdateStreamCommand.js +4 -34
- package/dist-es/commands/DeleteProgressUpdateStreamCommand.js +39 -0
- package/{dist/es → dist-es}/commands/DescribeApplicationStateCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeMigrationTaskCommand.js +4 -30
- package/dist-es/commands/DisassociateCreatedArtifactCommand.js +39 -0
- package/{dist/es → dist-es}/commands/DisassociateDiscoveredResourceCommand.js +4 -31
- package/{dist/es → dist-es}/commands/ImportMigrationTaskCommand.js +4 -33
- package/{dist/es → dist-es}/commands/ListApplicationStatesCommand.js +4 -32
- package/{dist/es → dist-es}/commands/ListCreatedArtifactsCommand.js +4 -44
- package/{dist/es → dist-es}/commands/ListDiscoveredResourcesCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListMigrationTasksCommand.js +4 -43
- package/{dist/es → dist-es}/commands/ListProgressUpdateStreamsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/NotifyApplicationStateCommand.js +4 -33
- package/{dist/es → dist-es}/commands/NotifyMigrationTaskStateCommand.js +4 -47
- package/dist-es/commands/PutResourceAttributesCommand.js +39 -0
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -157
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListApplicationStatesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListCreatedArtifactsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListDiscoveredResourcesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListMigrationTasksPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListProgressUpdateStreamsPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +691 -697
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/MigrationHub.d.ts +2 -2
- package/{dist/types → dist-types}/MigrationHubClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/AssociateCreatedArtifactCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/AssociateDiscoveredResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateProgressUpdateStreamCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteProgressUpdateStreamCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeApplicationStateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeMigrationTaskCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DisassociateCreatedArtifactCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DisassociateDiscoveredResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ImportMigrationTaskCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListApplicationStatesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListCreatedArtifactsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListDiscoveredResourcesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListMigrationTasksCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListProgressUpdateStreamsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/NotifyApplicationStateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/NotifyMigrationTaskStateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutResourceAttributesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListApplicationStatesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListCreatedArtifactsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListDiscoveredResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListMigrationTasksPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListProgressUpdateStreamsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/MigrationHub.d.ts +90 -0
- package/{dist/types → dist-types}/ts3.4/MigrationHubClient.d.ts +32 -102
- package/dist-types/ts3.4/commands/AssociateCreatedArtifactCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/AssociateDiscoveredResourceCommand.d.ts +4 -23
- package/dist-types/ts3.4/commands/CreateProgressUpdateStreamCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteProgressUpdateStreamCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DescribeApplicationStateCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/DescribeMigrationTaskCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/DisassociateCreatedArtifactCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DisassociateDiscoveredResourceCommand.d.ts +4 -23
- package/dist-types/ts3.4/commands/ImportMigrationTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListApplicationStatesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCreatedArtifactsCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListDiscoveredResourcesCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/ListMigrationTasksCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListProgressUpdateStreamsCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/NotifyApplicationStateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/NotifyMigrationTaskStateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutResourceAttributesCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +573 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListApplicationStatesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListCreatedArtifactsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListDiscoveredResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListMigrationTasksPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListProgressUpdateStreamsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +52 -49
- package/MigrationHub.ts +0 -787
- package/MigrationHubClient.ts +0 -339
- package/commands/AssociateCreatedArtifactCommand.ts +0 -111
- package/commands/AssociateDiscoveredResourceCommand.ts +0 -98
- package/commands/CreateProgressUpdateStreamCommand.ts +0 -101
- package/commands/DeleteProgressUpdateStreamCommand.ts +0 -127
- package/commands/DescribeApplicationStateCommand.ts +0 -94
- package/commands/DescribeMigrationTaskCommand.ts +0 -94
- package/commands/DisassociateCreatedArtifactCommand.ts +0 -113
- package/commands/DisassociateDiscoveredResourceCommand.ts +0 -103
- package/commands/ImportMigrationTaskCommand.ts +0 -97
- package/commands/ListApplicationStatesCommand.ts +0 -96
- package/commands/ListCreatedArtifactsCommand.ts +0 -108
- package/commands/ListDiscoveredResourcesCommand.ts +0 -94
- package/commands/ListMigrationTasksCommand.ts +0 -107
- package/commands/ListProgressUpdateStreamsCommand.ts +0 -97
- package/commands/NotifyApplicationStateCommand.ts +0 -97
- package/commands/NotifyMigrationTaskStateCommand.ts +0 -111
- package/commands/PutResourceAttributesCommand.ts +0 -119
- package/dist/cjs/MigrationHub.js.map +0 -1
- package/dist/cjs/MigrationHubClient.js.map +0 -1
- package/dist/cjs/commands/AssociateCreatedArtifactCommand.js +0 -78
- package/dist/cjs/commands/AssociateCreatedArtifactCommand.js.map +0 -1
- package/dist/cjs/commands/AssociateDiscoveredResourceCommand.js.map +0 -1
- package/dist/cjs/commands/CreateProgressUpdateStreamCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteProgressUpdateStreamCommand.js +0 -91
- package/dist/cjs/commands/DeleteProgressUpdateStreamCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeApplicationStateCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeMigrationTaskCommand.js.map +0 -1
- package/dist/cjs/commands/DisassociateCreatedArtifactCommand.js +0 -77
- package/dist/cjs/commands/DisassociateCreatedArtifactCommand.js.map +0 -1
- package/dist/cjs/commands/DisassociateDiscoveredResourceCommand.js.map +0 -1
- package/dist/cjs/commands/ImportMigrationTaskCommand.js.map +0 -1
- package/dist/cjs/commands/ListApplicationStatesCommand.js.map +0 -1
- package/dist/cjs/commands/ListCreatedArtifactsCommand.js.map +0 -1
- package/dist/cjs/commands/ListDiscoveredResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/ListMigrationTasksCommand.js.map +0 -1
- package/dist/cjs/commands/ListProgressUpdateStreamsCommand.js.map +0 -1
- package/dist/cjs/commands/NotifyApplicationStateCommand.js.map +0 -1
- package/dist/cjs/commands/NotifyMigrationTaskStateCommand.js +0 -78
- package/dist/cjs/commands/NotifyMigrationTaskStateCommand.js.map +0 -1
- package/dist/cjs/commands/PutResourceAttributesCommand.js +0 -86
- package/dist/cjs/commands/PutResourceAttributesCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListApplicationStatesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListCreatedArtifactsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListDiscoveredResourcesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListMigrationTasksPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListProgressUpdateStreamsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/MigrationHub.js.map +0 -1
- package/dist/es/MigrationHubClient.js.map +0 -1
- package/dist/es/commands/AssociateCreatedArtifactCommand.js +0 -82
- package/dist/es/commands/AssociateCreatedArtifactCommand.js.map +0 -1
- package/dist/es/commands/AssociateDiscoveredResourceCommand.js.map +0 -1
- package/dist/es/commands/CreateProgressUpdateStreamCommand.js.map +0 -1
- package/dist/es/commands/DeleteProgressUpdateStreamCommand.js +0 -95
- package/dist/es/commands/DeleteProgressUpdateStreamCommand.js.map +0 -1
- package/dist/es/commands/DescribeApplicationStateCommand.js.map +0 -1
- package/dist/es/commands/DescribeMigrationTaskCommand.js.map +0 -1
- package/dist/es/commands/DisassociateCreatedArtifactCommand.js +0 -81
- package/dist/es/commands/DisassociateCreatedArtifactCommand.js.map +0 -1
- package/dist/es/commands/DisassociateDiscoveredResourceCommand.js.map +0 -1
- package/dist/es/commands/ImportMigrationTaskCommand.js.map +0 -1
- package/dist/es/commands/ListApplicationStatesCommand.js.map +0 -1
- package/dist/es/commands/ListCreatedArtifactsCommand.js.map +0 -1
- package/dist/es/commands/ListDiscoveredResourcesCommand.js.map +0 -1
- package/dist/es/commands/ListMigrationTasksCommand.js.map +0 -1
- package/dist/es/commands/ListProgressUpdateStreamsCommand.js.map +0 -1
- package/dist/es/commands/NotifyApplicationStateCommand.js.map +0 -1
- package/dist/es/commands/NotifyMigrationTaskStateCommand.js.map +0 -1
- package/dist/es/commands/PutResourceAttributesCommand.js +0 -90
- package/dist/es/commands/PutResourceAttributesCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -27
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListApplicationStatesPaginator.js.map +0 -1
- package/dist/es/pagination/ListCreatedArtifactsPaginator.js.map +0 -1
- package/dist/es/pagination/ListDiscoveredResourcesPaginator.js.map +0 -1
- package/dist/es/pagination/ListMigrationTasksPaginator.js.map +0 -1
- package/dist/es/pagination/ListProgressUpdateStreamsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/MigrationHub.d.ts +0 -277
- package/dist/types/ts3.4/commands/AssociateCreatedArtifactCommand.d.ts +0 -52
- package/dist/types/ts3.4/commands/CreateProgressUpdateStreamCommand.d.ts +0 -39
- package/dist/types/ts3.4/commands/DeleteProgressUpdateStreamCommand.d.ts +0 -65
- package/dist/types/ts3.4/commands/DisassociateCreatedArtifactCommand.d.ts +0 -51
- package/dist/types/ts3.4/commands/ImportMigrationTaskCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/ListApplicationStatesCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/ListCreatedArtifactsCommand.d.ts +0 -49
- package/dist/types/ts3.4/commands/ListMigrationTasksCommand.d.ts +0 -48
- package/dist/types/ts3.4/commands/NotifyApplicationStateCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/NotifyMigrationTaskStateCommand.d.ts +0 -52
- package/dist/types/ts3.4/commands/PutResourceAttributesCommand.d.ts +0 -60
- package/dist/types/ts3.4/models/models_0.d.ts +0 -1056
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -1319
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListApplicationStatesPaginator.ts +0 -58
- package/pagination/ListCreatedArtifactsPaginator.ts +0 -58
- package/pagination/ListDiscoveredResourcesPaginator.ts +0 -58
- package/pagination/ListMigrationTasksPaginator.ts +0 -58
- package/pagination/ListProgressUpdateStreamsPaginator.ts +0 -58
- package/protocols/Aws_json1_1.ts +0 -3162
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1AssociateCreatedArtifactCommand = function (input
|
|
|
9
9
|
"x-amz-target": "AWSMigrationHub.AssociateCreatedArtifact",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1AssociateCreatedArtifactRequest(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1AssociateDiscoveredResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1AssociateDiscoveredResourceCommand = function (in
|
|
|
20
20
|
"x-amz-target": "AWSMigrationHub.AssociateDiscoveredResource",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1AssociateDiscoveredResourceRequest(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1CreateProgressUpdateStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1CreateProgressUpdateStreamCommand = function (inp
|
|
|
31
31
|
"x-amz-target": "AWSMigrationHub.CreateProgressUpdateStream",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1CreateProgressUpdateStreamRequest(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1DeleteProgressUpdateStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1DeleteProgressUpdateStreamCommand = function (inp
|
|
|
42
42
|
"x-amz-target": "AWSMigrationHub.DeleteProgressUpdateStream",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1DeleteProgressUpdateStreamRequest(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1DescribeApplicationStateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1DescribeApplicationStateCommand = function (input
|
|
|
53
53
|
"x-amz-target": "AWSMigrationHub.DescribeApplicationState",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1DescribeApplicationStateRequest(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1DescribeMigrationTaskCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1DescribeMigrationTaskCommand = function (input, c
|
|
|
64
64
|
"x-amz-target": "AWSMigrationHub.DescribeMigrationTask",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1DescribeMigrationTaskRequest(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1DisassociateCreatedArtifactCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1DisassociateCreatedArtifactCommand = function (in
|
|
|
75
75
|
"x-amz-target": "AWSMigrationHub.DisassociateCreatedArtifact",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1DisassociateCreatedArtifactRequest(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1DisassociateDiscoveredResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1DisassociateDiscoveredResourceCommand = function
|
|
|
86
86
|
"x-amz-target": "AWSMigrationHub.DisassociateDiscoveredResource",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1DisassociateDiscoveredResourceRequest(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1ImportMigrationTaskCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1ImportMigrationTaskCommand = function (input, con
|
|
|
97
97
|
"x-amz-target": "AWSMigrationHub.ImportMigrationTask",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1ImportMigrationTaskRequest(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1ListApplicationStatesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1ListApplicationStatesCommand = function (input, c
|
|
|
108
108
|
"x-amz-target": "AWSMigrationHub.ListApplicationStates",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1ListApplicationStatesRequest(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1ListCreatedArtifactsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1ListCreatedArtifactsCommand = function (input, co
|
|
|
119
119
|
"x-amz-target": "AWSMigrationHub.ListCreatedArtifacts",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_1ListCreatedArtifactsRequest(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1ListDiscoveredResourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1ListDiscoveredResourcesCommand = function (input,
|
|
|
130
130
|
"x-amz-target": "AWSMigrationHub.ListDiscoveredResources",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_1ListDiscoveredResourcesRequest(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_1ListMigrationTasksCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_1ListMigrationTasksCommand = function (input, cont
|
|
|
141
141
|
"x-amz-target": "AWSMigrationHub.ListMigrationTasks",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_1ListMigrationTasksRequest(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_1ListProgressUpdateStreamsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_1ListProgressUpdateStreamsCommand = function (inpu
|
|
|
152
152
|
"x-amz-target": "AWSMigrationHub.ListProgressUpdateStreams",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_1ListProgressUpdateStreamsRequest(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var serializeAws_json1_1NotifyApplicationStateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_json1_1NotifyApplicationStateCommand = function (input,
|
|
|
163
163
|
"x-amz-target": "AWSMigrationHub.NotifyApplicationState",
|
|
164
164
|
};
|
|
165
165
|
body = JSON.stringify(serializeAws_json1_1NotifyApplicationStateRequest(input, context));
|
|
166
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
167
|
});
|
|
168
168
|
}); };
|
|
169
169
|
export var serializeAws_json1_1NotifyMigrationTaskStateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_json1_1NotifyMigrationTaskStateCommand = function (input
|
|
|
174
174
|
"x-amz-target": "AWSMigrationHub.NotifyMigrationTaskState",
|
|
175
175
|
};
|
|
176
176
|
body = JSON.stringify(serializeAws_json1_1NotifyMigrationTaskStateRequest(input, context));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
178
|
});
|
|
179
179
|
}); };
|
|
180
180
|
export var serializeAws_json1_1PutResourceAttributesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_json1_1PutResourceAttributesCommand = function (input, c
|
|
|
185
185
|
"x-amz-target": "AWSMigrationHub.PutResourceAttributes",
|
|
186
186
|
};
|
|
187
187
|
body = JSON.stringify(serializeAws_json1_1PutResourceAttributesRequest(input, context));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
export var deserializeAws_json1_1AssociateCreatedArtifactCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -194,15 +194,15 @@ export var deserializeAws_json1_1AssociateCreatedArtifactCommand = function (out
|
|
|
194
194
|
switch (_a.label) {
|
|
195
195
|
case 0:
|
|
196
196
|
if (output.statusCode >= 300) {
|
|
197
|
-
return [2
|
|
197
|
+
return [2, deserializeAws_json1_1AssociateCreatedArtifactCommandError(output, context)];
|
|
198
198
|
}
|
|
199
|
-
return [4
|
|
199
|
+
return [4, parseBody(output.body, context)];
|
|
200
200
|
case 1:
|
|
201
201
|
data = _a.sent();
|
|
202
202
|
contents = {};
|
|
203
203
|
contents = deserializeAws_json1_1AssociateCreatedArtifactResult(data, context);
|
|
204
204
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
205
|
-
return [2
|
|
205
|
+
return [2, Promise.resolve(response)];
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
208
|
}); };
|
|
@@ -214,87 +214,87 @@ var deserializeAws_json1_1AssociateCreatedArtifactCommandError = function (outpu
|
|
|
214
214
|
case 0:
|
|
215
215
|
_a = [__assign({}, output)];
|
|
216
216
|
_m = {};
|
|
217
|
-
return [4
|
|
217
|
+
return [4, parseBody(output.body, context)];
|
|
218
218
|
case 1:
|
|
219
219
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
220
220
|
errorCode = "UnknownError";
|
|
221
221
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
222
222
|
_b = errorCode;
|
|
223
223
|
switch (_b) {
|
|
224
|
-
case "AccessDeniedException": return [3
|
|
225
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
226
|
-
case "DryRunOperation": return [3
|
|
227
|
-
case "com.amazonaws.migrationhub#DryRunOperation": return [3
|
|
228
|
-
case "HomeRegionNotSetException": return [3
|
|
229
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
230
|
-
case "InternalServerError": return [3
|
|
231
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
232
|
-
case "InvalidInputException": return [3
|
|
233
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
234
|
-
case "ResourceNotFoundException": return [3
|
|
235
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3
|
|
236
|
-
case "ServiceUnavailableException": return [3
|
|
237
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
238
|
-
case "ThrottlingException": return [3
|
|
239
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
240
|
-
case "UnauthorizedOperation": return [3
|
|
241
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3
|
|
224
|
+
case "AccessDeniedException": return [3, 2];
|
|
225
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
226
|
+
case "DryRunOperation": return [3, 4];
|
|
227
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
228
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
229
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
230
|
+
case "InternalServerError": return [3, 8];
|
|
231
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
232
|
+
case "InvalidInputException": return [3, 10];
|
|
233
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
234
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
235
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
236
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
237
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
238
|
+
case "ThrottlingException": return [3, 16];
|
|
239
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
240
|
+
case "UnauthorizedOperation": return [3, 18];
|
|
241
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 18];
|
|
242
242
|
}
|
|
243
|
-
return [3
|
|
243
|
+
return [3, 20];
|
|
244
244
|
case 2:
|
|
245
245
|
_c = [{}];
|
|
246
|
-
return [4
|
|
246
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
247
247
|
case 3:
|
|
248
248
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
249
|
-
return [3
|
|
249
|
+
return [3, 21];
|
|
250
250
|
case 4:
|
|
251
251
|
_d = [{}];
|
|
252
|
-
return [4
|
|
252
|
+
return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
253
253
|
case 5:
|
|
254
254
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
255
|
-
return [3
|
|
255
|
+
return [3, 21];
|
|
256
256
|
case 6:
|
|
257
257
|
_e = [{}];
|
|
258
|
-
return [4
|
|
258
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
259
259
|
case 7:
|
|
260
260
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
261
|
-
return [3
|
|
261
|
+
return [3, 21];
|
|
262
262
|
case 8:
|
|
263
263
|
_f = [{}];
|
|
264
|
-
return [4
|
|
264
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
265
265
|
case 9:
|
|
266
266
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
267
|
-
return [3
|
|
267
|
+
return [3, 21];
|
|
268
268
|
case 10:
|
|
269
269
|
_g = [{}];
|
|
270
|
-
return [4
|
|
270
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
271
271
|
case 11:
|
|
272
272
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
273
|
-
return [3
|
|
273
|
+
return [3, 21];
|
|
274
274
|
case 12:
|
|
275
275
|
_h = [{}];
|
|
276
|
-
return [4
|
|
276
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
277
277
|
case 13:
|
|
278
278
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
279
|
-
return [3
|
|
279
|
+
return [3, 21];
|
|
280
280
|
case 14:
|
|
281
281
|
_j = [{}];
|
|
282
|
-
return [4
|
|
282
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
283
283
|
case 15:
|
|
284
284
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
285
|
-
return [3
|
|
285
|
+
return [3, 21];
|
|
286
286
|
case 16:
|
|
287
287
|
_k = [{}];
|
|
288
|
-
return [4
|
|
288
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
289
289
|
case 17:
|
|
290
290
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
291
|
-
return [3
|
|
291
|
+
return [3, 21];
|
|
292
292
|
case 18:
|
|
293
293
|
_l = [{}];
|
|
294
|
-
return [4
|
|
294
|
+
return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
295
295
|
case 19:
|
|
296
296
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
297
|
-
return [3
|
|
297
|
+
return [3, 21];
|
|
298
298
|
case 20:
|
|
299
299
|
parsedBody = parsedOutput.body;
|
|
300
300
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -304,7 +304,7 @@ var deserializeAws_json1_1AssociateCreatedArtifactCommandError = function (outpu
|
|
|
304
304
|
message = response.message || response.Message || errorCode;
|
|
305
305
|
response.message = message;
|
|
306
306
|
delete response.Message;
|
|
307
|
-
return [2
|
|
307
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
308
308
|
}
|
|
309
309
|
});
|
|
310
310
|
}); };
|
|
@@ -314,15 +314,15 @@ export var deserializeAws_json1_1AssociateDiscoveredResourceCommand = function (
|
|
|
314
314
|
switch (_a.label) {
|
|
315
315
|
case 0:
|
|
316
316
|
if (output.statusCode >= 300) {
|
|
317
|
-
return [2
|
|
317
|
+
return [2, deserializeAws_json1_1AssociateDiscoveredResourceCommandError(output, context)];
|
|
318
318
|
}
|
|
319
|
-
return [4
|
|
319
|
+
return [4, parseBody(output.body, context)];
|
|
320
320
|
case 1:
|
|
321
321
|
data = _a.sent();
|
|
322
322
|
contents = {};
|
|
323
323
|
contents = deserializeAws_json1_1AssociateDiscoveredResourceResult(data, context);
|
|
324
324
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
325
|
-
return [2
|
|
325
|
+
return [2, Promise.resolve(response)];
|
|
326
326
|
}
|
|
327
327
|
});
|
|
328
328
|
}); };
|
|
@@ -334,95 +334,95 @@ var deserializeAws_json1_1AssociateDiscoveredResourceCommandError = function (ou
|
|
|
334
334
|
case 0:
|
|
335
335
|
_a = [__assign({}, output)];
|
|
336
336
|
_o = {};
|
|
337
|
-
return [4
|
|
337
|
+
return [4, parseBody(output.body, context)];
|
|
338
338
|
case 1:
|
|
339
339
|
parsedOutput = __assign.apply(void 0, _a.concat([(_o.body = _p.sent(), _o)]));
|
|
340
340
|
errorCode = "UnknownError";
|
|
341
341
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
342
342
|
_b = errorCode;
|
|
343
343
|
switch (_b) {
|
|
344
|
-
case "AccessDeniedException": return [3
|
|
345
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
346
|
-
case "DryRunOperation": return [3
|
|
347
|
-
case "com.amazonaws.migrationhub#DryRunOperation": return [3
|
|
348
|
-
case "HomeRegionNotSetException": return [3
|
|
349
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
350
|
-
case "InternalServerError": return [3
|
|
351
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
352
|
-
case "InvalidInputException": return [3
|
|
353
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
354
|
-
case "PolicyErrorException": return [3
|
|
355
|
-
case "com.amazonaws.migrationhub#PolicyErrorException": return [3
|
|
356
|
-
case "ResourceNotFoundException": return [3
|
|
357
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3
|
|
358
|
-
case "ServiceUnavailableException": return [3
|
|
359
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
360
|
-
case "ThrottlingException": return [3
|
|
361
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
362
|
-
case "UnauthorizedOperation": return [3
|
|
363
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3
|
|
344
|
+
case "AccessDeniedException": return [3, 2];
|
|
345
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
346
|
+
case "DryRunOperation": return [3, 4];
|
|
347
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
348
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
349
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
350
|
+
case "InternalServerError": return [3, 8];
|
|
351
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
352
|
+
case "InvalidInputException": return [3, 10];
|
|
353
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
354
|
+
case "PolicyErrorException": return [3, 12];
|
|
355
|
+
case "com.amazonaws.migrationhub#PolicyErrorException": return [3, 12];
|
|
356
|
+
case "ResourceNotFoundException": return [3, 14];
|
|
357
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 14];
|
|
358
|
+
case "ServiceUnavailableException": return [3, 16];
|
|
359
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 16];
|
|
360
|
+
case "ThrottlingException": return [3, 18];
|
|
361
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 18];
|
|
362
|
+
case "UnauthorizedOperation": return [3, 20];
|
|
363
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 20];
|
|
364
364
|
}
|
|
365
|
-
return [3
|
|
365
|
+
return [3, 22];
|
|
366
366
|
case 2:
|
|
367
367
|
_c = [{}];
|
|
368
|
-
return [4
|
|
368
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
369
369
|
case 3:
|
|
370
370
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
371
|
-
return [3
|
|
371
|
+
return [3, 23];
|
|
372
372
|
case 4:
|
|
373
373
|
_d = [{}];
|
|
374
|
-
return [4
|
|
374
|
+
return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
375
375
|
case 5:
|
|
376
376
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
377
|
-
return [3
|
|
377
|
+
return [3, 23];
|
|
378
378
|
case 6:
|
|
379
379
|
_e = [{}];
|
|
380
|
-
return [4
|
|
380
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
381
381
|
case 7:
|
|
382
382
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
383
|
-
return [3
|
|
383
|
+
return [3, 23];
|
|
384
384
|
case 8:
|
|
385
385
|
_f = [{}];
|
|
386
|
-
return [4
|
|
386
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
387
387
|
case 9:
|
|
388
388
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
389
|
-
return [3
|
|
389
|
+
return [3, 23];
|
|
390
390
|
case 10:
|
|
391
391
|
_g = [{}];
|
|
392
|
-
return [4
|
|
392
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
393
393
|
case 11:
|
|
394
394
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
395
|
-
return [3
|
|
395
|
+
return [3, 23];
|
|
396
396
|
case 12:
|
|
397
397
|
_h = [{}];
|
|
398
|
-
return [4
|
|
398
|
+
return [4, deserializeAws_json1_1PolicyErrorExceptionResponse(parsedOutput, context)];
|
|
399
399
|
case 13:
|
|
400
400
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
401
|
-
return [3
|
|
401
|
+
return [3, 23];
|
|
402
402
|
case 14:
|
|
403
403
|
_j = [{}];
|
|
404
|
-
return [4
|
|
404
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
405
405
|
case 15:
|
|
406
406
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
407
|
-
return [3
|
|
407
|
+
return [3, 23];
|
|
408
408
|
case 16:
|
|
409
409
|
_k = [{}];
|
|
410
|
-
return [4
|
|
410
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
411
411
|
case 17:
|
|
412
412
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
413
|
-
return [3
|
|
413
|
+
return [3, 23];
|
|
414
414
|
case 18:
|
|
415
415
|
_l = [{}];
|
|
416
|
-
return [4
|
|
416
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
417
417
|
case 19:
|
|
418
418
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
419
|
-
return [3
|
|
419
|
+
return [3, 23];
|
|
420
420
|
case 20:
|
|
421
421
|
_m = [{}];
|
|
422
|
-
return [4
|
|
422
|
+
return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
423
423
|
case 21:
|
|
424
424
|
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
425
|
-
return [3
|
|
425
|
+
return [3, 23];
|
|
426
426
|
case 22:
|
|
427
427
|
parsedBody = parsedOutput.body;
|
|
428
428
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -432,7 +432,7 @@ var deserializeAws_json1_1AssociateDiscoveredResourceCommandError = function (ou
|
|
|
432
432
|
message = response.message || response.Message || errorCode;
|
|
433
433
|
response.message = message;
|
|
434
434
|
delete response.Message;
|
|
435
|
-
return [2
|
|
435
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
438
|
}); };
|
|
@@ -442,15 +442,15 @@ export var deserializeAws_json1_1CreateProgressUpdateStreamCommand = function (o
|
|
|
442
442
|
switch (_a.label) {
|
|
443
443
|
case 0:
|
|
444
444
|
if (output.statusCode >= 300) {
|
|
445
|
-
return [2
|
|
445
|
+
return [2, deserializeAws_json1_1CreateProgressUpdateStreamCommandError(output, context)];
|
|
446
446
|
}
|
|
447
|
-
return [4
|
|
447
|
+
return [4, parseBody(output.body, context)];
|
|
448
448
|
case 1:
|
|
449
449
|
data = _a.sent();
|
|
450
450
|
contents = {};
|
|
451
451
|
contents = deserializeAws_json1_1CreateProgressUpdateStreamResult(data, context);
|
|
452
452
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
453
|
-
return [2
|
|
453
|
+
return [2, Promise.resolve(response)];
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
456
|
}); };
|
|
@@ -462,79 +462,79 @@ var deserializeAws_json1_1CreateProgressUpdateStreamCommandError = function (out
|
|
|
462
462
|
case 0:
|
|
463
463
|
_a = [__assign({}, output)];
|
|
464
464
|
_l = {};
|
|
465
|
-
return [4
|
|
465
|
+
return [4, parseBody(output.body, context)];
|
|
466
466
|
case 1:
|
|
467
467
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
468
468
|
errorCode = "UnknownError";
|
|
469
469
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
470
470
|
_b = errorCode;
|
|
471
471
|
switch (_b) {
|
|
472
|
-
case "AccessDeniedException": return [3
|
|
473
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
474
|
-
case "DryRunOperation": return [3
|
|
475
|
-
case "com.amazonaws.migrationhub#DryRunOperation": return [3
|
|
476
|
-
case "HomeRegionNotSetException": return [3
|
|
477
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
478
|
-
case "InternalServerError": return [3
|
|
479
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
480
|
-
case "InvalidInputException": return [3
|
|
481
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
482
|
-
case "ServiceUnavailableException": return [3
|
|
483
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
484
|
-
case "ThrottlingException": return [3
|
|
485
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
486
|
-
case "UnauthorizedOperation": return [3
|
|
487
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3
|
|
472
|
+
case "AccessDeniedException": return [3, 2];
|
|
473
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
474
|
+
case "DryRunOperation": return [3, 4];
|
|
475
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
476
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
477
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
478
|
+
case "InternalServerError": return [3, 8];
|
|
479
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
480
|
+
case "InvalidInputException": return [3, 10];
|
|
481
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
482
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
483
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 12];
|
|
484
|
+
case "ThrottlingException": return [3, 14];
|
|
485
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 14];
|
|
486
|
+
case "UnauthorizedOperation": return [3, 16];
|
|
487
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 16];
|
|
488
488
|
}
|
|
489
|
-
return [3
|
|
489
|
+
return [3, 18];
|
|
490
490
|
case 2:
|
|
491
491
|
_c = [{}];
|
|
492
|
-
return [4
|
|
492
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
493
493
|
case 3:
|
|
494
494
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
495
|
-
return [3
|
|
495
|
+
return [3, 19];
|
|
496
496
|
case 4:
|
|
497
497
|
_d = [{}];
|
|
498
|
-
return [4
|
|
498
|
+
return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
499
499
|
case 5:
|
|
500
500
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
501
|
-
return [3
|
|
501
|
+
return [3, 19];
|
|
502
502
|
case 6:
|
|
503
503
|
_e = [{}];
|
|
504
|
-
return [4
|
|
504
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
505
505
|
case 7:
|
|
506
506
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
507
|
-
return [3
|
|
507
|
+
return [3, 19];
|
|
508
508
|
case 8:
|
|
509
509
|
_f = [{}];
|
|
510
|
-
return [4
|
|
510
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
511
511
|
case 9:
|
|
512
512
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
513
|
-
return [3
|
|
513
|
+
return [3, 19];
|
|
514
514
|
case 10:
|
|
515
515
|
_g = [{}];
|
|
516
|
-
return [4
|
|
516
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
517
517
|
case 11:
|
|
518
518
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
519
|
-
return [3
|
|
519
|
+
return [3, 19];
|
|
520
520
|
case 12:
|
|
521
521
|
_h = [{}];
|
|
522
|
-
return [4
|
|
522
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
523
523
|
case 13:
|
|
524
524
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
525
|
-
return [3
|
|
525
|
+
return [3, 19];
|
|
526
526
|
case 14:
|
|
527
527
|
_j = [{}];
|
|
528
|
-
return [4
|
|
528
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
529
529
|
case 15:
|
|
530
530
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
531
|
-
return [3
|
|
531
|
+
return [3, 19];
|
|
532
532
|
case 16:
|
|
533
533
|
_k = [{}];
|
|
534
|
-
return [4
|
|
534
|
+
return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
535
535
|
case 17:
|
|
536
536
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
537
|
-
return [3
|
|
537
|
+
return [3, 19];
|
|
538
538
|
case 18:
|
|
539
539
|
parsedBody = parsedOutput.body;
|
|
540
540
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -544,7 +544,7 @@ var deserializeAws_json1_1CreateProgressUpdateStreamCommandError = function (out
|
|
|
544
544
|
message = response.message || response.Message || errorCode;
|
|
545
545
|
response.message = message;
|
|
546
546
|
delete response.Message;
|
|
547
|
-
return [2
|
|
547
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
548
548
|
}
|
|
549
549
|
});
|
|
550
550
|
}); };
|
|
@@ -554,15 +554,15 @@ export var deserializeAws_json1_1DeleteProgressUpdateStreamCommand = function (o
|
|
|
554
554
|
switch (_a.label) {
|
|
555
555
|
case 0:
|
|
556
556
|
if (output.statusCode >= 300) {
|
|
557
|
-
return [2
|
|
557
|
+
return [2, deserializeAws_json1_1DeleteProgressUpdateStreamCommandError(output, context)];
|
|
558
558
|
}
|
|
559
|
-
return [4
|
|
559
|
+
return [4, parseBody(output.body, context)];
|
|
560
560
|
case 1:
|
|
561
561
|
data = _a.sent();
|
|
562
562
|
contents = {};
|
|
563
563
|
contents = deserializeAws_json1_1DeleteProgressUpdateStreamResult(data, context);
|
|
564
564
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
565
|
-
return [2
|
|
565
|
+
return [2, Promise.resolve(response)];
|
|
566
566
|
}
|
|
567
567
|
});
|
|
568
568
|
}); };
|
|
@@ -574,87 +574,87 @@ var deserializeAws_json1_1DeleteProgressUpdateStreamCommandError = function (out
|
|
|
574
574
|
case 0:
|
|
575
575
|
_a = [__assign({}, output)];
|
|
576
576
|
_m = {};
|
|
577
|
-
return [4
|
|
577
|
+
return [4, parseBody(output.body, context)];
|
|
578
578
|
case 1:
|
|
579
579
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
580
580
|
errorCode = "UnknownError";
|
|
581
581
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
582
582
|
_b = errorCode;
|
|
583
583
|
switch (_b) {
|
|
584
|
-
case "AccessDeniedException": return [3
|
|
585
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
586
|
-
case "DryRunOperation": return [3
|
|
587
|
-
case "com.amazonaws.migrationhub#DryRunOperation": return [3
|
|
588
|
-
case "HomeRegionNotSetException": return [3
|
|
589
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
590
|
-
case "InternalServerError": return [3
|
|
591
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
592
|
-
case "InvalidInputException": return [3
|
|
593
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
594
|
-
case "ResourceNotFoundException": return [3
|
|
595
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3
|
|
596
|
-
case "ServiceUnavailableException": return [3
|
|
597
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
598
|
-
case "ThrottlingException": return [3
|
|
599
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
600
|
-
case "UnauthorizedOperation": return [3
|
|
601
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3
|
|
584
|
+
case "AccessDeniedException": return [3, 2];
|
|
585
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
586
|
+
case "DryRunOperation": return [3, 4];
|
|
587
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
588
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
589
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
590
|
+
case "InternalServerError": return [3, 8];
|
|
591
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
592
|
+
case "InvalidInputException": return [3, 10];
|
|
593
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
594
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
595
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
596
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
597
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
598
|
+
case "ThrottlingException": return [3, 16];
|
|
599
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
600
|
+
case "UnauthorizedOperation": return [3, 18];
|
|
601
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 18];
|
|
602
602
|
}
|
|
603
|
-
return [3
|
|
603
|
+
return [3, 20];
|
|
604
604
|
case 2:
|
|
605
605
|
_c = [{}];
|
|
606
|
-
return [4
|
|
606
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
607
607
|
case 3:
|
|
608
608
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
609
|
-
return [3
|
|
609
|
+
return [3, 21];
|
|
610
610
|
case 4:
|
|
611
611
|
_d = [{}];
|
|
612
|
-
return [4
|
|
612
|
+
return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
613
613
|
case 5:
|
|
614
614
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
615
|
-
return [3
|
|
615
|
+
return [3, 21];
|
|
616
616
|
case 6:
|
|
617
617
|
_e = [{}];
|
|
618
|
-
return [4
|
|
618
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
619
619
|
case 7:
|
|
620
620
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
621
|
-
return [3
|
|
621
|
+
return [3, 21];
|
|
622
622
|
case 8:
|
|
623
623
|
_f = [{}];
|
|
624
|
-
return [4
|
|
624
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
625
625
|
case 9:
|
|
626
626
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
627
|
-
return [3
|
|
627
|
+
return [3, 21];
|
|
628
628
|
case 10:
|
|
629
629
|
_g = [{}];
|
|
630
|
-
return [4
|
|
630
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
631
631
|
case 11:
|
|
632
632
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
633
|
-
return [3
|
|
633
|
+
return [3, 21];
|
|
634
634
|
case 12:
|
|
635
635
|
_h = [{}];
|
|
636
|
-
return [4
|
|
636
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
637
637
|
case 13:
|
|
638
638
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
639
|
-
return [3
|
|
639
|
+
return [3, 21];
|
|
640
640
|
case 14:
|
|
641
641
|
_j = [{}];
|
|
642
|
-
return [4
|
|
642
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
643
643
|
case 15:
|
|
644
644
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
645
|
-
return [3
|
|
645
|
+
return [3, 21];
|
|
646
646
|
case 16:
|
|
647
647
|
_k = [{}];
|
|
648
|
-
return [4
|
|
648
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
649
649
|
case 17:
|
|
650
650
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
651
|
-
return [3
|
|
651
|
+
return [3, 21];
|
|
652
652
|
case 18:
|
|
653
653
|
_l = [{}];
|
|
654
|
-
return [4
|
|
654
|
+
return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
655
655
|
case 19:
|
|
656
656
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
657
|
-
return [3
|
|
657
|
+
return [3, 21];
|
|
658
658
|
case 20:
|
|
659
659
|
parsedBody = parsedOutput.body;
|
|
660
660
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -664,7 +664,7 @@ var deserializeAws_json1_1DeleteProgressUpdateStreamCommandError = function (out
|
|
|
664
664
|
message = response.message || response.Message || errorCode;
|
|
665
665
|
response.message = message;
|
|
666
666
|
delete response.Message;
|
|
667
|
-
return [2
|
|
667
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
668
668
|
}
|
|
669
669
|
});
|
|
670
670
|
}); };
|
|
@@ -674,15 +674,15 @@ export var deserializeAws_json1_1DescribeApplicationStateCommand = function (out
|
|
|
674
674
|
switch (_a.label) {
|
|
675
675
|
case 0:
|
|
676
676
|
if (output.statusCode >= 300) {
|
|
677
|
-
return [2
|
|
677
|
+
return [2, deserializeAws_json1_1DescribeApplicationStateCommandError(output, context)];
|
|
678
678
|
}
|
|
679
|
-
return [4
|
|
679
|
+
return [4, parseBody(output.body, context)];
|
|
680
680
|
case 1:
|
|
681
681
|
data = _a.sent();
|
|
682
682
|
contents = {};
|
|
683
683
|
contents = deserializeAws_json1_1DescribeApplicationStateResult(data, context);
|
|
684
684
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
685
|
-
return [2
|
|
685
|
+
return [2, Promise.resolve(response)];
|
|
686
686
|
}
|
|
687
687
|
});
|
|
688
688
|
}); };
|
|
@@ -694,79 +694,79 @@ var deserializeAws_json1_1DescribeApplicationStateCommandError = function (outpu
|
|
|
694
694
|
case 0:
|
|
695
695
|
_a = [__assign({}, output)];
|
|
696
696
|
_l = {};
|
|
697
|
-
return [4
|
|
697
|
+
return [4, parseBody(output.body, context)];
|
|
698
698
|
case 1:
|
|
699
699
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
700
700
|
errorCode = "UnknownError";
|
|
701
701
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
702
|
_b = errorCode;
|
|
703
703
|
switch (_b) {
|
|
704
|
-
case "AccessDeniedException": return [3
|
|
705
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
706
|
-
case "HomeRegionNotSetException": return [3
|
|
707
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
708
|
-
case "InternalServerError": return [3
|
|
709
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
710
|
-
case "InvalidInputException": return [3
|
|
711
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
712
|
-
case "PolicyErrorException": return [3
|
|
713
|
-
case "com.amazonaws.migrationhub#PolicyErrorException": return [3
|
|
714
|
-
case "ResourceNotFoundException": return [3
|
|
715
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3
|
|
716
|
-
case "ServiceUnavailableException": return [3
|
|
717
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
718
|
-
case "ThrottlingException": return [3
|
|
719
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
704
|
+
case "AccessDeniedException": return [3, 2];
|
|
705
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
706
|
+
case "HomeRegionNotSetException": return [3, 4];
|
|
707
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 4];
|
|
708
|
+
case "InternalServerError": return [3, 6];
|
|
709
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 6];
|
|
710
|
+
case "InvalidInputException": return [3, 8];
|
|
711
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 8];
|
|
712
|
+
case "PolicyErrorException": return [3, 10];
|
|
713
|
+
case "com.amazonaws.migrationhub#PolicyErrorException": return [3, 10];
|
|
714
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
715
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
716
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
717
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
718
|
+
case "ThrottlingException": return [3, 16];
|
|
719
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
720
720
|
}
|
|
721
|
-
return [3
|
|
721
|
+
return [3, 18];
|
|
722
722
|
case 2:
|
|
723
723
|
_c = [{}];
|
|
724
|
-
return [4
|
|
724
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
725
725
|
case 3:
|
|
726
726
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
727
|
-
return [3
|
|
727
|
+
return [3, 19];
|
|
728
728
|
case 4:
|
|
729
729
|
_d = [{}];
|
|
730
|
-
return [4
|
|
730
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
731
731
|
case 5:
|
|
732
732
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
733
|
-
return [3
|
|
733
|
+
return [3, 19];
|
|
734
734
|
case 6:
|
|
735
735
|
_e = [{}];
|
|
736
|
-
return [4
|
|
736
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
737
737
|
case 7:
|
|
738
738
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
739
|
-
return [3
|
|
739
|
+
return [3, 19];
|
|
740
740
|
case 8:
|
|
741
741
|
_f = [{}];
|
|
742
|
-
return [4
|
|
742
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
743
743
|
case 9:
|
|
744
744
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
745
|
-
return [3
|
|
745
|
+
return [3, 19];
|
|
746
746
|
case 10:
|
|
747
747
|
_g = [{}];
|
|
748
|
-
return [4
|
|
748
|
+
return [4, deserializeAws_json1_1PolicyErrorExceptionResponse(parsedOutput, context)];
|
|
749
749
|
case 11:
|
|
750
750
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
751
|
-
return [3
|
|
751
|
+
return [3, 19];
|
|
752
752
|
case 12:
|
|
753
753
|
_h = [{}];
|
|
754
|
-
return [4
|
|
754
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
755
755
|
case 13:
|
|
756
756
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
757
|
-
return [3
|
|
757
|
+
return [3, 19];
|
|
758
758
|
case 14:
|
|
759
759
|
_j = [{}];
|
|
760
|
-
return [4
|
|
760
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
761
761
|
case 15:
|
|
762
762
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
763
|
-
return [3
|
|
763
|
+
return [3, 19];
|
|
764
764
|
case 16:
|
|
765
765
|
_k = [{}];
|
|
766
|
-
return [4
|
|
766
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
767
767
|
case 17:
|
|
768
768
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
769
|
-
return [3
|
|
769
|
+
return [3, 19];
|
|
770
770
|
case 18:
|
|
771
771
|
parsedBody = parsedOutput.body;
|
|
772
772
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -776,7 +776,7 @@ var deserializeAws_json1_1DescribeApplicationStateCommandError = function (outpu
|
|
|
776
776
|
message = response.message || response.Message || errorCode;
|
|
777
777
|
response.message = message;
|
|
778
778
|
delete response.Message;
|
|
779
|
-
return [2
|
|
779
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
780
780
|
}
|
|
781
781
|
});
|
|
782
782
|
}); };
|
|
@@ -786,15 +786,15 @@ export var deserializeAws_json1_1DescribeMigrationTaskCommand = function (output
|
|
|
786
786
|
switch (_a.label) {
|
|
787
787
|
case 0:
|
|
788
788
|
if (output.statusCode >= 300) {
|
|
789
|
-
return [2
|
|
789
|
+
return [2, deserializeAws_json1_1DescribeMigrationTaskCommandError(output, context)];
|
|
790
790
|
}
|
|
791
|
-
return [4
|
|
791
|
+
return [4, parseBody(output.body, context)];
|
|
792
792
|
case 1:
|
|
793
793
|
data = _a.sent();
|
|
794
794
|
contents = {};
|
|
795
795
|
contents = deserializeAws_json1_1DescribeMigrationTaskResult(data, context);
|
|
796
796
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
797
|
-
return [2
|
|
797
|
+
return [2, Promise.resolve(response)];
|
|
798
798
|
}
|
|
799
799
|
});
|
|
800
800
|
}); };
|
|
@@ -806,71 +806,71 @@ var deserializeAws_json1_1DescribeMigrationTaskCommandError = function (output,
|
|
|
806
806
|
case 0:
|
|
807
807
|
_a = [__assign({}, output)];
|
|
808
808
|
_k = {};
|
|
809
|
-
return [4
|
|
809
|
+
return [4, parseBody(output.body, context)];
|
|
810
810
|
case 1:
|
|
811
811
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
812
812
|
errorCode = "UnknownError";
|
|
813
813
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
814
814
|
_b = errorCode;
|
|
815
815
|
switch (_b) {
|
|
816
|
-
case "AccessDeniedException": return [3
|
|
817
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
818
|
-
case "HomeRegionNotSetException": return [3
|
|
819
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
820
|
-
case "InternalServerError": return [3
|
|
821
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
822
|
-
case "InvalidInputException": return [3
|
|
823
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
824
|
-
case "ResourceNotFoundException": return [3
|
|
825
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3
|
|
826
|
-
case "ServiceUnavailableException": return [3
|
|
827
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
828
|
-
case "ThrottlingException": return [3
|
|
829
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
816
|
+
case "AccessDeniedException": return [3, 2];
|
|
817
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
818
|
+
case "HomeRegionNotSetException": return [3, 4];
|
|
819
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 4];
|
|
820
|
+
case "InternalServerError": return [3, 6];
|
|
821
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 6];
|
|
822
|
+
case "InvalidInputException": return [3, 8];
|
|
823
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 8];
|
|
824
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
825
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 10];
|
|
826
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
827
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 12];
|
|
828
|
+
case "ThrottlingException": return [3, 14];
|
|
829
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 14];
|
|
830
830
|
}
|
|
831
|
-
return [3
|
|
831
|
+
return [3, 16];
|
|
832
832
|
case 2:
|
|
833
833
|
_c = [{}];
|
|
834
|
-
return [4
|
|
834
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
835
835
|
case 3:
|
|
836
836
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
837
|
-
return [3
|
|
837
|
+
return [3, 17];
|
|
838
838
|
case 4:
|
|
839
839
|
_d = [{}];
|
|
840
|
-
return [4
|
|
840
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
841
841
|
case 5:
|
|
842
842
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
843
|
-
return [3
|
|
843
|
+
return [3, 17];
|
|
844
844
|
case 6:
|
|
845
845
|
_e = [{}];
|
|
846
|
-
return [4
|
|
846
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
847
847
|
case 7:
|
|
848
848
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
849
|
-
return [3
|
|
849
|
+
return [3, 17];
|
|
850
850
|
case 8:
|
|
851
851
|
_f = [{}];
|
|
852
|
-
return [4
|
|
852
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
853
853
|
case 9:
|
|
854
854
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
855
|
-
return [3
|
|
855
|
+
return [3, 17];
|
|
856
856
|
case 10:
|
|
857
857
|
_g = [{}];
|
|
858
|
-
return [4
|
|
858
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
859
859
|
case 11:
|
|
860
860
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
861
|
-
return [3
|
|
861
|
+
return [3, 17];
|
|
862
862
|
case 12:
|
|
863
863
|
_h = [{}];
|
|
864
|
-
return [4
|
|
864
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
865
865
|
case 13:
|
|
866
866
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
867
|
-
return [3
|
|
867
|
+
return [3, 17];
|
|
868
868
|
case 14:
|
|
869
869
|
_j = [{}];
|
|
870
|
-
return [4
|
|
870
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
871
871
|
case 15:
|
|
872
872
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
873
|
-
return [3
|
|
873
|
+
return [3, 17];
|
|
874
874
|
case 16:
|
|
875
875
|
parsedBody = parsedOutput.body;
|
|
876
876
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -880,7 +880,7 @@ var deserializeAws_json1_1DescribeMigrationTaskCommandError = function (output,
|
|
|
880
880
|
message = response.message || response.Message || errorCode;
|
|
881
881
|
response.message = message;
|
|
882
882
|
delete response.Message;
|
|
883
|
-
return [2
|
|
883
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
884
884
|
}
|
|
885
885
|
});
|
|
886
886
|
}); };
|
|
@@ -890,15 +890,15 @@ export var deserializeAws_json1_1DisassociateCreatedArtifactCommand = function (
|
|
|
890
890
|
switch (_a.label) {
|
|
891
891
|
case 0:
|
|
892
892
|
if (output.statusCode >= 300) {
|
|
893
|
-
return [2
|
|
893
|
+
return [2, deserializeAws_json1_1DisassociateCreatedArtifactCommandError(output, context)];
|
|
894
894
|
}
|
|
895
|
-
return [4
|
|
895
|
+
return [4, parseBody(output.body, context)];
|
|
896
896
|
case 1:
|
|
897
897
|
data = _a.sent();
|
|
898
898
|
contents = {};
|
|
899
899
|
contents = deserializeAws_json1_1DisassociateCreatedArtifactResult(data, context);
|
|
900
900
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
901
|
-
return [2
|
|
901
|
+
return [2, Promise.resolve(response)];
|
|
902
902
|
}
|
|
903
903
|
});
|
|
904
904
|
}); };
|
|
@@ -910,87 +910,87 @@ var deserializeAws_json1_1DisassociateCreatedArtifactCommandError = function (ou
|
|
|
910
910
|
case 0:
|
|
911
911
|
_a = [__assign({}, output)];
|
|
912
912
|
_m = {};
|
|
913
|
-
return [4
|
|
913
|
+
return [4, parseBody(output.body, context)];
|
|
914
914
|
case 1:
|
|
915
915
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
916
916
|
errorCode = "UnknownError";
|
|
917
917
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
918
918
|
_b = errorCode;
|
|
919
919
|
switch (_b) {
|
|
920
|
-
case "AccessDeniedException": return [3
|
|
921
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
922
|
-
case "DryRunOperation": return [3
|
|
923
|
-
case "com.amazonaws.migrationhub#DryRunOperation": return [3
|
|
924
|
-
case "HomeRegionNotSetException": return [3
|
|
925
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
926
|
-
case "InternalServerError": return [3
|
|
927
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
928
|
-
case "InvalidInputException": return [3
|
|
929
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
930
|
-
case "ResourceNotFoundException": return [3
|
|
931
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3
|
|
932
|
-
case "ServiceUnavailableException": return [3
|
|
933
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
934
|
-
case "ThrottlingException": return [3
|
|
935
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
936
|
-
case "UnauthorizedOperation": return [3
|
|
937
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3
|
|
920
|
+
case "AccessDeniedException": return [3, 2];
|
|
921
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
922
|
+
case "DryRunOperation": return [3, 4];
|
|
923
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
924
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
925
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
926
|
+
case "InternalServerError": return [3, 8];
|
|
927
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
928
|
+
case "InvalidInputException": return [3, 10];
|
|
929
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
930
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
931
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
932
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
933
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
934
|
+
case "ThrottlingException": return [3, 16];
|
|
935
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
936
|
+
case "UnauthorizedOperation": return [3, 18];
|
|
937
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 18];
|
|
938
938
|
}
|
|
939
|
-
return [3
|
|
939
|
+
return [3, 20];
|
|
940
940
|
case 2:
|
|
941
941
|
_c = [{}];
|
|
942
|
-
return [4
|
|
942
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
943
943
|
case 3:
|
|
944
944
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
945
|
-
return [3
|
|
945
|
+
return [3, 21];
|
|
946
946
|
case 4:
|
|
947
947
|
_d = [{}];
|
|
948
|
-
return [4
|
|
948
|
+
return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
949
949
|
case 5:
|
|
950
950
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
951
|
-
return [3
|
|
951
|
+
return [3, 21];
|
|
952
952
|
case 6:
|
|
953
953
|
_e = [{}];
|
|
954
|
-
return [4
|
|
954
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
955
955
|
case 7:
|
|
956
956
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
957
|
-
return [3
|
|
957
|
+
return [3, 21];
|
|
958
958
|
case 8:
|
|
959
959
|
_f = [{}];
|
|
960
|
-
return [4
|
|
960
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
961
961
|
case 9:
|
|
962
962
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
963
|
-
return [3
|
|
963
|
+
return [3, 21];
|
|
964
964
|
case 10:
|
|
965
965
|
_g = [{}];
|
|
966
|
-
return [4
|
|
966
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
967
967
|
case 11:
|
|
968
968
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
969
|
-
return [3
|
|
969
|
+
return [3, 21];
|
|
970
970
|
case 12:
|
|
971
971
|
_h = [{}];
|
|
972
|
-
return [4
|
|
972
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
973
973
|
case 13:
|
|
974
974
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
975
|
-
return [3
|
|
975
|
+
return [3, 21];
|
|
976
976
|
case 14:
|
|
977
977
|
_j = [{}];
|
|
978
|
-
return [4
|
|
978
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
979
979
|
case 15:
|
|
980
980
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
981
|
-
return [3
|
|
981
|
+
return [3, 21];
|
|
982
982
|
case 16:
|
|
983
983
|
_k = [{}];
|
|
984
|
-
return [4
|
|
984
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
985
985
|
case 17:
|
|
986
986
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
987
|
-
return [3
|
|
987
|
+
return [3, 21];
|
|
988
988
|
case 18:
|
|
989
989
|
_l = [{}];
|
|
990
|
-
return [4
|
|
990
|
+
return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
991
991
|
case 19:
|
|
992
992
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
993
|
-
return [3
|
|
993
|
+
return [3, 21];
|
|
994
994
|
case 20:
|
|
995
995
|
parsedBody = parsedOutput.body;
|
|
996
996
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1000,7 +1000,7 @@ var deserializeAws_json1_1DisassociateCreatedArtifactCommandError = function (ou
|
|
|
1000
1000
|
message = response.message || response.Message || errorCode;
|
|
1001
1001
|
response.message = message;
|
|
1002
1002
|
delete response.Message;
|
|
1003
|
-
return [2
|
|
1003
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1004
1004
|
}
|
|
1005
1005
|
});
|
|
1006
1006
|
}); };
|
|
@@ -1010,15 +1010,15 @@ export var deserializeAws_json1_1DisassociateDiscoveredResourceCommand = functio
|
|
|
1010
1010
|
switch (_a.label) {
|
|
1011
1011
|
case 0:
|
|
1012
1012
|
if (output.statusCode >= 300) {
|
|
1013
|
-
return [2
|
|
1013
|
+
return [2, deserializeAws_json1_1DisassociateDiscoveredResourceCommandError(output, context)];
|
|
1014
1014
|
}
|
|
1015
|
-
return [4
|
|
1015
|
+
return [4, parseBody(output.body, context)];
|
|
1016
1016
|
case 1:
|
|
1017
1017
|
data = _a.sent();
|
|
1018
1018
|
contents = {};
|
|
1019
1019
|
contents = deserializeAws_json1_1DisassociateDiscoveredResourceResult(data, context);
|
|
1020
1020
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1021
|
-
return [2
|
|
1021
|
+
return [2, Promise.resolve(response)];
|
|
1022
1022
|
}
|
|
1023
1023
|
});
|
|
1024
1024
|
}); };
|
|
@@ -1030,87 +1030,87 @@ var deserializeAws_json1_1DisassociateDiscoveredResourceCommandError = function
|
|
|
1030
1030
|
case 0:
|
|
1031
1031
|
_a = [__assign({}, output)];
|
|
1032
1032
|
_m = {};
|
|
1033
|
-
return [4
|
|
1033
|
+
return [4, parseBody(output.body, context)];
|
|
1034
1034
|
case 1:
|
|
1035
1035
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
1036
1036
|
errorCode = "UnknownError";
|
|
1037
1037
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1038
1038
|
_b = errorCode;
|
|
1039
1039
|
switch (_b) {
|
|
1040
|
-
case "AccessDeniedException": return [3
|
|
1041
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
1042
|
-
case "DryRunOperation": return [3
|
|
1043
|
-
case "com.amazonaws.migrationhub#DryRunOperation": return [3
|
|
1044
|
-
case "HomeRegionNotSetException": return [3
|
|
1045
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
1046
|
-
case "InternalServerError": return [3
|
|
1047
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
1048
|
-
case "InvalidInputException": return [3
|
|
1049
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
1050
|
-
case "ResourceNotFoundException": return [3
|
|
1051
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3
|
|
1052
|
-
case "ServiceUnavailableException": return [3
|
|
1053
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
1054
|
-
case "ThrottlingException": return [3
|
|
1055
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
1056
|
-
case "UnauthorizedOperation": return [3
|
|
1057
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3
|
|
1040
|
+
case "AccessDeniedException": return [3, 2];
|
|
1041
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
1042
|
+
case "DryRunOperation": return [3, 4];
|
|
1043
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
1044
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
1045
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
1046
|
+
case "InternalServerError": return [3, 8];
|
|
1047
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
1048
|
+
case "InvalidInputException": return [3, 10];
|
|
1049
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
1050
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1051
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
1052
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
1053
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
1054
|
+
case "ThrottlingException": return [3, 16];
|
|
1055
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
1056
|
+
case "UnauthorizedOperation": return [3, 18];
|
|
1057
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 18];
|
|
1058
1058
|
}
|
|
1059
|
-
return [3
|
|
1059
|
+
return [3, 20];
|
|
1060
1060
|
case 2:
|
|
1061
1061
|
_c = [{}];
|
|
1062
|
-
return [4
|
|
1062
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1063
1063
|
case 3:
|
|
1064
1064
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1065
|
-
return [3
|
|
1065
|
+
return [3, 21];
|
|
1066
1066
|
case 4:
|
|
1067
1067
|
_d = [{}];
|
|
1068
|
-
return [4
|
|
1068
|
+
return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
1069
1069
|
case 5:
|
|
1070
1070
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1071
|
-
return [3
|
|
1071
|
+
return [3, 21];
|
|
1072
1072
|
case 6:
|
|
1073
1073
|
_e = [{}];
|
|
1074
|
-
return [4
|
|
1074
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1075
1075
|
case 7:
|
|
1076
1076
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1077
|
-
return [3
|
|
1077
|
+
return [3, 21];
|
|
1078
1078
|
case 8:
|
|
1079
1079
|
_f = [{}];
|
|
1080
|
-
return [4
|
|
1080
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1081
1081
|
case 9:
|
|
1082
1082
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1083
|
-
return [3
|
|
1083
|
+
return [3, 21];
|
|
1084
1084
|
case 10:
|
|
1085
1085
|
_g = [{}];
|
|
1086
|
-
return [4
|
|
1086
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1087
1087
|
case 11:
|
|
1088
1088
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1089
|
-
return [3
|
|
1089
|
+
return [3, 21];
|
|
1090
1090
|
case 12:
|
|
1091
1091
|
_h = [{}];
|
|
1092
|
-
return [4
|
|
1092
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1093
1093
|
case 13:
|
|
1094
1094
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1095
|
-
return [3
|
|
1095
|
+
return [3, 21];
|
|
1096
1096
|
case 14:
|
|
1097
1097
|
_j = [{}];
|
|
1098
|
-
return [4
|
|
1098
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1099
1099
|
case 15:
|
|
1100
1100
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1101
|
-
return [3
|
|
1101
|
+
return [3, 21];
|
|
1102
1102
|
case 16:
|
|
1103
1103
|
_k = [{}];
|
|
1104
|
-
return [4
|
|
1104
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1105
1105
|
case 17:
|
|
1106
1106
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1107
|
-
return [3
|
|
1107
|
+
return [3, 21];
|
|
1108
1108
|
case 18:
|
|
1109
1109
|
_l = [{}];
|
|
1110
|
-
return [4
|
|
1110
|
+
return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
1111
1111
|
case 19:
|
|
1112
1112
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1113
|
-
return [3
|
|
1113
|
+
return [3, 21];
|
|
1114
1114
|
case 20:
|
|
1115
1115
|
parsedBody = parsedOutput.body;
|
|
1116
1116
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1120,7 +1120,7 @@ var deserializeAws_json1_1DisassociateDiscoveredResourceCommandError = function
|
|
|
1120
1120
|
message = response.message || response.Message || errorCode;
|
|
1121
1121
|
response.message = message;
|
|
1122
1122
|
delete response.Message;
|
|
1123
|
-
return [2
|
|
1123
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1124
1124
|
}
|
|
1125
1125
|
});
|
|
1126
1126
|
}); };
|
|
@@ -1130,15 +1130,15 @@ export var deserializeAws_json1_1ImportMigrationTaskCommand = function (output,
|
|
|
1130
1130
|
switch (_a.label) {
|
|
1131
1131
|
case 0:
|
|
1132
1132
|
if (output.statusCode >= 300) {
|
|
1133
|
-
return [2
|
|
1133
|
+
return [2, deserializeAws_json1_1ImportMigrationTaskCommandError(output, context)];
|
|
1134
1134
|
}
|
|
1135
|
-
return [4
|
|
1135
|
+
return [4, parseBody(output.body, context)];
|
|
1136
1136
|
case 1:
|
|
1137
1137
|
data = _a.sent();
|
|
1138
1138
|
contents = {};
|
|
1139
1139
|
contents = deserializeAws_json1_1ImportMigrationTaskResult(data, context);
|
|
1140
1140
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1141
|
-
return [2
|
|
1141
|
+
return [2, Promise.resolve(response)];
|
|
1142
1142
|
}
|
|
1143
1143
|
});
|
|
1144
1144
|
}); };
|
|
@@ -1150,87 +1150,87 @@ var deserializeAws_json1_1ImportMigrationTaskCommandError = function (output, co
|
|
|
1150
1150
|
case 0:
|
|
1151
1151
|
_a = [__assign({}, output)];
|
|
1152
1152
|
_m = {};
|
|
1153
|
-
return [4
|
|
1153
|
+
return [4, parseBody(output.body, context)];
|
|
1154
1154
|
case 1:
|
|
1155
1155
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
1156
1156
|
errorCode = "UnknownError";
|
|
1157
1157
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1158
1158
|
_b = errorCode;
|
|
1159
1159
|
switch (_b) {
|
|
1160
|
-
case "AccessDeniedException": return [3
|
|
1161
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
1162
|
-
case "DryRunOperation": return [3
|
|
1163
|
-
case "com.amazonaws.migrationhub#DryRunOperation": return [3
|
|
1164
|
-
case "HomeRegionNotSetException": return [3
|
|
1165
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
1166
|
-
case "InternalServerError": return [3
|
|
1167
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
1168
|
-
case "InvalidInputException": return [3
|
|
1169
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
1170
|
-
case "ResourceNotFoundException": return [3
|
|
1171
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3
|
|
1172
|
-
case "ServiceUnavailableException": return [3
|
|
1173
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
1174
|
-
case "ThrottlingException": return [3
|
|
1175
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
1176
|
-
case "UnauthorizedOperation": return [3
|
|
1177
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3
|
|
1160
|
+
case "AccessDeniedException": return [3, 2];
|
|
1161
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
1162
|
+
case "DryRunOperation": return [3, 4];
|
|
1163
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
1164
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
1165
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
1166
|
+
case "InternalServerError": return [3, 8];
|
|
1167
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
1168
|
+
case "InvalidInputException": return [3, 10];
|
|
1169
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
1170
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1171
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
1172
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
1173
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
1174
|
+
case "ThrottlingException": return [3, 16];
|
|
1175
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
1176
|
+
case "UnauthorizedOperation": return [3, 18];
|
|
1177
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 18];
|
|
1178
1178
|
}
|
|
1179
|
-
return [3
|
|
1179
|
+
return [3, 20];
|
|
1180
1180
|
case 2:
|
|
1181
1181
|
_c = [{}];
|
|
1182
|
-
return [4
|
|
1182
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1183
1183
|
case 3:
|
|
1184
1184
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1185
|
-
return [3
|
|
1185
|
+
return [3, 21];
|
|
1186
1186
|
case 4:
|
|
1187
1187
|
_d = [{}];
|
|
1188
|
-
return [4
|
|
1188
|
+
return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
1189
1189
|
case 5:
|
|
1190
1190
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1191
|
-
return [3
|
|
1191
|
+
return [3, 21];
|
|
1192
1192
|
case 6:
|
|
1193
1193
|
_e = [{}];
|
|
1194
|
-
return [4
|
|
1194
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1195
1195
|
case 7:
|
|
1196
1196
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1197
|
-
return [3
|
|
1197
|
+
return [3, 21];
|
|
1198
1198
|
case 8:
|
|
1199
1199
|
_f = [{}];
|
|
1200
|
-
return [4
|
|
1200
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1201
1201
|
case 9:
|
|
1202
1202
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1203
|
-
return [3
|
|
1203
|
+
return [3, 21];
|
|
1204
1204
|
case 10:
|
|
1205
1205
|
_g = [{}];
|
|
1206
|
-
return [4
|
|
1206
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1207
1207
|
case 11:
|
|
1208
1208
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1209
|
-
return [3
|
|
1209
|
+
return [3, 21];
|
|
1210
1210
|
case 12:
|
|
1211
1211
|
_h = [{}];
|
|
1212
|
-
return [4
|
|
1212
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1213
1213
|
case 13:
|
|
1214
1214
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1215
|
-
return [3
|
|
1215
|
+
return [3, 21];
|
|
1216
1216
|
case 14:
|
|
1217
1217
|
_j = [{}];
|
|
1218
|
-
return [4
|
|
1218
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1219
1219
|
case 15:
|
|
1220
1220
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1221
|
-
return [3
|
|
1221
|
+
return [3, 21];
|
|
1222
1222
|
case 16:
|
|
1223
1223
|
_k = [{}];
|
|
1224
|
-
return [4
|
|
1224
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1225
1225
|
case 17:
|
|
1226
1226
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1227
|
-
return [3
|
|
1227
|
+
return [3, 21];
|
|
1228
1228
|
case 18:
|
|
1229
1229
|
_l = [{}];
|
|
1230
|
-
return [4
|
|
1230
|
+
return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
1231
1231
|
case 19:
|
|
1232
1232
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1233
|
-
return [3
|
|
1233
|
+
return [3, 21];
|
|
1234
1234
|
case 20:
|
|
1235
1235
|
parsedBody = parsedOutput.body;
|
|
1236
1236
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1240,7 +1240,7 @@ var deserializeAws_json1_1ImportMigrationTaskCommandError = function (output, co
|
|
|
1240
1240
|
message = response.message || response.Message || errorCode;
|
|
1241
1241
|
response.message = message;
|
|
1242
1242
|
delete response.Message;
|
|
1243
|
-
return [2
|
|
1243
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1244
1244
|
}
|
|
1245
1245
|
});
|
|
1246
1246
|
}); };
|
|
@@ -1250,15 +1250,15 @@ export var deserializeAws_json1_1ListApplicationStatesCommand = function (output
|
|
|
1250
1250
|
switch (_a.label) {
|
|
1251
1251
|
case 0:
|
|
1252
1252
|
if (output.statusCode >= 300) {
|
|
1253
|
-
return [2
|
|
1253
|
+
return [2, deserializeAws_json1_1ListApplicationStatesCommandError(output, context)];
|
|
1254
1254
|
}
|
|
1255
|
-
return [4
|
|
1255
|
+
return [4, parseBody(output.body, context)];
|
|
1256
1256
|
case 1:
|
|
1257
1257
|
data = _a.sent();
|
|
1258
1258
|
contents = {};
|
|
1259
1259
|
contents = deserializeAws_json1_1ListApplicationStatesResult(data, context);
|
|
1260
1260
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1261
|
-
return [2
|
|
1261
|
+
return [2, Promise.resolve(response)];
|
|
1262
1262
|
}
|
|
1263
1263
|
});
|
|
1264
1264
|
}); };
|
|
@@ -1270,63 +1270,63 @@ var deserializeAws_json1_1ListApplicationStatesCommandError = function (output,
|
|
|
1270
1270
|
case 0:
|
|
1271
1271
|
_a = [__assign({}, output)];
|
|
1272
1272
|
_j = {};
|
|
1273
|
-
return [4
|
|
1273
|
+
return [4, parseBody(output.body, context)];
|
|
1274
1274
|
case 1:
|
|
1275
1275
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1276
1276
|
errorCode = "UnknownError";
|
|
1277
1277
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
1278
|
_b = errorCode;
|
|
1279
1279
|
switch (_b) {
|
|
1280
|
-
case "AccessDeniedException": return [3
|
|
1281
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
1282
|
-
case "HomeRegionNotSetException": return [3
|
|
1283
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
1284
|
-
case "InternalServerError": return [3
|
|
1285
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
1286
|
-
case "InvalidInputException": return [3
|
|
1287
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
1288
|
-
case "ServiceUnavailableException": return [3
|
|
1289
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
1290
|
-
case "ThrottlingException": return [3
|
|
1291
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
1280
|
+
case "AccessDeniedException": return [3, 2];
|
|
1281
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
1282
|
+
case "HomeRegionNotSetException": return [3, 4];
|
|
1283
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 4];
|
|
1284
|
+
case "InternalServerError": return [3, 6];
|
|
1285
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 6];
|
|
1286
|
+
case "InvalidInputException": return [3, 8];
|
|
1287
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 8];
|
|
1288
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1289
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 10];
|
|
1290
|
+
case "ThrottlingException": return [3, 12];
|
|
1291
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 12];
|
|
1292
1292
|
}
|
|
1293
|
-
return [3
|
|
1293
|
+
return [3, 14];
|
|
1294
1294
|
case 2:
|
|
1295
1295
|
_c = [{}];
|
|
1296
|
-
return [4
|
|
1296
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1297
1297
|
case 3:
|
|
1298
1298
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1299
|
-
return [3
|
|
1299
|
+
return [3, 15];
|
|
1300
1300
|
case 4:
|
|
1301
1301
|
_d = [{}];
|
|
1302
|
-
return [4
|
|
1302
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1303
1303
|
case 5:
|
|
1304
1304
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1305
|
-
return [3
|
|
1305
|
+
return [3, 15];
|
|
1306
1306
|
case 6:
|
|
1307
1307
|
_e = [{}];
|
|
1308
|
-
return [4
|
|
1308
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1309
1309
|
case 7:
|
|
1310
1310
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1311
|
-
return [3
|
|
1311
|
+
return [3, 15];
|
|
1312
1312
|
case 8:
|
|
1313
1313
|
_f = [{}];
|
|
1314
|
-
return [4
|
|
1314
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1315
1315
|
case 9:
|
|
1316
1316
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1317
|
-
return [3
|
|
1317
|
+
return [3, 15];
|
|
1318
1318
|
case 10:
|
|
1319
1319
|
_g = [{}];
|
|
1320
|
-
return [4
|
|
1320
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1321
1321
|
case 11:
|
|
1322
1322
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1323
|
-
return [3
|
|
1323
|
+
return [3, 15];
|
|
1324
1324
|
case 12:
|
|
1325
1325
|
_h = [{}];
|
|
1326
|
-
return [4
|
|
1326
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1327
1327
|
case 13:
|
|
1328
1328
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1329
|
-
return [3
|
|
1329
|
+
return [3, 15];
|
|
1330
1330
|
case 14:
|
|
1331
1331
|
parsedBody = parsedOutput.body;
|
|
1332
1332
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1336,7 +1336,7 @@ var deserializeAws_json1_1ListApplicationStatesCommandError = function (output,
|
|
|
1336
1336
|
message = response.message || response.Message || errorCode;
|
|
1337
1337
|
response.message = message;
|
|
1338
1338
|
delete response.Message;
|
|
1339
|
-
return [2
|
|
1339
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1340
1340
|
}
|
|
1341
1341
|
});
|
|
1342
1342
|
}); };
|
|
@@ -1346,15 +1346,15 @@ export var deserializeAws_json1_1ListCreatedArtifactsCommand = function (output,
|
|
|
1346
1346
|
switch (_a.label) {
|
|
1347
1347
|
case 0:
|
|
1348
1348
|
if (output.statusCode >= 300) {
|
|
1349
|
-
return [2
|
|
1349
|
+
return [2, deserializeAws_json1_1ListCreatedArtifactsCommandError(output, context)];
|
|
1350
1350
|
}
|
|
1351
|
-
return [4
|
|
1351
|
+
return [4, parseBody(output.body, context)];
|
|
1352
1352
|
case 1:
|
|
1353
1353
|
data = _a.sent();
|
|
1354
1354
|
contents = {};
|
|
1355
1355
|
contents = deserializeAws_json1_1ListCreatedArtifactsResult(data, context);
|
|
1356
1356
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1357
|
-
return [2
|
|
1357
|
+
return [2, Promise.resolve(response)];
|
|
1358
1358
|
}
|
|
1359
1359
|
});
|
|
1360
1360
|
}); };
|
|
@@ -1366,71 +1366,71 @@ var deserializeAws_json1_1ListCreatedArtifactsCommandError = function (output, c
|
|
|
1366
1366
|
case 0:
|
|
1367
1367
|
_a = [__assign({}, output)];
|
|
1368
1368
|
_k = {};
|
|
1369
|
-
return [4
|
|
1369
|
+
return [4, parseBody(output.body, context)];
|
|
1370
1370
|
case 1:
|
|
1371
1371
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1372
1372
|
errorCode = "UnknownError";
|
|
1373
1373
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1374
1374
|
_b = errorCode;
|
|
1375
1375
|
switch (_b) {
|
|
1376
|
-
case "AccessDeniedException": return [3
|
|
1377
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
1378
|
-
case "HomeRegionNotSetException": return [3
|
|
1379
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
1380
|
-
case "InternalServerError": return [3
|
|
1381
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
1382
|
-
case "InvalidInputException": return [3
|
|
1383
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
1384
|
-
case "ResourceNotFoundException": return [3
|
|
1385
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3
|
|
1386
|
-
case "ServiceUnavailableException": return [3
|
|
1387
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
1388
|
-
case "ThrottlingException": return [3
|
|
1389
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
1376
|
+
case "AccessDeniedException": return [3, 2];
|
|
1377
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
1378
|
+
case "HomeRegionNotSetException": return [3, 4];
|
|
1379
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 4];
|
|
1380
|
+
case "InternalServerError": return [3, 6];
|
|
1381
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 6];
|
|
1382
|
+
case "InvalidInputException": return [3, 8];
|
|
1383
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 8];
|
|
1384
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1385
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 10];
|
|
1386
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1387
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 12];
|
|
1388
|
+
case "ThrottlingException": return [3, 14];
|
|
1389
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 14];
|
|
1390
1390
|
}
|
|
1391
|
-
return [3
|
|
1391
|
+
return [3, 16];
|
|
1392
1392
|
case 2:
|
|
1393
1393
|
_c = [{}];
|
|
1394
|
-
return [4
|
|
1394
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1395
1395
|
case 3:
|
|
1396
1396
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1397
|
-
return [3
|
|
1397
|
+
return [3, 17];
|
|
1398
1398
|
case 4:
|
|
1399
1399
|
_d = [{}];
|
|
1400
|
-
return [4
|
|
1400
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1401
1401
|
case 5:
|
|
1402
1402
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1403
|
-
return [3
|
|
1403
|
+
return [3, 17];
|
|
1404
1404
|
case 6:
|
|
1405
1405
|
_e = [{}];
|
|
1406
|
-
return [4
|
|
1406
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1407
1407
|
case 7:
|
|
1408
1408
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1409
|
-
return [3
|
|
1409
|
+
return [3, 17];
|
|
1410
1410
|
case 8:
|
|
1411
1411
|
_f = [{}];
|
|
1412
|
-
return [4
|
|
1412
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1413
1413
|
case 9:
|
|
1414
1414
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1415
|
-
return [3
|
|
1415
|
+
return [3, 17];
|
|
1416
1416
|
case 10:
|
|
1417
1417
|
_g = [{}];
|
|
1418
|
-
return [4
|
|
1418
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1419
1419
|
case 11:
|
|
1420
1420
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1421
|
-
return [3
|
|
1421
|
+
return [3, 17];
|
|
1422
1422
|
case 12:
|
|
1423
1423
|
_h = [{}];
|
|
1424
|
-
return [4
|
|
1424
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1425
1425
|
case 13:
|
|
1426
1426
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1427
|
-
return [3
|
|
1427
|
+
return [3, 17];
|
|
1428
1428
|
case 14:
|
|
1429
1429
|
_j = [{}];
|
|
1430
|
-
return [4
|
|
1430
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1431
1431
|
case 15:
|
|
1432
1432
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1433
|
-
return [3
|
|
1433
|
+
return [3, 17];
|
|
1434
1434
|
case 16:
|
|
1435
1435
|
parsedBody = parsedOutput.body;
|
|
1436
1436
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1440,7 +1440,7 @@ var deserializeAws_json1_1ListCreatedArtifactsCommandError = function (output, c
|
|
|
1440
1440
|
message = response.message || response.Message || errorCode;
|
|
1441
1441
|
response.message = message;
|
|
1442
1442
|
delete response.Message;
|
|
1443
|
-
return [2
|
|
1443
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1444
1444
|
}
|
|
1445
1445
|
});
|
|
1446
1446
|
}); };
|
|
@@ -1450,15 +1450,15 @@ export var deserializeAws_json1_1ListDiscoveredResourcesCommand = function (outp
|
|
|
1450
1450
|
switch (_a.label) {
|
|
1451
1451
|
case 0:
|
|
1452
1452
|
if (output.statusCode >= 300) {
|
|
1453
|
-
return [2
|
|
1453
|
+
return [2, deserializeAws_json1_1ListDiscoveredResourcesCommandError(output, context)];
|
|
1454
1454
|
}
|
|
1455
|
-
return [4
|
|
1455
|
+
return [4, parseBody(output.body, context)];
|
|
1456
1456
|
case 1:
|
|
1457
1457
|
data = _a.sent();
|
|
1458
1458
|
contents = {};
|
|
1459
1459
|
contents = deserializeAws_json1_1ListDiscoveredResourcesResult(data, context);
|
|
1460
1460
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1461
|
-
return [2
|
|
1461
|
+
return [2, Promise.resolve(response)];
|
|
1462
1462
|
}
|
|
1463
1463
|
});
|
|
1464
1464
|
}); };
|
|
@@ -1470,71 +1470,71 @@ var deserializeAws_json1_1ListDiscoveredResourcesCommandError = function (output
|
|
|
1470
1470
|
case 0:
|
|
1471
1471
|
_a = [__assign({}, output)];
|
|
1472
1472
|
_k = {};
|
|
1473
|
-
return [4
|
|
1473
|
+
return [4, parseBody(output.body, context)];
|
|
1474
1474
|
case 1:
|
|
1475
1475
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1476
1476
|
errorCode = "UnknownError";
|
|
1477
1477
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1478
1478
|
_b = errorCode;
|
|
1479
1479
|
switch (_b) {
|
|
1480
|
-
case "AccessDeniedException": return [3
|
|
1481
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
1482
|
-
case "HomeRegionNotSetException": return [3
|
|
1483
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
1484
|
-
case "InternalServerError": return [3
|
|
1485
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
1486
|
-
case "InvalidInputException": return [3
|
|
1487
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
1488
|
-
case "ResourceNotFoundException": return [3
|
|
1489
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3
|
|
1490
|
-
case "ServiceUnavailableException": return [3
|
|
1491
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
1492
|
-
case "ThrottlingException": return [3
|
|
1493
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
1480
|
+
case "AccessDeniedException": return [3, 2];
|
|
1481
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
1482
|
+
case "HomeRegionNotSetException": return [3, 4];
|
|
1483
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 4];
|
|
1484
|
+
case "InternalServerError": return [3, 6];
|
|
1485
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 6];
|
|
1486
|
+
case "InvalidInputException": return [3, 8];
|
|
1487
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 8];
|
|
1488
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1489
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 10];
|
|
1490
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1491
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 12];
|
|
1492
|
+
case "ThrottlingException": return [3, 14];
|
|
1493
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 14];
|
|
1494
1494
|
}
|
|
1495
|
-
return [3
|
|
1495
|
+
return [3, 16];
|
|
1496
1496
|
case 2:
|
|
1497
1497
|
_c = [{}];
|
|
1498
|
-
return [4
|
|
1498
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1499
1499
|
case 3:
|
|
1500
1500
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1501
|
-
return [3
|
|
1501
|
+
return [3, 17];
|
|
1502
1502
|
case 4:
|
|
1503
1503
|
_d = [{}];
|
|
1504
|
-
return [4
|
|
1504
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1505
1505
|
case 5:
|
|
1506
1506
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1507
|
-
return [3
|
|
1507
|
+
return [3, 17];
|
|
1508
1508
|
case 6:
|
|
1509
1509
|
_e = [{}];
|
|
1510
|
-
return [4
|
|
1510
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1511
1511
|
case 7:
|
|
1512
1512
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1513
|
-
return [3
|
|
1513
|
+
return [3, 17];
|
|
1514
1514
|
case 8:
|
|
1515
1515
|
_f = [{}];
|
|
1516
|
-
return [4
|
|
1516
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1517
1517
|
case 9:
|
|
1518
1518
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1519
|
-
return [3
|
|
1519
|
+
return [3, 17];
|
|
1520
1520
|
case 10:
|
|
1521
1521
|
_g = [{}];
|
|
1522
|
-
return [4
|
|
1522
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1523
1523
|
case 11:
|
|
1524
1524
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1525
|
-
return [3
|
|
1525
|
+
return [3, 17];
|
|
1526
1526
|
case 12:
|
|
1527
1527
|
_h = [{}];
|
|
1528
|
-
return [4
|
|
1528
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1529
1529
|
case 13:
|
|
1530
1530
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1531
|
-
return [3
|
|
1531
|
+
return [3, 17];
|
|
1532
1532
|
case 14:
|
|
1533
1533
|
_j = [{}];
|
|
1534
|
-
return [4
|
|
1534
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1535
1535
|
case 15:
|
|
1536
1536
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1537
|
-
return [3
|
|
1537
|
+
return [3, 17];
|
|
1538
1538
|
case 16:
|
|
1539
1539
|
parsedBody = parsedOutput.body;
|
|
1540
1540
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1544,7 +1544,7 @@ var deserializeAws_json1_1ListDiscoveredResourcesCommandError = function (output
|
|
|
1544
1544
|
message = response.message || response.Message || errorCode;
|
|
1545
1545
|
response.message = message;
|
|
1546
1546
|
delete response.Message;
|
|
1547
|
-
return [2
|
|
1547
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1548
1548
|
}
|
|
1549
1549
|
});
|
|
1550
1550
|
}); };
|
|
@@ -1554,15 +1554,15 @@ export var deserializeAws_json1_1ListMigrationTasksCommand = function (output, c
|
|
|
1554
1554
|
switch (_a.label) {
|
|
1555
1555
|
case 0:
|
|
1556
1556
|
if (output.statusCode >= 300) {
|
|
1557
|
-
return [2
|
|
1557
|
+
return [2, deserializeAws_json1_1ListMigrationTasksCommandError(output, context)];
|
|
1558
1558
|
}
|
|
1559
|
-
return [4
|
|
1559
|
+
return [4, parseBody(output.body, context)];
|
|
1560
1560
|
case 1:
|
|
1561
1561
|
data = _a.sent();
|
|
1562
1562
|
contents = {};
|
|
1563
1563
|
contents = deserializeAws_json1_1ListMigrationTasksResult(data, context);
|
|
1564
1564
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1565
|
-
return [2
|
|
1565
|
+
return [2, Promise.resolve(response)];
|
|
1566
1566
|
}
|
|
1567
1567
|
});
|
|
1568
1568
|
}); };
|
|
@@ -1574,79 +1574,79 @@ var deserializeAws_json1_1ListMigrationTasksCommandError = function (output, con
|
|
|
1574
1574
|
case 0:
|
|
1575
1575
|
_a = [__assign({}, output)];
|
|
1576
1576
|
_l = {};
|
|
1577
|
-
return [4
|
|
1577
|
+
return [4, parseBody(output.body, context)];
|
|
1578
1578
|
case 1:
|
|
1579
1579
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
1580
1580
|
errorCode = "UnknownError";
|
|
1581
1581
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1582
1582
|
_b = errorCode;
|
|
1583
1583
|
switch (_b) {
|
|
1584
|
-
case "AccessDeniedException": return [3
|
|
1585
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
1586
|
-
case "HomeRegionNotSetException": return [3
|
|
1587
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
1588
|
-
case "InternalServerError": return [3
|
|
1589
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
1590
|
-
case "InvalidInputException": return [3
|
|
1591
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
1592
|
-
case "PolicyErrorException": return [3
|
|
1593
|
-
case "com.amazonaws.migrationhub#PolicyErrorException": return [3
|
|
1594
|
-
case "ResourceNotFoundException": return [3
|
|
1595
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3
|
|
1596
|
-
case "ServiceUnavailableException": return [3
|
|
1597
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
1598
|
-
case "ThrottlingException": return [3
|
|
1599
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
1584
|
+
case "AccessDeniedException": return [3, 2];
|
|
1585
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
1586
|
+
case "HomeRegionNotSetException": return [3, 4];
|
|
1587
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 4];
|
|
1588
|
+
case "InternalServerError": return [3, 6];
|
|
1589
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 6];
|
|
1590
|
+
case "InvalidInputException": return [3, 8];
|
|
1591
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 8];
|
|
1592
|
+
case "PolicyErrorException": return [3, 10];
|
|
1593
|
+
case "com.amazonaws.migrationhub#PolicyErrorException": return [3, 10];
|
|
1594
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1595
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
1596
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
1597
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
1598
|
+
case "ThrottlingException": return [3, 16];
|
|
1599
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
1600
1600
|
}
|
|
1601
|
-
return [3
|
|
1601
|
+
return [3, 18];
|
|
1602
1602
|
case 2:
|
|
1603
1603
|
_c = [{}];
|
|
1604
|
-
return [4
|
|
1604
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1605
1605
|
case 3:
|
|
1606
1606
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1607
|
-
return [3
|
|
1607
|
+
return [3, 19];
|
|
1608
1608
|
case 4:
|
|
1609
1609
|
_d = [{}];
|
|
1610
|
-
return [4
|
|
1610
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1611
1611
|
case 5:
|
|
1612
1612
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1613
|
-
return [3
|
|
1613
|
+
return [3, 19];
|
|
1614
1614
|
case 6:
|
|
1615
1615
|
_e = [{}];
|
|
1616
|
-
return [4
|
|
1616
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1617
1617
|
case 7:
|
|
1618
1618
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1619
|
-
return [3
|
|
1619
|
+
return [3, 19];
|
|
1620
1620
|
case 8:
|
|
1621
1621
|
_f = [{}];
|
|
1622
|
-
return [4
|
|
1622
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1623
1623
|
case 9:
|
|
1624
1624
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1625
|
-
return [3
|
|
1625
|
+
return [3, 19];
|
|
1626
1626
|
case 10:
|
|
1627
1627
|
_g = [{}];
|
|
1628
|
-
return [4
|
|
1628
|
+
return [4, deserializeAws_json1_1PolicyErrorExceptionResponse(parsedOutput, context)];
|
|
1629
1629
|
case 11:
|
|
1630
1630
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1631
|
-
return [3
|
|
1631
|
+
return [3, 19];
|
|
1632
1632
|
case 12:
|
|
1633
1633
|
_h = [{}];
|
|
1634
|
-
return [4
|
|
1634
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1635
1635
|
case 13:
|
|
1636
1636
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1637
|
-
return [3
|
|
1637
|
+
return [3, 19];
|
|
1638
1638
|
case 14:
|
|
1639
1639
|
_j = [{}];
|
|
1640
|
-
return [4
|
|
1640
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1641
1641
|
case 15:
|
|
1642
1642
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1643
|
-
return [3
|
|
1643
|
+
return [3, 19];
|
|
1644
1644
|
case 16:
|
|
1645
1645
|
_k = [{}];
|
|
1646
|
-
return [4
|
|
1646
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1647
1647
|
case 17:
|
|
1648
1648
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1649
|
-
return [3
|
|
1649
|
+
return [3, 19];
|
|
1650
1650
|
case 18:
|
|
1651
1651
|
parsedBody = parsedOutput.body;
|
|
1652
1652
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1656,7 +1656,7 @@ var deserializeAws_json1_1ListMigrationTasksCommandError = function (output, con
|
|
|
1656
1656
|
message = response.message || response.Message || errorCode;
|
|
1657
1657
|
response.message = message;
|
|
1658
1658
|
delete response.Message;
|
|
1659
|
-
return [2
|
|
1659
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1660
1660
|
}
|
|
1661
1661
|
});
|
|
1662
1662
|
}); };
|
|
@@ -1666,15 +1666,15 @@ export var deserializeAws_json1_1ListProgressUpdateStreamsCommand = function (ou
|
|
|
1666
1666
|
switch (_a.label) {
|
|
1667
1667
|
case 0:
|
|
1668
1668
|
if (output.statusCode >= 300) {
|
|
1669
|
-
return [2
|
|
1669
|
+
return [2, deserializeAws_json1_1ListProgressUpdateStreamsCommandError(output, context)];
|
|
1670
1670
|
}
|
|
1671
|
-
return [4
|
|
1671
|
+
return [4, parseBody(output.body, context)];
|
|
1672
1672
|
case 1:
|
|
1673
1673
|
data = _a.sent();
|
|
1674
1674
|
contents = {};
|
|
1675
1675
|
contents = deserializeAws_json1_1ListProgressUpdateStreamsResult(data, context);
|
|
1676
1676
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1677
|
-
return [2
|
|
1677
|
+
return [2, Promise.resolve(response)];
|
|
1678
1678
|
}
|
|
1679
1679
|
});
|
|
1680
1680
|
}); };
|
|
@@ -1686,63 +1686,63 @@ var deserializeAws_json1_1ListProgressUpdateStreamsCommandError = function (outp
|
|
|
1686
1686
|
case 0:
|
|
1687
1687
|
_a = [__assign({}, output)];
|
|
1688
1688
|
_j = {};
|
|
1689
|
-
return [4
|
|
1689
|
+
return [4, parseBody(output.body, context)];
|
|
1690
1690
|
case 1:
|
|
1691
1691
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1692
1692
|
errorCode = "UnknownError";
|
|
1693
1693
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
1694
|
_b = errorCode;
|
|
1695
1695
|
switch (_b) {
|
|
1696
|
-
case "AccessDeniedException": return [3
|
|
1697
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
1698
|
-
case "HomeRegionNotSetException": return [3
|
|
1699
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
1700
|
-
case "InternalServerError": return [3
|
|
1701
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
1702
|
-
case "InvalidInputException": return [3
|
|
1703
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
1704
|
-
case "ServiceUnavailableException": return [3
|
|
1705
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
1706
|
-
case "ThrottlingException": return [3
|
|
1707
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
1696
|
+
case "AccessDeniedException": return [3, 2];
|
|
1697
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
1698
|
+
case "HomeRegionNotSetException": return [3, 4];
|
|
1699
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 4];
|
|
1700
|
+
case "InternalServerError": return [3, 6];
|
|
1701
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 6];
|
|
1702
|
+
case "InvalidInputException": return [3, 8];
|
|
1703
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 8];
|
|
1704
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1705
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 10];
|
|
1706
|
+
case "ThrottlingException": return [3, 12];
|
|
1707
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 12];
|
|
1708
1708
|
}
|
|
1709
|
-
return [3
|
|
1709
|
+
return [3, 14];
|
|
1710
1710
|
case 2:
|
|
1711
1711
|
_c = [{}];
|
|
1712
|
-
return [4
|
|
1712
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1713
1713
|
case 3:
|
|
1714
1714
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1715
|
-
return [3
|
|
1715
|
+
return [3, 15];
|
|
1716
1716
|
case 4:
|
|
1717
1717
|
_d = [{}];
|
|
1718
|
-
return [4
|
|
1718
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1719
1719
|
case 5:
|
|
1720
1720
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1721
|
-
return [3
|
|
1721
|
+
return [3, 15];
|
|
1722
1722
|
case 6:
|
|
1723
1723
|
_e = [{}];
|
|
1724
|
-
return [4
|
|
1724
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1725
1725
|
case 7:
|
|
1726
1726
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1727
|
-
return [3
|
|
1727
|
+
return [3, 15];
|
|
1728
1728
|
case 8:
|
|
1729
1729
|
_f = [{}];
|
|
1730
|
-
return [4
|
|
1730
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1731
1731
|
case 9:
|
|
1732
1732
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1733
|
-
return [3
|
|
1733
|
+
return [3, 15];
|
|
1734
1734
|
case 10:
|
|
1735
1735
|
_g = [{}];
|
|
1736
|
-
return [4
|
|
1736
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1737
1737
|
case 11:
|
|
1738
1738
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1739
|
-
return [3
|
|
1739
|
+
return [3, 15];
|
|
1740
1740
|
case 12:
|
|
1741
1741
|
_h = [{}];
|
|
1742
|
-
return [4
|
|
1742
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1743
1743
|
case 13:
|
|
1744
1744
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1745
|
-
return [3
|
|
1745
|
+
return [3, 15];
|
|
1746
1746
|
case 14:
|
|
1747
1747
|
parsedBody = parsedOutput.body;
|
|
1748
1748
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1752,7 +1752,7 @@ var deserializeAws_json1_1ListProgressUpdateStreamsCommandError = function (outp
|
|
|
1752
1752
|
message = response.message || response.Message || errorCode;
|
|
1753
1753
|
response.message = message;
|
|
1754
1754
|
delete response.Message;
|
|
1755
|
-
return [2
|
|
1755
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1756
1756
|
}
|
|
1757
1757
|
});
|
|
1758
1758
|
}); };
|
|
@@ -1762,15 +1762,15 @@ export var deserializeAws_json1_1NotifyApplicationStateCommand = function (outpu
|
|
|
1762
1762
|
switch (_a.label) {
|
|
1763
1763
|
case 0:
|
|
1764
1764
|
if (output.statusCode >= 300) {
|
|
1765
|
-
return [2
|
|
1765
|
+
return [2, deserializeAws_json1_1NotifyApplicationStateCommandError(output, context)];
|
|
1766
1766
|
}
|
|
1767
|
-
return [4
|
|
1767
|
+
return [4, parseBody(output.body, context)];
|
|
1768
1768
|
case 1:
|
|
1769
1769
|
data = _a.sent();
|
|
1770
1770
|
contents = {};
|
|
1771
1771
|
contents = deserializeAws_json1_1NotifyApplicationStateResult(data, context);
|
|
1772
1772
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1773
|
-
return [2
|
|
1773
|
+
return [2, Promise.resolve(response)];
|
|
1774
1774
|
}
|
|
1775
1775
|
});
|
|
1776
1776
|
}); };
|
|
@@ -1782,95 +1782,95 @@ var deserializeAws_json1_1NotifyApplicationStateCommandError = function (output,
|
|
|
1782
1782
|
case 0:
|
|
1783
1783
|
_a = [__assign({}, output)];
|
|
1784
1784
|
_o = {};
|
|
1785
|
-
return [4
|
|
1785
|
+
return [4, parseBody(output.body, context)];
|
|
1786
1786
|
case 1:
|
|
1787
1787
|
parsedOutput = __assign.apply(void 0, _a.concat([(_o.body = _p.sent(), _o)]));
|
|
1788
1788
|
errorCode = "UnknownError";
|
|
1789
1789
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1790
1790
|
_b = errorCode;
|
|
1791
1791
|
switch (_b) {
|
|
1792
|
-
case "AccessDeniedException": return [3
|
|
1793
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
1794
|
-
case "DryRunOperation": return [3
|
|
1795
|
-
case "com.amazonaws.migrationhub#DryRunOperation": return [3
|
|
1796
|
-
case "HomeRegionNotSetException": return [3
|
|
1797
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
1798
|
-
case "InternalServerError": return [3
|
|
1799
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
1800
|
-
case "InvalidInputException": return [3
|
|
1801
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
1802
|
-
case "PolicyErrorException": return [3
|
|
1803
|
-
case "com.amazonaws.migrationhub#PolicyErrorException": return [3
|
|
1804
|
-
case "ResourceNotFoundException": return [3
|
|
1805
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3
|
|
1806
|
-
case "ServiceUnavailableException": return [3
|
|
1807
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
1808
|
-
case "ThrottlingException": return [3
|
|
1809
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
1810
|
-
case "UnauthorizedOperation": return [3
|
|
1811
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3
|
|
1792
|
+
case "AccessDeniedException": return [3, 2];
|
|
1793
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
1794
|
+
case "DryRunOperation": return [3, 4];
|
|
1795
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
1796
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
1797
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
1798
|
+
case "InternalServerError": return [3, 8];
|
|
1799
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
1800
|
+
case "InvalidInputException": return [3, 10];
|
|
1801
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
1802
|
+
case "PolicyErrorException": return [3, 12];
|
|
1803
|
+
case "com.amazonaws.migrationhub#PolicyErrorException": return [3, 12];
|
|
1804
|
+
case "ResourceNotFoundException": return [3, 14];
|
|
1805
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 14];
|
|
1806
|
+
case "ServiceUnavailableException": return [3, 16];
|
|
1807
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 16];
|
|
1808
|
+
case "ThrottlingException": return [3, 18];
|
|
1809
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 18];
|
|
1810
|
+
case "UnauthorizedOperation": return [3, 20];
|
|
1811
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 20];
|
|
1812
1812
|
}
|
|
1813
|
-
return [3
|
|
1813
|
+
return [3, 22];
|
|
1814
1814
|
case 2:
|
|
1815
1815
|
_c = [{}];
|
|
1816
|
-
return [4
|
|
1816
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1817
1817
|
case 3:
|
|
1818
1818
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1819
|
-
return [3
|
|
1819
|
+
return [3, 23];
|
|
1820
1820
|
case 4:
|
|
1821
1821
|
_d = [{}];
|
|
1822
|
-
return [4
|
|
1822
|
+
return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
1823
1823
|
case 5:
|
|
1824
1824
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1825
|
-
return [3
|
|
1825
|
+
return [3, 23];
|
|
1826
1826
|
case 6:
|
|
1827
1827
|
_e = [{}];
|
|
1828
|
-
return [4
|
|
1828
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1829
1829
|
case 7:
|
|
1830
1830
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1831
|
-
return [3
|
|
1831
|
+
return [3, 23];
|
|
1832
1832
|
case 8:
|
|
1833
1833
|
_f = [{}];
|
|
1834
|
-
return [4
|
|
1834
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1835
1835
|
case 9:
|
|
1836
1836
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1837
|
-
return [3
|
|
1837
|
+
return [3, 23];
|
|
1838
1838
|
case 10:
|
|
1839
1839
|
_g = [{}];
|
|
1840
|
-
return [4
|
|
1840
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1841
1841
|
case 11:
|
|
1842
1842
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1843
|
-
return [3
|
|
1843
|
+
return [3, 23];
|
|
1844
1844
|
case 12:
|
|
1845
1845
|
_h = [{}];
|
|
1846
|
-
return [4
|
|
1846
|
+
return [4, deserializeAws_json1_1PolicyErrorExceptionResponse(parsedOutput, context)];
|
|
1847
1847
|
case 13:
|
|
1848
1848
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1849
|
-
return [3
|
|
1849
|
+
return [3, 23];
|
|
1850
1850
|
case 14:
|
|
1851
1851
|
_j = [{}];
|
|
1852
|
-
return [4
|
|
1852
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1853
1853
|
case 15:
|
|
1854
1854
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1855
|
-
return [3
|
|
1855
|
+
return [3, 23];
|
|
1856
1856
|
case 16:
|
|
1857
1857
|
_k = [{}];
|
|
1858
|
-
return [4
|
|
1858
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1859
1859
|
case 17:
|
|
1860
1860
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1861
|
-
return [3
|
|
1861
|
+
return [3, 23];
|
|
1862
1862
|
case 18:
|
|
1863
1863
|
_l = [{}];
|
|
1864
|
-
return [4
|
|
1864
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1865
1865
|
case 19:
|
|
1866
1866
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1867
|
-
return [3
|
|
1867
|
+
return [3, 23];
|
|
1868
1868
|
case 20:
|
|
1869
1869
|
_m = [{}];
|
|
1870
|
-
return [4
|
|
1870
|
+
return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
1871
1871
|
case 21:
|
|
1872
1872
|
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1873
|
-
return [3
|
|
1873
|
+
return [3, 23];
|
|
1874
1874
|
case 22:
|
|
1875
1875
|
parsedBody = parsedOutput.body;
|
|
1876
1876
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1880,7 +1880,7 @@ var deserializeAws_json1_1NotifyApplicationStateCommandError = function (output,
|
|
|
1880
1880
|
message = response.message || response.Message || errorCode;
|
|
1881
1881
|
response.message = message;
|
|
1882
1882
|
delete response.Message;
|
|
1883
|
-
return [2
|
|
1883
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1884
1884
|
}
|
|
1885
1885
|
});
|
|
1886
1886
|
}); };
|
|
@@ -1890,15 +1890,15 @@ export var deserializeAws_json1_1NotifyMigrationTaskStateCommand = function (out
|
|
|
1890
1890
|
switch (_a.label) {
|
|
1891
1891
|
case 0:
|
|
1892
1892
|
if (output.statusCode >= 300) {
|
|
1893
|
-
return [2
|
|
1893
|
+
return [2, deserializeAws_json1_1NotifyMigrationTaskStateCommandError(output, context)];
|
|
1894
1894
|
}
|
|
1895
|
-
return [4
|
|
1895
|
+
return [4, parseBody(output.body, context)];
|
|
1896
1896
|
case 1:
|
|
1897
1897
|
data = _a.sent();
|
|
1898
1898
|
contents = {};
|
|
1899
1899
|
contents = deserializeAws_json1_1NotifyMigrationTaskStateResult(data, context);
|
|
1900
1900
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1901
|
-
return [2
|
|
1901
|
+
return [2, Promise.resolve(response)];
|
|
1902
1902
|
}
|
|
1903
1903
|
});
|
|
1904
1904
|
}); };
|
|
@@ -1910,87 +1910,87 @@ var deserializeAws_json1_1NotifyMigrationTaskStateCommandError = function (outpu
|
|
|
1910
1910
|
case 0:
|
|
1911
1911
|
_a = [__assign({}, output)];
|
|
1912
1912
|
_m = {};
|
|
1913
|
-
return [4
|
|
1913
|
+
return [4, parseBody(output.body, context)];
|
|
1914
1914
|
case 1:
|
|
1915
1915
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
1916
1916
|
errorCode = "UnknownError";
|
|
1917
1917
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1918
1918
|
_b = errorCode;
|
|
1919
1919
|
switch (_b) {
|
|
1920
|
-
case "AccessDeniedException": return [3
|
|
1921
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
1922
|
-
case "DryRunOperation": return [3
|
|
1923
|
-
case "com.amazonaws.migrationhub#DryRunOperation": return [3
|
|
1924
|
-
case "HomeRegionNotSetException": return [3
|
|
1925
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
1926
|
-
case "InternalServerError": return [3
|
|
1927
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
1928
|
-
case "InvalidInputException": return [3
|
|
1929
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
1930
|
-
case "ResourceNotFoundException": return [3
|
|
1931
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3
|
|
1932
|
-
case "ServiceUnavailableException": return [3
|
|
1933
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
1934
|
-
case "ThrottlingException": return [3
|
|
1935
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
1936
|
-
case "UnauthorizedOperation": return [3
|
|
1937
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3
|
|
1920
|
+
case "AccessDeniedException": return [3, 2];
|
|
1921
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
1922
|
+
case "DryRunOperation": return [3, 4];
|
|
1923
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
1924
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
1925
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
1926
|
+
case "InternalServerError": return [3, 8];
|
|
1927
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
1928
|
+
case "InvalidInputException": return [3, 10];
|
|
1929
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
1930
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1931
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
1932
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
1933
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
1934
|
+
case "ThrottlingException": return [3, 16];
|
|
1935
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
1936
|
+
case "UnauthorizedOperation": return [3, 18];
|
|
1937
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 18];
|
|
1938
1938
|
}
|
|
1939
|
-
return [3
|
|
1939
|
+
return [3, 20];
|
|
1940
1940
|
case 2:
|
|
1941
1941
|
_c = [{}];
|
|
1942
|
-
return [4
|
|
1942
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1943
1943
|
case 3:
|
|
1944
1944
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1945
|
-
return [3
|
|
1945
|
+
return [3, 21];
|
|
1946
1946
|
case 4:
|
|
1947
1947
|
_d = [{}];
|
|
1948
|
-
return [4
|
|
1948
|
+
return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
1949
1949
|
case 5:
|
|
1950
1950
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1951
|
-
return [3
|
|
1951
|
+
return [3, 21];
|
|
1952
1952
|
case 6:
|
|
1953
1953
|
_e = [{}];
|
|
1954
|
-
return [4
|
|
1954
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1955
1955
|
case 7:
|
|
1956
1956
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1957
|
-
return [3
|
|
1957
|
+
return [3, 21];
|
|
1958
1958
|
case 8:
|
|
1959
1959
|
_f = [{}];
|
|
1960
|
-
return [4
|
|
1960
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1961
1961
|
case 9:
|
|
1962
1962
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1963
|
-
return [3
|
|
1963
|
+
return [3, 21];
|
|
1964
1964
|
case 10:
|
|
1965
1965
|
_g = [{}];
|
|
1966
|
-
return [4
|
|
1966
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1967
1967
|
case 11:
|
|
1968
1968
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1969
|
-
return [3
|
|
1969
|
+
return [3, 21];
|
|
1970
1970
|
case 12:
|
|
1971
1971
|
_h = [{}];
|
|
1972
|
-
return [4
|
|
1972
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1973
1973
|
case 13:
|
|
1974
1974
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1975
|
-
return [3
|
|
1975
|
+
return [3, 21];
|
|
1976
1976
|
case 14:
|
|
1977
1977
|
_j = [{}];
|
|
1978
|
-
return [4
|
|
1978
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1979
1979
|
case 15:
|
|
1980
1980
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1981
|
-
return [3
|
|
1981
|
+
return [3, 21];
|
|
1982
1982
|
case 16:
|
|
1983
1983
|
_k = [{}];
|
|
1984
|
-
return [4
|
|
1984
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1985
1985
|
case 17:
|
|
1986
1986
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1987
|
-
return [3
|
|
1987
|
+
return [3, 21];
|
|
1988
1988
|
case 18:
|
|
1989
1989
|
_l = [{}];
|
|
1990
|
-
return [4
|
|
1990
|
+
return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
1991
1991
|
case 19:
|
|
1992
1992
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1993
|
-
return [3
|
|
1993
|
+
return [3, 21];
|
|
1994
1994
|
case 20:
|
|
1995
1995
|
parsedBody = parsedOutput.body;
|
|
1996
1996
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2000,7 +2000,7 @@ var deserializeAws_json1_1NotifyMigrationTaskStateCommandError = function (outpu
|
|
|
2000
2000
|
message = response.message || response.Message || errorCode;
|
|
2001
2001
|
response.message = message;
|
|
2002
2002
|
delete response.Message;
|
|
2003
|
-
return [2
|
|
2003
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2004
2004
|
}
|
|
2005
2005
|
});
|
|
2006
2006
|
}); };
|
|
@@ -2010,15 +2010,15 @@ export var deserializeAws_json1_1PutResourceAttributesCommand = function (output
|
|
|
2010
2010
|
switch (_a.label) {
|
|
2011
2011
|
case 0:
|
|
2012
2012
|
if (output.statusCode >= 300) {
|
|
2013
|
-
return [2
|
|
2013
|
+
return [2, deserializeAws_json1_1PutResourceAttributesCommandError(output, context)];
|
|
2014
2014
|
}
|
|
2015
|
-
return [4
|
|
2015
|
+
return [4, parseBody(output.body, context)];
|
|
2016
2016
|
case 1:
|
|
2017
2017
|
data = _a.sent();
|
|
2018
2018
|
contents = {};
|
|
2019
2019
|
contents = deserializeAws_json1_1PutResourceAttributesResult(data, context);
|
|
2020
2020
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2021
|
-
return [2
|
|
2021
|
+
return [2, Promise.resolve(response)];
|
|
2022
2022
|
}
|
|
2023
2023
|
});
|
|
2024
2024
|
}); };
|
|
@@ -2030,87 +2030,87 @@ var deserializeAws_json1_1PutResourceAttributesCommandError = function (output,
|
|
|
2030
2030
|
case 0:
|
|
2031
2031
|
_a = [__assign({}, output)];
|
|
2032
2032
|
_m = {};
|
|
2033
|
-
return [4
|
|
2033
|
+
return [4, parseBody(output.body, context)];
|
|
2034
2034
|
case 1:
|
|
2035
2035
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
2036
2036
|
errorCode = "UnknownError";
|
|
2037
2037
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
2038
|
_b = errorCode;
|
|
2039
2039
|
switch (_b) {
|
|
2040
|
-
case "AccessDeniedException": return [3
|
|
2041
|
-
case "com.amazonaws.migrationhub#AccessDeniedException": return [3
|
|
2042
|
-
case "DryRunOperation": return [3
|
|
2043
|
-
case "com.amazonaws.migrationhub#DryRunOperation": return [3
|
|
2044
|
-
case "HomeRegionNotSetException": return [3
|
|
2045
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3
|
|
2046
|
-
case "InternalServerError": return [3
|
|
2047
|
-
case "com.amazonaws.migrationhub#InternalServerError": return [3
|
|
2048
|
-
case "InvalidInputException": return [3
|
|
2049
|
-
case "com.amazonaws.migrationhub#InvalidInputException": return [3
|
|
2050
|
-
case "ResourceNotFoundException": return [3
|
|
2051
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3
|
|
2052
|
-
case "ServiceUnavailableException": return [3
|
|
2053
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3
|
|
2054
|
-
case "ThrottlingException": return [3
|
|
2055
|
-
case "com.amazonaws.migrationhub#ThrottlingException": return [3
|
|
2056
|
-
case "UnauthorizedOperation": return [3
|
|
2057
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3
|
|
2040
|
+
case "AccessDeniedException": return [3, 2];
|
|
2041
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
2042
|
+
case "DryRunOperation": return [3, 4];
|
|
2043
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
2044
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
2045
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
2046
|
+
case "InternalServerError": return [3, 8];
|
|
2047
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
2048
|
+
case "InvalidInputException": return [3, 10];
|
|
2049
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
2050
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
2051
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
2052
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
2053
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
2054
|
+
case "ThrottlingException": return [3, 16];
|
|
2055
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
2056
|
+
case "UnauthorizedOperation": return [3, 18];
|
|
2057
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 18];
|
|
2058
2058
|
}
|
|
2059
|
-
return [3
|
|
2059
|
+
return [3, 20];
|
|
2060
2060
|
case 2:
|
|
2061
2061
|
_c = [{}];
|
|
2062
|
-
return [4
|
|
2062
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2063
2063
|
case 3:
|
|
2064
2064
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2065
|
-
return [3
|
|
2065
|
+
return [3, 21];
|
|
2066
2066
|
case 4:
|
|
2067
2067
|
_d = [{}];
|
|
2068
|
-
return [4
|
|
2068
|
+
return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
2069
2069
|
case 5:
|
|
2070
2070
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2071
|
-
return [3
|
|
2071
|
+
return [3, 21];
|
|
2072
2072
|
case 6:
|
|
2073
2073
|
_e = [{}];
|
|
2074
|
-
return [4
|
|
2074
|
+
return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
2075
2075
|
case 7:
|
|
2076
2076
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2077
|
-
return [3
|
|
2077
|
+
return [3, 21];
|
|
2078
2078
|
case 8:
|
|
2079
2079
|
_f = [{}];
|
|
2080
|
-
return [4
|
|
2080
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
2081
2081
|
case 9:
|
|
2082
2082
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2083
|
-
return [3
|
|
2083
|
+
return [3, 21];
|
|
2084
2084
|
case 10:
|
|
2085
2085
|
_g = [{}];
|
|
2086
|
-
return [4
|
|
2086
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2087
2087
|
case 11:
|
|
2088
2088
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2089
|
-
return [3
|
|
2089
|
+
return [3, 21];
|
|
2090
2090
|
case 12:
|
|
2091
2091
|
_h = [{}];
|
|
2092
|
-
return [4
|
|
2092
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2093
2093
|
case 13:
|
|
2094
2094
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2095
|
-
return [3
|
|
2095
|
+
return [3, 21];
|
|
2096
2096
|
case 14:
|
|
2097
2097
|
_j = [{}];
|
|
2098
|
-
return [4
|
|
2098
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2099
2099
|
case 15:
|
|
2100
2100
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2101
|
-
return [3
|
|
2101
|
+
return [3, 21];
|
|
2102
2102
|
case 16:
|
|
2103
2103
|
_k = [{}];
|
|
2104
|
-
return [4
|
|
2104
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2105
2105
|
case 17:
|
|
2106
2106
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2107
|
-
return [3
|
|
2107
|
+
return [3, 21];
|
|
2108
2108
|
case 18:
|
|
2109
2109
|
_l = [{}];
|
|
2110
|
-
return [4
|
|
2110
|
+
return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
2111
2111
|
case 19:
|
|
2112
2112
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2113
|
-
return [3
|
|
2113
|
+
return [3, 21];
|
|
2114
2114
|
case 20:
|
|
2115
2115
|
parsedBody = parsedOutput.body;
|
|
2116
2116
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2120,7 +2120,7 @@ var deserializeAws_json1_1PutResourceAttributesCommandError = function (output,
|
|
|
2120
2120
|
message = response.message || response.Message || errorCode;
|
|
2121
2121
|
response.message = message;
|
|
2122
2122
|
delete response.Message;
|
|
2123
|
-
return [2
|
|
2123
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2124
2124
|
}
|
|
2125
2125
|
});
|
|
2126
2126
|
}); };
|
|
@@ -2130,7 +2130,7 @@ var deserializeAws_json1_1AccessDeniedExceptionResponse = function (parsedOutput
|
|
|
2130
2130
|
body = parsedOutput.body;
|
|
2131
2131
|
deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
2132
2132
|
contents = __assign({ name: "AccessDeniedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2133
|
-
return [2
|
|
2133
|
+
return [2, contents];
|
|
2134
2134
|
});
|
|
2135
2135
|
}); };
|
|
2136
2136
|
var deserializeAws_json1_1DryRunOperationResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2139,7 +2139,7 @@ var deserializeAws_json1_1DryRunOperationResponse = function (parsedOutput, cont
|
|
|
2139
2139
|
body = parsedOutput.body;
|
|
2140
2140
|
deserialized = deserializeAws_json1_1DryRunOperation(body, context);
|
|
2141
2141
|
contents = __assign({ name: "DryRunOperation", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2142
|
-
return [2
|
|
2142
|
+
return [2, contents];
|
|
2143
2143
|
});
|
|
2144
2144
|
}); };
|
|
2145
2145
|
var deserializeAws_json1_1HomeRegionNotSetExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2148,7 +2148,7 @@ var deserializeAws_json1_1HomeRegionNotSetExceptionResponse = function (parsedOu
|
|
|
2148
2148
|
body = parsedOutput.body;
|
|
2149
2149
|
deserialized = deserializeAws_json1_1HomeRegionNotSetException(body, context);
|
|
2150
2150
|
contents = __assign({ name: "HomeRegionNotSetException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2151
|
-
return [2
|
|
2151
|
+
return [2, contents];
|
|
2152
2152
|
});
|
|
2153
2153
|
}); };
|
|
2154
2154
|
var deserializeAws_json1_1InternalServerErrorResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2157,7 +2157,7 @@ var deserializeAws_json1_1InternalServerErrorResponse = function (parsedOutput,
|
|
|
2157
2157
|
body = parsedOutput.body;
|
|
2158
2158
|
deserialized = deserializeAws_json1_1InternalServerError(body, context);
|
|
2159
2159
|
contents = __assign({ name: "InternalServerError", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2160
|
-
return [2
|
|
2160
|
+
return [2, contents];
|
|
2161
2161
|
});
|
|
2162
2162
|
}); };
|
|
2163
2163
|
var deserializeAws_json1_1InvalidInputExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2166,7 +2166,7 @@ var deserializeAws_json1_1InvalidInputExceptionResponse = function (parsedOutput
|
|
|
2166
2166
|
body = parsedOutput.body;
|
|
2167
2167
|
deserialized = deserializeAws_json1_1InvalidInputException(body, context);
|
|
2168
2168
|
contents = __assign({ name: "InvalidInputException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2169
|
-
return [2
|
|
2169
|
+
return [2, contents];
|
|
2170
2170
|
});
|
|
2171
2171
|
}); };
|
|
2172
2172
|
var deserializeAws_json1_1PolicyErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2175,7 +2175,7 @@ var deserializeAws_json1_1PolicyErrorExceptionResponse = function (parsedOutput,
|
|
|
2175
2175
|
body = parsedOutput.body;
|
|
2176
2176
|
deserialized = deserializeAws_json1_1PolicyErrorException(body, context);
|
|
2177
2177
|
contents = __assign({ name: "PolicyErrorException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2178
|
-
return [2
|
|
2178
|
+
return [2, contents];
|
|
2179
2179
|
});
|
|
2180
2180
|
}); };
|
|
2181
2181
|
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2184,7 +2184,7 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
2184
2184
|
body = parsedOutput.body;
|
|
2185
2185
|
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2186
2186
|
contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2187
|
-
return [2
|
|
2187
|
+
return [2, contents];
|
|
2188
2188
|
});
|
|
2189
2189
|
}); };
|
|
2190
2190
|
var deserializeAws_json1_1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2193,7 +2193,7 @@ var deserializeAws_json1_1ServiceUnavailableExceptionResponse = function (parsed
|
|
|
2193
2193
|
body = parsedOutput.body;
|
|
2194
2194
|
deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
|
|
2195
2195
|
contents = __assign({ name: "ServiceUnavailableException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2196
|
-
return [2
|
|
2196
|
+
return [2, contents];
|
|
2197
2197
|
});
|
|
2198
2198
|
}); };
|
|
2199
2199
|
var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2202,7 +2202,7 @@ var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput,
|
|
|
2202
2202
|
body = parsedOutput.body;
|
|
2203
2203
|
deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
2204
2204
|
contents = __assign({ name: "ThrottlingException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2205
|
-
return [2
|
|
2205
|
+
return [2, contents];
|
|
2206
2206
|
});
|
|
2207
2207
|
}); };
|
|
2208
2208
|
var deserializeAws_json1_1UnauthorizedOperationResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2211,7 +2211,7 @@ var deserializeAws_json1_1UnauthorizedOperationResponse = function (parsedOutput
|
|
|
2211
2211
|
body = parsedOutput.body;
|
|
2212
2212
|
deserialized = deserializeAws_json1_1UnauthorizedOperation(body, context);
|
|
2213
2213
|
contents = __assign({ name: "UnauthorizedOperation", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2214
|
-
return [2
|
|
2214
|
+
return [2, contents];
|
|
2215
2215
|
});
|
|
2216
2216
|
}); };
|
|
2217
2217
|
var serializeAws_json1_1ApplicationIds = function (input, context) {
|
|
@@ -2607,7 +2607,6 @@ var deserializeMetadata = function (output) {
|
|
|
2607
2607
|
cfId: output.headers["x-amz-cf-id"],
|
|
2608
2608
|
});
|
|
2609
2609
|
};
|
|
2610
|
-
// Collect low-level response body stream to Uint8Array.
|
|
2611
2610
|
var collectBody = function (streamBody, context) {
|
|
2612
2611
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2613
2612
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -2615,7 +2614,6 @@ var collectBody = function (streamBody, context) {
|
|
|
2615
2614
|
}
|
|
2616
2615
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2617
2616
|
};
|
|
2618
|
-
// Encode Uint8Array data into string with utf-8.
|
|
2619
2617
|
var collectBodyString = function (streamBody, context) {
|
|
2620
2618
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2621
2619
|
};
|
|
@@ -2623,7 +2621,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
2623
2621
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
2624
2622
|
return __generator(this, function (_c) {
|
|
2625
2623
|
switch (_c.label) {
|
|
2626
|
-
case 0: return [4
|
|
2624
|
+
case 0: return [4, context.endpoint()];
|
|
2627
2625
|
case 1:
|
|
2628
2626
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2629
2627
|
contents = {
|
|
@@ -2640,7 +2638,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
2640
2638
|
if (body !== undefined) {
|
|
2641
2639
|
contents.body = body;
|
|
2642
2640
|
}
|
|
2643
|
-
return [2
|
|
2641
|
+
return [2, new __HttpRequest(contents)];
|
|
2644
2642
|
}
|
|
2645
2643
|
});
|
|
2646
2644
|
}); };
|
|
@@ -2652,9 +2650,6 @@ var parseBody = function (streamBody, context) {
|
|
|
2652
2650
|
return {};
|
|
2653
2651
|
});
|
|
2654
2652
|
};
|
|
2655
|
-
/**
|
|
2656
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
2657
|
-
*/
|
|
2658
2653
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2659
2654
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2660
2655
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -2679,4 +2674,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2679
2674
|
}
|
|
2680
2675
|
return "";
|
|
2681
2676
|
};
|
|
2682
|
-
//# sourceMappingURL=Aws_json1_1.js.map
|