@aws-sdk/client-inspector 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.
@@ -7,369 +7,258 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const InspectorServiceException_1 = require("../models/InspectorServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_AddAttributesToFindingsCommand = async (input, context) => {
10
- const headers = {
11
- "content-type": "application/x-amz-json-1.1",
12
- "x-amz-target": "InspectorService.AddAttributesToFindings",
13
- };
10
+ const headers = sharedHeaders("AddAttributesToFindings");
14
11
  let body;
15
12
  body = JSON.stringify(se_AddAttributesToFindingsRequest(input, context));
16
13
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
14
  };
18
15
  exports.se_AddAttributesToFindingsCommand = se_AddAttributesToFindingsCommand;
19
16
  const se_CreateAssessmentTargetCommand = async (input, context) => {
20
- const headers = {
21
- "content-type": "application/x-amz-json-1.1",
22
- "x-amz-target": "InspectorService.CreateAssessmentTarget",
23
- };
17
+ const headers = sharedHeaders("CreateAssessmentTarget");
24
18
  let body;
25
19
  body = JSON.stringify(se_CreateAssessmentTargetRequest(input, context));
26
20
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
27
21
  };
28
22
  exports.se_CreateAssessmentTargetCommand = se_CreateAssessmentTargetCommand;
29
23
  const se_CreateAssessmentTemplateCommand = async (input, context) => {
30
- const headers = {
31
- "content-type": "application/x-amz-json-1.1",
32
- "x-amz-target": "InspectorService.CreateAssessmentTemplate",
33
- };
24
+ const headers = sharedHeaders("CreateAssessmentTemplate");
34
25
  let body;
35
26
  body = JSON.stringify(se_CreateAssessmentTemplateRequest(input, context));
36
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
37
28
  };
38
29
  exports.se_CreateAssessmentTemplateCommand = se_CreateAssessmentTemplateCommand;
39
30
  const se_CreateExclusionsPreviewCommand = async (input, context) => {
40
- const headers = {
41
- "content-type": "application/x-amz-json-1.1",
42
- "x-amz-target": "InspectorService.CreateExclusionsPreview",
43
- };
31
+ const headers = sharedHeaders("CreateExclusionsPreview");
44
32
  let body;
45
33
  body = JSON.stringify(se_CreateExclusionsPreviewRequest(input, context));
46
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
35
  };
48
36
  exports.se_CreateExclusionsPreviewCommand = se_CreateExclusionsPreviewCommand;
49
37
  const se_CreateResourceGroupCommand = async (input, context) => {
50
- const headers = {
51
- "content-type": "application/x-amz-json-1.1",
52
- "x-amz-target": "InspectorService.CreateResourceGroup",
53
- };
38
+ const headers = sharedHeaders("CreateResourceGroup");
54
39
  let body;
55
40
  body = JSON.stringify(se_CreateResourceGroupRequest(input, context));
56
41
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
42
  };
58
43
  exports.se_CreateResourceGroupCommand = se_CreateResourceGroupCommand;
59
44
  const se_DeleteAssessmentRunCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "InspectorService.DeleteAssessmentRun",
63
- };
45
+ const headers = sharedHeaders("DeleteAssessmentRun");
64
46
  let body;
65
47
  body = JSON.stringify(se_DeleteAssessmentRunRequest(input, context));
66
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
49
  };
68
50
  exports.se_DeleteAssessmentRunCommand = se_DeleteAssessmentRunCommand;
69
51
  const se_DeleteAssessmentTargetCommand = async (input, context) => {
70
- const headers = {
71
- "content-type": "application/x-amz-json-1.1",
72
- "x-amz-target": "InspectorService.DeleteAssessmentTarget",
73
- };
52
+ const headers = sharedHeaders("DeleteAssessmentTarget");
74
53
  let body;
75
54
  body = JSON.stringify(se_DeleteAssessmentTargetRequest(input, context));
76
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
56
  };
78
57
  exports.se_DeleteAssessmentTargetCommand = se_DeleteAssessmentTargetCommand;
79
58
  const se_DeleteAssessmentTemplateCommand = async (input, context) => {
80
- const headers = {
81
- "content-type": "application/x-amz-json-1.1",
82
- "x-amz-target": "InspectorService.DeleteAssessmentTemplate",
83
- };
59
+ const headers = sharedHeaders("DeleteAssessmentTemplate");
84
60
  let body;
85
61
  body = JSON.stringify(se_DeleteAssessmentTemplateRequest(input, context));
86
62
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
87
63
  };
88
64
  exports.se_DeleteAssessmentTemplateCommand = se_DeleteAssessmentTemplateCommand;
89
65
  const se_DescribeAssessmentRunsCommand = async (input, context) => {
90
- const headers = {
91
- "content-type": "application/x-amz-json-1.1",
92
- "x-amz-target": "InspectorService.DescribeAssessmentRuns",
93
- };
66
+ const headers = sharedHeaders("DescribeAssessmentRuns");
94
67
  let body;
95
68
  body = JSON.stringify(se_DescribeAssessmentRunsRequest(input, context));
96
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
97
70
  };
98
71
  exports.se_DescribeAssessmentRunsCommand = se_DescribeAssessmentRunsCommand;
