@aws-sdk/client-accessanalyzer 3.476.0 → 3.478.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/pagination/GetFindingV2Paginator.js +2 -24
- package/dist-cjs/pagination/ListAccessPreviewFindingsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAccessPreviewsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAnalyzedResourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAnalyzersPaginator.js +2 -24
- package/dist-cjs/pagination/ListArchiveRulesPaginator.js +2 -24
- package/dist-cjs/pagination/ListFindingsPaginator.js +2 -24
- package/dist-cjs/pagination/ListFindingsV2Paginator.js +2 -24
- package/dist-cjs/pagination/ListPolicyGenerationsPaginator.js +2 -24
- package/dist-cjs/pagination/ValidatePolicyPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +188 -428
- package/dist-es/pagination/GetFindingV2Paginator.js +2 -23
- package/dist-es/pagination/ListAccessPreviewFindingsPaginator.js +2 -23
- package/dist-es/pagination/ListAccessPreviewsPaginator.js +2 -23
- package/dist-es/pagination/ListAnalyzedResourcesPaginator.js +2 -23
- package/dist-es/pagination/ListAnalyzersPaginator.js +2 -23
- package/dist-es/pagination/ListArchiveRulesPaginator.js +2 -23
- package/dist-es/pagination/ListFindingsPaginator.js +2 -23
- package/dist-es/pagination/ListFindingsV2Paginator.js +2 -23
- package/dist-es/pagination/ListPolicyGenerationsPaginator.js +2 -23
- package/dist-es/pagination/ValidatePolicyPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +189 -429
- package/dist-types/pagination/GetFindingV2Paginator.d.ts +1 -1
- package/dist-types/pagination/ListAccessPreviewFindingsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAccessPreviewsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAnalyzedResourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAnalyzersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListArchiveRulesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFindingsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFindingsV2Paginator.d.ts +1 -1
- package/dist-types/pagination/ListPolicyGenerationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ValidatePolicyPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetFindingV2Paginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAccessPreviewFindingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAccessPreviewsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAnalyzedResourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAnalyzersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListArchiveRulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFindingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFindingsV2Paginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPolicyGenerationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ValidatePolicyPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -3,126 +3,91 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.de_ListAccessPreviewsCommand = exports.de_ListAccessPreviewFindingsCommand = exports.de_GetGeneratedPolicyCommand = exports.de_GetFindingV2Command = exports.de_GetFindingCommand = exports.de_GetArchiveRuleCommand = exports.de_GetAnalyzerCommand = exports.de_GetAnalyzedResourceCommand = exports.de_GetAccessPreviewCommand = exports.de_DeleteArchiveRuleCommand = exports.de_DeleteAnalyzerCommand = exports.de_CreateArchiveRuleCommand = exports.de_CreateAnalyzerCommand = exports.de_CreateAccessPreviewCommand = exports.de_CheckNoNewAccessCommand = exports.de_CheckAccessNotGrantedCommand = exports.de_CancelPolicyGenerationCommand = exports.de_ApplyArchiveRuleCommand = exports.se_ValidatePolicyCommand = exports.se_UpdateFindingsCommand = exports.se_UpdateArchiveRuleCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartResourceScanCommand = exports.se_StartPolicyGenerationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPolicyGenerationsCommand = exports.se_ListFindingsV2Command = exports.se_ListFindingsCommand = exports.se_ListArchiveRulesCommand = exports.se_ListAnalyzersCommand = exports.se_ListAnalyzedResourcesCommand = exports.se_ListAccessPreviewsCommand = exports.se_ListAccessPreviewFindingsCommand = exports.se_GetGeneratedPolicyCommand = exports.se_GetFindingV2Command = exports.se_GetFindingCommand = exports.se_GetArchiveRuleCommand = exports.se_GetAnalyzerCommand = exports.se_GetAnalyzedResourceCommand = exports.se_GetAccessPreviewCommand = exports.se_DeleteArchiveRuleCommand = exports.se_DeleteAnalyzerCommand = exports.se_CreateArchiveRuleCommand = exports.se_CreateAnalyzerCommand = exports.se_CreateAccessPreviewCommand = exports.se_CheckNoNewAccessCommand = exports.se_CheckAccessNotGrantedCommand = exports.se_CancelPolicyGenerationCommand = exports.se_ApplyArchiveRuleCommand = void 0;
|
|
4
4
|
exports.de_ValidatePolicyCommand = exports.de_UpdateFindingsCommand = exports.de_UpdateArchiveRuleCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartResourceScanCommand = exports.de_StartPolicyGenerationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPolicyGenerationsCommand = exports.de_ListFindingsV2Command = exports.de_ListFindingsCommand = exports.de_ListArchiveRulesCommand = exports.de_ListAnalyzersCommand = exports.de_ListAnalyzedResourcesCommand = void 0;
|
|
5
5
|
const core_1 = require("@aws-sdk/core");
|
|
6
|
-
const
|
|
6
|
+
const core_2 = require("@smithy/core");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
9
|
const AccessAnalyzerServiceException_1 = require("../models/AccessAnalyzerServiceException");
|
|
10
10
|
const models_0_1 = require("../models/models_0");
|
|
11
11
|
const se_ApplyArchiveRuleCommand = async (input, context) => {
|
|
12
|
-
const
|
|
12
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
13
13
|
const headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
b.bp("/archive-rule");
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
19
|
analyzerArn: [],
|
|
20
20
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
21
21
|
ruleName: [],
|
|
22
22
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
hostname,
|
|
26
|
-
port,
|
|
27
|
-
method: "PUT",
|
|
28
|
-
headers,
|
|
29
|
-
path: resolvedPath,
|
|
30
|
-
body,
|
|
31
|
-
});
|
|
23
|
+
b.m("PUT").h(headers).b(body);
|
|
24
|
+
return b.build();
|
|
32
25
|
};
|
|
33
26
|
exports.se_ApplyArchiveRuleCommand = se_ApplyArchiveRuleCommand;
|
|
34
27
|
const se_CancelPolicyGenerationCommand = async (input, context) => {
|
|
35
|
-
const
|
|
28
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
36
29
|
const headers = {};
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
b.bp("/policy/generation/{jobId}");
|
|
31
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
39
32
|
let body;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
hostname,
|
|
43
|
-
port,
|
|
44
|
-
method: "PUT",
|
|
45
|
-
headers,
|
|
46
|
-
path: resolvedPath,
|
|
47
|
-
body,
|
|
48
|
-
});
|
|
33
|
+
b.m("PUT").h(headers).b(body);
|
|
34
|
+
return b.build();
|
|
49
35
|
};
|
|
50
36
|
exports.se_CancelPolicyGenerationCommand = se_CancelPolicyGenerationCommand;
|
|
51
37
|
const se_CheckAccessNotGrantedCommand = async (input, context) => {
|
|
52
|
-
const
|
|
38
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
53
39
|
const headers = {
|
|
54
40
|
"content-type": "application/json",
|
|
55
41
|
};
|
|
56
|
-
|
|
42
|
+
b.bp("/policy/check-access-not-granted");
|
|
57
43
|
let body;
|
|
58
44
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
59
45
|
access: (_) => (0, smithy_client_1._json)(_),
|
|
60
46
|
policyDocument: [],
|
|
61
47
|
policyType: [],
|
|
62
48
|
}));
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
hostname,
|
|
66
|
-
port,
|
|
67
|
-
method: "POST",
|
|
68
|
-
headers,
|
|
69
|
-
path: resolvedPath,
|
|
70
|
-
body,
|
|
71
|
-
});
|
|
49
|
+
b.m("POST").h(headers).b(body);
|
|
50
|
+
return b.build();
|
|
72
51
|
};
|
|
73
52
|
exports.se_CheckAccessNotGrantedCommand = se_CheckAccessNotGrantedCommand;
|
|
74
53
|
const se_CheckNoNewAccessCommand = async (input, context) => {
|
|
75
|
-
const
|
|
54
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
76
55
|
const headers = {
|
|
77
56
|
"content-type": "application/json",
|
|
78
57
|
};
|
|
79
|
-
|
|
58
|
+
b.bp("/policy/check-no-new-access");
|
|
80
59
|
let body;
|
|
81
60
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
82
61
|
existingPolicyDocument: [],
|
|
83
62
|
newPolicyDocument: [],
|
|
84
63
|
policyType: [],
|
|
85
64
|
}));
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
hostname,
|
|
89
|
-
port,
|
|
90
|
-
method: "POST",
|
|
91
|
-
headers,
|
|
92
|
-
path: resolvedPath,
|
|
93
|
-
body,
|
|
94
|
-
});
|
|
65
|
+
b.m("POST").h(headers).b(body);
|
|
66
|
+
return b.build();
|
|
95
67
|
};
|
|
96
68
|
exports.se_CheckNoNewAccessCommand = se_CheckNoNewAccessCommand;
|
|
97
69
|
const se_CreateAccessPreviewCommand = async (input, context) => {
|
|
98
|
-
const
|
|
70
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
99
71
|
const headers = {
|
|
100
72
|
"content-type": "application/json",
|
|
101
73
|
};
|
|
102
|
-
|
|
74
|
+
b.bp("/access-preview");
|
|
103
75
|
let body;
|
|
104
76
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
105
77
|
analyzerArn: [],
|
|
106
78
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
107
79
|
configurations: (_) => (0, smithy_client_1._json)(_),
|
|
108
80
|
}));
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
hostname,
|
|
112
|
-
port,
|
|
113
|
-
method: "PUT",
|
|
114
|
-
headers,
|
|
115
|
-
path: resolvedPath,
|
|
116
|
-
body,
|
|
117
|
-
});
|
|
81
|
+
b.m("PUT").h(headers).b(body);
|
|
82
|
+
return b.build();
|
|
118
83
|
};
|
|
119
84
|
exports.se_CreateAccessPreviewCommand = se_CreateAccessPreviewCommand;
|
|
120
85
|
const se_CreateAnalyzerCommand = async (input, context) => {
|
|
121
|
-
const
|
|
86
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
122
87
|
const headers = {
|
|
123
88
|
"content-type": "application/json",
|
|
124
89
|
};
|
|
125
|
-
|
|
90
|
+
b.bp("/analyzer");
|
|
126
91
|
let body;
|
|
127
92
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
128
93
|
analyzerName: [],
|
|
@@ -132,242 +97,150 @@ const se_CreateAnalyzerCommand = async (input, context) => {
|
|
|
132
97
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
133
98
|
type: [],
|
|
134
99
|
}));
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
hostname,
|
|
138
|
-
port,
|
|
139
|
-
method: "PUT",
|
|
140
|
-
headers,
|
|
141
|
-
path: resolvedPath,
|
|
142
|
-
body,
|
|
143
|
-
});
|
|
100
|
+
b.m("PUT").h(headers).b(body);
|
|
101
|
+
return b.build();
|
|
144
102
|
};
|
|
145
103
|
exports.se_CreateAnalyzerCommand = se_CreateAnalyzerCommand;
|
|
146
104
|
const se_CreateArchiveRuleCommand = async (input, context) => {
|
|
147
|
-
const
|
|
105
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
148
106
|
const headers = {
|
|
149
107
|
"content-type": "application/json",
|
|
150
108
|
};
|
|
151
|
-
|
|
152
|
-
|
|
109
|
+
b.bp("/analyzer/{analyzerName}/archive-rule");
|
|
110
|
+
b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
|
|
153
111
|
let body;
|
|
154
112
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
155
113
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
156
114
|
filter: (_) => (0, smithy_client_1._json)(_),
|
|
157
115
|
ruleName: [],
|
|
158
116
|
}));
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
hostname,
|
|
162
|
-
port,
|
|
163
|
-
method: "PUT",
|
|
164
|
-
headers,
|
|
165
|
-
path: resolvedPath,
|
|
166
|
-
body,
|
|
167
|
-
});
|
|
117
|
+
b.m("PUT").h(headers).b(body);
|
|
118
|
+
return b.build();
|
|
168
119
|
};
|
|
169
120
|
exports.se_CreateArchiveRuleCommand = se_CreateArchiveRuleCommand;
|
|
170
121
|
const se_DeleteAnalyzerCommand = async (input, context) => {
|
|
171
|
-
const
|
|
122
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
172
123
|
const headers = {};
|
|
173
|
-
|
|
174
|
-
|
|
124
|
+
b.bp("/analyzer/{analyzerName}");
|
|
125
|
+
b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
|
|
175
126
|
const query = (0, smithy_client_1.map)({
|
|
176
|
-
|
|
127
|
+
[_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
|
|
177
128
|
});
|
|
178
129
|
let body;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
hostname,
|
|
182
|
-
port,
|
|
183
|
-
method: "DELETE",
|
|
184
|
-
headers,
|
|
185
|
-
path: resolvedPath,
|
|
186
|
-
query,
|
|
187
|
-
body,
|
|
188
|
-
});
|
|
130
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
131
|
+
return b.build();
|
|
189
132
|
};
|
|
190
133
|
exports.se_DeleteAnalyzerCommand = se_DeleteAnalyzerCommand;
|
|
191
134
|
const se_DeleteArchiveRuleCommand = async (input, context) => {
|
|
192
|
-
const
|
|
135
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
193
136
|
const headers = {};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ruleName", () => input.ruleName, "{ruleName}", false);
|
|
137
|
+
b.bp("/analyzer/{analyzerName}/archive-rule/{ruleName}");
|
|
138
|
+
b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
|
|
139
|
+
b.p("ruleName", () => input.ruleName, "{ruleName}", false);
|
|
198
140
|
const query = (0, smithy_client_1.map)({
|
|
199
|
-
|
|
141
|
+
[_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
|
|
200
142
|
});
|
|
201
143
|
let body;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
hostname,
|
|
205
|
-
port,
|
|
206
|
-
method: "DELETE",
|
|
207
|
-
headers,
|
|
208
|
-
path: resolvedPath,
|
|
209
|
-
query,
|
|
210
|
-
body,
|
|
211
|
-
});
|
|
144
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
145
|
+
return b.build();
|
|
212
146
|
};
|
|
213
147
|
exports.se_DeleteArchiveRuleCommand = se_DeleteArchiveRuleCommand;
|
|
214
148
|
const se_GetAccessPreviewCommand = async (input, context) => {
|
|
215
|
-
const
|
|
149
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
216
150
|
const headers = {};
|
|
217
|
-
|
|
218
|
-
|
|
151
|
+
b.bp("/access-preview/{accessPreviewId}");
|
|
152
|
+
b.p("accessPreviewId", () => input.accessPreviewId, "{accessPreviewId}", false);
|
|
219
153
|
const query = (0, smithy_client_1.map)({
|
|
220
|
-
|
|
154
|
+
[_aA]: [, (0, smithy_client_1.expectNonNull)(input[_aA], `analyzerArn`)],
|
|
221
155
|
});
|
|
222
156
|
let body;
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
hostname,
|
|
226
|
-
port,
|
|
227
|
-
method: "GET",
|
|
228
|
-
headers,
|
|
229
|
-
path: resolvedPath,
|
|
230
|
-
query,
|
|
231
|
-
body,
|
|
232
|
-
});
|
|
157
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
158
|
+
return b.build();
|
|
233
159
|
};
|
|
234
160
|
exports.se_GetAccessPreviewCommand = se_GetAccessPreviewCommand;
|
|
235
161
|
const se_GetAnalyzedResourceCommand = async (input, context) => {
|
|
236
|
-
const
|
|
162
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
237
163
|
const headers = {};
|
|
238
|
-
|
|
164
|
+
b.bp("/analyzed-resource");
|
|
239
165
|
const query = (0, smithy_client_1.map)({
|
|
240
|
-
|
|
241
|
-
|
|
166
|
+
[_aA]: [, (0, smithy_client_1.expectNonNull)(input[_aA], `analyzerArn`)],
|
|
167
|
+
[_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
|
|
242
168
|
});
|
|
243
169
|
let body;
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
hostname,
|
|
247
|
-
port,
|
|
248
|
-
method: "GET",
|
|
249
|
-
headers,
|
|
250
|
-
path: resolvedPath,
|
|
251
|
-
query,
|
|
252
|
-
body,
|
|
253
|
-
});
|
|
170
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
171
|
+
return b.build();
|
|
254
172
|
};
|
|
255
173
|
exports.se_GetAnalyzedResourceCommand = se_GetAnalyzedResourceCommand;
|
|
256
174
|
const se_GetAnalyzerCommand = async (input, context) => {
|
|
257
|
-
const
|
|
175
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
258
176
|
const headers = {};
|
|
259
|
-
|
|
260
|
-
|
|
177
|
+
b.bp("/analyzer/{analyzerName}");
|
|
178
|
+
b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
|
|
261
179
|
let body;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
hostname,
|
|
265
|
-
port,
|
|
266
|
-
method: "GET",
|
|
267
|
-
headers,
|
|
268
|
-
path: resolvedPath,
|
|
269
|
-
body,
|
|
270
|
-
});
|
|
180
|
+
b.m("GET").h(headers).b(body);
|
|
181
|
+
return b.build();
|
|
271
182
|
};
|
|
272
183
|
exports.se_GetAnalyzerCommand = se_GetAnalyzerCommand;
|
|
273
184
|
const se_GetArchiveRuleCommand = async (input, context) => {
|
|
274
|
-
const
|
|
185
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
275
186
|
const headers = {};
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ruleName", () => input.ruleName, "{ruleName}", false);
|
|
187
|
+
b.bp("/analyzer/{analyzerName}/archive-rule/{ruleName}");
|
|
188
|
+
b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
|
|
189
|
+
b.p("ruleName", () => input.ruleName, "{ruleName}", false);
|
|
280
190
|
let body;
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
hostname,
|
|
284
|
-
port,
|
|
285
|
-
method: "GET",
|
|
286
|
-
headers,
|
|
287
|
-
path: resolvedPath,
|
|
288
|
-
body,
|
|
289
|
-
});
|
|
191
|
+
b.m("GET").h(headers).b(body);
|
|
192
|
+
return b.build();
|
|
290
193
|
};
|
|
291
194
|
exports.se_GetArchiveRuleCommand = se_GetArchiveRuleCommand;
|
|
292
195
|
const se_GetFindingCommand = async (input, context) => {
|
|
293
|
-
const
|
|
196
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
294
197
|
const headers = {};
|
|
295
|
-
|
|
296
|
-
|
|
198
|
+
b.bp("/finding/{id}");
|
|
199
|
+
b.p("id", () => input.id, "{id}", false);
|
|
297
200
|
const query = (0, smithy_client_1.map)({
|
|
298
|
-
|
|
201
|
+
[_aA]: [, (0, smithy_client_1.expectNonNull)(input[_aA], `analyzerArn`)],
|
|
299
202
|
});
|
|
300
203
|
let body;
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
hostname,
|
|
304
|
-
port,
|
|
305
|
-
method: "GET",
|
|
306
|
-
headers,
|
|
307
|
-
path: resolvedPath,
|
|
308
|
-
query,
|
|
309
|
-
body,
|
|
310
|
-
});
|
|
204
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
205
|
+
return b.build();
|
|
311
206
|
};
|
|
312
207
|
exports.se_GetFindingCommand = se_GetFindingCommand;
|
|
313
208
|
const se_GetFindingV2Command = async (input, context) => {
|
|
314
|
-
const
|
|
209
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
315
210
|
const headers = {};
|
|
316
|
-
|
|
317
|
-
|
|
211
|
+
b.bp("/findingv2/{id}");
|
|
212
|
+
b.p("id", () => input.id, "{id}", false);
|
|
318
213
|
const query = (0, smithy_client_1.map)({
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
214
|
+
[_aA]: [, (0, smithy_client_1.expectNonNull)(input[_aA], `analyzerArn`)],
|
|
215
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
216
|
+
[_nT]: [, input[_nT]],
|
|
322
217
|
});
|
|
323
218
|
let body;
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
hostname,
|
|
327
|
-
port,
|
|
328
|
-
method: "GET",
|
|
329
|
-
headers,
|
|
330
|
-
path: resolvedPath,
|
|
331
|
-
query,
|
|
332
|
-
body,
|
|
333
|
-
});
|
|
219
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
220
|
+
return b.build();
|
|
334
221
|
};
|
|
335
222
|
exports.se_GetFindingV2Command = se_GetFindingV2Command;
|
|
336
223
|
const se_GetGeneratedPolicyCommand = async (input, context) => {
|
|
337
|
-
const
|
|
224
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
338
225
|
const headers = {};
|
|
339
|
-
|
|
340
|
-
|
|
226
|
+
b.bp("/policy/generation/{jobId}");
|
|
227
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
341
228
|
const query = (0, smithy_client_1.map)({
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
() => input.includeResourcePlaceholders.toString(),
|
|
345
|
-
],
|
|
346
|
-
includeServiceLevelTemplate: [
|
|
347
|
-
() => input.includeServiceLevelTemplate !== void 0,
|
|
348
|
-
() => input.includeServiceLevelTemplate.toString(),
|
|
349
|
-
],
|
|
229
|
+
[_iRP]: [() => input.includeResourcePlaceholders !== void 0, () => input[_iRP].toString()],
|
|
230
|
+
[_iSLT]: [() => input.includeServiceLevelTemplate !== void 0, () => input[_iSLT].toString()],
|
|
350
231
|
});
|
|
351
232
|
let body;
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
hostname,
|
|
355
|
-
port,
|
|
356
|
-
method: "GET",
|
|
357
|
-
headers,
|
|
358
|
-
path: resolvedPath,
|
|
359
|
-
query,
|
|
360
|
-
body,
|
|
361
|
-
});
|
|
233
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
234
|
+
return b.build();
|
|
362
235
|
};
|
|
363
236
|
exports.se_GetGeneratedPolicyCommand = se_GetGeneratedPolicyCommand;
|
|
364
237
|
const se_ListAccessPreviewFindingsCommand = async (input, context) => {
|
|
365
|
-
const
|
|
238
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
366
239
|
const headers = {
|
|
367
240
|
"content-type": "application/json",
|
|
368
241
|
};
|
|
369
|
-
|
|
370
|
-
|
|
242
|
+
b.bp("/access-preview/{accessPreviewId}");
|
|
243
|
+
b.p("accessPreviewId", () => input.accessPreviewId, "{accessPreviewId}", false);
|
|
371
244
|
let body;
|
|
372
245
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
373
246
|
analyzerArn: [],
|
|
@@ -375,45 +248,30 @@ const se_ListAccessPreviewFindingsCommand = async (input, context) => {
|
|
|
375
248
|
maxResults: [],
|
|
376
249
|
nextToken: [],
|
|
377
250
|
}));
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
hostname,
|
|
381
|
-
port,
|
|
382
|
-
method: "POST",
|
|
383
|
-
headers,
|
|
384
|
-
path: resolvedPath,
|
|
385
|
-
body,
|
|
386
|
-
});
|
|
251
|
+
b.m("POST").h(headers).b(body);
|
|
252
|
+
return b.build();
|
|
387
253
|
};
|
|
388
254
|
exports.se_ListAccessPreviewFindingsCommand = se_ListAccessPreviewFindingsCommand;
|
|
389
255
|
const se_ListAccessPreviewsCommand = async (input, context) => {
|
|
390
|
-
const
|
|
256
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
391
257
|
const headers = {};
|
|
392
|
-
|
|
258
|
+
b.bp("/access-preview");
|
|
393
259
|
const query = (0, smithy_client_1.map)({
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
260
|
+
[_aA]: [, (0, smithy_client_1.expectNonNull)(input[_aA], `analyzerArn`)],
|
|
261
|
+
[_nT]: [, input[_nT]],
|
|
262
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
397
263
|
});
|
|
398
264
|
let body;
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
hostname,
|
|
402
|
-
port,
|
|
403
|
-
method: "GET",
|
|
404
|
-
headers,
|
|
405
|
-
path: resolvedPath,
|
|
406
|
-
query,
|
|
407
|
-
body,
|
|
408
|
-
});
|
|
265
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
266
|
+
return b.build();
|
|
409
267
|
};
|
|
410
268
|
exports.se_ListAccessPreviewsCommand = se_ListAccessPreviewsCommand;
|
|
411
269
|
const se_ListAnalyzedResourcesCommand = async (input, context) => {
|
|
412
|
-
const
|
|
270
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
413
271
|
const headers = {
|
|
414
272
|
"content-type": "application/json",
|
|
415
273
|
};
|
|
416
|
-
|
|
274
|
+
b.bp("/analyzed-resource");
|
|
417
275
|
let body;
|
|
418
276
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
419
277
|
analyzerArn: [],
|
|
@@ -421,67 +279,44 @@ const se_ListAnalyzedResourcesCommand = async (input, context) => {
|
|
|
421
279
|
nextToken: [],
|
|
422
280
|
resourceType: [],
|
|
423
281
|
}));
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
hostname,
|
|
427
|
-
port,
|
|
428
|
-
method: "POST",
|
|
429
|
-
headers,
|
|
430
|
-
path: resolvedPath,
|
|
431
|
-
body,
|
|
432
|
-
});
|
|
282
|
+
b.m("POST").h(headers).b(body);
|
|
283
|
+
return b.build();
|
|
433
284
|
};
|
|
434
285
|
exports.se_ListAnalyzedResourcesCommand = se_ListAnalyzedResourcesCommand;
|
|
435
286
|
const se_ListAnalyzersCommand = async (input, context) => {
|
|
436
|
-
const
|
|
287
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
437
288
|
const headers = {};
|
|
438
|
-
|
|
289
|
+
b.bp("/analyzer");
|
|
439
290
|
const query = (0, smithy_client_1.map)({
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
291
|
+
[_nT]: [, input[_nT]],
|
|
292
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
293
|
+
[_t]: [, input[_t]],
|
|
443
294
|
});
|
|
444
295
|
let body;
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
hostname,
|
|
448
|
-
port,
|
|
449
|
-
method: "GET",
|
|
450
|
-
headers,
|
|
451
|
-
path: resolvedPath,
|
|
452
|
-
query,
|
|
453
|
-
body,
|
|
454
|
-
});
|
|
296
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
297
|
+
return b.build();
|
|
455
298
|
};
|
|
456
299
|
exports.se_ListAnalyzersCommand = se_ListAnalyzersCommand;
|
|
457
300
|
const se_ListArchiveRulesCommand = async (input, context) => {
|
|
458
|
-
const
|
|
301
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
459
302
|
const headers = {};
|
|
460
|
-
|
|
461
|
-
|
|
303
|
+
b.bp("/analyzer/{analyzerName}/archive-rule");
|
|
304
|
+
b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
|
|
462
305
|
const query = (0, smithy_client_1.map)({
|
|
463
|
-
|
|
464
|
-
|
|
306
|
+
[_nT]: [, input[_nT]],
|
|
307
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
465
308
|
});
|
|
466
309
|
let body;
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
hostname,
|
|
470
|
-
port,
|
|
471
|
-
method: "GET",
|
|
472
|
-
headers,
|
|
473
|
-
path: resolvedPath,
|
|
474
|
-
query,
|
|
475
|
-
body,
|
|
476
|
-
});
|
|
310
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
311
|
+
return b.build();
|
|
477
312
|
};
|
|
478
313
|
exports.se_ListArchiveRulesCommand = se_ListArchiveRulesCommand;
|
|
479
314
|
const se_ListFindingsCommand = async (input, context) => {
|
|
480
|
-
const
|
|
315
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
481
316
|
const headers = {
|
|
482
317
|
"content-type": "application/json",
|
|
483
318
|
};
|
|
484
|
-
|
|
319
|
+
b.bp("/finding");
|
|
485
320
|
let body;
|
|
486
321
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
487
322
|
analyzerArn: [],
|
|
@@ -490,23 +325,16 @@ const se_ListFindingsCommand = async (input, context) => {
|
|
|
490
325
|
nextToken: [],
|
|
491
326
|
sort: (_) => (0, smithy_client_1._json)(_),
|
|
492
327
|
}));
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
hostname,
|
|
496
|
-
port,
|
|
497
|
-
method: "POST",
|
|
498
|
-
headers,
|
|
499
|
-
path: resolvedPath,
|
|
500
|
-
body,
|
|
501
|
-
});
|
|
328
|
+
b.m("POST").h(headers).b(body);
|
|
329
|
+
return b.build();
|
|
502
330
|
};
|
|
503
331
|
exports.se_ListFindingsCommand = se_ListFindingsCommand;
|
|
504
332
|
const se_ListFindingsV2Command = async (input, context) => {
|
|
505
|
-
const
|
|
333
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
506
334
|
const headers = {
|
|
507
335
|
"content-type": "application/json",
|
|
508
336
|
};
|
|
509
|
-
|
|
337
|
+
b.bp("/findingv2");
|
|
510
338
|
let body;
|
|
511
339
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
512
340
|
analyzerArn: [],
|
|
@@ -515,179 +343,120 @@ const se_ListFindingsV2Command = async (input, context) => {
|
|
|
515
343
|
nextToken: [],
|
|
516
344
|
sort: (_) => (0, smithy_client_1._json)(_),
|
|
517
345
|
}));
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
hostname,
|
|
521
|
-
port,
|
|
522
|
-
method: "POST",
|
|
523
|
-
headers,
|
|
524
|
-
path: resolvedPath,
|
|
525
|
-
body,
|
|
526
|
-
});
|
|
346
|
+
b.m("POST").h(headers).b(body);
|
|
347
|
+
return b.build();
|
|
527
348
|
};
|
|
528
349
|
exports.se_ListFindingsV2Command = se_ListFindingsV2Command;
|
|
529
350
|
const se_ListPolicyGenerationsCommand = async (input, context) => {
|
|
530
|
-
const
|
|
351
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
531
352
|
const headers = {};
|
|
532
|
-
|
|
353
|
+
b.bp("/policy/generation");
|
|
533
354
|
const query = (0, smithy_client_1.map)({
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
355
|
+
[_pA]: [, input[_pA]],
|
|
356
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
357
|
+
[_nT]: [, input[_nT]],
|
|
537
358
|
});
|
|
538
359
|
let body;
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
hostname,
|
|
542
|
-
port,
|
|
543
|
-
method: "GET",
|
|
544
|
-
headers,
|
|
545
|
-
path: resolvedPath,
|
|
546
|
-
query,
|
|
547
|
-
body,
|
|
548
|
-
});
|
|
360
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
361
|
+
return b.build();
|
|
549
362
|
};
|
|
550
363
|
exports.se_ListPolicyGenerationsCommand = se_ListPolicyGenerationsCommand;
|
|
551
364
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
552
|
-
const
|
|
365
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
553
366
|
const headers = {};
|
|
554
|
-
|
|
555
|
-
|
|
367
|
+
b.bp("/tags/{resourceArn}");
|
|
368
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
556
369
|
let body;
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
hostname,
|
|
560
|
-
port,
|
|
561
|
-
method: "GET",
|
|
562
|
-
headers,
|
|
563
|
-
path: resolvedPath,
|
|
564
|
-
body,
|
|
565
|
-
});
|
|
370
|
+
b.m("GET").h(headers).b(body);
|
|
371
|
+
return b.build();
|
|
566
372
|
};
|
|
567
373
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
568
374
|
const se_StartPolicyGenerationCommand = async (input, context) => {
|
|
569
|
-
const
|
|
375
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
570
376
|
const headers = {
|
|
571
377
|
"content-type": "application/json",
|
|
572
378
|
};
|
|
573
|
-
|
|
379
|
+
b.bp("/policy/generation");
|
|
574
380
|
let body;
|
|
575
381
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
576
382
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
577
383
|
cloudTrailDetails: (_) => se_CloudTrailDetails(_, context),
|
|
578
384
|
policyGenerationDetails: (_) => (0, smithy_client_1._json)(_),
|
|
579
385
|
}));
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
hostname,
|
|
583
|
-
port,
|
|
584
|
-
method: "PUT",
|
|
585
|
-
headers,
|
|
586
|
-
path: resolvedPath,
|
|
587
|
-
body,
|
|
588
|
-
});
|
|
386
|
+
b.m("PUT").h(headers).b(body);
|
|
387
|
+
return b.build();
|
|
589
388
|
};
|
|
590
389
|
exports.se_StartPolicyGenerationCommand = se_StartPolicyGenerationCommand;
|
|
591
390
|
const se_StartResourceScanCommand = async (input, context) => {
|
|
592
|
-
const
|
|
391
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
593
392
|
const headers = {
|
|
594
393
|
"content-type": "application/json",
|
|
595
394
|
};
|
|
596
|
-
|
|
395
|
+
b.bp("/resource/scan");
|
|
597
396
|
let body;
|
|
598
397
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
599
398
|
analyzerArn: [],
|
|
600
399
|
resourceArn: [],
|
|
601
400
|
resourceOwnerAccount: [],
|
|
602
401
|
}));
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
hostname,
|
|
606
|
-
port,
|
|
607
|
-
method: "POST",
|
|
608
|
-
headers,
|
|
609
|
-
path: resolvedPath,
|
|
610
|
-
body,
|
|
611
|
-
});
|
|
402
|
+
b.m("POST").h(headers).b(body);
|
|
403
|
+
return b.build();
|
|
612
404
|
};
|
|
613
405
|
exports.se_StartResourceScanCommand = se_StartResourceScanCommand;
|
|
614
406
|
const se_TagResourceCommand = async (input, context) => {
|
|
615
|
-
const
|
|
407
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
616
408
|
const headers = {
|
|
617
409
|
"content-type": "application/json",
|
|
618
410
|
};
|
|
619
|
-
|
|
620
|
-
|
|
411
|
+
b.bp("/tags/{resourceArn}");
|
|
412
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
621
413
|
let body;
|
|
622
414
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
623
415
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
624
416
|
}));
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
hostname,
|
|
628
|
-
port,
|
|
629
|
-
method: "POST",
|
|
630
|
-
headers,
|
|
631
|
-
path: resolvedPath,
|
|
632
|
-
body,
|
|
633
|
-
});
|
|
417
|
+
b.m("POST").h(headers).b(body);
|
|
418
|
+
return b.build();
|
|
634
419
|
};
|
|
635
420
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
636
421
|
const se_UntagResourceCommand = async (input, context) => {
|
|
637
|
-
const
|
|
422
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
638
423
|
const headers = {};
|
|
639
|
-
|
|
640
|
-
|
|
424
|
+
b.bp("/tags/{resourceArn}");
|
|
425
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
641
426
|
const query = (0, smithy_client_1.map)({
|
|
642
|
-
|
|
427
|
+
[_tK]: [
|
|
643
428
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
644
|
-
() => (input
|
|
429
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
645
430
|
],
|
|
646
431
|
});
|
|
647
432
|
let body;
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
hostname,
|
|
651
|
-
port,
|
|
652
|
-
method: "DELETE",
|
|
653
|
-
headers,
|
|
654
|
-
path: resolvedPath,
|
|
655
|
-
query,
|
|
656
|
-
body,
|
|
657
|
-
});
|
|
433
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
434
|
+
return b.build();
|
|
658
435
|
};
|
|
659
436
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
660
437
|
const se_UpdateArchiveRuleCommand = async (input, context) => {
|
|
661
|
-
const
|
|
438
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
662
439
|
const headers = {
|
|
663
440
|
"content-type": "application/json",
|
|
664
441
|
};
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ruleName", () => input.ruleName, "{ruleName}", false);
|
|
442
|
+
b.bp("/analyzer/{analyzerName}/archive-rule/{ruleName}");
|
|
443
|
+
b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
|
|
444
|
+
b.p("ruleName", () => input.ruleName, "{ruleName}", false);
|
|
669
445
|
let body;
|
|
670
446
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
671
447
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
672
448
|
filter: (_) => (0, smithy_client_1._json)(_),
|
|
673
449
|
}));
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
hostname,
|
|
677
|
-
port,
|
|
678
|
-
method: "PUT",
|
|
679
|
-
headers,
|
|
680
|
-
path: resolvedPath,
|
|
681
|
-
body,
|
|
682
|
-
});
|
|
450
|
+
b.m("PUT").h(headers).b(body);
|
|
451
|
+
return b.build();
|
|
683
452
|
};
|
|
684
453
|
exports.se_UpdateArchiveRuleCommand = se_UpdateArchiveRuleCommand;
|
|
685
454
|
const se_UpdateFindingsCommand = async (input, context) => {
|
|
686
|
-
const
|
|
455
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
687
456
|
const headers = {
|
|
688
457
|
"content-type": "application/json",
|
|
689
458
|
};
|
|
690
|
-
|
|
459
|
+
b.bp("/finding");
|
|
691
460
|
let body;
|
|
692
461
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
693
462
|
analyzerArn: [],
|
|
@@ -696,26 +465,19 @@ const se_UpdateFindingsCommand = async (input, context) => {
|
|
|
696
465
|
resourceArn: [],
|
|
697
466
|
status: [],
|
|
698
467
|
}));
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
hostname,
|
|
702
|
-
port,
|
|
703
|
-
method: "PUT",
|
|
704
|
-
headers,
|
|
705
|
-
path: resolvedPath,
|
|
706
|
-
body,
|
|
707
|
-
});
|
|
468
|
+
b.m("PUT").h(headers).b(body);
|
|
469
|
+
return b.build();
|
|
708
470
|
};
|
|
709
471
|
exports.se_UpdateFindingsCommand = se_UpdateFindingsCommand;
|
|
710
472
|
const se_ValidatePolicyCommand = async (input, context) => {
|
|
711
|
-
const
|
|
473
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
712
474
|
const headers = {
|
|
713
475
|
"content-type": "application/json",
|
|
714
476
|
};
|
|
715
|
-
|
|
477
|
+
b.bp("/policy/validation");
|
|
716
478
|
const query = (0, smithy_client_1.map)({
|
|
717
|
-
|
|
718
|
-
|
|
479
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
480
|
+
[_nT]: [, input[_nT]],
|
|
719
481
|
});
|
|
720
482
|
let body;
|
|
721
483
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
@@ -724,16 +486,8 @@ const se_ValidatePolicyCommand = async (input, context) => {
|
|
|
724
486
|
policyType: [],
|
|
725
487
|
validatePolicyResourceType: [],
|
|
726
488
|
}));
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
hostname,
|
|
730
|
-
port,
|
|
731
|
-
method: "POST",
|
|
732
|
-
headers,
|
|
733
|
-
path: resolvedPath,
|
|
734
|
-
query,
|
|
735
|
-
body,
|
|
736
|
-
});
|
|
489
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
490
|
+
return b.build();
|
|
737
491
|
};
|
|
738
492
|
exports.se_ValidatePolicyCommand = se_ValidatePolicyCommand;
|
|
739
493
|
const de_ApplyArchiveRuleCommand = async (output, context) => {
|
|
@@ -2233,10 +1987,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2233
1987
|
};
|
|
2234
1988
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2235
1989
|
const contents = (0, smithy_client_1.map)({
|
|
2236
|
-
|
|
2237
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2238
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2239
|
-
],
|
|
1990
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
2240
1991
|
});
|
|
2241
1992
|
const data = parsedOutput.body;
|
|
2242
1993
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -2294,10 +2045,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2294
2045
|
};
|
|
2295
2046
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2296
2047
|
const contents = (0, smithy_client_1.map)({
|
|
2297
|
-
|
|
2298
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2299
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2300
|
-
],
|
|
2048
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
2301
2049
|
});
|
|
2302
2050
|
const data = parsedOutput.body;
|
|
2303
2051
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -2650,6 +2398,18 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
2650
2398
|
value !== "" &&
|
|
2651
2399
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2652
2400
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2401
|
+
const _aA = "analyzerArn";
|
|
2402
|
+
const _cT = "clientToken";
|
|
2403
|
+
const _iRP = "includeResourcePlaceholders";
|
|
2404
|
+
const _iSLT = "includeServiceLevelTemplate";
|
|
2405
|
+
const _mR = "maxResults";
|
|
2406
|
+
const _nT = "nextToken";
|
|
2407
|
+
const _pA = "principalArn";
|
|
2408
|
+
const _rA = "resourceArn";
|
|
2409
|
+
const _rAS = "retryAfterSeconds";
|
|
2410
|
+
const _ra = "retry-after";
|
|
2411
|
+
const _t = "type";
|
|
2412
|
+
const _tK = "tagKeys";
|
|
2653
2413
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2654
2414
|
if (encoded.length) {
|
|
2655
2415
|
return JSON.parse(encoded);
|