@aws-sdk/client-migration-hub 3.1137.0 → 3.1138.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1136.0";
72
+ var version = "3.1137.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -408,10 +408,10 @@ const _hH = "httpHeader";
408
408
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.migrationhub";
409
409
  const _se = "server";
410
410
  const n0 = "com.amazonaws.migrationhub";
411
- const _s_registry = TypeRegistry.for(_s);
411
+ const _s_registry = new TypeRegistry(_s);
412
412
  var MigrationHubServiceException$ = [-3, _s, "MigrationHubServiceException", 0, [], []];
413
413
  _s_registry.registerError(MigrationHubServiceException$, MigrationHubServiceException);
414
- const n0_registry = TypeRegistry.for(n0);
414
+ const n0_registry = new TypeRegistry(n0);
415
415
  var AccessDeniedException$ = [-3, n0, _ADE,
416
416
  { [_e]: _c },
417
417
  [_M],
@@ -128,10 +128,10 @@ const n0 = "com.amazonaws.migrationhub";
128
128
  import { TypeRegistry } from "@smithy/core/schema";
129
129
  import { AccessDeniedException, DryRunOperation, HomeRegionNotSetException, InternalServerError, InvalidInputException, PolicyErrorException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnauthorizedOperation, } from "../models/errors";
130
130
  import { MigrationHubServiceException } from "../models/MigrationHubServiceException";
131
- const _s_registry = TypeRegistry.for(_s);
131
+ const _s_registry = new TypeRegistry(_s);
132
132
  export var MigrationHubServiceException$ = [-3, _s, "MigrationHubServiceException", 0, [], []];
133
133
  _s_registry.registerError(MigrationHubServiceException$, MigrationHubServiceException);
134
- const n0_registry = TypeRegistry.for(n0);
134
+ const n0_registry = new TypeRegistry(n0);
135
135
  export var AccessDeniedException$ = [-3, n0, _ADE,
136
136
  { [_e]: _c },
137
137
  [_M],
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { type AssociateCreatedArtifactCommandInput, type AssociateCreatedArtifactCommandOutput } from "./commands/AssociateCreatedArtifactCommand";
3
3
  import { type AssociateDiscoveredResourceCommandInput, type AssociateDiscoveredResourceCommandOutput } from "./commands/AssociateDiscoveredResourceCommand";
4
4
  import { type AssociateSourceResourceCommandInput, type AssociateSourceResourceCommandOutput } from "./commands/AssociateSourceResourceCommand";
@@ -21,136 +21,142 @@ import { type NotifyApplicationStateCommandInput, type NotifyApplicationStateCom
21
21
  import { type NotifyMigrationTaskStateCommandInput, type NotifyMigrationTaskStateCommandOutput } from "./commands/NotifyMigrationTaskStateCommand";
22
22
  import { type PutResourceAttributesCommandInput, type PutResourceAttributesCommandOutput } from "./commands/PutResourceAttributesCommand";
23
23
  import { MigrationHubClient } from "./MigrationHubClient";
24
+ /**
25
+ * @public
26
+ */
27
+ export interface MigrationHubRequestOptions extends __HttpHandlerOptions {
28
+ metricsRecorder?: __MetricsRecorder<unknown>;
29
+ }
24
30
  export interface MigrationHub {
25
31
  /**
26
32
  * @see {@link AssociateCreatedArtifactCommand}
27
33
  */
28
- associateCreatedArtifact(args: AssociateCreatedArtifactCommandInput, options?: __HttpHandlerOptions): Promise<AssociateCreatedArtifactCommandOutput>;
34
+ associateCreatedArtifact(args: AssociateCreatedArtifactCommandInput, options?: MigrationHubRequestOptions): Promise<AssociateCreatedArtifactCommandOutput>;
29
35
  associateCreatedArtifact(args: AssociateCreatedArtifactCommandInput, cb: (err: any, data?: AssociateCreatedArtifactCommandOutput) => void): void;
30
- associateCreatedArtifact(args: AssociateCreatedArtifactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateCreatedArtifactCommandOutput) => void): void;
36
+ associateCreatedArtifact(args: AssociateCreatedArtifactCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: AssociateCreatedArtifactCommandOutput) => void): void;
31
37
  /**
32
38
  * @see {@link AssociateDiscoveredResourceCommand}
33
39
  */
34
- associateDiscoveredResource(args: AssociateDiscoveredResourceCommandInput, options?: __HttpHandlerOptions): Promise<AssociateDiscoveredResourceCommandOutput>;
40
+ associateDiscoveredResource(args: AssociateDiscoveredResourceCommandInput, options?: MigrationHubRequestOptions): Promise<AssociateDiscoveredResourceCommandOutput>;
35
41
  associateDiscoveredResource(args: AssociateDiscoveredResourceCommandInput, cb: (err: any, data?: AssociateDiscoveredResourceCommandOutput) => void): void;
36
- associateDiscoveredResource(args: AssociateDiscoveredResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateDiscoveredResourceCommandOutput) => void): void;
42
+ associateDiscoveredResource(args: AssociateDiscoveredResourceCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: AssociateDiscoveredResourceCommandOutput) => void): void;
37
43
  /**
38
44
  * @see {@link AssociateSourceResourceCommand}
39
45
  */