99
72
  const se_DescribeAssessmentTargetsCommand = async (input, context) => {
100
- const headers = {
101
- "content-type": "application/x-amz-json-1.1",
102
- "x-amz-target": "InspectorService.DescribeAssessmentTargets",
103
- };
73
+ const headers = sharedHeaders("DescribeAssessmentTargets");
104
74
  let body;
105
75
  body = JSON.stringify(se_DescribeAssessmentTargetsRequest(input, context));
106
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
77
  };
108
78
  exports.se_DescribeAssessmentTargetsCommand = se_DescribeAssessmentTargetsCommand;
109
79
  const se_DescribeAssessmentTemplatesCommand = async (input, context) => {
110
- const headers = {
111
- "content-type": "application/x-amz-json-1.1",
112
- "x-amz-target": "InspectorService.DescribeAssessmentTemplates",
113
- };
80
+ const headers = sharedHeaders("DescribeAssessmentTemplates");
114
81
  let body;
115
82
  body = JSON.stringify(se_DescribeAssessmentTemplatesRequest(input, context));
116
83
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
117
84
  };
118
85
  exports.se_DescribeAssessmentTemplatesCommand = se_DescribeAssessmentTemplatesCommand;
119
86
  const se_DescribeCrossAccountAccessRoleCommand = async (input, context) => {
120
- const headers = {
121
- "content-type": "application/x-amz-json-1.1",
122
- "x-amz-target": "InspectorService.DescribeCrossAccountAccessRole",
123
- };
87
+ const headers = sharedHeaders("DescribeCrossAccountAccessRole");
124
88
  const body = "{}";
125
89
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
90
  };
127
91
  exports.se_DescribeCrossAccountAccessRoleCommand = se_DescribeCrossAccountAccessRoleCommand;
128
92
  const se_DescribeExclusionsCommand = async (input, context) => {
129
- const headers = {
130
- "content-type": "application/x-amz-json-1.1",
131
- "x-amz-target": "InspectorService.DescribeExclusions",
132
- };
93
+ const headers = sharedHeaders("DescribeExclusions");
133
94
  let body;
134
95
  body = JSON.stringify(se_DescribeExclusionsRequest(input, context));
135
96
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
136
97
  };
137
98
  exports.se_DescribeExclusionsCommand = se_DescribeExclusionsCommand;
138
99
  const se_DescribeFindingsCommand = async (input, context) => {
139
- const headers = {
140
- "content-type": "application/x-amz-json-1.1",
141
- "x-amz-target": "InspectorService.DescribeFindings",
142
- };
100
+ const headers = sharedHeaders("DescribeFindings");
143
101
  let body;
144
102
  body = JSON.stringify(se_DescribeFindingsRequest(input, context));
145
103
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
146
104
  };
147
105
  exports.se_DescribeFindingsCommand = se_DescribeFindingsCommand;
148
106
  const se_DescribeResourceGroupsCommand = async (input, context) => {
149
- const headers = {
150
- "content-type": "application/x-amz-json-1.1",
151
- "x-amz-target": "InspectorService.DescribeResourceGroups",
152
- };
107
+ const headers = sharedHeaders("DescribeResourceGroups");
153
108
  let body;
154
109
  body = JSON.stringify(se_DescribeResourceGroupsRequest(input, context));
155
110
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
111
  };
157
112
  exports.se_DescribeResourceGroupsCommand = se_DescribeResourceGroupsCommand;
158
113
  const se_DescribeRulesPackagesCommand = async (input, context) => {
159
- const headers = {
160
- "content-type": "application/x-amz-json-1.1",
161
- "x-amz-target": "InspectorService.DescribeRulesPackages",
162
- };
114
+ const headers = sharedHeaders("DescribeRulesPackages");
163
115
  let body;
164
116
  body = JSON.stringify(se_DescribeRulesPackagesRequest(input, context));
165
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
118
  };
167
119
  exports.se_DescribeRulesPackagesCommand = se_DescribeRulesPackagesCommand;
168
120
  const se_GetAssessmentReportCommand = async (input, context) => {
169
- const headers = {
170
- "content-type": "application/x-amz-json-1.1",
171
- "x-amz-target": "InspectorService.GetAssessmentReport",
172
- };
121
+ const headers = sharedHeaders("GetAssessmentReport");
173
122
  let body;
174
123
  body = JSON.stringify(se_GetAssessmentReportRequest(input, context));
175
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
176
125
  };
177
126
  exports.se_GetAssessmentReportCommand = se_GetAssessmentReportCommand;
178
127
  const se_GetExclusionsPreviewCommand = async (input, context) => {
179
- const headers = {
180
- "content-type": "application/x-amz-json-1.1",
181
- "x-amz-target": "InspectorService.GetExclusionsPreview",
182
- };
128
+ const headers = sharedHeaders("GetExclusionsPreview");
183
129
  let body;
184
130
  body = JSON.stringify(se_GetExclusionsPreviewRequest(input, context));
185
131
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
132
  };
187
133
  exports.se_GetExclusionsPreviewCommand = se_GetExclusionsPreviewCommand;
