@aws-sdk/client-application-discovery-service 3.309.0 → 3.312.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/protocols/Aws_json1_1.js +31 -100
- package/dist-es/protocols/Aws_json1_1.js +31 -100
- package/package.json +35 -35
|
@@ -7,249 +7,174 @@ const uuid_1 = require("uuid");
|
|
|
7
7
|
const ApplicationDiscoveryServiceServiceException_1 = require("../models/ApplicationDiscoveryServiceServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_AssociateConfigurationItemsToApplicationCommand = async (input, context) => {
|
|
10
|
-
const headers =
|
|
11
|
-
"content-type": "application/x-amz-json-1.1",
|
|
12
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.AssociateConfigurationItemsToApplication",
|
|
13
|
-
};
|
|
10
|
+
const headers = sharedHeaders("AssociateConfigurationItemsToApplication");
|
|
14
11
|
let body;
|
|
15
12
|
body = JSON.stringify(se_AssociateConfigurationItemsToApplicationRequest(input, context));
|
|
16
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
14
|
};
|
|
18
15
|
exports.se_AssociateConfigurationItemsToApplicationCommand = se_AssociateConfigurationItemsToApplicationCommand;
|
|
19
16
|
const se_BatchDeleteImportDataCommand = async (input, context) => {
|
|
20
|
-
const headers =
|
|
21
|
-
"content-type": "application/x-amz-json-1.1",
|
|
22
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.BatchDeleteImportData",
|
|
23
|
-
};
|
|
17
|
+
const headers = sharedHeaders("BatchDeleteImportData");
|
|
24
18
|
let body;
|
|
25
19
|
body = JSON.stringify(se_BatchDeleteImportDataRequest(input, context));
|
|
26
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
21
|
};
|
|
28
22
|
exports.se_BatchDeleteImportDataCommand = se_BatchDeleteImportDataCommand;
|
|
29
23
|
const se_CreateApplicationCommand = async (input, context) => {
|
|
30
|
-
const headers =
|
|
31
|
-
"content-type": "application/x-amz-json-1.1",
|
|
32
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.CreateApplication",
|
|
33
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateApplication");
|
|
34
25
|
let body;
|
|
35
26
|
body = JSON.stringify(se_CreateApplicationRequest(input, context));
|
|
36
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
28
|
};
|
|
38
29
|
exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
|
|
39
30
|
const se_CreateTagsCommand = async (input, context) => {
|
|
40
|
-
const headers =
|
|
41
|
-
"content-type": "application/x-amz-json-1.1",
|
|
42
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.CreateTags",
|
|
43
|
-
};
|
|
31
|
+
const headers = sharedHeaders("CreateTags");
|
|
44
32
|
let body;
|
|
45
33
|
body = JSON.stringify(se_CreateTagsRequest(input, context));
|
|
46
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
35
|
};
|
|
48
36
|
exports.se_CreateTagsCommand = se_CreateTagsCommand;
|
|
49
37
|
const se_DeleteApplicationsCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-amz-json-1.1",
|
|
52
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DeleteApplications",
|
|
53
|
-
};
|
|
38
|
+
const headers = sharedHeaders("DeleteApplications");
|
|
54
39
|
let body;
|
|
55
40
|
body = JSON.stringify(se_DeleteApplicationsRequest(input, context));
|
|
56
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
42
|
};
|
|
58
43
|
exports.se_DeleteApplicationsCommand = se_DeleteApplicationsCommand;
|
|
59
44
|
const se_DeleteTagsCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DeleteTags",
|
|
63
|
-
};
|
|
45
|
+
const headers = sharedHeaders("DeleteTags");
|
|
64
46
|
let body;
|
|
65
47
|
body = JSON.stringify(se_DeleteTagsRequest(input, context));
|
|
66
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
49
|
};
|
|
68
50
|
exports.se_DeleteTagsCommand = se_DeleteTagsCommand;
|
|
69
51
|
const se_DescribeAgentsCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.1",
|
|
72
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeAgents",
|
|
73
|
-
};
|
|
52
|
+
const headers = sharedHeaders("DescribeAgents");
|
|
74
53
|
let body;
|
|
75
54
|
body = JSON.stringify(se_DescribeAgentsRequest(input, context));
|
|
76
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
56
|
};
|
|
78
57
|
exports.se_DescribeAgentsCommand = se_DescribeAgentsCommand;
|
|
79
58
|
const se_DescribeConfigurationsCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.1",
|
|
82
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeConfigurations",
|
|
83
|
-
};
|
|
59
|
+
const headers = sharedHeaders("DescribeConfigurations");
|
|
84
60
|
let body;
|
|
85
61
|
body = JSON.stringify(se_DescribeConfigurationsRequest(input, context));
|
|
86
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
63
|
};
|
|
88
64
|
exports.se_DescribeConfigurationsCommand = se_DescribeConfigurationsCommand;
|
|
89
65
|
const se_DescribeContinuousExportsCommand = async (input, context) => {
|
|
90
|
-
const headers =
|
|
91
|
-
"content-type": "application/x-amz-json-1.1",
|
|
92
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeContinuousExports",
|
|
93
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DescribeContinuousExports");
|
|
94
67
|
let body;
|
|
95
68
|
body = JSON.stringify(se_DescribeContinuousExportsRequest(input, context));
|
|
96
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
70
|
};
|
|
98
71
|
exports.se_DescribeContinuousExportsCommand = se_DescribeContinuousExportsCommand;
|
|
99
72
|
const se_DescribeExportConfigurationsCommand = async (input, context) => {
|
|
100
|
-
const headers =
|
|
101
|
-
"content-type": "application/x-amz-json-1.1",
|
|
102
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeExportConfigurations",
|
|
103
|
-
};
|
|
73
|
+
const headers = sharedHeaders("DescribeExportConfigurations");
|
|
104
74
|
let body;
|
|
105
75
|
body = JSON.stringify(se_DescribeExportConfigurationsRequest(input, context));
|
|
106
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
77
|
};
|
|
108
78
|
exports.se_DescribeExportConfigurationsCommand = se_DescribeExportConfigurationsCommand;
|
|
109
79
|
const se_DescribeExportTasksCommand = async (input, context) => {
|
|
110
|
-
const headers =
|
|
111
|
-
"content-type": "application/x-amz-json-1.1",
|
|
112
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeExportTasks",
|
|
113
|
-
};
|
|
80
|
+
const headers = sharedHeaders("DescribeExportTasks");
|
|
114
81
|
let body;
|
|
115
82
|
body = JSON.stringify(se_DescribeExportTasksRequest(input, context));
|
|
116
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
84
|
};
|
|
118
85
|
exports.se_DescribeExportTasksCommand = se_DescribeExportTasksCommand;
|
|
119
86
|
const se_DescribeImportTasksCommand = async (input, context) => {
|
|
120
|
-
const headers =
|
|
121
|
-
"content-type": "application/x-amz-json-1.1",
|
|
122
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeImportTasks",
|
|
123
|
-
};
|
|
87
|
+
const headers = sharedHeaders("DescribeImportTasks");
|
|
124
88
|
let body;
|
|
125
89
|
body = JSON.stringify(se_DescribeImportTasksRequest(input, context));
|
|
126
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
91
|
};
|
|
128
92
|
exports.se_DescribeImportTasksCommand = se_DescribeImportTasksCommand;
|
|
129
93
|
const se_DescribeTagsCommand = async (input, context) => {
|
|
130
|
-
const headers =
|
|
131
|
-
"content-type": "application/x-amz-json-1.1",
|
|
132
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeTags",
|
|
133
|
-
};
|
|
94
|
+
const headers = sharedHeaders("DescribeTags");
|
|
134
95
|
let body;
|
|
135
96
|
body = JSON.stringify(se_DescribeTagsRequest(input, context));
|
|
136
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
98
|
};
|
|
138
99
|
exports.se_DescribeTagsCommand = se_DescribeTagsCommand;
|
|
139
100
|
const se_DisassociateConfigurationItemsFromApplicationCommand = async (input, context) => {
|
|
140
|
-
const headers =
|
|
141
|
-
"content-type": "application/x-amz-json-1.1",
|
|
142
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DisassociateConfigurationItemsFromApplication",
|
|
143
|
-
};
|
|
101
|
+
const headers = sharedHeaders("DisassociateConfigurationItemsFromApplication");
|
|
144
102
|
let body;
|
|
145
103
|
body = JSON.stringify(se_DisassociateConfigurationItemsFromApplicationRequest(input, context));
|
|
146
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
105
|
};
|
|
148
106
|
exports.se_DisassociateConfigurationItemsFromApplicationCommand = se_DisassociateConfigurationItemsFromApplicationCommand;
|
|
149
107
|
const se_ExportConfigurationsCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.ExportConfigurations",
|
|
153
|
-
};
|
|
108
|
+
const headers = sharedHeaders("ExportConfigurations");
|
|
154
109
|
const body = "{}";
|
|
155
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
111
|
};
|
|
157
112
|
exports.se_ExportConfigurationsCommand = se_ExportConfigurationsCommand;
|
|
158
113
|
const se_GetDiscoverySummaryCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.GetDiscoverySummary",
|
|
162
|
-
};
|
|
114
|
+
const headers = sharedHeaders("GetDiscoverySummary");
|
|
163
115
|
let body;
|
|
164
116
|
body = JSON.stringify(se_GetDiscoverySummaryRequest(input, context));
|
|
165
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
118
|
};
|
|
167
119
|
exports.se_GetDiscoverySummaryCommand = se_GetDiscoverySummaryCommand;
|
|
168
120
|
const se_ListConfigurationsCommand = async (input, context) => {
|
|
169
|
-
const headers =
|
|
170
|
-
"content-type": "application/x-amz-json-1.1",
|
|
171
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.ListConfigurations",
|
|
172
|
-
};
|
|
121
|
+
const headers = sharedHeaders("ListConfigurations");
|
|
173
122
|
let body;
|
|
174
123
|
body = JSON.stringify(se_ListConfigurationsRequest(input, context));
|
|
175
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
125
|
};
|
|
177
126
|
exports.se_ListConfigurationsCommand = se_ListConfigurationsCommand;
|
|
178
127
|
const se_ListServerNeighborsCommand = async (input, context) => {
|
|
179
|
-
const headers =
|
|
180
|
-
"content-type": "application/x-amz-json-1.1",
|
|
181
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.ListServerNeighbors",
|
|
182
|
-
};
|
|
128
|
+
const headers = sharedHeaders("ListServerNeighbors");
|
|
183
129
|
let body;
|
|
184
130
|
body = JSON.stringify(se_ListServerNeighborsRequest(input, context));
|
|
185
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
132
|
};
|
|
187
133
|
exports.se_ListServerNeighborsCommand = se_ListServerNeighborsCommand;
|
|
188
134
|
const se_StartContinuousExportCommand = async (input, context) => {
|
|
189
|
-
const headers =
|
|
190
|
-
"content-type": "application/x-amz-json-1.1",
|
|
191
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartContinuousExport",
|
|
192
|
-
};
|
|
135
|
+
const headers = sharedHeaders("StartContinuousExport");
|
|
193
136
|
let body;
|
|
194
137
|
body = JSON.stringify(se_StartContinuousExportRequest(input, context));
|
|
195
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
139
|
};
|
|
197
140
|
exports.se_StartContinuousExportCommand = se_StartContinuousExportCommand;
|
|
198
141
|
const se_StartDataCollectionByAgentIdsCommand = async (input, context) => {
|
|
199
|
-
const headers =
|
|
200
|
-
"content-type": "application/x-amz-json-1.1",
|
|
201
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartDataCollectionByAgentIds",
|
|
202
|
-
};
|
|
142
|
+
const headers = sharedHeaders("StartDataCollectionByAgentIds");
|
|
203
143
|
let body;
|
|
204
144
|
body = JSON.stringify(se_StartDataCollectionByAgentIdsRequest(input, context));
|
|
205
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
146
|
};
|
|
207
147
|
exports.se_StartDataCollectionByAgentIdsCommand = se_StartDataCollectionByAgentIdsCommand;
|
|
208
148
|
const se_StartExportTaskCommand = async (input, context) => {
|
|
209
|
-
const headers =
|
|
210
|
-
"content-type": "application/x-amz-json-1.1",
|
|
211
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartExportTask",
|
|
212
|
-
};
|
|
149
|
+
const headers = sharedHeaders("StartExportTask");
|
|
213
150
|
let body;
|
|
214
151
|
body = JSON.stringify(se_StartExportTaskRequest(input, context));
|
|
215
152
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
153
|
};
|
|
217
154
|
exports.se_StartExportTaskCommand = se_StartExportTaskCommand;
|
|
218
155
|
const se_StartImportTaskCommand = async (input, context) => {
|
|
219
|
-
const headers =
|
|
220
|
-
"content-type": "application/x-amz-json-1.1",
|
|
221
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartImportTask",
|
|
222
|
-
};
|
|
156
|
+
const headers = sharedHeaders("StartImportTask");
|
|
223
157
|
let body;
|
|
224
158
|
body = JSON.stringify(se_StartImportTaskRequest(input, context));
|
|
225
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
160
|
};
|
|
227
161
|
exports.se_StartImportTaskCommand = se_StartImportTaskCommand;
|
|
228
162
|
const se_StopContinuousExportCommand = async (input, context) => {
|
|
229
|
-
const headers =
|
|
230
|
-
"content-type": "application/x-amz-json-1.1",
|
|
231
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StopContinuousExport",
|
|
232
|
-
};
|
|
163
|
+
const headers = sharedHeaders("StopContinuousExport");
|
|
233
164
|
let body;
|
|
234
165
|
body = JSON.stringify(se_StopContinuousExportRequest(input, context));
|
|
235
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
236
167
|
};
|
|
237
168
|
exports.se_StopContinuousExportCommand = se_StopContinuousExportCommand;
|
|
238
169
|
const se_StopDataCollectionByAgentIdsCommand = async (input, context) => {
|
|
239
|
-
const headers =
|
|
240
|
-
"content-type": "application/x-amz-json-1.1",
|
|
241
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StopDataCollectionByAgentIds",
|
|
242
|
-
};
|
|
170
|
+
const headers = sharedHeaders("StopDataCollectionByAgentIds");
|
|
243
171
|
let body;
|
|
244
172
|
body = JSON.stringify(se_StopDataCollectionByAgentIdsRequest(input, context));
|
|
245
173
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
174
|
};
|
|
247
175
|
exports.se_StopDataCollectionByAgentIdsCommand = se_StopDataCollectionByAgentIdsCommand;
|
|
248
176
|
const se_UpdateApplicationCommand = async (input, context) => {
|
|
249
|
-
const headers =
|
|
250
|
-
"content-type": "application/x-amz-json-1.1",
|
|
251
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.UpdateApplication",
|
|
252
|
-
};
|
|
177
|
+
const headers = sharedHeaders("UpdateApplication");
|
|
253
178
|
let body;
|
|
254
179
|
body = JSON.stringify(se_UpdateApplicationRequest(input, context));
|
|
255
180
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -2354,6 +2279,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2354
2279
|
}
|
|
2355
2280
|
return new protocol_http_1.HttpRequest(contents);
|
|
2356
2281
|
};
|
|
2282
|
+
function sharedHeaders(operation) {
|
|
2283
|
+
return {
|
|
2284
|
+
"content-type": "application/x-amz-json-1.1",
|
|
2285
|
+
"x-amz-target": `AWSPoseidonService_V2015_11_01.${operation}`,
|
|
2286
|
+
};
|
|
2287
|
+
}
|
|
2357
2288
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2358
2289
|
if (encoded.length) {
|
|
2359
2290
|
return JSON.parse(encoded);
|
|
@@ -4,225 +4,150 @@ import { v4 as generateIdempotencyToken } from "uuid";
|
|
|
4
4
|
import { ApplicationDiscoveryServiceServiceException as __BaseException } from "../models/ApplicationDiscoveryServiceServiceException";
|
|
5
5
|
import { AuthorizationErrorException, ConflictErrorException, HomeRegionNotSetException, InvalidParameterException, InvalidParameterValueException, OperationNotPermittedException, ResourceInUseException, ResourceNotFoundException, ServerInternalErrorException, } from "../models/models_0";
|
|
6
6
|
export const se_AssociateConfigurationItemsToApplicationCommand = async (input, context) => {
|
|
7
|
-
const headers =
|
|
8
|
-
"content-type": "application/x-amz-json-1.1",
|
|
9
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.AssociateConfigurationItemsToApplication",
|
|
10
|
-
};
|
|
7
|
+
const headers = sharedHeaders("AssociateConfigurationItemsToApplication");
|
|
11
8
|
let body;
|
|
12
9
|
body = JSON.stringify(se_AssociateConfigurationItemsToApplicationRequest(input, context));
|
|
13
10
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
11
|
};
|
|
15
12
|
export const se_BatchDeleteImportDataCommand = async (input, context) => {
|
|
16
|
-
const headers =
|
|
17
|
-
"content-type": "application/x-amz-json-1.1",
|
|
18
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.BatchDeleteImportData",
|
|
19
|
-
};
|
|
13
|
+
const headers = sharedHeaders("BatchDeleteImportData");
|
|
20
14
|
let body;
|
|
21
15
|
body = JSON.stringify(se_BatchDeleteImportDataRequest(input, context));
|
|
22
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
17
|
};
|
|
24
18
|
export const se_CreateApplicationCommand = async (input, context) => {
|
|
25
|
-
const headers =
|
|
26
|
-
"content-type": "application/x-amz-json-1.1",
|
|
27
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.CreateApplication",
|
|
28
|
-
};
|
|
19
|
+
const headers = sharedHeaders("CreateApplication");
|
|
29
20
|
let body;
|
|
30
21
|
body = JSON.stringify(se_CreateApplicationRequest(input, context));
|
|
31
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
23
|
};
|
|
33
24
|
export const se_CreateTagsCommand = async (input, context) => {
|
|
34
|
-
const headers =
|
|
35
|
-
"content-type": "application/x-amz-json-1.1",
|
|
36
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.CreateTags",
|
|
37
|
-
};
|
|
25
|
+
const headers = sharedHeaders("CreateTags");
|
|
38
26
|
let body;
|
|
39
27
|
body = JSON.stringify(se_CreateTagsRequest(input, context));
|
|
40
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
29
|
};
|
|
42
30
|
export const se_DeleteApplicationsCommand = async (input, context) => {
|
|
43
|
-
const headers =
|
|
44
|
-
"content-type": "application/x-amz-json-1.1",
|
|
45
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DeleteApplications",
|
|
46
|
-
};
|
|
31
|
+
const headers = sharedHeaders("DeleteApplications");
|
|
47
32
|
let body;
|
|
48
33
|
body = JSON.stringify(se_DeleteApplicationsRequest(input, context));
|
|
49
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
35
|
};
|
|
51
36
|
export const se_DeleteTagsCommand = async (input, context) => {
|
|
52
|
-
const headers =
|
|
53
|
-
"content-type": "application/x-amz-json-1.1",
|
|
54
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DeleteTags",
|
|
55
|
-
};
|
|
37
|
+
const headers = sharedHeaders("DeleteTags");
|
|
56
38
|
let body;
|
|
57
39
|
body = JSON.stringify(se_DeleteTagsRequest(input, context));
|
|
58
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
41
|
};
|
|
60
42
|
export const se_DescribeAgentsCommand = async (input, context) => {
|
|
61
|
-
const headers =
|
|
62
|
-
"content-type": "application/x-amz-json-1.1",
|
|
63
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeAgents",
|
|
64
|
-
};
|
|
43
|
+
const headers = sharedHeaders("DescribeAgents");
|
|
65
44
|
let body;
|
|
66
45
|
body = JSON.stringify(se_DescribeAgentsRequest(input, context));
|
|
67
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
47
|
};
|
|
69
48
|
export const se_DescribeConfigurationsCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.1",
|
|
72
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeConfigurations",
|
|
73
|
-
};
|
|
49
|
+
const headers = sharedHeaders("DescribeConfigurations");
|
|
74
50
|
let body;
|
|
75
51
|
body = JSON.stringify(se_DescribeConfigurationsRequest(input, context));
|
|
76
52
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
53
|
};
|
|
78
54
|
export const se_DescribeContinuousExportsCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-amz-json-1.1",
|
|
81
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeContinuousExports",
|
|
82
|
-
};
|
|
55
|
+
const headers = sharedHeaders("DescribeContinuousExports");
|
|
83
56
|
let body;
|
|
84
57
|
body = JSON.stringify(se_DescribeContinuousExportsRequest(input, context));
|
|
85
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
59
|
};
|
|
87
60
|
export const se_DescribeExportConfigurationsCommand = async (input, context) => {
|
|
88
|
-
const headers =
|
|
89
|
-
"content-type": "application/x-amz-json-1.1",
|
|
90
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeExportConfigurations",
|
|
91
|
-
};
|
|
61
|
+
const headers = sharedHeaders("DescribeExportConfigurations");
|
|
92
62
|
let body;
|
|
93
63
|
body = JSON.stringify(se_DescribeExportConfigurationsRequest(input, context));
|
|
94
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
65
|
};
|
|
96
66
|
export const se_DescribeExportTasksCommand = async (input, context) => {
|
|
97
|
-
const headers =
|
|
98
|
-
"content-type": "application/x-amz-json-1.1",
|
|
99
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeExportTasks",
|
|
100
|
-
};
|
|
67
|
+
const headers = sharedHeaders("DescribeExportTasks");
|
|
101
68
|
let body;
|
|
102
69
|
body = JSON.stringify(se_DescribeExportTasksRequest(input, context));
|
|
103
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
71
|
};
|
|
105
72
|
export const se_DescribeImportTasksCommand = async (input, context) => {
|
|
106
|
-
const headers =
|
|
107
|
-
"content-type": "application/x-amz-json-1.1",
|
|
108
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeImportTasks",
|
|
109
|
-
};
|
|
73
|
+
const headers = sharedHeaders("DescribeImportTasks");
|
|
110
74
|
let body;
|
|
111
75
|
body = JSON.stringify(se_DescribeImportTasksRequest(input, context));
|
|
112
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
77
|
};
|
|
114
78
|
export const se_DescribeTagsCommand = async (input, context) => {
|
|
115
|
-
const headers =
|
|
116
|
-
"content-type": "application/x-amz-json-1.1",
|
|
117
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeTags",
|
|
118
|
-
};
|
|
79
|
+
const headers = sharedHeaders("DescribeTags");
|
|
119
80
|
let body;
|
|
120
81
|
body = JSON.stringify(se_DescribeTagsRequest(input, context));
|
|
121
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
83
|
};
|
|
123
84
|
export const se_DisassociateConfigurationItemsFromApplicationCommand = async (input, context) => {
|
|
124
|
-
const headers =
|
|
125
|
-
"content-type": "application/x-amz-json-1.1",
|
|
126
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DisassociateConfigurationItemsFromApplication",
|
|
127
|
-
};
|
|
85
|
+
const headers = sharedHeaders("DisassociateConfigurationItemsFromApplication");
|
|
128
86
|
let body;
|
|
129
87
|
body = JSON.stringify(se_DisassociateConfigurationItemsFromApplicationRequest(input, context));
|
|
130
88
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
89
|
};
|
|
132
90
|
export const se_ExportConfigurationsCommand = async (input, context) => {
|
|
133
|
-
const headers =
|
|
134
|
-
"content-type": "application/x-amz-json-1.1",
|
|
135
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.ExportConfigurations",
|
|
136
|
-
};
|
|
91
|
+
const headers = sharedHeaders("ExportConfigurations");
|
|
137
92
|
const body = "{}";
|
|
138
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
94
|
};
|
|
140
95
|
export const se_GetDiscoverySummaryCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.GetDiscoverySummary",
|
|
144
|
-
};
|
|
96
|
+
const headers = sharedHeaders("GetDiscoverySummary");
|
|
145
97
|
let body;
|
|
146
98
|
body = JSON.stringify(se_GetDiscoverySummaryRequest(input, context));
|
|
147
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
100
|
};
|
|
149
101
|
export const se_ListConfigurationsCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.ListConfigurations",
|
|
153
|
-
};
|
|
102
|
+
const headers = sharedHeaders("ListConfigurations");
|
|
154
103
|
let body;
|
|
155
104
|
body = JSON.stringify(se_ListConfigurationsRequest(input, context));
|
|
156
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
106
|
};
|
|
158
107
|
export const se_ListServerNeighborsCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.ListServerNeighbors",
|
|
162
|
-
};
|
|
108
|
+
const headers = sharedHeaders("ListServerNeighbors");
|
|
163
109
|
let body;
|
|
164
110
|
body = JSON.stringify(se_ListServerNeighborsRequest(input, context));
|
|
165
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
112
|
};
|
|
167
113
|
export const se_StartContinuousExportCommand = async (input, context) => {
|
|
168
|
-
const headers =
|
|
169
|
-
"content-type": "application/x-amz-json-1.1",
|
|
170
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartContinuousExport",
|
|
171
|
-
};
|
|
114
|
+
const headers = sharedHeaders("StartContinuousExport");
|
|
172
115
|
let body;
|
|
173
116
|
body = JSON.stringify(se_StartContinuousExportRequest(input, context));
|
|
174
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
118
|
};
|
|
176
119
|
export const se_StartDataCollectionByAgentIdsCommand = async (input, context) => {
|
|
177
|
-
const headers =
|
|
178
|
-
"content-type": "application/x-amz-json-1.1",
|
|
179
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartDataCollectionByAgentIds",
|
|
180
|
-
};
|
|
120
|
+
const headers = sharedHeaders("StartDataCollectionByAgentIds");
|
|
181
121
|
let body;
|
|
182
122
|
body = JSON.stringify(se_StartDataCollectionByAgentIdsRequest(input, context));
|
|
183
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
124
|
};
|
|
185
125
|
export const se_StartExportTaskCommand = async (input, context) => {
|
|
186
|
-
const headers =
|
|
187
|
-
"content-type": "application/x-amz-json-1.1",
|
|
188
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartExportTask",
|
|
189
|
-
};
|
|
126
|
+
const headers = sharedHeaders("StartExportTask");
|
|
190
127
|
let body;
|
|
191
128
|
body = JSON.stringify(se_StartExportTaskRequest(input, context));
|
|
192
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
130
|
};
|
|
194
131
|
export const se_StartImportTaskCommand = async (input, context) => {
|
|
195
|
-
const headers =
|
|
196
|
-
"content-type": "application/x-amz-json-1.1",
|
|
197
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartImportTask",
|
|
198
|
-
};
|
|
132
|
+
const headers = sharedHeaders("StartImportTask");
|
|
199
133
|
let body;
|
|
200
134
|
body = JSON.stringify(se_StartImportTaskRequest(input, context));
|
|
201
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
136
|
};
|
|
203
137
|
export const se_StopContinuousExportCommand = async (input, context) => {
|
|
204
|
-
const headers =
|
|
205
|
-
"content-type": "application/x-amz-json-1.1",
|
|
206
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StopContinuousExport",
|
|
207
|
-
};
|
|
138
|
+
const headers = sharedHeaders("StopContinuousExport");
|
|
208
139
|
let body;
|
|
209
140
|
body = JSON.stringify(se_StopContinuousExportRequest(input, context));
|
|
210
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
142
|
};
|
|
212
143
|
export const se_StopDataCollectionByAgentIdsCommand = async (input, context) => {
|
|
213
|
-
const headers =
|
|
214
|
-
"content-type": "application/x-amz-json-1.1",
|
|
215
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StopDataCollectionByAgentIds",
|
|
216
|
-
};
|
|
144
|
+
const headers = sharedHeaders("StopDataCollectionByAgentIds");
|
|
217
145
|
let body;
|
|
218
146
|
body = JSON.stringify(se_StopDataCollectionByAgentIdsRequest(input, context));
|
|
219
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
148
|
};
|
|
221
149
|
export const se_UpdateApplicationCommand = async (input, context) => {
|
|
222
|
-
const headers =
|
|
223
|
-
"content-type": "application/x-amz-json-1.1",
|
|
224
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.UpdateApplication",
|
|
225
|
-
};
|
|
150
|
+
const headers = sharedHeaders("UpdateApplication");
|
|
226
151
|
let body;
|
|
227
152
|
body = JSON.stringify(se_UpdateApplicationRequest(input, context));
|
|
228
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -2301,6 +2226,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2301
2226
|
}
|
|
2302
2227
|
return new __HttpRequest(contents);
|
|
2303
2228
|
};
|
|
2229
|
+
function sharedHeaders(operation) {
|
|
2230
|
+
return {
|
|
2231
|
+
"content-type": "application/x-amz-json-1.1",
|
|
2232
|
+
"x-amz-target": `AWSPoseidonService_V2015_11_01.${operation}`,
|
|
2233
|
+
};
|
|
2234
|
+
}
|
|
2304
2235
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2305
2236
|
if (encoded.length) {
|
|
2306
2237
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-application-discovery-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Application Discovery Service Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.312.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,43 +21,43 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
55
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.312.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.310.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.310.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.310.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.310.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.310.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.310.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.310.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.310.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.310.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.310.0",
|
|
44
|
+
"@aws-sdk/types": "3.310.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.310.0",
|
|
46
|
+
"@aws-sdk/util-base64": "3.310.0",
|
|
47
|
+
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
|
+
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.310.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.310.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.310.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.310.0",
|
|
55
|
+
"@aws-sdk/util-utf8": "3.310.0",
|
|
56
56
|
"tslib": "^2.5.0",
|
|
57
57
|
"uuid": "^8.3.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
60
|
+
"@aws-sdk/service-client-documentation-generator": "3.310.0",
|
|
61
61
|
"@tsconfig/node14": "1.0.3",
|
|
62
62
|
"@types/node": "^14.14.31",
|
|
63
63
|
"@types/uuid": "^8.3.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"files": [
|
|
81
|
-
"dist
|
|
81
|
+
"dist-*/**"
|
|
82
82
|
],
|
|
83
83
|
"author": {
|
|
84
84
|
"name": "AWS SDK for JavaScript Team",
|