40
- associateSourceResource(args: AssociateSourceResourceCommandInput, options?: __HttpHandlerOptions): Promise<AssociateSourceResourceCommandOutput>;
46
+ associateSourceResource(args: AssociateSourceResourceCommandInput, options?: MigrationHubRequestOptions): Promise<AssociateSourceResourceCommandOutput>;
41
47
  associateSourceResource(args: AssociateSourceResourceCommandInput, cb: (err: any, data?: AssociateSourceResourceCommandOutput) => void): void;
42
- associateSourceResource(args: AssociateSourceResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateSourceResourceCommandOutput) => void): void;
48
+ associateSourceResource(args: AssociateSourceResourceCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: AssociateSourceResourceCommandOutput) => void): void;
43
49
  /**
44
50
  * @see {@link CreateProgressUpdateStreamCommand}
45
51
  */
46
- createProgressUpdateStream(args: CreateProgressUpdateStreamCommandInput, options?: __HttpHandlerOptions): Promise<CreateProgressUpdateStreamCommandOutput>;
52
+ createProgressUpdateStream(args: CreateProgressUpdateStreamCommandInput, options?: MigrationHubRequestOptions): Promise<CreateProgressUpdateStreamCommandOutput>;
47
53
  createProgressUpdateStream(args: CreateProgressUpdateStreamCommandInput, cb: (err: any, data?: CreateProgressUpdateStreamCommandOutput) => void): void;
48
- createProgressUpdateStream(args: CreateProgressUpdateStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProgressUpdateStreamCommandOutput) => void): void;
54
+ createProgressUpdateStream(args: CreateProgressUpdateStreamCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: CreateProgressUpdateStreamCommandOutput) => void): void;
49
55
  /**
50
56
  * @see {@link DeleteProgressUpdateStreamCommand}
51
57
  */
52
- deleteProgressUpdateStream(args: DeleteProgressUpdateStreamCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProgressUpdateStreamCommandOutput>;
58
+ deleteProgressUpdateStream(args: DeleteProgressUpdateStreamCommandInput, options?: MigrationHubRequestOptions): Promise<DeleteProgressUpdateStreamCommandOutput>;
53
59
  deleteProgressUpdateStream(args: DeleteProgressUpdateStreamCommandInput, cb: (err: any, data?: DeleteProgressUpdateStreamCommandOutput) => void): void;
54
- deleteProgressUpdateStream(args: DeleteProgressUpdateStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProgressUpdateStreamCommandOutput) => void): void;
60
+ deleteProgressUpdateStream(args: DeleteProgressUpdateStreamCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: DeleteProgressUpdateStreamCommandOutput) => void): void;
55
61
  /**
56
62
  * @see {@link DescribeApplicationStateCommand}
57
63
  */
58
- describeApplicationState(args: DescribeApplicationStateCommandInput, options?: __HttpHandlerOptions): Promise<DescribeApplicationStateCommandOutput>;
64
+ describeApplicationState(args: DescribeApplicationStateCommandInput, options?: MigrationHubRequestOptions): Promise<DescribeApplicationStateCommandOutput>;
59
65
  describeApplicationState(args: DescribeApplicationStateCommandInput, cb: (err: any, data?: DescribeApplicationStateCommandOutput) => void): void;
60
- describeApplicationState(args: DescribeApplicationStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeApplicationStateCommandOutput) => void): void;
66
+ describeApplicationState(args: DescribeApplicationStateCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: DescribeApplicationStateCommandOutput) => void): void;
61
67
  /**
62
68
  * @see {@link DescribeMigrationTaskCommand}
63
69
  */
64
- describeMigrationTask(args: DescribeMigrationTaskCommandInput, options?: __HttpHandlerOptions): Promise<DescribeMigrationTaskCommandOutput>;
70
+ describeMigrationTask(args: DescribeMigrationTaskCommandInput, options?: MigrationHubRequestOptions): Promise<DescribeMigrationTaskCommandOutput>;
65
71
  describeMigrationTask(args: DescribeMigrationTaskCommandInput, cb: (err: any, data?: DescribeMigrationTaskCommandOutput) => void): void;
66
- describeMigrationTask(args: DescribeMigrationTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeMigrationTaskCommandOutput) => void): void;
72
+ describeMigrationTask(args: DescribeMigrationTaskCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: DescribeMigrationTaskCommandOutput) => void): void;
67
73
  /**
68
74
  * @see {@link DisassociateCreatedArtifactCommand}
69
75
  */