188
134
  const se_GetTelemetryMetadataCommand = async (input, context) => {
189
- const headers = {
190
- "content-type": "application/x-amz-json-1.1",
191
- "x-amz-target": "InspectorService.GetTelemetryMetadata",
192
- };
135
+ const headers = sharedHeaders("GetTelemetryMetadata");
193
136
  let body;
194
137
  body = JSON.stringify(se_GetTelemetryMetadataRequest(input, context));
195
138
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
139
  };
197
140
  exports.se_GetTelemetryMetadataCommand = se_GetTelemetryMetadataCommand;
198
141
  const se_ListAssessmentRunAgentsCommand = async (input, context) => {
199
- const headers = {
200
- "content-type": "application/x-amz-json-1.1",
201
- "x-amz-target": "InspectorService.ListAssessmentRunAgents",
202
- };
142
+ const headers = sharedHeaders("ListAssessmentRunAgents");
203
143
  let body;
204
144
  body = JSON.stringify(se_ListAssessmentRunAgentsRequest(input, context));
205
145
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
206
146
  };
207
147
  exports.se_ListAssessmentRunAgentsCommand = se_ListAssessmentRunAgentsCommand;
208
148
  const se_ListAssessmentRunsCommand = async (input, context) => {
209
- const headers = {
210
- "content-type": "application/x-amz-json-1.1",
211
- "x-amz-target": "InspectorService.ListAssessmentRuns",
212
- };
149
+ const headers = sharedHeaders("ListAssessmentRuns");
213
150
  let body;
214
151
  body = JSON.stringify(se_ListAssessmentRunsRequest(input, context));
215
152
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
216
153
  };
217
154
  exports.se_ListAssessmentRunsCommand = se_ListAssessmentRunsCommand;
218
155
  const se_ListAssessmentTargetsCommand = async (input, context) => {
219
- const headers = {
220
- "content-type": "application/x-amz-json-1.1",
221
- "x-amz-target": "InspectorService.ListAssessmentTargets",
222
- };
156
+ const headers = sharedHeaders("ListAssessmentTargets");
223
157
  let body;
224
158
  body = JSON.stringify(se_ListAssessmentTargetsRequest(input, context));
225
159
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
226
160
  };
227
161
  exports.se_ListAssessmentTargetsCommand = se_ListAssessmentTargetsCommand;
228
162
  const se_ListAssessmentTemplatesCommand = async (input, context) => {
229
- const headers = {
230
- "content-type": "application/x-amz-json-1.1",
231
- "x-amz-target": "InspectorService.ListAssessmentTemplates",
232
- };
163
+ const headers = sharedHeaders("ListAssessmentTemplates");
233
164
  let body;
234
165
  body = JSON.stringify(se_ListAssessmentTemplatesRequest(input, context));
235
166
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
236
167
  };
237
168
  exports.se_ListAssessmentTemplatesCommand = se_ListAssessmentTemplatesCommand;
238
169
  const se_ListEventSubscriptionsCommand = async (input, context) => {
239
- const headers = {
240
- "content-type": "application/x-amz-json-1.1",
241
- "x-amz-target": "InspectorService.ListEventSubscriptions",
242
- };
170
+ const headers = sharedHeaders("ListEventSubscriptions");
243
171
  let body;
244
172
  body = JSON.stringify(se_ListEventSubscriptionsRequest(input, context));
245
173
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
174
  };
247
175
  exports.se_ListEventSubscriptionsCommand = se_ListEventSubscriptionsCommand;
248
176
  const se_ListExclusionsCommand = async (input, context) => {
249
- const headers = {
250
- "content-type": "application/x-amz-json-1.1",
251
- "x-amz-target": "InspectorService.ListExclusions",
252
- };
177
+ const headers = sharedHeaders("ListExclusions");
253
178
  let body;
254
179
  body = JSON.stringify(se_ListExclusionsRequest(input, context));
255
180
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
181
  };
257
182
  exports.se_ListExclusionsCommand = se_ListExclusionsCommand;
258
183
  const se_ListFindingsCommand = async (input, context) => {
259
- const headers = {
260
- "content-type": "application/x-amz-json-1.1",
261
- "x-amz-target": "InspectorService.ListFindings",
262
- };
184
+ const headers = sharedHeaders("ListFindings");
263
185
  let body;
264
186
  body = JSON.stringify(se_ListFindingsRequest(input, context));
265
187
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
266
188
  };
267
189
  exports.se_ListFindingsCommand = se_ListFindingsCommand;
268
190
  const se_ListRulesPackagesCommand = async (input, context) => {
269
- const headers = {
270
- "content-type": "application/x-amz-json-1.1",
271
- "x-amz-target": "InspectorService.ListRulesPackages",
272
- };
191
+ const headers = sharedHeaders("ListRulesPackages");
273
192
  let body;
274
193
  body = JSON.stringify(se_ListRulesPackagesRequest(input, context));
275
194
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
276
195
  };
277
196
  exports.se_ListRulesPackagesCommand = se_ListRulesPackagesCommand;
