@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,340 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EndpointsInputConfig,
|
|
3
|
-
EndpointsResolvedConfig,
|
|
4
|
-
RegionInputConfig,
|
|
5
|
-
RegionResolvedConfig,
|
|
6
|
-
resolveEndpointsConfig,
|
|
7
|
-
resolveRegionConfig,
|
|
8
|
-
} from "@aws-sdk/config-resolver";
|
|
9
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
10
|
-
import {
|
|
11
|
-
getHostHeaderPlugin,
|
|
12
|
-
HostHeaderInputConfig,
|
|
13
|
-
HostHeaderResolvedConfig,
|
|
14
|
-
resolveHostHeaderConfig,
|
|
15
|
-
} from "@aws-sdk/middleware-host-header";
|
|
16
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
17
|
-
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
18
|
-
import {
|
|
19
|
-
AwsAuthInputConfig,
|
|
20
|
-
AwsAuthResolvedConfig,
|
|
21
|
-
getAwsAuthPlugin,
|
|
22
|
-
resolveAwsAuthConfig,
|
|
23
|
-
} from "@aws-sdk/middleware-signing";
|
|
24
|
-
import {
|
|
25
|
-
getUserAgentPlugin,
|
|
26
|
-
resolveUserAgentConfig,
|
|
27
|
-
UserAgentInputConfig,
|
|
28
|
-
UserAgentResolvedConfig,
|
|
29
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
30
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
31
|
-
import {
|
|
32
|
-
Client as __Client,
|
|
33
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
34
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
35
|
-
} from "@aws-sdk/smithy-client";
|
|
36
|
-
import {
|
|
37
|
-
Credentials as __Credentials,
|
|
38
|
-
Decoder as __Decoder,
|
|
39
|
-
Encoder as __Encoder,
|
|
40
|
-
Hash as __Hash,
|
|
41
|
-
HashConstructor as __HashConstructor,
|
|
42
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
43
|
-
Logger as __Logger,
|
|
44
|
-
Provider as __Provider,
|
|
45
|
-
Provider,
|
|
46
|
-
RegionInfoProvider,
|
|
47
|
-
StreamCollector as __StreamCollector,
|
|
48
|
-
UrlParser as __UrlParser,
|
|
49
|
-
UserAgent as __UserAgent,
|
|
50
|
-
} from "@aws-sdk/types";
|
|
51
|
-
|
|
52
|
-
import {
|
|
53
|
-
AssociateCreatedArtifactCommandInput,
|
|
54
|
-
AssociateCreatedArtifactCommandOutput,
|
|
55
|
-
} from "./commands/AssociateCreatedArtifactCommand";
|
|
56
|
-
import {
|
|
57
|
-
AssociateDiscoveredResourceCommandInput,
|
|
58
|
-
AssociateDiscoveredResourceCommandOutput,
|
|
59
|
-
} from "./commands/AssociateDiscoveredResourceCommand";
|
|
60
|
-
import {
|
|
61
|
-
CreateProgressUpdateStreamCommandInput,
|
|
62
|
-
CreateProgressUpdateStreamCommandOutput,
|
|
63
|
-
} from "./commands/CreateProgressUpdateStreamCommand";
|
|
64
|
-
import {
|
|
65
|
-
DeleteProgressUpdateStreamCommandInput,
|
|
66
|
-
DeleteProgressUpdateStreamCommandOutput,
|
|
67
|
-
} from "./commands/DeleteProgressUpdateStreamCommand";
|
|
68
|
-
import {
|
|
69
|
-
DescribeApplicationStateCommandInput,
|
|
70
|
-
DescribeApplicationStateCommandOutput,
|
|
71
|
-
} from "./commands/DescribeApplicationStateCommand";
|
|
72
|
-
import {
|
|
73
|
-
DescribeMigrationTaskCommandInput,
|
|
74
|
-
DescribeMigrationTaskCommandOutput,
|
|
75
|
-
} from "./commands/DescribeMigrationTaskCommand";
|
|
76
|
-
import {
|
|
77
|
-
DisassociateCreatedArtifactCommandInput,
|
|
78
|
-
DisassociateCreatedArtifactCommandOutput,
|
|
79
|
-
} from "./commands/DisassociateCreatedArtifactCommand";
|
|
80
|
-
import {
|
|
81
|
-
DisassociateDiscoveredResourceCommandInput,
|
|
82
|
-
DisassociateDiscoveredResourceCommandOutput,
|
|
83
|
-
} from "./commands/DisassociateDiscoveredResourceCommand";
|
|
84
|
-
import {
|
|
85
|
-
ImportMigrationTaskCommandInput,
|
|
86
|
-
ImportMigrationTaskCommandOutput,
|
|
87
|
-
} from "./commands/ImportMigrationTaskCommand";
|
|
88
|
-
import {
|
|
89
|
-
ListApplicationStatesCommandInput,
|
|
90
|
-
ListApplicationStatesCommandOutput,
|
|
91
|
-
} from "./commands/ListApplicationStatesCommand";
|
|
92
|
-
import {
|
|
93
|
-
ListCreatedArtifactsCommandInput,
|
|
94
|
-
ListCreatedArtifactsCommandOutput,
|
|
95
|
-
} from "./commands/ListCreatedArtifactsCommand";
|
|
96
|
-
import {
|
|
97
|
-
ListDiscoveredResourcesCommandInput,
|
|
98
|
-
ListDiscoveredResourcesCommandOutput,
|
|
99
|
-
} from "./commands/ListDiscoveredResourcesCommand";
|
|
100
|
-
import { ListMigrationTasksCommandInput, ListMigrationTasksCommandOutput } from "./commands/ListMigrationTasksCommand";
|
|
101
|
-
import {
|
|
102
|
-
ListProgressUpdateStreamsCommandInput,
|
|
103
|
-
ListProgressUpdateStreamsCommandOutput,
|
|
104
|
-
} from "./commands/ListProgressUpdateStreamsCommand";
|
|
105
|
-
import {
|
|
106
|
-
NotifyApplicationStateCommandInput,
|
|
107
|
-
NotifyApplicationStateCommandOutput,
|
|
108
|
-
} from "./commands/NotifyApplicationStateCommand";
|
|
109
|
-
import {
|
|
110
|
-
NotifyMigrationTaskStateCommandInput,
|
|
111
|
-
NotifyMigrationTaskStateCommandOutput,
|
|
112
|
-
} from "./commands/NotifyMigrationTaskStateCommand";
|
|
113
|
-
import {
|
|
114
|
-
PutResourceAttributesCommandInput,
|
|
115
|
-
PutResourceAttributesCommandOutput,
|
|
116
|
-
} from "./commands/PutResourceAttributesCommand";
|
|
117
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
118
|
-
|
|
119
|
-
export type ServiceInputTypes =
|
|
120
|
-
| AssociateCreatedArtifactCommandInput
|
|
121
|
-
| AssociateDiscoveredResourceCommandInput
|
|
122
|
-
| CreateProgressUpdateStreamCommandInput
|
|
123
|
-
| DeleteProgressUpdateStreamCommandInput
|
|
124
|
-
| DescribeApplicationStateCommandInput
|
|
125
|
-
| DescribeMigrationTaskCommandInput
|
|
126
|
-
| DisassociateCreatedArtifactCommandInput
|
|
127
|
-
| DisassociateDiscoveredResourceCommandInput
|
|
128
|
-
| ImportMigrationTaskCommandInput
|
|
129
|
-
| ListApplicationStatesCommandInput
|
|
130
|
-
| ListCreatedArtifactsCommandInput
|
|
131
|
-
| ListDiscoveredResourcesCommandInput
|
|
132
|
-
| ListMigrationTasksCommandInput
|
|
133
|
-
| ListProgressUpdateStreamsCommandInput
|
|
134
|
-
| NotifyApplicationStateCommandInput
|
|
135
|
-
| NotifyMigrationTaskStateCommandInput
|
|
136
|
-
| PutResourceAttributesCommandInput;
|
|
137
|
-
|
|
138
|
-
export type ServiceOutputTypes =
|
|
139
|
-
| AssociateCreatedArtifactCommandOutput
|
|
140
|
-
| AssociateDiscoveredResourceCommandOutput
|
|
141
|
-
| CreateProgressUpdateStreamCommandOutput
|
|
142
|
-
| DeleteProgressUpdateStreamCommandOutput
|
|
143
|
-
| DescribeApplicationStateCommandOutput
|
|
144
|
-
| DescribeMigrationTaskCommandOutput
|
|
145
|
-
| DisassociateCreatedArtifactCommandOutput
|
|
146
|
-
| DisassociateDiscoveredResourceCommandOutput
|
|
147
|
-
| ImportMigrationTaskCommandOutput
|
|
148
|
-
| ListApplicationStatesCommandOutput
|
|
149
|
-
| ListCreatedArtifactsCommandOutput
|
|
150
|
-
| ListDiscoveredResourcesCommandOutput
|
|
151
|
-
| ListMigrationTasksCommandOutput
|
|
152
|
-
| ListProgressUpdateStreamsCommandOutput
|
|
153
|
-
| NotifyApplicationStateCommandOutput
|
|
154
|
-
| NotifyMigrationTaskStateCommandOutput
|
|
155
|
-
| PutResourceAttributesCommandOutput;
|
|
156
|
-
|
|
157
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
158
|
-
/**
|
|
159
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
160
|
-
*/
|
|
161
|
-
requestHandler?: __HttpHandler;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
165
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
166
|
-
* @internal
|
|
167
|
-
*/
|
|
168
|
-
sha256?: __HashConstructor;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
172
|
-
* @internal
|
|
173
|
-
*/
|
|
174
|
-
urlParser?: __UrlParser;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* A function that can calculate the length of a request body.
|
|
178
|
-
* @internal
|
|
179
|
-
*/
|
|
180
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* A function that converts a stream into an array of bytes.
|
|
184
|
-
* @internal
|
|
185
|
-
*/
|
|
186
|
-
streamCollector?: __StreamCollector;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
190
|
-
* @internal
|
|
191
|
-
*/
|
|
192
|
-
base64Decoder?: __Decoder;
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
196
|
-
* @internal
|
|
197
|
-
*/
|
|
198
|
-
base64Encoder?: __Encoder;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
202
|
-
* @internal
|
|
203
|
-
*/
|
|
204
|
-
utf8Decoder?: __Decoder;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
208
|
-
* @internal
|
|
209
|
-
*/
|
|
210
|
-
utf8Encoder?: __Encoder;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* The runtime environment.
|
|
214
|
-
* @internal
|
|
215
|
-
*/
|
|
216
|
-
runtime?: string;
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
220
|
-
* trait of an operation.
|
|
221
|
-
*/
|
|
222
|
-
disableHostPrefix?: boolean;
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
226
|
-
*/
|
|
227
|
-
maxAttempts?: number | __Provider<number>;
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Specifies which retry algorithm to use.
|
|
231
|
-
*/
|
|
232
|
-
retryMode?: string | __Provider<string>;
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Optional logger for logging debug/info/warn/error.
|
|
236
|
-
*/
|
|
237
|
-
logger?: __Logger;
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* Unique service identifier.
|
|
241
|
-
* @internal
|
|
242
|
-
*/
|
|
243
|
-
serviceId?: string;
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* The AWS region to which this client will send requests
|
|
247
|
-
*/
|
|
248
|
-
region?: string | __Provider<string>;
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Default credentials provider; Not available in browser runtime.
|
|
252
|
-
* @internal
|
|
253
|
-
*/
|
|
254
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
258
|
-
* @internal
|
|
259
|
-
*/
|
|
260
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
264
|
-
* @internal
|
|
265
|
-
*/
|
|
266
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
type MigrationHubClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
270
|
-
ClientDefaults &
|
|
271
|
-
RegionInputConfig &
|
|
272
|
-
EndpointsInputConfig &
|
|
273
|
-
RetryInputConfig &
|
|
274
|
-
HostHeaderInputConfig &
|
|
275
|
-
AwsAuthInputConfig &
|
|
276
|
-
UserAgentInputConfig;
|
|
277
|
-
/**
|
|
278
|
-
* The configuration interface of MigrationHubClient class constructor that set the region, credentials and other options.
|
|
279
|
-
*/
|
|
280
|
-
export interface MigrationHubClientConfig extends MigrationHubClientConfigType {}
|
|
281
|
-
|
|
282
|
-
type MigrationHubClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
283
|
-
Required<ClientDefaults> &
|
|
284
|
-
RegionResolvedConfig &
|
|
285
|
-
EndpointsResolvedConfig &
|
|
286
|
-
RetryResolvedConfig &
|
|
287
|
-
HostHeaderResolvedConfig &
|
|
288
|
-
AwsAuthResolvedConfig &
|
|
289
|
-
UserAgentResolvedConfig;
|
|
290
|
-
/**
|
|
291
|
-
* The resolved configuration interface of MigrationHubClient class. This is resolved and normalized from the {@link MigrationHubClientConfig | constructor configuration interface}.
|
|
292
|
-
*/
|
|
293
|
-
export interface MigrationHubClientResolvedConfig extends MigrationHubClientResolvedConfigType {}
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* <p>The AWS Migration Hub API methods help to obtain server and application migration status
|
|
297
|
-
* and integrate your resource-specific migration tool by providing a programmatic interface
|
|
298
|
-
* to Migration Hub.</p>
|
|
299
|
-
* <p>Remember that you must set your AWS Migration Hub home region before you call any of
|
|
300
|
-
* these APIs, or a <code>HomeRegionNotSetException</code> error will be returned. Also, you
|
|
301
|
-
* must make the API calls while in your home region.</p>
|
|
302
|
-
*/
|
|
303
|
-
export class MigrationHubClient extends __Client<
|
|
304
|
-
__HttpHandlerOptions,
|
|
305
|
-
ServiceInputTypes,
|
|
306
|
-
ServiceOutputTypes,
|
|
307
|
-
MigrationHubClientResolvedConfig
|
|
308
|
-
> {
|
|
309
|
-
/**
|
|
310
|
-
* The resolved configuration of MigrationHubClient class. This is resolved and normalized from the {@link MigrationHubClientConfig | constructor configuration interface}.
|
|
311
|
-
*/
|
|
312
|
-
readonly config: MigrationHubClientResolvedConfig;
|
|
313
|
-
|
|
314
|
-
constructor(configuration: MigrationHubClientConfig) {
|
|
315
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
316
|
-
const _config_1 = resolveRegionConfig(_config_0);
|
|
317
|
-
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
318
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
319
|
-
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
320
|
-
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
321
|
-
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
322
|
-
super(_config_6);
|
|
323
|
-
this.config = _config_6;
|
|
324
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
325
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
326
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
327
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
328
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
329
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
334
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
335
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
336
|
-
*/
|
|
337
|
-
destroy(): void {
|
|
338
|
-
super.destroy();
|
|
339
|
-
}
|
|
340
|
-
}
|
|
@@ -1,112 +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 { AssociateCreatedArtifactRequest, AssociateCreatedArtifactResult } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1AssociateCreatedArtifactCommand,
|
|
18
|
-
serializeAws_json1_1AssociateCreatedArtifactCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface AssociateCreatedArtifactCommandInput extends AssociateCreatedArtifactRequest {}
|
|
22
|
-
export interface AssociateCreatedArtifactCommandOutput extends AssociateCreatedArtifactResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Associates a created artifact of an AWS cloud resource, the target receiving the
|
|
26
|
-
* migration, with the migration task performed by a migration tool. This API has the
|
|
27
|
-
* following traits:</p>
|
|
28
|
-
* <ul>
|
|
29
|
-
* <li>
|
|
30
|
-
* <p>Migration tools can call the <code>AssociateCreatedArtifact</code> operation to
|
|
31
|
-
* indicate which AWS artifact is associated with a migration task.</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>The created artifact name must be provided in ARN (Amazon Resource Name) format
|
|
35
|
-
* which will contain information about type and region; for example:
|
|
36
|
-
* <code>arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b</code>.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance,
|
|
40
|
-
* or DMS endpoint, etc.</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* </ul>
|
|
43
|
-
* @example
|
|
44
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
45
|
-
* ```javascript
|
|
46
|
-
* import { MigrationHubClient, AssociateCreatedArtifactCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
|
|
47
|
-
* // const { MigrationHubClient, AssociateCreatedArtifactCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
|
|
48
|
-
* const client = new MigrationHubClient(config);
|
|
49
|
-
* const command = new AssociateCreatedArtifactCommand(input);
|
|
50
|
-
* const response = await client.send(command);
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* @see {@link AssociateCreatedArtifactCommandInput} for command's `input` shape.
|
|
54
|
-
* @see {@link AssociateCreatedArtifactCommandOutput} for command's `response` shape.
|
|
55
|
-
* @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
export class AssociateCreatedArtifactCommand extends $Command<
|
|
59
|
-
AssociateCreatedArtifactCommandInput,
|
|
60
|
-
AssociateCreatedArtifactCommandOutput,
|
|
61
|
-
MigrationHubClientResolvedConfig
|
|
62
|
-
> {
|
|
63
|
-
// Start section: command_properties
|
|
64
|
-
// End section: command_properties
|
|
65
|
-
|
|
66
|
-
constructor(readonly input: AssociateCreatedArtifactCommandInput) {
|
|
67
|
-
// Start section: command_constructor
|
|
68
|
-
super();
|
|
69
|
-
// End section: command_constructor
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
75
|
-
resolveMiddleware(
|
|
76
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
77
|
-
configuration: MigrationHubClientResolvedConfig,
|
|
78
|
-
options?: __HttpHandlerOptions
|
|
79
|
-
): Handler<AssociateCreatedArtifactCommandInput, AssociateCreatedArtifactCommandOutput> {
|
|
80
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
81
|
-
|
|
82
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
83
|
-
|
|
84
|
-
const { logger } = configuration;
|
|
85
|
-
const clientName = "MigrationHubClient";
|
|
86
|
-
const commandName = "AssociateCreatedArtifactCommand";
|
|
87
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
88
|
-
logger,
|
|
89
|
-
clientName,
|
|
90
|
-
commandName,
|
|
91
|
-
inputFilterSensitiveLog: AssociateCreatedArtifactRequest.filterSensitiveLog,
|
|
92
|
-
outputFilterSensitiveLog: AssociateCreatedArtifactResult.filterSensitiveLog,
|
|
93
|
-
};
|
|
94
|
-
const { requestHandler } = configuration;
|
|
95
|
-
return stack.resolve(
|
|
96
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
97
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
98
|
-
handlerExecutionContext
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
private serialize(input: AssociateCreatedArtifactCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
103
|
-
return serializeAws_json1_1AssociateCreatedArtifactCommand(input, context);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<AssociateCreatedArtifactCommandOutput> {
|
|
107
|
-
return deserializeAws_json1_1AssociateCreatedArtifactCommand(output, context);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Start section: command_body_extra
|
|
111
|
-
// End section: command_body_extra
|
|
112
|
-
}
|
|
@@ -1,99 +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 { AssociateDiscoveredResourceRequest, AssociateDiscoveredResourceResult } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1AssociateDiscoveredResourceCommand,
|
|
18
|
-
serializeAws_json1_1AssociateDiscoveredResourceCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface AssociateDiscoveredResourceCommandInput extends AssociateDiscoveredResourceRequest {}
|
|
22
|
-
export interface AssociateDiscoveredResourceCommandOutput extends AssociateDiscoveredResourceResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Associates a discovered resource ID from Application Discovery Service with a migration
|
|
26
|
-
* task.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { MigrationHubClient, AssociateDiscoveredResourceCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
|
|
31
|
-
* // const { MigrationHubClient, AssociateDiscoveredResourceCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
|
|
32
|
-
* const client = new MigrationHubClient(config);
|
|
33
|
-
* const command = new AssociateDiscoveredResourceCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link AssociateDiscoveredResourceCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link AssociateDiscoveredResourceCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class AssociateDiscoveredResourceCommand extends $Command<
|
|
43
|
-
AssociateDiscoveredResourceCommandInput,
|
|
44
|
-
AssociateDiscoveredResourceCommandOutput,
|
|
45
|
-
MigrationHubClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: AssociateDiscoveredResourceCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: MigrationHubClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<AssociateDiscoveredResourceCommandInput, AssociateDiscoveredResourceCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "MigrationHubClient";
|
|
70
|
-
const commandName = "AssociateDiscoveredResourceCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: AssociateDiscoveredResourceRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: AssociateDiscoveredResourceResult.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: AssociateDiscoveredResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1AssociateDiscoveredResourceCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(
|
|
91
|
-
output: __HttpResponse,
|
|
92
|
-
context: __SerdeContext
|
|
93
|
-
): Promise<AssociateDiscoveredResourceCommandOutput> {
|
|
94
|
-
return deserializeAws_json1_1AssociateDiscoveredResourceCommand(output, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// Start section: command_body_extra
|
|
98
|
-
// End section: command_body_extra
|
|
99
|
-
}
|
|
@@ -1,102 +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 { CreateProgressUpdateStreamRequest, CreateProgressUpdateStreamResult } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateProgressUpdateStreamCommand,
|
|
18
|
-
serializeAws_json1_1CreateProgressUpdateStreamCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateProgressUpdateStreamCommandInput extends CreateProgressUpdateStreamRequest {}
|
|
22
|
-
export interface CreateProgressUpdateStreamCommandOutput extends CreateProgressUpdateStreamResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a progress update stream which is an AWS resource used for access control as
|
|
26
|
-
* well as a namespace for migration task names that is implicitly linked to your AWS account.
|
|
27
|
-
* It must uniquely identify the migration tool as it is used for all updates made by the
|
|
28
|
-
* tool; however, it does not need to be unique for each AWS account because it is scoped to
|
|
29
|
-
* the AWS account.</p>
|
|
30
|
-
* @example
|
|
31
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
-
* ```javascript
|
|
33
|
-
* import { MigrationHubClient, CreateProgressUpdateStreamCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
|
|
34
|
-
* // const { MigrationHubClient, CreateProgressUpdateStreamCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
|
|
35
|
-
* const client = new MigrationHubClient(config);
|
|
36
|
-
* const command = new CreateProgressUpdateStreamCommand(input);
|
|
37
|
-
* const response = await client.send(command);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @see {@link CreateProgressUpdateStreamCommandInput} for command's `input` shape.
|
|
41
|
-
* @see {@link CreateProgressUpdateStreamCommandOutput} for command's `response` shape.
|
|
42
|
-
* @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
export class CreateProgressUpdateStreamCommand extends $Command<
|
|
46
|
-
CreateProgressUpdateStreamCommandInput,
|
|
47
|
-
CreateProgressUpdateStreamCommandOutput,
|
|
48
|
-
MigrationHubClientResolvedConfig
|
|
49
|
-
> {
|
|
50
|
-
// Start section: command_properties
|
|
51
|
-
// End section: command_properties
|
|
52
|
-
|
|
53
|
-
constructor(readonly input: CreateProgressUpdateStreamCommandInput) {
|
|
54
|
-
// Start section: command_constructor
|
|
55
|
-
super();
|
|
56
|
-
// End section: command_constructor
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
resolveMiddleware(
|
|
63
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
64
|
-
configuration: MigrationHubClientResolvedConfig,
|
|
65
|
-
options?: __HttpHandlerOptions
|
|
66
|
-
): Handler<CreateProgressUpdateStreamCommandInput, CreateProgressUpdateStreamCommandOutput> {
|
|
67
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
68
|
-
|
|
69
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
70
|
-
|
|
71
|
-
const { logger } = configuration;
|
|
72
|
-
const clientName = "MigrationHubClient";
|
|
73
|
-
const commandName = "CreateProgressUpdateStreamCommand";
|
|
74
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
75
|
-
logger,
|
|
76
|
-
clientName,
|
|
77
|
-
commandName,
|
|
78
|
-
inputFilterSensitiveLog: CreateProgressUpdateStreamRequest.filterSensitiveLog,
|
|
79
|
-
outputFilterSensitiveLog: CreateProgressUpdateStreamResult.filterSensitiveLog,
|
|
80
|
-
};
|
|
81
|
-
const { requestHandler } = configuration;
|
|
82
|
-
return stack.resolve(
|
|
83
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
84
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
85
|
-
handlerExecutionContext
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private serialize(input: CreateProgressUpdateStreamCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
90
|
-
return serializeAws_json1_1CreateProgressUpdateStreamCommand(input, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private deserialize(
|
|
94
|
-
output: __HttpResponse,
|
|
95
|
-
context: __SerdeContext
|
|
96
|
-
): Promise<CreateProgressUpdateStreamCommandOutput> {
|
|
97
|
-
return deserializeAws_json1_1CreateProgressUpdateStreamCommand(output, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Start section: command_body_extra
|
|
101
|
-
// End section: command_body_extra
|
|
102
|
-
}
|