70
- disassociateCreatedArtifact(args: DisassociateCreatedArtifactCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateCreatedArtifactCommandOutput>;
76
+ disassociateCreatedArtifact(args: DisassociateCreatedArtifactCommandInput, options?: MigrationHubRequestOptions): Promise<DisassociateCreatedArtifactCommandOutput>;
71
77
  disassociateCreatedArtifact(args: DisassociateCreatedArtifactCommandInput, cb: (err: any, data?: DisassociateCreatedArtifactCommandOutput) => void): void;
72
- disassociateCreatedArtifact(args: DisassociateCreatedArtifactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateCreatedArtifactCommandOutput) => void): void;
78
+ disassociateCreatedArtifact(args: DisassociateCreatedArtifactCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: DisassociateCreatedArtifactCommandOutput) => void): void;
73
79
  /**
74
80
  * @see {@link DisassociateDiscoveredResourceCommand}
75
81
  */
76
- disassociateDiscoveredResource(args: DisassociateDiscoveredResourceCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateDiscoveredResourceCommandOutput>;
82
+ disassociateDiscoveredResource(args: DisassociateDiscoveredResourceCommandInput, options?: MigrationHubRequestOptions): Promise<DisassociateDiscoveredResourceCommandOutput>;
77
83
  disassociateDiscoveredResource(args: DisassociateDiscoveredResourceCommandInput, cb: (err: any, data?: DisassociateDiscoveredResourceCommandOutput) => void): void;
78
- disassociateDiscoveredResource(args: DisassociateDiscoveredResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateDiscoveredResourceCommandOutput) => void): void;
84
+ disassociateDiscoveredResource(args: DisassociateDiscoveredResourceCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: DisassociateDiscoveredResourceCommandOutput) => void): void;
79
85
  /**
80
86
  * @see {@link DisassociateSourceResourceCommand}
81
87
  */
82
- disassociateSourceResource(args: DisassociateSourceResourceCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateSourceResourceCommandOutput>;
88
+ disassociateSourceResource(args: DisassociateSourceResourceCommandInput, options?: MigrationHubRequestOptions): Promise<DisassociateSourceResourceCommandOutput>;
83
89
  disassociateSourceResource(args: DisassociateSourceResourceCommandInput, cb: (err: any, data?: DisassociateSourceResourceCommandOutput) => void): void;
84
- disassociateSourceResource(args: DisassociateSourceResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateSourceResourceCommandOutput) => void): void;
90
+ disassociateSourceResource(args: DisassociateSourceResourceCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: DisassociateSourceResourceCommandOutput) => void): void;
85
91
  /**
86
92
  * @see {@link ImportMigrationTaskCommand}
87
93
  */
88
- importMigrationTask(args: ImportMigrationTaskCommandInput, options?: __HttpHandlerOptions): Promise<ImportMigrationTaskCommandOutput>;
94
+ importMigrationTask(args: ImportMigrationTaskCommandInput, options?: MigrationHubRequestOptions): Promise<ImportMigrationTaskCommandOutput>;
89
95
  importMigrationTask(args: ImportMigrationTaskCommandInput, cb: (err: any, data?: ImportMigrationTaskCommandOutput) => void): void;
90
- importMigrationTask(args: ImportMigrationTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportMigrationTaskCommandOutput) => void): void;
96
+ importMigrationTask(args: ImportMigrationTaskCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: ImportMigrationTaskCommandOutput) => void): void;
91
97
  /**
92
98
  * @see {@link ListApplicationStatesCommand}
93
99
  */
94
100
  listApplicationStates(): Promise<ListApplicationStatesCommandOutput>;
95
- listApplicationStates(args: ListApplicationStatesCommandInput, options?: __HttpHandlerOptions): Promise<ListApplicationStatesCommandOutput>;
101
+ listApplicationStates(args: ListApplicationStatesCommandInput, options?: MigrationHubRequestOptions): Promise<ListApplicationStatesCommandOutput>;
96
102
  listApplicationStates(args: ListApplicationStatesCommandInput, cb: (err: any, data?: ListApplicationStatesCommandOutput) => void): void;
97
- listApplicationStates(args: ListApplicationStatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListApplicationStatesCommandOutput) => void): void;
103
+ listApplicationStates(args: ListApplicationStatesCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: ListApplicationStatesCommandOutput) => void): void;
98
104
  /**
99
105
  * @see {@link ListCreatedArtifactsCommand}
100
106
  */
101
- listCreatedArtifacts(args: ListCreatedArtifactsCommandInput, options?: __HttpHandlerOptions): Promise<ListCreatedArtifactsCommandOutput>;
107
+ listCreatedArtifacts(args: ListCreatedArtifactsCommandInput, options?: MigrationHubRequestOptions): Promise<ListCreatedArtifactsCommandOutput>;
102
108
  listCreatedArtifacts(args: ListCreatedArtifactsCommandInput, cb: (err: any, data?: ListCreatedArtifactsCommandOutput) => void): void;
103
- listCreatedArtifacts(args: ListCreatedArtifactsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCreatedArtifactsCommandOutput) => void): void;
109
+ listCreatedArtifacts(args: ListCreatedArtifactsCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: ListCreatedArtifactsCommandOutput) => void): void;
104
110
  /**
105
111
  * @see {@link ListDiscoveredResourcesCommand}
106
112
  */
