@aws-sdk/client-accessanalyzer 3.183.0 → 3.186.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/AccessAnalyzer.js +121 -114
- package/dist-es/AccessAnalyzerClient.js +28 -22
- package/dist-es/commands/ApplyArchiveRuleCommand.js +29 -22
- package/dist-es/commands/CancelPolicyGenerationCommand.js +28 -21
- package/dist-es/commands/CreateAccessPreviewCommand.js +28 -21
- package/dist-es/commands/CreateAnalyzerCommand.js +28 -21
- package/dist-es/commands/CreateArchiveRuleCommand.js +29 -22
- package/dist-es/commands/DeleteAnalyzerCommand.js +29 -22
- package/dist-es/commands/DeleteArchiveRuleCommand.js +29 -22
- package/dist-es/commands/GetAccessPreviewCommand.js +28 -21
- package/dist-es/commands/GetAnalyzedResourceCommand.js +28 -21
- package/dist-es/commands/GetAnalyzerCommand.js +28 -21
- package/dist-es/commands/GetArchiveRuleCommand.js +28 -21
- package/dist-es/commands/GetFindingCommand.js +28 -21
- package/dist-es/commands/GetGeneratedPolicyCommand.js +28 -21
- package/dist-es/commands/ListAccessPreviewFindingsCommand.js +28 -21
- package/dist-es/commands/ListAccessPreviewsCommand.js +28 -21
- package/dist-es/commands/ListAnalyzedResourcesCommand.js +28 -21
- package/dist-es/commands/ListAnalyzersCommand.js +28 -21
- package/dist-es/commands/ListArchiveRulesCommand.js +28 -21
- package/dist-es/commands/ListFindingsCommand.js +28 -21
- package/dist-es/commands/ListPolicyGenerationsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/StartPolicyGenerationCommand.js +28 -21
- package/dist-es/commands/StartResourceScanCommand.js +29 -22
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateArchiveRuleCommand.js +29 -22
- package/dist-es/commands/UpdateFindingsCommand.js +29 -22
- package/dist-es/commands/ValidatePolicyCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/AccessAnalyzerServiceException.js +10 -5
- package/dist-es/models/models_0.js +220 -409
- package/dist-es/pagination/ListAccessPreviewFindingsPaginator.js +68 -25
- package/dist-es/pagination/ListAccessPreviewsPaginator.js +68 -25
- package/dist-es/pagination/ListAnalyzedResourcesPaginator.js +68 -25
- package/dist-es/pagination/ListAnalyzersPaginator.js +68 -25
- package/dist-es/pagination/ListArchiveRulesPaginator.js +68 -25
- package/dist-es/pagination/ListFindingsPaginator.js +68 -25
- package/dist-es/pagination/ListPolicyGenerationsPaginator.js +68 -25
- package/dist-es/pagination/ValidatePolicyPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +3152 -2350
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-accessanalyzer
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
26
|
|
|
8
27
|
|
|
@@ -3073,10 +3073,10 @@ const deserializeAws_restJson1VpcConfiguration = (output, context) => {
|
|
|
3073
3073
|
};
|
|
3074
3074
|
};
|
|
3075
3075
|
const deserializeMetadata = (output) => {
|
|
3076
|
-
var _a;
|
|
3076
|
+
var _a, _b;
|
|
3077
3077
|
return ({
|
|
3078
3078
|
httpStatusCode: output.statusCode,
|
|
3079
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
3079
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
3080
3080
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3081
3081
|
cfId: output.headers["x-amz-cf-id"],
|
|
3082
3082
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { AccessAnalyzerClient } from "./AccessAnalyzerClient";
|
|
2
3
|
import { ApplyArchiveRuleCommand, } from "./commands/ApplyArchiveRuleCommand";
|
|
3
4
|
import { CancelPolicyGenerationCommand, } from "./commands/CancelPolicyGenerationCommand";
|
|
@@ -27,397 +28,403 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
27
28
|
import { UpdateArchiveRuleCommand, } from "./commands/UpdateArchiveRuleCommand";
|
|
28
29
|
import { UpdateFindingsCommand, } from "./commands/UpdateFindingsCommand";
|
|
29
30
|
import { ValidatePolicyCommand, } from "./commands/ValidatePolicyCommand";
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
var AccessAnalyzer = (function (_super) {
|
|
32
|
+
__extends(AccessAnalyzer, _super);
|
|
33
|
+
function AccessAnalyzer() {
|
|
34
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
35
|
+
}
|
|
36
|
+
AccessAnalyzer.prototype.applyArchiveRule = function (args, optionsOrCb, cb) {
|
|
37
|
+
var command = new ApplyArchiveRuleCommand(args);
|
|
33
38
|
if (typeof optionsOrCb === "function") {
|
|
34
39
|
this.send(command, optionsOrCb);
|
|
35
40
|
}
|
|
36
41
|
else if (typeof cb === "function") {
|
|
37
42
|
if (typeof optionsOrCb !== "object")
|
|
38
|
-
throw new Error(
|
|
43
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
39
44
|
this.send(command, optionsOrCb || {}, cb);
|
|
40
45
|
}
|
|
41
46
|
else {
|
|
42
47
|
return this.send(command, optionsOrCb);
|
|
43
48
|
}
|
|
44
|
-
}
|
|
45
|
-
cancelPolicyGeneration(args, optionsOrCb, cb) {
|
|
46
|
-
|
|
49
|
+
};
|
|
50
|
+
AccessAnalyzer.prototype.cancelPolicyGeneration = function (args, optionsOrCb, cb) {
|
|
51
|
+
var command = new CancelPolicyGenerationCommand(args);
|
|
47
52
|
if (typeof optionsOrCb === "function") {
|
|
48
53
|
this.send(command, optionsOrCb);
|
|
49
54
|
}
|
|
50
55
|
else if (typeof cb === "function") {
|
|
51
56
|
if (typeof optionsOrCb !== "object")
|
|
52
|
-
throw new Error(
|
|
57
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
53
58
|
this.send(command, optionsOrCb || {}, cb);
|
|
54
59
|
}
|
|
55
60
|
else {
|
|
56
61
|
return this.send(command, optionsOrCb);
|
|
57
62
|
}
|
|
58
|
-
}
|
|
59
|
-
createAccessPreview(args, optionsOrCb, cb) {
|
|
60
|
-
|
|
63
|
+
};
|
|
64
|
+
AccessAnalyzer.prototype.createAccessPreview = function (args, optionsOrCb, cb) {
|
|
65
|
+
var command = new CreateAccessPreviewCommand(args);
|
|
61
66
|
if (typeof optionsOrCb === "function") {
|
|
62
67
|
this.send(command, optionsOrCb);
|
|
63
68
|
}
|
|
64
69
|
else if (typeof cb === "function") {
|
|
65
70
|
if (typeof optionsOrCb !== "object")
|
|
66
|
-
throw new Error(
|
|
71
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
67
72
|
this.send(command, optionsOrCb || {}, cb);
|
|
68
73
|
}
|
|
69
74
|
else {
|
|
70
75
|
return this.send(command, optionsOrCb);
|
|
71
76
|
}
|
|
72
|
-
}
|
|
73
|
-
createAnalyzer(args, optionsOrCb, cb) {
|
|
74
|
-
|
|
77
|
+
};
|
|
78
|
+
AccessAnalyzer.prototype.createAnalyzer = function (args, optionsOrCb, cb) {
|
|
79
|
+
var command = new CreateAnalyzerCommand(args);
|
|
75
80
|
if (typeof optionsOrCb === "function") {
|
|
76
81
|
this.send(command, optionsOrCb);
|
|
77
82
|
}
|
|
78
83
|
else if (typeof cb === "function") {
|
|
79
84
|
if (typeof optionsOrCb !== "object")
|
|
80
|
-
throw new Error(
|
|
85
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
81
86
|
this.send(command, optionsOrCb || {}, cb);
|
|
82
87
|
}
|
|
83
88
|
else {
|
|
84
89
|
return this.send(command, optionsOrCb);
|
|
85
90
|
}
|
|
86
|
-
}
|
|
87
|
-
createArchiveRule(args, optionsOrCb, cb) {
|
|
88
|
-
|
|
91
|
+
};
|
|
92
|
+
AccessAnalyzer.prototype.createArchiveRule = function (args, optionsOrCb, cb) {
|
|
93
|
+
var command = new CreateArchiveRuleCommand(args);
|
|
89
94
|
if (typeof optionsOrCb === "function") {
|
|
90
95
|
this.send(command, optionsOrCb);
|
|
91
96
|
}
|
|
92
97
|
else if (typeof cb === "function") {
|
|
93
98
|
if (typeof optionsOrCb !== "object")
|
|
94
|
-
throw new Error(
|
|
99
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
95
100
|
this.send(command, optionsOrCb || {}, cb);
|
|
96
101
|
}
|
|
97
102
|
else {
|
|
98
103
|
return this.send(command, optionsOrCb);
|
|
99
104
|
}
|
|
100
|
-
}
|
|
101
|
-
deleteAnalyzer(args, optionsOrCb, cb) {
|
|
102
|
-
|
|
105
|
+
};
|
|
106
|
+
AccessAnalyzer.prototype.deleteAnalyzer = function (args, optionsOrCb, cb) {
|
|
107
|
+
var command = new DeleteAnalyzerCommand(args);
|
|
103
108
|
if (typeof optionsOrCb === "function") {
|
|
104
109
|
this.send(command, optionsOrCb);
|
|
105
110
|
}
|
|
106
111
|
else if (typeof cb === "function") {
|
|
107
112
|
if (typeof optionsOrCb !== "object")
|
|
108
|
-
throw new Error(
|
|
113
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
109
114
|
this.send(command, optionsOrCb || {}, cb);
|
|
110
115
|
}
|
|
111
116
|
else {
|
|
112
117
|
return this.send(command, optionsOrCb);
|
|
113
118
|
}
|
|
114
|
-
}
|
|
115
|
-
deleteArchiveRule(args, optionsOrCb, cb) {
|
|
116
|
-
|
|
119
|
+
};
|
|
120
|
+
AccessAnalyzer.prototype.deleteArchiveRule = function (args, optionsOrCb, cb) {
|
|
121
|
+
var command = new DeleteArchiveRuleCommand(args);
|
|
117
122
|
if (typeof optionsOrCb === "function") {
|
|
118
123
|
this.send(command, optionsOrCb);
|
|
119
124
|
}
|
|
120
125
|
else if (typeof cb === "function") {
|
|
121
126
|
if (typeof optionsOrCb !== "object")
|
|
122
|
-
throw new Error(
|
|
127
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
123
128
|
this.send(command, optionsOrCb || {}, cb);
|
|
124
129
|
}
|
|
125
130
|
else {
|
|
126
131
|
return this.send(command, optionsOrCb);
|
|
127
132
|
}
|
|
128
|
-
}
|
|
129
|
-
getAccessPreview(args, optionsOrCb, cb) {
|
|
130
|
-
|
|
133
|
+
};
|
|
134
|
+
AccessAnalyzer.prototype.getAccessPreview = function (args, optionsOrCb, cb) {
|
|
135
|
+
var command = new GetAccessPreviewCommand(args);
|
|
131
136
|
if (typeof optionsOrCb === "function") {
|
|
132
137
|
this.send(command, optionsOrCb);
|
|
133
138
|
}
|
|
134
139
|
else if (typeof cb === "function") {
|
|
135
140
|
if (typeof optionsOrCb !== "object")
|
|
136
|
-
throw new Error(
|
|
141
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
137
142
|
this.send(command, optionsOrCb || {}, cb);
|
|
138
143
|
}
|
|
139
144
|
else {
|
|
140
145
|
return this.send(command, optionsOrCb);
|
|
141
146
|
}
|
|
142
|
-
}
|
|
143
|
-
getAnalyzedResource(args, optionsOrCb, cb) {
|
|
144
|
-
|
|
147
|
+
};
|
|
148
|
+
AccessAnalyzer.prototype.getAnalyzedResource = function (args, optionsOrCb, cb) {
|
|
149
|
+
var command = new GetAnalyzedResourceCommand(args);
|
|
145
150
|
if (typeof optionsOrCb === "function") {
|
|
146
151
|
this.send(command, optionsOrCb);
|
|
147
152
|
}
|
|
148
153
|
else if (typeof cb === "function") {
|
|
149
154
|
if (typeof optionsOrCb !== "object")
|
|
150
|
-
throw new Error(
|
|
155
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
151
156
|
this.send(command, optionsOrCb || {}, cb);
|
|
152
157
|
}
|
|
153
158
|
else {
|
|
154
159
|
return this.send(command, optionsOrCb);
|
|
155
160
|
}
|
|
156
|
-
}
|
|
157
|
-
getAnalyzer(args, optionsOrCb, cb) {
|
|
158
|
-
|
|
161
|
+
};
|
|
162
|
+
AccessAnalyzer.prototype.getAnalyzer = function (args, optionsOrCb, cb) {
|
|
163
|
+
var command = new GetAnalyzerCommand(args);
|
|
159
164
|
if (typeof optionsOrCb === "function") {
|
|
160
165
|
this.send(command, optionsOrCb);
|
|
161
166
|
}
|
|
162
167
|
else if (typeof cb === "function") {
|
|
163
168
|
if (typeof optionsOrCb !== "object")
|
|
164
|
-
throw new Error(
|
|
169
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
165
170
|
this.send(command, optionsOrCb || {}, cb);
|
|
166
171
|
}
|
|
167
172
|
else {
|
|
168
173
|
return this.send(command, optionsOrCb);
|
|
169
174
|
}
|
|
170
|
-
}
|
|
171
|
-
getArchiveRule(args, optionsOrCb, cb) {
|
|
172
|
-
|
|
175
|
+
};
|
|
176
|
+
AccessAnalyzer.prototype.getArchiveRule = function (args, optionsOrCb, cb) {
|
|
177
|
+
var command = new GetArchiveRuleCommand(args);
|
|
173
178
|
if (typeof optionsOrCb === "function") {
|
|
174
179
|
this.send(command, optionsOrCb);
|
|
175
180
|
}
|
|
176
181
|
else if (typeof cb === "function") {
|
|
177
182
|
if (typeof optionsOrCb !== "object")
|
|
178
|
-
throw new Error(
|
|
183
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
179
184
|
this.send(command, optionsOrCb || {}, cb);
|
|
180
185
|
}
|
|
181
186
|
else {
|
|
182
187
|
return this.send(command, optionsOrCb);
|
|
183
188
|
}
|
|
184
|
-
}
|
|
185
|
-
getFinding(args, optionsOrCb, cb) {
|
|
186
|
-
|
|
189
|
+
};
|
|
190
|
+
AccessAnalyzer.prototype.getFinding = function (args, optionsOrCb, cb) {
|
|
191
|
+
var command = new GetFindingCommand(args);
|
|
187
192
|
if (typeof optionsOrCb === "function") {
|
|
188
193
|
this.send(command, optionsOrCb);
|
|
189
194
|
}
|
|
190
195
|
else if (typeof cb === "function") {
|
|
191
196
|
if (typeof optionsOrCb !== "object")
|
|
192
|
-
throw new Error(
|
|
197
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
193
198
|
this.send(command, optionsOrCb || {}, cb);
|
|
194
199
|
}
|
|
195
200
|
else {
|
|
196
201
|
return this.send(command, optionsOrCb);
|
|
197
202
|
}
|
|
198
|
-
}
|
|
199
|
-
getGeneratedPolicy(args, optionsOrCb, cb) {
|
|
200
|
-
|
|
203
|
+
};
|
|
204
|
+
AccessAnalyzer.prototype.getGeneratedPolicy = function (args, optionsOrCb, cb) {
|
|
205
|
+
var command = new GetGeneratedPolicyCommand(args);
|
|
201
206
|
if (typeof optionsOrCb === "function") {
|
|
202
207
|
this.send(command, optionsOrCb);
|
|
203
208
|
}
|
|
204
209
|
else if (typeof cb === "function") {
|
|
205
210
|
if (typeof optionsOrCb !== "object")
|
|
206
|
-
throw new Error(
|
|
211
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
207
212
|
this.send(command, optionsOrCb || {}, cb);
|
|
208
213
|
}
|
|
209
214
|
else {
|
|
210
215
|
return this.send(command, optionsOrCb);
|
|
211
216
|
}
|
|
212
|
-
}
|
|
213
|
-
listAccessPreviewFindings(args, optionsOrCb, cb) {
|
|
214
|
-
|
|
217
|
+
};
|
|
218
|
+
AccessAnalyzer.prototype.listAccessPreviewFindings = function (args, optionsOrCb, cb) {
|
|
219
|
+
var command = new ListAccessPreviewFindingsCommand(args);
|
|
215
220
|
if (typeof optionsOrCb === "function") {
|
|
216
221
|
this.send(command, optionsOrCb);
|
|
217
222
|
}
|
|
218
223
|
else if (typeof cb === "function") {
|
|
219
224
|
if (typeof optionsOrCb !== "object")
|
|
220
|
-
throw new Error(
|
|
225
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
221
226
|
this.send(command, optionsOrCb || {}, cb);
|
|
222
227
|
}
|
|
223
228
|
else {
|
|
224
229
|
return this.send(command, optionsOrCb);
|
|
225
230
|
}
|
|
226
|
-
}
|
|
227
|
-
listAccessPreviews(args, optionsOrCb, cb) {
|
|
228
|
-
|
|
231
|
+
};
|
|
232
|
+
AccessAnalyzer.prototype.listAccessPreviews = function (args, optionsOrCb, cb) {
|
|
233
|
+
var command = new ListAccessPreviewsCommand(args);
|
|
229
234
|
if (typeof optionsOrCb === "function") {
|
|
230
235
|
this.send(command, optionsOrCb);
|
|
231
236
|
}
|
|
232
237
|
else if (typeof cb === "function") {
|
|
233
238
|
if (typeof optionsOrCb !== "object")
|
|
234
|
-
throw new Error(
|
|
239
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
235
240
|
this.send(command, optionsOrCb || {}, cb);
|
|
236
241
|
}
|
|
237
242
|
else {
|
|
238
243
|
return this.send(command, optionsOrCb);
|
|
239
244
|
}
|
|
240
|
-
}
|
|
241
|
-
listAnalyzedResources(args, optionsOrCb, cb) {
|
|
242
|
-
|
|
245
|
+
};
|
|
246
|
+
AccessAnalyzer.prototype.listAnalyzedResources = function (args, optionsOrCb, cb) {
|
|
247
|
+
var command = new ListAnalyzedResourcesCommand(args);
|
|
243
248
|
if (typeof optionsOrCb === "function") {
|
|
244
249
|
this.send(command, optionsOrCb);
|
|
245
250
|
}
|
|
246
251
|
else if (typeof cb === "function") {
|
|
247
252
|
if (typeof optionsOrCb !== "object")
|
|
248
|
-
throw new Error(
|
|
253
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
249
254
|
this.send(command, optionsOrCb || {}, cb);
|
|
250
255
|
}
|
|
251
256
|
else {
|
|
252
257
|
return this.send(command, optionsOrCb);
|
|
253
258
|
}
|
|
254
|
-
}
|
|
255
|
-
listAnalyzers(args, optionsOrCb, cb) {
|
|
256
|
-
|
|
259
|
+
};
|
|
260
|
+
AccessAnalyzer.prototype.listAnalyzers = function (args, optionsOrCb, cb) {
|
|
261
|
+
var command = new ListAnalyzersCommand(args);
|
|
257
262
|
if (typeof optionsOrCb === "function") {
|
|
258
263
|
this.send(command, optionsOrCb);
|
|
259
264
|
}
|
|
260
265
|
else if (typeof cb === "function") {
|
|
261
266
|
if (typeof optionsOrCb !== "object")
|
|
262
|
-
throw new Error(
|
|
267
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
263
268
|
this.send(command, optionsOrCb || {}, cb);
|
|
264
269
|
}
|
|
265
270
|
else {
|
|
266
271
|
return this.send(command, optionsOrCb);
|
|
267
272
|
}
|
|
268
|
-
}
|
|
269
|
-
listArchiveRules(args, optionsOrCb, cb) {
|
|
270
|
-
|
|
273
|
+
};
|
|
274
|
+
AccessAnalyzer.prototype.listArchiveRules = function (args, optionsOrCb, cb) {
|
|
275
|
+
var command = new ListArchiveRulesCommand(args);
|
|
271
276
|
if (typeof optionsOrCb === "function") {
|
|
272
277
|
this.send(command, optionsOrCb);
|
|
273
278
|
}
|
|
274
279
|
else if (typeof cb === "function") {
|
|
275
280
|
if (typeof optionsOrCb !== "object")
|
|
276
|
-
throw new Error(
|
|
281
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
277
282
|
this.send(command, optionsOrCb || {}, cb);
|
|
278
283
|
}
|
|
279
284
|
else {
|
|
280
285
|
return this.send(command, optionsOrCb);
|
|
281
286
|
}
|
|
282
|
-
}
|
|
283
|
-
listFindings(args, optionsOrCb, cb) {
|
|
284
|
-
|
|
287
|
+
};
|
|
288
|
+
AccessAnalyzer.prototype.listFindings = function (args, optionsOrCb, cb) {
|
|
289
|
+
var command = new ListFindingsCommand(args);
|
|
285
290
|
if (typeof optionsOrCb === "function") {
|
|
286
291
|
this.send(command, optionsOrCb);
|
|
287
292
|
}
|
|
288
293
|
else if (typeof cb === "function") {
|
|
289
294
|
if (typeof optionsOrCb !== "object")
|
|
290
|
-
throw new Error(
|
|
295
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
291
296
|
this.send(command, optionsOrCb || {}, cb);
|
|
292
297
|
}
|
|
293
298
|
else {
|
|
294
299
|
return this.send(command, optionsOrCb);
|
|
295
300
|
}
|
|
296
|
-
}
|
|
297
|
-
listPolicyGenerations(args, optionsOrCb, cb) {
|
|
298
|
-
|
|
301
|
+
};
|
|
302
|
+
AccessAnalyzer.prototype.listPolicyGenerations = function (args, optionsOrCb, cb) {
|
|
303
|
+
var command = new ListPolicyGenerationsCommand(args);
|
|
299
304
|
if (typeof optionsOrCb === "function") {
|
|
300
305
|
this.send(command, optionsOrCb);
|
|
301
306
|
}
|
|
302
307
|
else if (typeof cb === "function") {
|
|
303
308
|
if (typeof optionsOrCb !== "object")
|
|
304
|
-
throw new Error(
|
|
309
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
305
310
|
this.send(command, optionsOrCb || {}, cb);
|
|
306
311
|
}
|
|
307
312
|
else {
|
|
308
313
|
return this.send(command, optionsOrCb);
|
|
309
314
|
}
|
|
310
|
-
}
|
|
311
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
312
|
-
|
|
315
|
+
};
|
|
316
|
+
AccessAnalyzer.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
317
|
+
var command = new ListTagsForResourceCommand(args);
|
|
313
318
|
if (typeof optionsOrCb === "function") {
|
|
314
319
|
this.send(command, optionsOrCb);
|
|
315
320
|
}
|
|
316
321
|
else if (typeof cb === "function") {
|
|
317
322
|
if (typeof optionsOrCb !== "object")
|
|
318
|
-
throw new Error(
|
|
323
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
319
324
|
this.send(command, optionsOrCb || {}, cb);
|
|
320
325
|
}
|
|
321
326
|
else {
|
|
322
327
|
return this.send(command, optionsOrCb);
|
|
323
328
|
}
|
|
324
|
-
}
|
|
325
|
-
startPolicyGeneration(args, optionsOrCb, cb) {
|
|
326
|
-
|
|
329
|
+
};
|
|
330
|
+
AccessAnalyzer.prototype.startPolicyGeneration = function (args, optionsOrCb, cb) {
|
|
331
|
+
var command = new StartPolicyGenerationCommand(args);
|
|
327
332
|
if (typeof optionsOrCb === "function") {
|
|
328
333
|
this.send(command, optionsOrCb);
|
|
329
334
|
}
|
|
330
335
|
else if (typeof cb === "function") {
|
|
331
336
|
if (typeof optionsOrCb !== "object")
|
|
332
|
-
throw new Error(
|
|
337
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
333
338
|
this.send(command, optionsOrCb || {}, cb);
|
|
334
339
|
}
|
|
335
340
|
else {
|
|
336
341
|
return this.send(command, optionsOrCb);
|
|
337
342
|
}
|
|
338
|
-
}
|
|
339
|
-
startResourceScan(args, optionsOrCb, cb) {
|
|
340
|
-
|
|
343
|
+
};
|
|
344
|
+
AccessAnalyzer.prototype.startResourceScan = function (args, optionsOrCb, cb) {
|
|
345
|
+
var command = new StartResourceScanCommand(args);
|
|
341
346
|
if (typeof optionsOrCb === "function") {
|
|
342
347
|
this.send(command, optionsOrCb);
|
|
343
348
|
}
|
|
344
349
|
else if (typeof cb === "function") {
|
|
345
350
|
if (typeof optionsOrCb !== "object")
|
|
346
|
-
throw new Error(
|
|
351
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
347
352
|
this.send(command, optionsOrCb || {}, cb);
|
|
348
353
|
}
|
|
349
354
|
else {
|
|
350
355
|
return this.send(command, optionsOrCb);
|
|
351
356
|
}
|
|
352
|
-
}
|
|
353
|
-
tagResource(args, optionsOrCb, cb) {
|
|
354
|
-
|
|
357
|
+
};
|
|
358
|
+
AccessAnalyzer.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
359
|
+
var command = new TagResourceCommand(args);
|
|
355
360
|
if (typeof optionsOrCb === "function") {
|
|
356
361
|
this.send(command, optionsOrCb);
|
|
357
362
|
}
|
|
358
363
|
else if (typeof cb === "function") {
|
|
359
364
|
if (typeof optionsOrCb !== "object")
|
|
360
|
-
throw new Error(
|
|
365
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
361
366
|
this.send(command, optionsOrCb || {}, cb);
|
|
362
367
|
}
|
|
363
368
|
else {
|
|
364
369
|
return this.send(command, optionsOrCb);
|
|
365
370
|
}
|
|
366
|
-
}
|
|
367
|
-
untagResource(args, optionsOrCb, cb) {
|
|
368
|
-
|
|
371
|
+
};
|
|
372
|
+
AccessAnalyzer.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
373
|
+
var command = new UntagResourceCommand(args);
|
|
369
374
|
if (typeof optionsOrCb === "function") {
|
|
370
375
|
this.send(command, optionsOrCb);
|
|
371
376
|
}
|
|
372
377
|
else if (typeof cb === "function") {
|
|
373
378
|
if (typeof optionsOrCb !== "object")
|
|
374
|
-
throw new Error(
|
|
379
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
375
380
|
this.send(command, optionsOrCb || {}, cb);
|
|
376
381
|
}
|
|
377
382
|
else {
|
|
378
383
|
return this.send(command, optionsOrCb);
|
|
379
384
|
}
|
|
380
|
-
}
|
|
381
|
-
updateArchiveRule(args, optionsOrCb, cb) {
|
|
382
|
-
|
|
385
|
+
};
|
|
386
|
+
AccessAnalyzer.prototype.updateArchiveRule = function (args, optionsOrCb, cb) {
|
|
387
|
+
var command = new UpdateArchiveRuleCommand(args);
|
|
383
388
|
if (typeof optionsOrCb === "function") {
|
|
384
389
|
this.send(command, optionsOrCb);
|
|
385
390
|
}
|
|
386
391
|
else if (typeof cb === "function") {
|
|
387
392
|
if (typeof optionsOrCb !== "object")
|
|
388
|
-
throw new Error(
|
|
393
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
389
394
|
this.send(command, optionsOrCb || {}, cb);
|
|
390
395
|
}
|
|
391
396
|
else {
|
|
392
397
|
return this.send(command, optionsOrCb);
|
|
393
398
|
}
|
|
394
|
-
}
|
|
395
|
-
updateFindings(args, optionsOrCb, cb) {
|
|
396
|
-
|
|
399
|
+
};
|
|
400
|
+
AccessAnalyzer.prototype.updateFindings = function (args, optionsOrCb, cb) {
|
|
401
|
+
var command = new UpdateFindingsCommand(args);
|
|
397
402
|
if (typeof optionsOrCb === "function") {
|
|
398
403
|
this.send(command, optionsOrCb);
|
|
399
404
|
}
|
|
400
405
|
else if (typeof cb === "function") {
|
|
401
406
|
if (typeof optionsOrCb !== "object")
|
|
402
|
-
throw new Error(
|
|
407
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
403
408
|
this.send(command, optionsOrCb || {}, cb);
|
|
404
409
|
}
|
|
405
410
|
else {
|
|
406
411
|
return this.send(command, optionsOrCb);
|
|
407
412
|
}
|
|
408
|
-
}
|
|
409
|
-
validatePolicy(args, optionsOrCb, cb) {
|
|
410
|
-
|
|
413
|
+
};
|
|
414
|
+
AccessAnalyzer.prototype.validatePolicy = function (args, optionsOrCb, cb) {
|
|
415
|
+
var command = new ValidatePolicyCommand(args);
|
|
411
416
|
if (typeof optionsOrCb === "function") {
|
|
412
417
|
this.send(command, optionsOrCb);
|
|
413
418
|
}
|
|
414
419
|
else if (typeof cb === "function") {
|
|
415
420
|
if (typeof optionsOrCb !== "object")
|
|
416
|
-
throw new Error(
|
|
421
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
417
422
|
this.send(command, optionsOrCb || {}, cb);
|
|
418
423
|
}
|
|
419
424
|
else {
|
|
420
425
|
return this.send(command, optionsOrCb);
|
|
421
426
|
}
|
|
422
|
-
}
|
|
423
|
-
|
|
427
|
+
};
|
|
428
|
+
return AccessAnalyzer;
|
|
429
|
+
}(AccessAnalyzerClient));
|
|
430
|
+
export { AccessAnalyzer };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
var AccessAnalyzerClient = (function (_super) {
|
|
13
|
+
__extends(AccessAnalyzerClient, _super);
|
|
14
|
+
function AccessAnalyzerClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
AccessAnalyzerClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return AccessAnalyzerClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { AccessAnalyzerClient };
|