@aws-sdk/client-migration-hub 3.35.0 → 3.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/MigrationHub.js +0 -9
- package/dist-cjs/MigrationHubClient.js +0 -14
- package/dist-cjs/commands/AssociateCreatedArtifactCommand.js +0 -42
- package/dist-cjs/commands/AssociateDiscoveredResourceCommand.js +0 -26
- package/dist-cjs/commands/CreateProgressUpdateStreamCommand.js +0 -29
- package/dist-cjs/commands/DeleteProgressUpdateStreamCommand.js +0 -55
- package/dist-cjs/commands/DescribeApplicationStateCommand.js +0 -25
- package/dist-cjs/commands/DescribeMigrationTaskCommand.js +0 -25
- package/dist-cjs/commands/DisassociateCreatedArtifactCommand.js +0 -41
- package/dist-cjs/commands/DisassociateDiscoveredResourceCommand.js +0 -26
- package/dist-cjs/commands/ImportMigrationTaskCommand.js +0 -28
- package/dist-cjs/commands/ListApplicationStatesCommand.js +0 -27
- package/dist-cjs/commands/ListCreatedArtifactsCommand.js +0 -39
- package/dist-cjs/commands/ListDiscoveredResourcesCommand.js +0 -25
- package/dist-cjs/commands/ListMigrationTasksCommand.js +0 -38
- package/dist-cjs/commands/ListProgressUpdateStreamsCommand.js +0 -25
- package/dist-cjs/commands/NotifyApplicationStateCommand.js +0 -28
- package/dist-cjs/commands/NotifyMigrationTaskStateCommand.js +0 -42
- package/dist-cjs/commands/PutResourceAttributesCommand.js +0 -50
- package/dist-cjs/commands/index.js +20 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -26
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -157
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListApplicationStatesPaginator.js +0 -11
- package/dist-cjs/pagination/ListCreatedArtifactsPaginator.js +0 -11
- package/dist-cjs/pagination/ListDiscoveredResourcesPaginator.js +0 -11
- package/dist-cjs/pagination/ListMigrationTasksPaginator.js +0 -11
- package/dist-cjs/pagination/ListProgressUpdateStreamsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/MigrationHub.js +0 -1
- package/dist-es/MigrationHubClient.js +0 -1
- package/dist-es/commands/AssociateCreatedArtifactCommand.js +0 -1
- package/dist-es/commands/AssociateDiscoveredResourceCommand.js +0 -1
- package/dist-es/commands/CreateProgressUpdateStreamCommand.js +0 -1
- package/dist-es/commands/DeleteProgressUpdateStreamCommand.js +0 -1
- package/dist-es/commands/DescribeApplicationStateCommand.js +0 -1
- package/dist-es/commands/DescribeMigrationTaskCommand.js +0 -1
- package/dist-es/commands/DisassociateCreatedArtifactCommand.js +0 -1
- package/dist-es/commands/DisassociateDiscoveredResourceCommand.js +0 -1
- package/dist-es/commands/ImportMigrationTaskCommand.js +0 -1
- package/dist-es/commands/ListApplicationStatesCommand.js +0 -1
- package/dist-es/commands/ListCreatedArtifactsCommand.js +0 -1
- package/dist-es/commands/ListDiscoveredResourcesCommand.js +0 -1
- package/dist-es/commands/ListMigrationTasksCommand.js +0 -1
- package/dist-es/commands/ListProgressUpdateStreamsCommand.js +0 -1
- package/dist-es/commands/NotifyApplicationStateCommand.js +0 -1
- package/dist-es/commands/NotifyMigrationTaskStateCommand.js +0 -1
- package/dist-es/commands/PutResourceAttributesCommand.js +0 -1
- package/dist-es/commands/index.js +17 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -26
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListApplicationStatesPaginator.js +0 -1
- package/dist-es/pagination/ListCreatedArtifactsPaginator.js +0 -1
- package/dist-es/pagination/ListDiscoveredResourcesPaginator.js +0 -1
- package/dist-es/pagination/ListMigrationTasksPaginator.js +0 -1
- package/dist-es/pagination/ListProgressUpdateStreamsPaginator.js +0 -1
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +17 -0
- package/dist-types/index.d.ts +4 -25
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/MigrationHub.d.ts +18 -205
- package/dist-types/ts3.4/MigrationHubClient.d.ts +24 -94
- package/dist-types/ts3.4/commands/AssociateCreatedArtifactCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/AssociateDiscoveredResourceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/CreateProgressUpdateStreamCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DeleteProgressUpdateStreamCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/DescribeApplicationStateCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeMigrationTaskCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DisassociateCreatedArtifactCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/DisassociateDiscoveredResourceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ImportMigrationTaskCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ListApplicationStatesCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ListCreatedArtifactsCommand.d.ts +2 -34
- package/dist-types/ts3.4/commands/ListDiscoveredResourcesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListMigrationTasksCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/ListProgressUpdateStreamsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/NotifyApplicationStateCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/NotifyMigrationTaskStateCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/PutResourceAttributesCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/index.d.ts +17 -0
- package/dist-types/ts3.4/index.d.ts +4 -25
- package/dist-types/ts3.4/models/models_0.d.ts +165 -648
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/MigrationHub.js.map +0 -1
- package/dist-cjs/MigrationHubClient.js.map +0 -1
- 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.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.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.map +0 -1
- 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/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.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.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.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.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- 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/jest.config.js +0 -4
- package/src/MigrationHub.ts +0 -788
- package/src/MigrationHubClient.ts +0 -340
- package/src/commands/AssociateCreatedArtifactCommand.ts +0 -112
- package/src/commands/AssociateDiscoveredResourceCommand.ts +0 -99
- package/src/commands/CreateProgressUpdateStreamCommand.ts +0 -102
- package/src/commands/DeleteProgressUpdateStreamCommand.ts +0 -128
- package/src/commands/DescribeApplicationStateCommand.ts +0 -95
- package/src/commands/DescribeMigrationTaskCommand.ts +0 -95
- package/src/commands/DisassociateCreatedArtifactCommand.ts +0 -114
- package/src/commands/DisassociateDiscoveredResourceCommand.ts +0 -104
- package/src/commands/ImportMigrationTaskCommand.ts +0 -98
- package/src/commands/ListApplicationStatesCommand.ts +0 -97
- package/src/commands/ListCreatedArtifactsCommand.ts +0 -109
- package/src/commands/ListDiscoveredResourcesCommand.ts +0 -95
- package/src/commands/ListMigrationTasksCommand.ts +0 -108
- package/src/commands/ListProgressUpdateStreamsCommand.ts +0 -98
- package/src/commands/NotifyApplicationStateCommand.ts +0 -98
- package/src/commands/NotifyMigrationTaskStateCommand.ts +0 -112
- package/src/commands/PutResourceAttributesCommand.ts +0 -120
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -26
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -1319
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListApplicationStatesPaginator.ts +0 -59
- package/src/pagination/ListCreatedArtifactsPaginator.ts +0 -59
- package/src/pagination/ListDiscoveredResourcesPaginator.ts +0 -59
- package/src/pagination/ListMigrationTasksPaginator.ts +0 -59
- package/src/pagination/ListProgressUpdateStreamsPaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -3163
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
|
|
15
|
-
import { DeleteProgressUpdateStreamRequest, DeleteProgressUpdateStreamResult } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DeleteProgressUpdateStreamCommand,
|
|
18
|
-
serializeAws_json1_1DeleteProgressUpdateStreamCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DeleteProgressUpdateStreamCommandInput extends DeleteProgressUpdateStreamRequest {}
|
|
22
|
-
export interface DeleteProgressUpdateStreamCommandOutput extends DeleteProgressUpdateStreamResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes a progress update stream, including all of its tasks, which was previously
|
|
26
|
-
* created as an AWS resource used for access control. This API has the following
|
|
27
|
-
* traits:</p>
|
|
28
|
-
* <ul>
|
|
29
|
-
* <li>
|
|
30
|
-
* <p>The only parameter needed for <code>DeleteProgressUpdateStream</code> is the
|
|
31
|
-
* stream name (same as a <code>CreateProgressUpdateStream</code> call).</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>The call will return, and a background process will asynchronously delete the
|
|
35
|
-
* stream and all of its resources (tasks, associated resources, resource attributes,
|
|
36
|
-
* created artifacts).</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>If the stream takes time to be deleted, it might still show up on a
|
|
40
|
-
* <code>ListProgressUpdateStreams</code> call.</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* <li>
|
|
43
|
-
* <p>
|
|
44
|
-
* <code>CreateProgressUpdateStream</code>, <code>ImportMigrationTask</code>,
|
|
45
|
-
* <code>NotifyMigrationTaskState</code>, and all Associate[*] APIs related to the
|
|
46
|
-
* tasks belonging to the stream will throw "InvalidInputException" if the stream of the
|
|
47
|
-
* same name is in the process of being deleted.</p>
|
|
48
|
-
* </li>
|
|
49
|
-
* <li>
|
|
50
|
-
* <p>Once the stream and all of its resources are deleted,
|
|
51
|
-
* <code>CreateProgressUpdateStream</code> for a stream of the same name will
|
|
52
|
-
* succeed, and that stream will be an entirely new logical resource (without any
|
|
53
|
-
* resources associated with the old stream).</p>
|
|
54
|
-
* </li>
|
|
55
|
-
* </ul>
|
|
56
|
-
* @example
|
|
57
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
58
|
-
* ```javascript
|
|
59
|
-
* import { MigrationHubClient, DeleteProgressUpdateStreamCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
|
|
60
|
-
* // const { MigrationHubClient, DeleteProgressUpdateStreamCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
|
|
61
|
-
* const client = new MigrationHubClient(config);
|
|
62
|
-
* const command = new DeleteProgressUpdateStreamCommand(input);
|
|
63
|
-
* const response = await client.send(command);
|
|
64
|
-
* ```
|
|
65
|
-
*
|
|
66
|
-
* @see {@link DeleteProgressUpdateStreamCommandInput} for command's `input` shape.
|
|
67
|
-
* @see {@link DeleteProgressUpdateStreamCommandOutput} for command's `response` shape.
|
|
68
|
-
* @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
|
|
69
|
-
*
|
|
70
|
-
*/
|
|
71
|
-
export class DeleteProgressUpdateStreamCommand extends $Command<
|
|
72
|
-
DeleteProgressUpdateStreamCommandInput,
|
|
73
|
-
DeleteProgressUpdateStreamCommandOutput,
|
|
74
|
-
MigrationHubClientResolvedConfig
|
|
75
|
-
> {
|
|
76
|
-
// Start section: command_properties
|
|
77
|
-
// End section: command_properties
|
|
78
|
-
|
|
79
|
-
constructor(readonly input: DeleteProgressUpdateStreamCommandInput) {
|
|
80
|
-
// Start section: command_constructor
|
|
81
|
-
super();
|
|
82
|
-
// End section: command_constructor
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
resolveMiddleware(
|
|
89
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
90
|
-
configuration: MigrationHubClientResolvedConfig,
|
|
91
|
-
options?: __HttpHandlerOptions
|
|
92
|
-
): Handler<DeleteProgressUpdateStreamCommandInput, DeleteProgressUpdateStreamCommandOutput> {
|
|
93
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
94
|
-
|
|
95
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
96
|
-
|
|
97
|
-
const { logger } = configuration;
|
|
98
|
-
const clientName = "MigrationHubClient";
|
|
99
|
-
const commandName = "DeleteProgressUpdateStreamCommand";
|
|
100
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
101
|
-
logger,
|
|
102
|
-
clientName,
|
|
103
|
-
commandName,
|
|
104
|
-
inputFilterSensitiveLog: DeleteProgressUpdateStreamRequest.filterSensitiveLog,
|
|
105
|
-
outputFilterSensitiveLog: DeleteProgressUpdateStreamResult.filterSensitiveLog,
|
|
106
|
-
};
|
|
107
|
-
const { requestHandler } = configuration;
|
|
108
|
-
return stack.resolve(
|
|
109
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
110
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
111
|
-
handlerExecutionContext
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
private serialize(input: DeleteProgressUpdateStreamCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
116
|
-
return serializeAws_json1_1DeleteProgressUpdateStreamCommand(input, context);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
private deserialize(
|
|
120
|
-
output: __HttpResponse,
|
|
121
|
-
context: __SerdeContext
|
|
122
|
-
): Promise<DeleteProgressUpdateStreamCommandOutput> {
|
|
123
|
-
return deserializeAws_json1_1DeleteProgressUpdateStreamCommand(output, context);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// Start section: command_body_extra
|
|
127
|
-
// End section: command_body_extra
|
|
128
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
|
|
15
|
-
import { DescribeApplicationStateRequest, DescribeApplicationStateResult } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DescribeApplicationStateCommand,
|
|
18
|
-
serializeAws_json1_1DescribeApplicationStateCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DescribeApplicationStateCommandInput extends DescribeApplicationStateRequest {}
|
|
22
|
-
export interface DescribeApplicationStateCommandOutput extends DescribeApplicationStateResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Gets the migration status of an application.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MigrationHubClient, DescribeApplicationStateCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
|
|
30
|
-
* // const { MigrationHubClient, DescribeApplicationStateCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
|
|
31
|
-
* const client = new MigrationHubClient(config);
|
|
32
|
-
* const command = new DescribeApplicationStateCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DescribeApplicationStateCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DescribeApplicationStateCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DescribeApplicationStateCommand extends $Command<
|
|
42
|
-
DescribeApplicationStateCommandInput,
|
|
43
|
-
DescribeApplicationStateCommandOutput,
|
|
44
|
-
MigrationHubClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DescribeApplicationStateCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: MigrationHubClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<DescribeApplicationStateCommandInput, DescribeApplicationStateCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "MigrationHubClient";
|
|
69
|
-
const commandName = "DescribeApplicationStateCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DescribeApplicationStateRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: DescribeApplicationStateResult.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: DescribeApplicationStateCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1DescribeApplicationStateCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeApplicationStateCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1DescribeApplicationStateCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
|
|
15
|
-
import { DescribeMigrationTaskRequest, DescribeMigrationTaskResult } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DescribeMigrationTaskCommand,
|
|
18
|
-
serializeAws_json1_1DescribeMigrationTaskCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DescribeMigrationTaskCommandInput extends DescribeMigrationTaskRequest {}
|
|
22
|
-
export interface DescribeMigrationTaskCommandOutput extends DescribeMigrationTaskResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves a list of all attributes associated with a specific migration task.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MigrationHubClient, DescribeMigrationTaskCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
|
|
30
|
-
* // const { MigrationHubClient, DescribeMigrationTaskCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
|
|
31
|
-
* const client = new MigrationHubClient(config);
|
|
32
|
-
* const command = new DescribeMigrationTaskCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DescribeMigrationTaskCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DescribeMigrationTaskCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DescribeMigrationTaskCommand extends $Command<
|
|
42
|
-
DescribeMigrationTaskCommandInput,
|
|
43
|
-
DescribeMigrationTaskCommandOutput,
|
|
44
|
-
MigrationHubClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DescribeMigrationTaskCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: MigrationHubClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<DescribeMigrationTaskCommandInput, DescribeMigrationTaskCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "MigrationHubClient";
|
|
69
|
-
const commandName = "DescribeMigrationTaskCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DescribeMigrationTaskRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: DescribeMigrationTaskResult.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: DescribeMigrationTaskCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1DescribeMigrationTaskCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeMigrationTaskCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1DescribeMigrationTaskCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
|
|
15
|
-
import { DisassociateCreatedArtifactRequest, DisassociateCreatedArtifactResult } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DisassociateCreatedArtifactCommand,
|
|
18
|
-
serializeAws_json1_1DisassociateCreatedArtifactCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DisassociateCreatedArtifactCommandInput extends DisassociateCreatedArtifactRequest {}
|
|
22
|
-
export interface DisassociateCreatedArtifactCommandOutput extends DisassociateCreatedArtifactResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Disassociates a created artifact of an AWS resource with a migration task performed by a
|
|
26
|
-
* migration tool that was previously associated. This API has the following traits:</p>
|
|
27
|
-
* <ul>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>A migration user can call the <code>DisassociateCreatedArtifacts</code> operation
|
|
30
|
-
* to disassociate a created AWS Artifact from a migration task.</p>
|
|
31
|
-
* </li>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>The created artifact name must be provided in ARN (Amazon Resource Name) format
|
|
34
|
-
* which will contain information about type and region; for example:
|
|
35
|
-
* <code>arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b</code>.</p>
|
|
36
|
-
* </li>
|
|
37
|
-
* <li>
|
|
38
|
-
* <p>Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance,
|
|
39
|
-
* or RDS instance, etc.</p>
|
|
40
|
-
* </li>
|
|
41
|
-
* </ul>
|
|
42
|
-
* @example
|
|
43
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
44
|
-
* ```javascript
|
|
45
|
-
* import { MigrationHubClient, DisassociateCreatedArtifactCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
|
|
46
|
-
* // const { MigrationHubClient, DisassociateCreatedArtifactCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
|
|
47
|
-
* const client = new MigrationHubClient(config);
|
|
48
|
-
* const command = new DisassociateCreatedArtifactCommand(input);
|
|
49
|
-
* const response = await client.send(command);
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* @see {@link DisassociateCreatedArtifactCommandInput} for command's `input` shape.
|
|
53
|
-
* @see {@link DisassociateCreatedArtifactCommandOutput} for command's `response` shape.
|
|
54
|
-
* @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
|
|
55
|
-
*
|
|
56
|
-
*/
|
|
57
|
-
export class DisassociateCreatedArtifactCommand extends $Command<
|
|
58
|
-
DisassociateCreatedArtifactCommandInput,
|
|
59
|
-
DisassociateCreatedArtifactCommandOutput,
|
|
60
|
-
MigrationHubClientResolvedConfig
|
|
61
|
-
> {
|
|
62
|
-
// Start section: command_properties
|
|
63
|
-
// End section: command_properties
|
|
64
|
-
|
|
65
|
-
constructor(readonly input: DisassociateCreatedArtifactCommandInput) {
|
|
66
|
-
// Start section: command_constructor
|
|
67
|
-
super();
|
|
68
|
-
// End section: command_constructor
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @internal
|
|
73
|
-
*/
|
|
74
|
-
resolveMiddleware(
|
|
75
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
76
|
-
configuration: MigrationHubClientResolvedConfig,
|
|
77
|
-
options?: __HttpHandlerOptions
|
|
78
|
-
): Handler<DisassociateCreatedArtifactCommandInput, DisassociateCreatedArtifactCommandOutput> {
|
|
79
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
80
|
-
|
|
81
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
82
|
-
|
|
83
|
-
const { logger } = configuration;
|
|
84
|
-
const clientName = "MigrationHubClient";
|
|
85
|
-
const commandName = "DisassociateCreatedArtifactCommand";
|
|
86
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
87
|
-
logger,
|
|
88
|
-
clientName,
|
|
89
|
-
commandName,
|
|
90
|
-
inputFilterSensitiveLog: DisassociateCreatedArtifactRequest.filterSensitiveLog,
|
|
91
|
-
outputFilterSensitiveLog: DisassociateCreatedArtifactResult.filterSensitiveLog,
|
|
92
|
-
};
|
|
93
|
-
const { requestHandler } = configuration;
|
|
94
|
-
return stack.resolve(
|
|
95
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
96
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
97
|
-
handlerExecutionContext
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
private serialize(input: DisassociateCreatedArtifactCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
102
|
-
return serializeAws_json1_1DisassociateCreatedArtifactCommand(input, context);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
private deserialize(
|
|
106
|
-
output: __HttpResponse,
|
|
107
|
-
context: __SerdeContext
|
|
108
|
-
): Promise<DisassociateCreatedArtifactCommandOutput> {
|
|
109
|
-
return deserializeAws_json1_1DisassociateCreatedArtifactCommand(output, context);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// Start section: command_body_extra
|
|
113
|
-
// End section: command_body_extra
|
|
114
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
|
|
15
|
-
import { DisassociateDiscoveredResourceRequest, DisassociateDiscoveredResourceResult } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DisassociateDiscoveredResourceCommand,
|
|
18
|
-
serializeAws_json1_1DisassociateDiscoveredResourceCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DisassociateDiscoveredResourceCommandInput extends DisassociateDiscoveredResourceRequest {}
|
|
22
|
-
export interface DisassociateDiscoveredResourceCommandOutput
|
|
23
|
-
extends DisassociateDiscoveredResourceResult,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>Disassociate an Application Discovery Service discovered resource from a migration
|
|
28
|
-
* task.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { MigrationHubClient, DisassociateDiscoveredResourceCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
|
|
33
|
-
* // const { MigrationHubClient, DisassociateDiscoveredResourceCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
|
|
34
|
-
* const client = new MigrationHubClient(config);
|
|
35
|
-
* const command = new DisassociateDiscoveredResourceCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link DisassociateDiscoveredResourceCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link DisassociateDiscoveredResourceCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class DisassociateDiscoveredResourceCommand extends $Command<
|
|
45
|
-
DisassociateDiscoveredResourceCommandInput,
|
|
46
|
-
DisassociateDiscoveredResourceCommandOutput,
|
|
47
|
-
MigrationHubClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: DisassociateDiscoveredResourceCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: MigrationHubClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<DisassociateDiscoveredResourceCommandInput, DisassociateDiscoveredResourceCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "MigrationHubClient";
|
|
72
|
-
const commandName = "DisassociateDiscoveredResourceCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: DisassociateDiscoveredResourceRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: DisassociateDiscoveredResourceResult.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(
|
|
89
|
-
input: DisassociateDiscoveredResourceCommandInput,
|
|
90
|
-
context: __SerdeContext
|
|
91
|
-
): Promise<__HttpRequest> {
|
|
92
|
-
return serializeAws_json1_1DisassociateDiscoveredResourceCommand(input, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
private deserialize(
|
|
96
|
-
output: __HttpResponse,
|
|
97
|
-
context: __SerdeContext
|
|
98
|
-
): Promise<DisassociateDiscoveredResourceCommandOutput> {
|
|
99
|
-
return deserializeAws_json1_1DisassociateDiscoveredResourceCommand(output, context);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// Start section: command_body_extra
|
|
103
|
-
// End section: command_body_extra
|
|
104
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
|
|
15
|
-
import { ImportMigrationTaskRequest, ImportMigrationTaskResult } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1ImportMigrationTaskCommand,
|
|
18
|
-
serializeAws_json1_1ImportMigrationTaskCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface ImportMigrationTaskCommandInput extends ImportMigrationTaskRequest {}
|
|
22
|
-
export interface ImportMigrationTaskCommandOutput extends ImportMigrationTaskResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Registers a new migration task which represents a server, database, etc., being migrated
|
|
26
|
-
* to AWS by a migration tool.</p>
|
|
27
|
-
* <p>This API is a prerequisite to calling the <code>NotifyMigrationTaskState</code> API as
|
|
28
|
-
* the migration tool must first register the migration task with Migration Hub.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { MigrationHubClient, ImportMigrationTaskCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
|
|
33
|
-
* // const { MigrationHubClient, ImportMigrationTaskCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
|
|
34
|
-
* const client = new MigrationHubClient(config);
|
|
35
|
-
* const command = new ImportMigrationTaskCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link ImportMigrationTaskCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link ImportMigrationTaskCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class ImportMigrationTaskCommand extends $Command<
|
|
45
|
-
ImportMigrationTaskCommandInput,
|
|
46
|
-
ImportMigrationTaskCommandOutput,
|
|
47
|
-
MigrationHubClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: ImportMigrationTaskCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: MigrationHubClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<ImportMigrationTaskCommandInput, ImportMigrationTaskCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "MigrationHubClient";
|
|
72
|
-
const commandName = "ImportMigrationTaskCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: ImportMigrationTaskRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: ImportMigrationTaskResult.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: ImportMigrationTaskCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_json1_1ImportMigrationTaskCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ImportMigrationTaskCommandOutput> {
|
|
93
|
-
return deserializeAws_json1_1ImportMigrationTaskCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|