107
- listDiscoveredResources(args: ListDiscoveredResourcesCommandInput, options?: __HttpHandlerOptions): Promise<ListDiscoveredResourcesCommandOutput>;
113
+ listDiscoveredResources(args: ListDiscoveredResourcesCommandInput, options?: MigrationHubRequestOptions): Promise<ListDiscoveredResourcesCommandOutput>;
108
114
  listDiscoveredResources(args: ListDiscoveredResourcesCommandInput, cb: (err: any, data?: ListDiscoveredResourcesCommandOutput) => void): void;
109
- listDiscoveredResources(args: ListDiscoveredResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDiscoveredResourcesCommandOutput) => void): void;
115
+ listDiscoveredResources(args: ListDiscoveredResourcesCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: ListDiscoveredResourcesCommandOutput) => void): void;
110
116
  /**
111
117
  * @see {@link ListMigrationTasksCommand}
112
118
  */
113
119
  listMigrationTasks(): Promise<ListMigrationTasksCommandOutput>;
114
- listMigrationTasks(args: ListMigrationTasksCommandInput, options?: __HttpHandlerOptions): Promise<ListMigrationTasksCommandOutput>;
120
+ listMigrationTasks(args: ListMigrationTasksCommandInput, options?: MigrationHubRequestOptions): Promise<ListMigrationTasksCommandOutput>;
115
121
  listMigrationTasks(args: ListMigrationTasksCommandInput, cb: (err: any, data?: ListMigrationTasksCommandOutput) => void): void;
116
- listMigrationTasks(args: ListMigrationTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMigrationTasksCommandOutput) => void): void;
122
+ listMigrationTasks(args: ListMigrationTasksCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: ListMigrationTasksCommandOutput) => void): void;
117
123
  /**
118
124
  * @see {@link ListMigrationTaskUpdatesCommand}
119
125
  */
120
- listMigrationTaskUpdates(args: ListMigrationTaskUpdatesCommandInput, options?: __HttpHandlerOptions): Promise<ListMigrationTaskUpdatesCommandOutput>;
126
+ listMigrationTaskUpdates(args: ListMigrationTaskUpdatesCommandInput, options?: MigrationHubRequestOptions): Promise<ListMigrationTaskUpdatesCommandOutput>;
121
127
  listMigrationTaskUpdates(args: ListMigrationTaskUpdatesCommandInput, cb: (err: any, data?: ListMigrationTaskUpdatesCommandOutput) => void): void;
122
- listMigrationTaskUpdates(args: ListMigrationTaskUpdatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMigrationTaskUpdatesCommandOutput) => void): void;
128
+ listMigrationTaskUpdates(args: ListMigrationTaskUpdatesCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: ListMigrationTaskUpdatesCommandOutput) => void): void;
123
129
  /**
124
130
  * @see {@link ListProgressUpdateStreamsCommand}
125
131
  */
126
132
  listProgressUpdateStreams(): Promise<ListProgressUpdateStreamsCommandOutput>;
127
- listProgressUpdateStreams(args: ListProgressUpdateStreamsCommandInput, options?: __HttpHandlerOptions): Promise<ListProgressUpdateStreamsCommandOutput>;
133
+ listProgressUpdateStreams(args: ListProgressUpdateStreamsCommandInput, options?: MigrationHubRequestOptions): Promise<ListProgressUpdateStreamsCommandOutput>;
128
134
  listProgressUpdateStreams(args: ListProgressUpdateStreamsCommandInput, cb: (err: any, data?: ListProgressUpdateStreamsCommandOutput) => void): void;
129
- listProgressUpdateStreams(args: ListProgressUpdateStreamsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProgressUpdateStreamsCommandOutput) => void): void;
135
+ listProgressUpdateStreams(args: ListProgressUpdateStreamsCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: ListProgressUpdateStreamsCommandOutput) => void): void;
130
136
  /**
131
137
  * @see {@link ListSourceResourcesCommand}
132
138
  */
133
- listSourceResources(args: ListSourceResourcesCommandInput, options?: __HttpHandlerOptions): Promise<ListSourceResourcesCommandOutput>;
139
+ listSourceResources(args: ListSourceResourcesCommandInput, options?: MigrationHubRequestOptions): Promise<ListSourceResourcesCommandOutput>;
134
140
  listSourceResources(args: ListSourceResourcesCommandInput, cb: (err: any, data?: ListSourceResourcesCommandOutput) => void): void;
135
- listSourceResources(args: ListSourceResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSourceResourcesCommandOutput) => void): void;
141
+ listSourceResources(args: ListSourceResourcesCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: ListSourceResourcesCommandOutput) => void): void;
136
142
  /**
137
143
  * @see {@link NotifyApplicationStateCommand}
138
144
  */
139
- notifyApplicationState(args: NotifyApplicationStateCommandInput, options?: __HttpHandlerOptions): Promise<NotifyApplicationStateCommandOutput>;
145
+ notifyApplicationState(args: NotifyApplicationStateCommandInput, options?: MigrationHubRequestOptions): Promise<NotifyApplicationStateCommandOutput>;
140
146
  notifyApplicationState(args: NotifyApplicationStateCommandInput, cb: (err: any, data?: NotifyApplicationStateCommandOutput) => void): void;