278
197
  const se_ListTagsForResourceCommand = async (input, context) => {
279
- const headers = {
280
- "content-type": "application/x-amz-json-1.1",
281
- "x-amz-target": "InspectorService.ListTagsForResource",
282
- };
198
+ const headers = sharedHeaders("ListTagsForResource");
283
199
  let body;
284
200
  body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
285
201
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
286
202
  };
287
203
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
288
204
  const se_PreviewAgentsCommand = async (input, context) => {
289
- const headers = {
290
- "content-type": "application/x-amz-json-1.1",
291
- "x-amz-target": "InspectorService.PreviewAgents",
292
- };
205
+ const headers = sharedHeaders("PreviewAgents");
293
206
  let body;
294
207
  body = JSON.stringify(se_PreviewAgentsRequest(input, context));
295
208
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
296
209
  };
297
210
  exports.se_PreviewAgentsCommand = se_PreviewAgentsCommand;
298
211
  const se_RegisterCrossAccountAccessRoleCommand = async (input, context) => {
299
- const headers = {
300
- "content-type": "application/x-amz-json-1.1",
301
- "x-amz-target": "InspectorService.RegisterCrossAccountAccessRole",
302
- };
212
+ const headers = sharedHeaders("RegisterCrossAccountAccessRole");
303
213
  let body;
304
214
  body = JSON.stringify(se_RegisterCrossAccountAccessRoleRequest(input, context));
305
215
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
306
216
  };
307
217
  exports.se_RegisterCrossAccountAccessRoleCommand = se_RegisterCrossAccountAccessRoleCommand;
308
218
  const se_RemoveAttributesFromFindingsCommand = async (input, context) => {
309
- const headers = {
310
- "content-type": "application/x-amz-json-1.1",
311
- "x-amz-target": "InspectorService.RemoveAttributesFromFindings",
312
- };
219
+ const headers = sharedHeaders("RemoveAttributesFromFindings");
313
220
  let body;
314
221
  body = JSON.stringify(se_RemoveAttributesFromFindingsRequest(input, context));
315
222
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
316
223
  };
317
224
  exports.se_RemoveAttributesFromFindingsCommand = se_RemoveAttributesFromFindingsCommand;
318
225
  const se_SetTagsForResourceCommand = async (input, context) => {
319
- const headers = {
320
- "content-type": "application/x-amz-json-1.1",
321
- "x-amz-target": "InspectorService.SetTagsForResource",
322
- };
226
+ const headers = sharedHeaders("SetTagsForResource");
323
227
  let body;
324
228
  body = JSON.stringify(se_SetTagsForResourceRequest(input, context));
325
229
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
326
230
  };
327
231
  exports.se_SetTagsForResourceCommand = se_SetTagsForResourceCommand;
328
232
  const se_StartAssessmentRunCommand = async (input, context) => {
329
- const headers = {
330
- "content-type": "application/x-amz-json-1.1",
331
- "x-amz-target": "InspectorService.StartAssessmentRun",
332
- };
233
+ const headers = sharedHeaders("StartAssessmentRun");
333
234
  let body;
334
235
  body = JSON.stringify(se_StartAssessmentRunRequest(input, context));
335
236
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
336
237
  };
337
238
  exports.se_StartAssessmentRunCommand = se_StartAssessmentRunCommand;
338
239
  const se_StopAssessmentRunCommand = async (input, context) => {
339
- const headers = {
340
- "content-type": "application/x-amz-json-1.1",
341
- "x-amz-target": "InspectorService.StopAssessmentRun",
342
- };
240
+ const headers = sharedHeaders("StopAssessmentRun");
343
241
  let body;
344
242
  body = JSON.stringify(se_StopAssessmentRunRequest(input, context));
345
243
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
346
244
  };
347
245
  exports.se_StopAssessmentRunCommand = se_StopAssessmentRunCommand;
348
246
  const se_SubscribeToEventCommand = async (input, context) => {
349
- const headers = {
350
- "content-type": "application/x-amz-json-1.1",
351
- "x-amz-target": "InspectorService.SubscribeToEvent",
352
- };
247
+ const headers = sharedHeaders("SubscribeToEvent");
353
248
  let body;
354
249
  body = JSON.stringify(se_SubscribeToEventRequest(input, context));
355
250
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
356
251
  };
357
252
  exports.se_SubscribeToEventCommand = se_SubscribeToEventCommand;
358
253
  const se_UnsubscribeFromEventCommand = async (input, context) => {
359
- const headers = {
360
- "content-type": "application/x-amz-json-1.1",
361
- "x-amz-target": "InspectorService.UnsubscribeFromEvent",
362
- };
254
+ const headers = sharedHeaders("UnsubscribeFromEvent");
363
255
  let body;
364
256
  body = JSON.stringify(se_UnsubscribeFromEventRequest(input, context));
365
257
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
366
258
  };
367
259
  exports.se_UnsubscribeFromEventCommand = se_UnsubscribeFromEventCommand;
368
260
  const se_UpdateAssessmentTargetCommand = async (input, context) => {
369
- const headers = {
370
- "content-type": "application/x-amz-json-1.1",
371
- "x-amz-target": "InspectorService.UpdateAssessmentTarget",
372
- };
261
+ const headers = sharedHeaders("UpdateAssessmentTarget");
373
262
  let body;
374
263
  body = JSON.stringify(se_UpdateAssessmentTargetRequest(input, context));
375
264
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -3418,6 +3307,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
3418
3307
  }
3419
3308
  return new protocol_http_1.HttpRequest(contents);
3420
3309
  };
3310
+ function sharedHeaders(operation) {
3311
+ return {
3312
+ "content-type": "application/x-amz-json-1.1",
3313
+ "x-amz-target": `InspectorService.${operation}`,
3314
+ };
3315
+ }
3421
3316
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3422
3317
  if (encoded.length) {
3423
3318
  return JSON.parse(encoded);
@@ -3,333 +3,222 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
3
3
  import { InspectorServiceException as __BaseException } from "../models/InspectorServiceException";
4
4
  import { AccessDeniedException, AgentsAlreadyRunningAssessmentException, AssessmentRunInProgressException, InternalException, InvalidCrossAccountRoleException, InvalidInputException, LimitExceededException, NoSuchEntityException, PreviewGenerationInProgressException, ServiceTemporarilyUnavailableException, UnsupportedFeatureException, } from "../models/models_0";
5
5
  export const se_AddAttributesToFindingsCommand = async (input, context) => {
6
- const headers = {
7
- "content-type": "application/x-amz-json-1.1",
8
- "x-amz-target": "InspectorService.AddAttributesToFindings",
9
- };
6
+ const headers = sharedHeaders("AddAttributesToFindings");
10
7
  let body;
11
8
  body = JSON.stringify(se_AddAttributesToFindingsRequest(input, context));
12
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
10
  };
14
11
  export const se_CreateAssessmentTargetCommand = async (input, context) => {
15
- const headers = {
16
- "content-type": "application/x-amz-json-1.1",
17
- "x-amz-target": "InspectorService.CreateAssessmentTarget",
18
- };
12
+ const headers = sharedHeaders("CreateAssessmentTarget");
19
13
  let body;
20
14
  body = JSON.stringify(se_CreateAssessmentTargetRequest(input, context));
21
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
16
  };
23
17
  export const se_CreateAssessmentTemplateCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-amz-json-1.1",
26
- "x-amz-target": "InspectorService.CreateAssessmentTemplate",
27
- };
18
+ const headers = sharedHeaders("CreateAssessmentTemplate");
28
19
  let body;
29
20
  body = JSON.stringify(se_CreateAssessmentTemplateRequest(input, context));
30
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
22
  };
32
23
  export const se_CreateExclusionsPreviewCommand = async (input, context) => {
33
- const headers = {
34
- "content-type": "application/x-amz-json-1.1",
35
- "x-amz-target": "InspectorService.CreateExclusionsPreview",
36
- };
24
+ const headers = sharedHeaders("CreateExclusionsPreview");
37
25
  let body;
38
26
  body = JSON.stringify(se_CreateExclusionsPreviewRequest(input, context));
39
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
28
  };
41
29
  export const se_CreateResourceGroupCommand = async (input, context) => {
42
- const headers = {
43
- "content-type": "application/x-amz-json-1.1",
44
- "x-amz-target": "InspectorService.CreateResourceGroup",
45
- };
30
+ const headers = sharedHeaders("CreateResourceGroup");
46
31
  let body;
47
32
  body = JSON.stringify(se_CreateResourceGroupRequest(input, context));
48
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
34
  };
50
35
  export const se_DeleteAssessmentRunCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.1",
53
- "x-amz-target": "InspectorService.DeleteAssessmentRun",
54
- };
36
+ const headers = sharedHeaders("DeleteAssessmentRun");
55
37
  let body;
56
38
  body = JSON.stringify(se_DeleteAssessmentRunRequest(input, context));
57
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
40
  };
59
41
  export const se_DeleteAssessmentTargetCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "InspectorService.DeleteAssessmentTarget",
63
- };
42
+ const headers = sharedHeaders("DeleteAssessmentTarget");
64
43
  let body;
65
44
  body = JSON.stringify(se_DeleteAssessmentTargetRequest(input, context));
66
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
46
  };
68
47
  export const se_DeleteAssessmentTemplateCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.1",
71
- "x-amz-target": "InspectorService.DeleteAssessmentTemplate",
72
- };
48
+ const headers = sharedHeaders("DeleteAssessmentTemplate");
73
49
  let body;
74
50
  body = JSON.stringify(se_DeleteAssessmentTemplateRequest(input, context));
75
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
52
  };
77
53
  export const se_DescribeAssessmentRunsCommand = async (input, context) => {
78
- const headers = {
79
- "content-type": "application/x-amz-json-1.1",
80
- "x-amz-target": "InspectorService.DescribeAssessmentRuns",
81
- };
54
+ const headers = sharedHeaders("DescribeAssessmentRuns");
82
55
  let body;
83
56
  body = JSON.stringify(se_DescribeAssessmentRunsRequest(input, context));
84
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
58
  };
86
59
  export const se_DescribeAssessmentTargetsCommand = async (input, context) => {
87
- const headers = {
88
- "content-type": "application/x-amz-json-1.1",
89
- "x-amz-target": "InspectorService.DescribeAssessmentTargets",
90
- };
60
+ const headers = sharedHeaders("DescribeAssessmentTargets");
91
61
  let body;
92
62
  body = JSON.stringify(se_DescribeAssessmentTargetsRequest(input, context));
93
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
64
  };
95
65
  export const se_DescribeAssessmentTemplatesCommand = async (input, context) => {
96
- const headers = {
97
- "content-type": "application/x-amz-json-1.1",
98
- "x-amz-target": "InspectorService.DescribeAssessmentTemplates",
99
- };
66
+ const headers = sharedHeaders("DescribeAssessmentTemplates");
100
67
  let body;
101
68
  body = JSON.stringify(se_DescribeAssessmentTemplatesRequest(input, context));
102
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
70
  };
104
71
  export const se_DescribeCrossAccountAccessRoleCommand = async (input, context) => {
105
- const headers = {
106
- "content-type": "application/x-amz-json-1.1",
107
- "x-amz-target": "InspectorService.DescribeCrossAccountAccessRole",
108
- };
72
+ const headers = sharedHeaders("DescribeCrossAccountAccessRole");
109
73
  const body = "{}";
110
74
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
111
75
  };
112
76
  export const se_DescribeExclusionsCommand = async (input, context) => {
113
- const headers = {
114
- "content-type": "application/x-amz-json-1.1",
115
- "x-amz-target": "InspectorService.DescribeExclusions",
116
- };
77
+ const headers = sharedHeaders("DescribeExclusions");
117
78
  let body;
118
79
  body = JSON.stringify(se_DescribeExclusionsRequest(input, context));
119
80
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
81
  };
121
82
  export const se_DescribeFindingsCommand = async (input, context) => {
122
- const headers = {
123
- "content-type": "application/x-amz-json-1.1",
124
- "x-amz-target": "InspectorService.DescribeFindings",
125
- };
83
+ const headers = sharedHeaders("DescribeFindings");
126
84
  let body;
127
85
  body = JSON.stringify(se_DescribeFindingsRequest(input, context));
128
86
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
129
87
  };
130
88
  export const se_DescribeResourceGroupsCommand = async (input, context) => {
131
- const headers = {
132
- "content-type": "application/x-amz-json-1.1",
133
- "x-amz-target": "InspectorService.DescribeResourceGroups",
134
- };
89
+ const headers = sharedHeaders("DescribeResourceGroups");
135
90
  let body;
136
91
  body = JSON.stringify(se_DescribeResourceGroupsRequest(input, context));
137
92
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
93
  };
139
94
  export const se_DescribeRulesPackagesCommand = async (input, context) => {
140
- const headers = {
141
- "content-type": "application/x-amz-json-1.1",
142
- "x-amz-target": "InspectorService.DescribeRulesPackages",
143
- };
95
+ const headers = sharedHeaders("DescribeRulesPackages");
144
96
  let body;
145
97
  body = JSON.stringify(se_DescribeRulesPackagesRequest(input, context));
146
98
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
147
99
  };
148
100
  export const se_GetAssessmentReportCommand = async (input, context) => {
149
- const headers = {
150
- "content-type": "application/x-amz-json-1.1",
151
- "x-amz-target": "InspectorService.GetAssessmentReport",
152
- };
101
+ const headers = sharedHeaders("GetAssessmentReport");
153
102
  let body;
154
103
  body = JSON.stringify(se_GetAssessmentReportRequest(input, context));
155
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
105
  };
157
106
  export const se_GetExclusionsPreviewCommand = async (input, context) => {
158
- const headers = {
159
- "content-type": "application/x-amz-json-1.1",
160
- "x-amz-target": "InspectorService.GetExclusionsPreview",
161
- };
107
+ const headers = sharedHeaders("GetExclusionsPreview");
162
108
  let body;
163
109
  body = JSON.stringify(se_GetExclusionsPreviewRequest(input, context));
164
110
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
165
111
  };
166
112
  export const se_GetTelemetryMetadataCommand = async (input, context) => {
167
- const headers = {
168
- "content-type": "application/x-amz-json-1.1",
169
- "x-amz-target": "InspectorService.GetTelemetryMetadata",
170
- };
113
+ const headers = sharedHeaders("GetTelemetryMetadata");
171
114
  let body;
172
115
  body = JSON.stringify(se_GetTelemetryMetadataRequest(input, context));
173
116
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
174
117
  };
175
118
  export const se_ListAssessmentRunAgentsCommand = async (input, context) => {
176
- const headers = {
177
- "content-type": "application/x-amz-json-1.1",
178
- "x-amz-target": "InspectorService.ListAssessmentRunAgents",
179
- };
119
+ const headers = sharedHeaders("ListAssessmentRunAgents");
180
120
  let body;
181
121
  body = JSON.stringify(se_ListAssessmentRunAgentsRequest(input, context));
182
122
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
183
123
  };
184
124
  export const se_ListAssessmentRunsCommand = async (input, context) => {
185
- const headers = {
186
- "content-type": "application/x-amz-json-1.1",
187
- "x-amz-target": "InspectorService.ListAssessmentRuns",
188
- };
125
+ const headers = sharedHeaders("ListAssessmentRuns");
189
126
  let body;
190
127
  body = JSON.stringify(se_ListAssessmentRunsRequest(input, context));
191
128
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
192
129
  };
193
130
  export const se_ListAssessmentTargetsCommand = async (input, context) => {
194
- const headers = {
195
- "content-type": "application/x-amz-json-1.1",
196
- "x-amz-target": "InspectorService.ListAssessmentTargets",
197
- };
131
+ const headers = sharedHeaders("ListAssessmentTargets");
198
132
  let body;
199
133
  body = JSON.stringify(se_ListAssessmentTargetsRequest(input, context));
200
134
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
201
135
  };
202
136
  export const se_ListAssessmentTemplatesCommand = async (input, context) => {
203
- const headers = {
204
- "content-type": "application/x-amz-json-1.1",
205
- "x-amz-target": "InspectorService.ListAssessmentTemplates",
206
- };
137
+ const headers = sharedHeaders("ListAssessmentTemplates");
207
138
  let body;
208
139
  body = JSON.stringify(se_ListAssessmentTemplatesRequest(input, context));
209
140
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
141
  };
211
142
  export const se_ListEventSubscriptionsCommand = async (input, context) => {
212
- const headers = {
213
- "content-type": "application/x-amz-json-1.1",
214
- "x-amz-target": "InspectorService.ListEventSubscriptions",
215
- };
143
+ const headers = sharedHeaders("ListEventSubscriptions");
216
144
  let body;
217
145
  body = JSON.stringify(se_ListEventSubscriptionsRequest(input, context));
218
146
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
219
147
  };
220
148
  export const se_ListExclusionsCommand = async (input, context) => {
221
- const headers = {
222
- "content-type": "application/x-amz-json-1.1",
223
- "x-amz-target": "InspectorService.ListExclusions",
224
- };
149
+ const headers = sharedHeaders("ListExclusions");
225
150
  let body;
226
151
  body = JSON.stringify(se_ListExclusionsRequest(input, context));
227
152
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
153
  };
229
154
  export const se_ListFindingsCommand = async (input, context) => {
230
- const headers = {
231
- "content-type": "application/x-amz-json-1.1",
232
- "x-amz-target": "InspectorService.ListFindings",
233
- };
155
+ const headers = sharedHeaders("ListFindings");
234
156
  let body;
235
157
  body = JSON.stringify(se_ListFindingsRequest(input, context));
236
158
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
237
159
  };
238
160
  export const se_ListRulesPackagesCommand = async (input, context) => {
239
- const headers = {
240
- "content-type": "application/x-amz-json-1.1",
241
- "x-amz-target": "InspectorService.ListRulesPackages",
242
- };
161
+ const headers = sharedHeaders("ListRulesPackages");
243
162
  let body;
244
163
  body = JSON.stringify(se_ListRulesPackagesRequest(input, context));
245
164
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
165
  };
247
166
  export const se_ListTagsForResourceCommand = async (input, context) => {
248
- const headers = {
249
- "content-type": "application/x-amz-json-1.1",
250
- "x-amz-target": "InspectorService.ListTagsForResource",
251
- };
167
+ const headers = sharedHeaders("ListTagsForResource");
252
168
  let body;
253
169
  body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
254
170
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
255
171
  };
256
172
  export const se_PreviewAgentsCommand = async (input, context) => {
257
- const headers = {
258
- "content-type": "application/x-amz-json-1.1",
259
- "x-amz-target": "InspectorService.PreviewAgents",
260
- };
173
+ const headers = sharedHeaders("PreviewAgents");
261
174
  let body;
262
175
  body = JSON.stringify(se_PreviewAgentsRequest(input, context));
263
176
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
264
177
  };
265
178
  export const se_RegisterCrossAccountAccessRoleCommand = async (input, context) => {
266
- const headers = {
267
- "content-type": "application/x-amz-json-1.1",
268
- "x-amz-target": "InspectorService.RegisterCrossAccountAccessRole",
269
- };
179
+ const headers = sharedHeaders("RegisterCrossAccountAccessRole");
270
180
  let body;
271
181
  body = JSON.stringify(se_RegisterCrossAccountAccessRoleRequest(input, context));
272
182
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
273
183
  };
274
184
  export const se_RemoveAttributesFromFindingsCommand = async (input, context) => {
275
- const headers = {
276
- "content-type": "application/x-amz-json-1.1",
277
- "x-amz-target": "InspectorService.RemoveAttributesFromFindings",
278
- };
185
+ const headers = sharedHeaders("RemoveAttributesFromFindings");
279
186
  let body;
280
187
  body = JSON.stringify(se_RemoveAttributesFromFindingsRequest(input, context));
281
188
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
282
189
  };
283
190
  export const se_SetTagsForResourceCommand = async (input, context) => {
284
- const headers = {
285
- "content-type": "application/x-amz-json-1.1",
286
- "x-amz-target": "InspectorService.SetTagsForResource",
287
- };
191
+ const headers = sharedHeaders("SetTagsForResource");
288
192
  let body;
289
193
  body = JSON.stringify(se_SetTagsForResourceRequest(input, context));
290
194
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
291
195
  };
292
196
  export const se_StartAssessmentRunCommand = async (input, context) => {
293
- const headers = {
294
- "content-type": "application/x-amz-json-1.1",
295
- "x-amz-target": "InspectorService.StartAssessmentRun",
296
- };
197
+ const headers = sharedHeaders("StartAssessmentRun");
297
198
  let body;
298
199
  body = JSON.stringify(se_StartAssessmentRunRequest(input, context));
299
200
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
300
201
  };
301
202
  export const se_StopAssessmentRunCommand = async (input, context) => {
302
- const headers = {
303
- "content-type": "application/x-amz-json-1.1",
304
- "x-amz-target": "InspectorService.StopAssessmentRun",
305
- };
203
+ const headers = sharedHeaders("StopAssessmentRun");
306
204
  let body;
307
205
  body = JSON.stringify(se_StopAssessmentRunRequest(input, context));
308
206
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
309
207
  };
310
208
  export const se_SubscribeToEventCommand = async (input, context) => {
311
- const headers = {
312
- "content-type": "application/x-amz-json-1.1",
313
- "x-amz-target": "InspectorService.SubscribeToEvent",
314
- };
209
+ const headers = sharedHeaders("SubscribeToEvent");
315
210
  let body;
316
211
  body = JSON.stringify(se_SubscribeToEventRequest(input, context));
317
212
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
213
  };
319
214
  export const se_UnsubscribeFromEventCommand = async (input, context) => {
320
- const headers = {
321
- "content-type": "application/x-amz-json-1.1",
322
- "x-amz-target": "InspectorService.UnsubscribeFromEvent",
323
- };
215
+ const headers = sharedHeaders("UnsubscribeFromEvent");
324
216
  let body;
325
217
  body = JSON.stringify(se_UnsubscribeFromEventRequest(input, context));
326
218
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
327
219
  };
328
220
  export const se_UpdateAssessmentTargetCommand = async (input, context) => {
329
- const headers = {
330
- "content-type": "application/x-amz-json-1.1",
331
- "x-amz-target": "InspectorService.UpdateAssessmentTarget",
332
- };
221
+ const headers = sharedHeaders("UpdateAssessmentTarget");
333
222
  let body;
334
223
  body = JSON.stringify(se_UpdateAssessmentTargetRequest(input, context));
335
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -3340,6 +3229,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
3340
3229
  }
3341
3230
  return new __HttpRequest(contents);
3342
3231
  };
3232
+ function sharedHeaders(operation) {
3233
+ return {
3234
+ "content-type": "application/x-amz-json-1.1",
3235
+ "x-amz-target": `InspectorService.${operation}`,
3236
+ };
3237
+ }
3343
3238
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3344
3239
  if (encoded.length) {
3345
3240
  return JSON.parse(encoded);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-inspector",
3
3
  "description": "AWS SDK for JavaScript Inspector Client for Node.js, Browser and React Native",
4
- "version": "3.309.0",
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,42 +21,42 @@
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.309.0",
25
- "@aws-sdk/config-resolver": "3.306.0",
26
- "@aws-sdk/credential-provider-node": "3.309.0",
27
- "@aws-sdk/fetch-http-handler": "3.306.0",
28
- "@aws-sdk/hash-node": "3.306.0",
29
- "@aws-sdk/invalid-dependency": "3.306.0",
30
- "@aws-sdk/middleware-content-length": "3.306.0",
31
- "@aws-sdk/middleware-endpoint": "3.306.0",
32
- "@aws-sdk/middleware-host-header": "3.306.0",
33
- "@aws-sdk/middleware-logger": "3.306.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
- "@aws-sdk/middleware-retry": "3.306.0",
36
- "@aws-sdk/middleware-serde": "3.306.0",
37
- "@aws-sdk/middleware-signing": "3.306.0",
38
- "@aws-sdk/middleware-stack": "3.306.0",
39
- "@aws-sdk/middleware-user-agent": "3.306.0",
40
- "@aws-sdk/node-config-provider": "3.306.0",
41
- "@aws-sdk/node-http-handler": "3.306.0",
42
- "@aws-sdk/protocol-http": "3.306.0",
43
- "@aws-sdk/smithy-client": "3.309.0",
44
- "@aws-sdk/types": "3.306.0",
45
- "@aws-sdk/url-parser": "3.306.0",
46
- "@aws-sdk/util-base64": "3.303.0",
47
- "@aws-sdk/util-body-length-browser": "3.303.0",
48
- "@aws-sdk/util-body-length-node": "3.303.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.309.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.309.0",
51
- "@aws-sdk/util-endpoints": "3.306.0",
52
- "@aws-sdk/util-retry": "3.306.0",
53
- "@aws-sdk/util-user-agent-browser": "3.306.0",
54
- "@aws-sdk/util-user-agent-node": "3.306.0",
55
- "@aws-sdk/util-utf8": "3.303.0",
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
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.303.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.310.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",
@@ -76,7 +76,7 @@
76
76
  }
77
77
  },
78
78
  "files": [
79
- "dist-*"
79
+ "dist-*/**"
80
80
  ],
81
81
  "author": {
82
82
  "name": "AWS SDK for JavaScript Team",