141
- notifyApplicationState(args: NotifyApplicationStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: NotifyApplicationStateCommandOutput) => void): void;
147
+ notifyApplicationState(args: NotifyApplicationStateCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: NotifyApplicationStateCommandOutput) => void): void;
142
148
  /**
143
149
  * @see {@link NotifyMigrationTaskStateCommand}
144
150
  */
145
- notifyMigrationTaskState(args: NotifyMigrationTaskStateCommandInput, options?: __HttpHandlerOptions): Promise<NotifyMigrationTaskStateCommandOutput>;
151
+ notifyMigrationTaskState(args: NotifyMigrationTaskStateCommandInput, options?: MigrationHubRequestOptions): Promise<NotifyMigrationTaskStateCommandOutput>;
146
152
  notifyMigrationTaskState(args: NotifyMigrationTaskStateCommandInput, cb: (err: any, data?: NotifyMigrationTaskStateCommandOutput) => void): void;
147
- notifyMigrationTaskState(args: NotifyMigrationTaskStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: NotifyMigrationTaskStateCommandOutput) => void): void;
153
+ notifyMigrationTaskState(args: NotifyMigrationTaskStateCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: NotifyMigrationTaskStateCommandOutput) => void): void;
148
154
  /**
149
155
  * @see {@link PutResourceAttributesCommand}
150
156
  */
151
- putResourceAttributes(args: PutResourceAttributesCommandInput, options?: __HttpHandlerOptions): Promise<PutResourceAttributesCommandOutput>;
157
+ putResourceAttributes(args: PutResourceAttributesCommandInput, options?: MigrationHubRequestOptions): Promise<PutResourceAttributesCommandOutput>;
152
158
  putResourceAttributes(args: PutResourceAttributesCommandInput, cb: (err: any, data?: PutResourceAttributesCommandOutput) => void): void;
153
- putResourceAttributes(args: PutResourceAttributesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourceAttributesCommandOutput) => void): void;
159
+ putResourceAttributes(args: PutResourceAttributesCommandInput, options: MigrationHubRequestOptions, cb: (err: any, data?: PutResourceAttributesCommandOutput) => void): void;
154
160
  /**
155
161
  * @see {@link ListApplicationStatesCommand}
156
162
  * @param args - command input.
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
3
4
  PaginationConfiguration,
4
5
  Paginator,
5
6
  } from "@smithy/types";
@@ -88,10 +89,13 @@ import {
88
89
  PutResourceAttributesCommandOutput,
89
90
  } from "./commands/PutResourceAttributesCommand";
90
91
  import { MigrationHubClient } from "./MigrationHubClient";
92
+ export interface MigrationHubRequestOptions extends __HttpHandlerOptions {
93
+ metricsRecorder?: __MetricsRecorder<unknown>;
94
+ }
91
95
  export interface MigrationHub {
92
96
  associateCreatedArtifact(
93
97
  args: AssociateCreatedArtifactCommandInput,
94
- options?: __HttpHandlerOptions,
98
+ options?: MigrationHubRequestOptions,
95
99
  ): Promise<AssociateCreatedArtifactCommandOutput>;
96
100
  associateCreatedArtifact(
97
101
  args: AssociateCreatedArtifactCommandInput,
@@ -99,12 +103,12 @@ export interface MigrationHub {
99
103
  ): void;
100
104
  associateCreatedArtifact(
101
105
  args: AssociateCreatedArtifactCommandInput,
102
- options: __HttpHandlerOptions,
106
+ options: MigrationHubRequestOptions,
103
107
  cb: (err: any, data?: AssociateCreatedArtifactCommandOutput) => void,
104
108
  ): void;
105
109
  associateDiscoveredResource(
106
110
  args: AssociateDiscoveredResourceCommandInput,
107
- options?: __HttpHandlerOptions,
111
+ options?: MigrationHubRequestOptions,
108
112
  ): Promise<AssociateDiscoveredResourceCommandOutput>;
109
113
  associateDiscoveredResource(
110
114
  args: AssociateDiscoveredResourceCommandInput,
@@ -112,12 +116,12 @@ export interface MigrationHub {
112
116
  ): void;
113
117
  associateDiscoveredResource(
114
118
  args: AssociateDiscoveredResourceCommandInput,
115
- options: __HttpHandlerOptions,
119
+ options: MigrationHubRequestOptions,
116
120
  cb: (err: any, data?: AssociateDiscoveredResourceCommandOutput) => void,
117
121
  ): void;
118
122
  associateSourceResource(
119
123
  args: AssociateSourceResourceCommandInput,
120
- options?: __HttpHandlerOptions,
124
+ options?: MigrationHubRequestOptions,
121
125
  ): Promise<AssociateSourceResourceCommandOutput>;
122
126
  associateSourceResource(
123
127
  args: AssociateSourceResourceCommandInput,
@@ -125,12 +129,12 @@ export interface MigrationHub {
125
129
  ): void;
126
130
  associateSourceResource(
127
131
  args: AssociateSourceResourceCommandInput,
128
- options: __HttpHandlerOptions,
132
+ options: MigrationHubRequestOptions,
129
133
  cb: (err: any, data?: AssociateSourceResourceCommandOutput) => void,
130
134
  ): void;
131
135
  createProgressUpdateStream(
132
136
  args: CreateProgressUpdateStreamCommandInput,
133
- options?: __HttpHandlerOptions,
137
+ options?: MigrationHubRequestOptions,
134
138
  ): Promise<CreateProgressUpdateStreamCommandOutput>;
135
139
  createProgressUpdateStream(
136
140
  args: CreateProgressUpdateStreamCommandInput,
@@ -138,12 +142,12 @@ export interface MigrationHub {
138
142
  ): void;
139
143
  createProgressUpdateStream(
140
144
  args: CreateProgressUpdateStreamCommandInput,
141
- options: __HttpHandlerOptions,
145
+ options: MigrationHubRequestOptions,
142
146
  cb: (err: any, data?: CreateProgressUpdateStreamCommandOutput) => void,
143
147
  ): void;
144
148
  deleteProgressUpdateStream(
145
149
  args: DeleteProgressUpdateStreamCommandInput,
146
- options?: __HttpHandlerOptions,
150
+ options?: MigrationHubRequestOptions,
147
151
  ): Promise<DeleteProgressUpdateStreamCommandOutput>;
148
152
  deleteProgressUpdateStream(
149
153
  args: DeleteProgressUpdateStreamCommandInput,
@@ -151,12 +155,12 @@ export interface MigrationHub {
151
155
  ): void;
152
156
  deleteProgressUpdateStream(
153
157
  args: DeleteProgressUpdateStreamCommandInput,
154
- options: __HttpHandlerOptions,
158
+ options: MigrationHubRequestOptions,
155
159
  cb: (err: any, data?: DeleteProgressUpdateStreamCommandOutput) => void,
156
160
  ): void;
157
161
  describeApplicationState(
158
162
  args: DescribeApplicationStateCommandInput,
159
- options?: __HttpHandlerOptions,
163
+ options?: MigrationHubRequestOptions,
160
164
  ): Promise<DescribeApplicationStateCommandOutput>;
161
165
  describeApplicationState(
162
166
  args: DescribeApplicationStateCommandInput,
@@ -164,12 +168,12 @@ export interface MigrationHub {
164
168
  ): void;
165
169
  describeApplicationState(
166
170
  args: DescribeApplicationStateCommandInput,
167
- options: __HttpHandlerOptions,
171
+ options: MigrationHubRequestOptions,
168
172
  cb: (err: any, data?: DescribeApplicationStateCommandOutput) => void,
169
173
  ): void;
170
174
  describeMigrationTask(
171
175
  args: DescribeMigrationTaskCommandInput,
172
- options?: __HttpHandlerOptions,
176
+ options?: MigrationHubRequestOptions,
173
177
  ): Promise<DescribeMigrationTaskCommandOutput>;
174
178
  describeMigrationTask(
175
179
  args: DescribeMigrationTaskCommandInput,
@@ -177,12 +181,12 @@ export interface MigrationHub {
177
181
  ): void;
178
182
  describeMigrationTask(
179
183
  args: DescribeMigrationTaskCommandInput,
180
- options: __HttpHandlerOptions,
184
+ options: MigrationHubRequestOptions,
181
185
  cb: (err: any, data?: DescribeMigrationTaskCommandOutput) => void,
182
186
  ): void;
183
187
  disassociateCreatedArtifact(
184
188
  args: DisassociateCreatedArtifactCommandInput,
185
- options?: __HttpHandlerOptions,
189
+ options?: MigrationHubRequestOptions,
186
190
  ): Promise<DisassociateCreatedArtifactCommandOutput>;
187
191
  disassociateCreatedArtifact(
188
192
  args: DisassociateCreatedArtifactCommandInput,
@@ -190,12 +194,12 @@ export interface MigrationHub {
190
194
  ): void;
191
195
  disassociateCreatedArtifact(
192
196
  args: DisassociateCreatedArtifactCommandInput,
193
- options: __HttpHandlerOptions,
197
+ options: MigrationHubRequestOptions,
194
198
  cb: (err: any, data?: DisassociateCreatedArtifactCommandOutput) => void,
195
199
  ): void;
196
200
  disassociateDiscoveredResource(
197
201
  args: DisassociateDiscoveredResourceCommandInput,
198
- options?: __HttpHandlerOptions,
202
+ options?: MigrationHubRequestOptions,
199
203
  ): Promise<DisassociateDiscoveredResourceCommandOutput>;
200
204
  disassociateDiscoveredResource(
201
205
  args: DisassociateDiscoveredResourceCommandInput,
@@ -203,12 +207,12 @@ export interface MigrationHub {
203
207
  ): void;
204
208
  disassociateDiscoveredResource(
205
209
  args: DisassociateDiscoveredResourceCommandInput,
206
- options: __HttpHandlerOptions,
210
+ options: MigrationHubRequestOptions,
207
211
  cb: (err: any, data?: DisassociateDiscoveredResourceCommandOutput) => void,
208
212
  ): void;
209
213
  disassociateSourceResource(
210
214
  args: DisassociateSourceResourceCommandInput,
211
- options?: __HttpHandlerOptions,
215
+ options?: MigrationHubRequestOptions,
212
216
  ): Promise<DisassociateSourceResourceCommandOutput>;
213
217
  disassociateSourceResource(
214
218
  args: DisassociateSourceResourceCommandInput,
@@ -216,12 +220,12 @@ export interface MigrationHub {
216
220
  ): void;
217
221
  disassociateSourceResource(
218
222
  args: DisassociateSourceResourceCommandInput,
219
- options: __HttpHandlerOptions,
223
+ options: MigrationHubRequestOptions,
220
224
  cb: (err: any, data?: DisassociateSourceResourceCommandOutput) => void,
221
225
  ): void;
222
226
  importMigrationTask(
223
227
  args: ImportMigrationTaskCommandInput,
224
- options?: __HttpHandlerOptions,
228
+ options?: MigrationHubRequestOptions,
225
229
  ): Promise<ImportMigrationTaskCommandOutput>;
226
230
  importMigrationTask(
227
231
  args: ImportMigrationTaskCommandInput,
@@ -229,13 +233,13 @@ export interface MigrationHub {
229
233
  ): void;
230
234
  importMigrationTask(
231
235
  args: ImportMigrationTaskCommandInput,
232
- options: __HttpHandlerOptions,
236
+ options: MigrationHubRequestOptions,
233
237
  cb: (err: any, data?: ImportMigrationTaskCommandOutput) => void,
234
238
  ): void;
235
239
  listApplicationStates(): Promise<ListApplicationStatesCommandOutput>;
236
240
  listApplicationStates(
237
241
  args: ListApplicationStatesCommandInput,
238
- options?: __HttpHandlerOptions,
242
+ options?: MigrationHubRequestOptions,
239
243
  ): Promise<ListApplicationStatesCommandOutput>;
240
244
  listApplicationStates(
241
245
  args: ListApplicationStatesCommandInput,
@@ -243,12 +247,12 @@ export interface MigrationHub {
243
247
  ): void;
244
248
  listApplicationStates(
245
249
  args: ListApplicationStatesCommandInput,
246
- options: __HttpHandlerOptions,
250
+ options: MigrationHubRequestOptions,
247
251
  cb: (err: any, data?: ListApplicationStatesCommandOutput) => void,
248
252
  ): void;
249
253
  listCreatedArtifacts(
250
254
  args: ListCreatedArtifactsCommandInput,
251
- options?: __HttpHandlerOptions,
255
+ options?: MigrationHubRequestOptions,
252
256
  ): Promise<ListCreatedArtifactsCommandOutput>;
253
257
  listCreatedArtifacts(
254
258
  args: ListCreatedArtifactsCommandInput,
@@ -256,12 +260,12 @@ export interface MigrationHub {
256
260
  ): void;
257
261
  listCreatedArtifacts(
258
262
  args: ListCreatedArtifactsCommandInput,
259
- options: __HttpHandlerOptions,
263
+ options: MigrationHubRequestOptions,
260
264
  cb: (err: any, data?: ListCreatedArtifactsCommandOutput) => void,
261
265
  ): void;
262
266
  listDiscoveredResources(
263
267
  args: ListDiscoveredResourcesCommandInput,
264
- options?: __HttpHandlerOptions,
268
+ options?: MigrationHubRequestOptions,
265
269
  ): Promise<ListDiscoveredResourcesCommandOutput>;
266
270
  listDiscoveredResources(
267
271
  args: ListDiscoveredResourcesCommandInput,
@@ -269,13 +273,13 @@ export interface MigrationHub {
269
273
  ): void;
270
274
  listDiscoveredResources(
271
275
  args: ListDiscoveredResourcesCommandInput,
272
- options: __HttpHandlerOptions,
276
+ options: MigrationHubRequestOptions,
273
277
  cb: (err: any, data?: ListDiscoveredResourcesCommandOutput) => void,
274
278
  ): void;
275
279
  listMigrationTasks(): Promise<ListMigrationTasksCommandOutput>;
276
280
  listMigrationTasks(
277
281
  args: ListMigrationTasksCommandInput,
278
- options?: __HttpHandlerOptions,
282
+ options?: MigrationHubRequestOptions,
279
283
  ): Promise<ListMigrationTasksCommandOutput>;
280
284
  listMigrationTasks(
281
285
  args: ListMigrationTasksCommandInput,
@@ -283,12 +287,12 @@ export interface MigrationHub {
283
287
  ): void;
284
288
  listMigrationTasks(
285
289
  args: ListMigrationTasksCommandInput,
286
- options: __HttpHandlerOptions,
290
+ options: MigrationHubRequestOptions,
287
291
  cb: (err: any, data?: ListMigrationTasksCommandOutput) => void,
288
292
  ): void;
289
293
  listMigrationTaskUpdates(
290
294
  args: ListMigrationTaskUpdatesCommandInput,
291
- options?: __HttpHandlerOptions,
295
+ options?: MigrationHubRequestOptions,
292
296
  ): Promise<ListMigrationTaskUpdatesCommandOutput>;
293
297
  listMigrationTaskUpdates(
294
298
  args: ListMigrationTaskUpdatesCommandInput,
@@ -296,13 +300,13 @@ export interface MigrationHub {
296
300
  ): void;
297
301
  listMigrationTaskUpdates(
298
302
  args: ListMigrationTaskUpdatesCommandInput,
299
- options: __HttpHandlerOptions,
303
+ options: MigrationHubRequestOptions,
300
304
  cb: (err: any, data?: ListMigrationTaskUpdatesCommandOutput) => void,
301
305
  ): void;
302
306
  listProgressUpdateStreams(): Promise<ListProgressUpdateStreamsCommandOutput>;
303
307
  listProgressUpdateStreams(
304
308
  args: ListProgressUpdateStreamsCommandInput,
305
- options?: __HttpHandlerOptions,
309
+ options?: MigrationHubRequestOptions,
306
310
  ): Promise<ListProgressUpdateStreamsCommandOutput>;
307
311
  listProgressUpdateStreams(
308
312
  args: ListProgressUpdateStreamsCommandInput,
@@ -310,12 +314,12 @@ export interface MigrationHub {
310
314
  ): void;
311
315
  listProgressUpdateStreams(
312
316
  args: ListProgressUpdateStreamsCommandInput,
313
- options: __HttpHandlerOptions,
317
+ options: MigrationHubRequestOptions,
314
318
  cb: (err: any, data?: ListProgressUpdateStreamsCommandOutput) => void,
315
319
  ): void;
316
320
  listSourceResources(
317
321
  args: ListSourceResourcesCommandInput,
318
- options?: __HttpHandlerOptions,
322
+ options?: MigrationHubRequestOptions,
319
323
  ): Promise<ListSourceResourcesCommandOutput>;
320
324
  listSourceResources(
321
325
  args: ListSourceResourcesCommandInput,
@@ -323,12 +327,12 @@ export interface MigrationHub {
323
327
  ): void;
324
328
  listSourceResources(
325
329
  args: ListSourceResourcesCommandInput,
326
- options: __HttpHandlerOptions,
330
+ options: MigrationHubRequestOptions,
327
331
  cb: (err: any, data?: ListSourceResourcesCommandOutput) => void,
328
332
  ): void;
329
333
  notifyApplicationState(
330
334
  args: NotifyApplicationStateCommandInput,
331
- options?: __HttpHandlerOptions,
335
+ options?: MigrationHubRequestOptions,
332
336
  ): Promise<NotifyApplicationStateCommandOutput>;
333
337
  notifyApplicationState(
334
338
  args: NotifyApplicationStateCommandInput,
@@ -336,12 +340,12 @@ export interface MigrationHub {
336
340
  ): void;
337
341
  notifyApplicationState(
338
342
  args: NotifyApplicationStateCommandInput,
339
- options: __HttpHandlerOptions,
343
+ options: MigrationHubRequestOptions,
340
344
  cb: (err: any, data?: NotifyApplicationStateCommandOutput) => void,
341
345
  ): void;
342
346
  notifyMigrationTaskState(
343
347
  args: NotifyMigrationTaskStateCommandInput,
344
- options?: __HttpHandlerOptions,
348
+ options?: MigrationHubRequestOptions,
345
349
  ): Promise<NotifyMigrationTaskStateCommandOutput>;
346
350
  notifyMigrationTaskState(
347
351
  args: NotifyMigrationTaskStateCommandInput,
@@ -349,12 +353,12 @@ export interface MigrationHub {
349
353
  ): void;
350
354
  notifyMigrationTaskState(
351
355
  args: NotifyMigrationTaskStateCommandInput,
352
- options: __HttpHandlerOptions,
356
+ options: MigrationHubRequestOptions,
353
357
  cb: (err: any, data?: NotifyMigrationTaskStateCommandOutput) => void,
354
358
  ): void;
355
359
  putResourceAttributes(
356
360
  args: PutResourceAttributesCommandInput,
357
- options?: __HttpHandlerOptions,
361
+ options?: MigrationHubRequestOptions,
358
362
  ): Promise<PutResourceAttributesCommandOutput>;
359
363
  putResourceAttributes(
360
364
  args: PutResourceAttributesCommandInput,
@@ -362,7 +366,7 @@ export interface MigrationHub {
362
366
  ): void;
363
367
  putResourceAttributes(
364
368
  args: PutResourceAttributesCommandInput,
365
- options: __HttpHandlerOptions,
369
+ options: MigrationHubRequestOptions,
366
370
  cb: (err: any, data?: PutResourceAttributesCommandOutput) => void,
367
371
  ): void;
368
372
  paginateListApplicationStates(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-migration-hub",
3
- "version": "3.1137.0",
3
+ "version": "3.1138.0",
4
4
  "description": "AWS SDK for JavaScript Migration Hub Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-migration-hub",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {