@aws-sdk/client-accessanalyzer 3.489.0 → 3.495.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/AccessAnalyzer.js +1 -75
- package/dist-cjs/AccessAnalyzerClient.js +1 -43
- package/dist-cjs/commands/ApplyArchiveRuleCommand.js +1 -28
- package/dist-cjs/commands/CancelPolicyGenerationCommand.js +1 -28
- package/dist-cjs/commands/CheckAccessNotGrantedCommand.js +1 -29
- package/dist-cjs/commands/CheckNoNewAccessCommand.js +1 -29
- package/dist-cjs/commands/CreateAccessPreviewCommand.js +1 -28
- package/dist-cjs/commands/CreateAnalyzerCommand.js +1 -28
- package/dist-cjs/commands/CreateArchiveRuleCommand.js +1 -28
- package/dist-cjs/commands/DeleteAnalyzerCommand.js +1 -28
- package/dist-cjs/commands/DeleteArchiveRuleCommand.js +1 -28
- package/dist-cjs/commands/GetAccessPreviewCommand.js +1 -28
- package/dist-cjs/commands/GetAnalyzedResourceCommand.js +1 -28
- package/dist-cjs/commands/GetAnalyzerCommand.js +1 -28
- package/dist-cjs/commands/GetArchiveRuleCommand.js +1 -28
- package/dist-cjs/commands/GetFindingCommand.js +1 -28
- package/dist-cjs/commands/GetFindingV2Command.js +1 -28
- package/dist-cjs/commands/GetGeneratedPolicyCommand.js +1 -28
- package/dist-cjs/commands/ListAccessPreviewFindingsCommand.js +1 -28
- package/dist-cjs/commands/ListAccessPreviewsCommand.js +1 -28
- package/dist-cjs/commands/ListAnalyzedResourcesCommand.js +1 -28
- package/dist-cjs/commands/ListAnalyzersCommand.js +1 -28
- package/dist-cjs/commands/ListArchiveRulesCommand.js +1 -28
- package/dist-cjs/commands/ListFindingsCommand.js +1 -28
- package/dist-cjs/commands/ListFindingsV2Command.js +1 -28
- package/dist-cjs/commands/ListPolicyGenerationsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/StartPolicyGenerationCommand.js +1 -28
- package/dist-cjs/commands/StartResourceScanCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateArchiveRuleCommand.js +1 -28
- package/dist-cjs/commands/UpdateFindingsCommand.js +1 -28
- package/dist-cjs/commands/ValidatePolicyCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -35
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3704 -11
- package/dist-cjs/models/AccessAnalyzerServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -356
- package/dist-cjs/pagination/GetFindingV2Paginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAccessPreviewFindingsPaginator.js +1 -7
- package/dist-cjs/pagination/ListAccessPreviewsPaginator.js +1 -7
- package/dist-cjs/pagination/ListAnalyzedResourcesPaginator.js +1 -7
- package/dist-cjs/pagination/ListAnalyzersPaginator.js +1 -7
- package/dist-cjs/pagination/ListArchiveRulesPaginator.js +1 -7
- package/dist-cjs/pagination/ListFindingsPaginator.js +1 -7
- package/dist-cjs/pagination/ListFindingsV2Paginator.js +1 -7
- package/dist-cjs/pagination/ListPolicyGenerationsPaginator.js +1 -7
- package/dist-cjs/pagination/ValidatePolicyPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -14
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2452
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,3705 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessAnalyzer: () => AccessAnalyzer,
|
|
25
|
+
AccessAnalyzerClient: () => AccessAnalyzerClient,
|
|
26
|
+
AccessAnalyzerServiceException: () => AccessAnalyzerServiceException,
|
|
27
|
+
AccessCheckPolicyType: () => AccessCheckPolicyType,
|
|
28
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
29
|
+
AccessPreviewStatus: () => AccessPreviewStatus,
|
|
30
|
+
AccessPreviewStatusReasonCode: () => AccessPreviewStatusReasonCode,
|
|
31
|
+
AclGrantee: () => AclGrantee,
|
|
32
|
+
AclPermission: () => AclPermission,
|
|
33
|
+
AnalyzerConfiguration: () => AnalyzerConfiguration,
|
|
34
|
+
ApplyArchiveRuleCommand: () => ApplyArchiveRuleCommand,
|
|
35
|
+
CancelPolicyGenerationCommand: () => CancelPolicyGenerationCommand,
|
|
36
|
+
CheckAccessNotGrantedCommand: () => CheckAccessNotGrantedCommand,
|
|
37
|
+
CheckAccessNotGrantedRequestFilterSensitiveLog: () => CheckAccessNotGrantedRequestFilterSensitiveLog,
|
|
38
|
+
CheckAccessNotGrantedResult: () => CheckAccessNotGrantedResult,
|
|
39
|
+
CheckNoNewAccessCommand: () => CheckNoNewAccessCommand,
|
|
40
|
+
CheckNoNewAccessRequestFilterSensitiveLog: () => CheckNoNewAccessRequestFilterSensitiveLog,
|
|
41
|
+
CheckNoNewAccessResult: () => CheckNoNewAccessResult,
|
|
42
|
+
Configuration: () => Configuration,
|
|
43
|
+
ConflictException: () => ConflictException,
|
|
44
|
+
CreateAccessPreviewCommand: () => CreateAccessPreviewCommand,
|
|
45
|
+
CreateAnalyzerCommand: () => CreateAnalyzerCommand,
|
|
46
|
+
CreateArchiveRuleCommand: () => CreateArchiveRuleCommand,
|
|
47
|
+
DeleteAnalyzerCommand: () => DeleteAnalyzerCommand,
|
|
48
|
+
DeleteArchiveRuleCommand: () => DeleteArchiveRuleCommand,
|
|
49
|
+
FindingChangeType: () => FindingChangeType,
|
|
50
|
+
FindingDetails: () => FindingDetails,
|
|
51
|
+
FindingType: () => FindingType,
|
|
52
|
+
GetAccessPreviewCommand: () => GetAccessPreviewCommand,
|
|
53
|
+
GetAnalyzedResourceCommand: () => GetAnalyzedResourceCommand,
|
|
54
|
+
GetAnalyzerCommand: () => GetAnalyzerCommand,
|
|
55
|
+
GetArchiveRuleCommand: () => GetArchiveRuleCommand,
|
|
56
|
+
GetFindingCommand: () => GetFindingCommand,
|
|
57
|
+
GetFindingV2Command: () => GetFindingV2Command,
|
|
58
|
+
GetGeneratedPolicyCommand: () => GetGeneratedPolicyCommand,
|
|
59
|
+
InternalServerException: () => InternalServerException,
|
|
60
|
+
InvalidParameterException: () => InvalidParameterException,
|
|
61
|
+
JobErrorCode: () => JobErrorCode,
|
|
62
|
+
JobStatus: () => JobStatus,
|
|
63
|
+
KmsGrantOperation: () => KmsGrantOperation,
|
|
64
|
+
ListAccessPreviewFindingsCommand: () => ListAccessPreviewFindingsCommand,
|
|
65
|
+
ListAccessPreviewsCommand: () => ListAccessPreviewsCommand,
|
|
66
|
+
ListAnalyzedResourcesCommand: () => ListAnalyzedResourcesCommand,
|
|
67
|
+
ListAnalyzersCommand: () => ListAnalyzersCommand,
|
|
68
|
+
ListArchiveRulesCommand: () => ListArchiveRulesCommand,
|
|
69
|
+
ListFindingsCommand: () => ListFindingsCommand,
|
|
70
|
+
ListFindingsV2Command: () => ListFindingsV2Command,
|
|
71
|
+
ListPolicyGenerationsCommand: () => ListPolicyGenerationsCommand,
|
|
72
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
73
|
+
Locale: () => Locale,
|
|
74
|
+
NetworkOriginConfiguration: () => NetworkOriginConfiguration,
|
|
75
|
+
PathElement: () => PathElement,
|
|
76
|
+
PolicyType: () => PolicyType,
|
|
77
|
+
RdsDbClusterSnapshotAttributeValue: () => RdsDbClusterSnapshotAttributeValue,
|
|
78
|
+
RdsDbSnapshotAttributeValue: () => RdsDbSnapshotAttributeValue,
|
|
79
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
80
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
81
|
+
StartPolicyGenerationCommand: () => StartPolicyGenerationCommand,
|
|
82
|
+
StartResourceScanCommand: () => StartResourceScanCommand,
|
|
83
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
84
|
+
ThrottlingException: () => ThrottlingException,
|
|
85
|
+
UnprocessableEntityException: () => UnprocessableEntityException,
|
|
86
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
87
|
+
UpdateArchiveRuleCommand: () => UpdateArchiveRuleCommand,
|
|
88
|
+
UpdateFindingsCommand: () => UpdateFindingsCommand,
|
|
89
|
+
ValidatePolicyCommand: () => ValidatePolicyCommand,
|
|
90
|
+
ValidatePolicyFindingType: () => ValidatePolicyFindingType,
|
|
91
|
+
ValidatePolicyResourceType: () => ValidatePolicyResourceType,
|
|
92
|
+
ValidationException: () => ValidationException,
|
|
93
|
+
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
94
|
+
__Client: () => import_smithy_client.Client,
|
|
95
|
+
paginateGetFindingV2: () => paginateGetFindingV2,
|
|
96
|
+
paginateListAccessPreviewFindings: () => paginateListAccessPreviewFindings,
|
|
97
|
+
paginateListAccessPreviews: () => paginateListAccessPreviews,
|
|
98
|
+
paginateListAnalyzedResources: () => paginateListAnalyzedResources,
|
|
99
|
+
paginateListAnalyzers: () => paginateListAnalyzers,
|
|
100
|
+
paginateListArchiveRules: () => paginateListArchiveRules,
|
|
101
|
+
paginateListFindings: () => paginateListFindings,
|
|
102
|
+
paginateListFindingsV2: () => paginateListFindingsV2,
|
|
103
|
+
paginateListPolicyGenerations: () => paginateListPolicyGenerations,
|
|
104
|
+
paginateValidatePolicy: () => paginateValidatePolicy
|
|
105
|
+
});
|
|
106
|
+
module.exports = __toCommonJS(src_exports);
|
|
107
|
+
|
|
108
|
+
// src/AccessAnalyzerClient.ts
|
|
109
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
110
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
111
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
112
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
113
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
114
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
115
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
116
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
117
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
// src/endpoint/EndpointParameters.ts
|
|
121
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
122
|
+
return {
|
|
123
|
+
...options,
|
|
124
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
125
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
126
|
+
defaultSigningName: "access-analyzer"
|
|
127
|
+
};
|
|
128
|
+
}, "resolveClientEndpointParameters");
|
|
129
|
+
var commonParams = {
|
|
130
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
131
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
132
|
+
Region: { type: "builtInParams", name: "region" },
|
|
133
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
// src/AccessAnalyzerClient.ts
|
|
137
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
138
|
+
|
|
139
|
+
// src/runtimeExtensions.ts
|
|
140
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
141
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
142
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
143
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
144
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
145
|
+
const extensionConfiguration = {
|
|
146
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
147
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
148
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
149
|
+
};
|
|
150
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
151
|
+
return {
|
|
152
|
+
...runtimeConfig,
|
|
153
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
154
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
155
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
156
|
+
};
|
|
157
|
+
}, "resolveRuntimeExtensions");
|
|
158
|
+
|
|
159
|
+
// src/AccessAnalyzerClient.ts
|
|
160
|
+
var _AccessAnalyzerClient = class _AccessAnalyzerClient extends import_smithy_client.Client {
|
|
161
|
+
constructor(...[configuration]) {
|
|
162
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
163
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
164
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
165
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
166
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
167
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
168
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
169
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
170
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
171
|
+
super(_config_8);
|
|
172
|
+
this.config = _config_8;
|
|
173
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
174
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
175
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
176
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
177
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
178
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
179
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
183
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
184
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
185
|
+
*/
|
|
186
|
+
destroy() {
|
|
187
|
+
super.destroy();
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
__name(_AccessAnalyzerClient, "AccessAnalyzerClient");
|
|
191
|
+
var AccessAnalyzerClient = _AccessAnalyzerClient;
|
|
192
|
+
|
|
193
|
+
// src/AccessAnalyzer.ts
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
// src/commands/ApplyArchiveRuleCommand.ts
|
|
197
|
+
|
|
198
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
199
|
+
|
|
200
|
+
var import_types = require("@smithy/types");
|
|
201
|
+
|
|
202
|
+
// src/protocols/Aws_restJson1.ts
|
|
203
|
+
var import_core = require("@aws-sdk/core");
|
|
204
|
+
var import_core2 = require("@smithy/core");
|
|
205
|
+
|
|
206
|
+
var import_uuid = require("uuid");
|
|
207
|
+
|
|
208
|
+
// src/models/AccessAnalyzerServiceException.ts
|
|
209
|
+
|
|
210
|
+
var _AccessAnalyzerServiceException = class _AccessAnalyzerServiceException extends import_smithy_client.ServiceException {
|
|
211
|
+
/**
|
|
212
|
+
* @internal
|
|
213
|
+
*/
|
|
214
|
+
constructor(options) {
|
|
215
|
+
super(options);
|
|
216
|
+
Object.setPrototypeOf(this, _AccessAnalyzerServiceException.prototype);
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
__name(_AccessAnalyzerServiceException, "AccessAnalyzerServiceException");
|
|
220
|
+
var AccessAnalyzerServiceException = _AccessAnalyzerServiceException;
|
|
221
|
+
|
|
222
|
+
// src/models/models_0.ts
|
|
223
|
+
|
|
224
|
+
var _AccessDeniedException = class _AccessDeniedException extends AccessAnalyzerServiceException {
|
|
225
|
+
/**
|
|
226
|
+
* @internal
|
|
227
|
+
*/
|
|
228
|
+
constructor(opts) {
|
|
229
|
+
super({
|
|
230
|
+
name: "AccessDeniedException",
|
|
231
|
+
$fault: "client",
|
|
232
|
+
...opts
|
|
233
|
+
});
|
|
234
|
+
this.name = "AccessDeniedException";
|
|
235
|
+
this.$fault = "client";
|
|
236
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
240
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
241
|
+
var _ConflictException = class _ConflictException extends AccessAnalyzerServiceException {
|
|
242
|
+
/**
|
|
243
|
+
* @internal
|
|
244
|
+
*/
|
|
245
|
+
constructor(opts) {
|
|
246
|
+
super({
|
|
247
|
+
name: "ConflictException",
|
|
248
|
+
$fault: "client",
|
|
249
|
+
...opts
|
|
250
|
+
});
|
|
251
|
+
this.name = "ConflictException";
|
|
252
|
+
this.$fault = "client";
|
|
253
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
254
|
+
this.resourceId = opts.resourceId;
|
|
255
|
+
this.resourceType = opts.resourceType;
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
__name(_ConflictException, "ConflictException");
|
|
259
|
+
var ConflictException = _ConflictException;
|
|
260
|
+
var _InternalServerException = class _InternalServerException extends AccessAnalyzerServiceException {
|
|
261
|
+
/**
|
|
262
|
+
* @internal
|
|
263
|
+
*/
|
|
264
|
+
constructor(opts) {
|
|
265
|
+
super({
|
|
266
|
+
name: "InternalServerException",
|
|
267
|
+
$fault: "server",
|
|
268
|
+
...opts
|
|
269
|
+
});
|
|
270
|
+
this.name = "InternalServerException";
|
|
271
|
+
this.$fault = "server";
|
|
272
|
+
this.$retryable = {};
|
|
273
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
274
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
__name(_InternalServerException, "InternalServerException");
|
|
278
|
+
var InternalServerException = _InternalServerException;
|
|
279
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends AccessAnalyzerServiceException {
|
|
280
|
+
/**
|
|
281
|
+
* @internal
|
|
282
|
+
*/
|
|
283
|
+
constructor(opts) {
|
|
284
|
+
super({
|
|
285
|
+
name: "ResourceNotFoundException",
|
|
286
|
+
$fault: "client",
|
|
287
|
+
...opts
|
|
288
|
+
});
|
|
289
|
+
this.name = "ResourceNotFoundException";
|
|
290
|
+
this.$fault = "client";
|
|
291
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
292
|
+
this.resourceId = opts.resourceId;
|
|
293
|
+
this.resourceType = opts.resourceType;
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
297
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
298
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends AccessAnalyzerServiceException {
|
|
299
|
+
/**
|
|
300
|
+
* @internal
|
|
301
|
+
*/
|
|
302
|
+
constructor(opts) {
|
|
303
|
+
super({
|
|
304
|
+
name: "ServiceQuotaExceededException",
|
|
305
|
+
$fault: "client",
|
|
306
|
+
...opts
|
|
307
|
+
});
|
|
308
|
+
this.name = "ServiceQuotaExceededException";
|
|
309
|
+
this.$fault = "client";
|
|
310
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
311
|
+
this.resourceId = opts.resourceId;
|
|
312
|
+
this.resourceType = opts.resourceType;
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
316
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
317
|
+
var _ThrottlingException = class _ThrottlingException extends AccessAnalyzerServiceException {
|
|
318
|
+
/**
|
|
319
|
+
* @internal
|
|
320
|
+
*/
|
|
321
|
+
constructor(opts) {
|
|
322
|
+
super({
|
|
323
|
+
name: "ThrottlingException",
|
|
324
|
+
$fault: "client",
|
|
325
|
+
...opts
|
|
326
|
+
});
|
|
327
|
+
this.name = "ThrottlingException";
|
|
328
|
+
this.$fault = "client";
|
|
329
|
+
this.$retryable = {
|
|
330
|
+
throttling: true
|
|
331
|
+
};
|
|
332
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
333
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
337
|
+
var ThrottlingException = _ThrottlingException;
|
|
338
|
+
var ValidationExceptionReason = {
|
|
339
|
+
CANNOT_PARSE: "cannotParse",
|
|
340
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
341
|
+
OTHER: "other",
|
|
342
|
+
UNKNOWN_OPERATION: "unknownOperation"
|
|
343
|
+
};
|
|
344
|
+
var _ValidationException = class _ValidationException extends AccessAnalyzerServiceException {
|
|
345
|
+
/**
|
|
346
|
+
* @internal
|
|
347
|
+
*/
|
|
348
|
+
constructor(opts) {
|
|
349
|
+
super({
|
|
350
|
+
name: "ValidationException",
|
|
351
|
+
$fault: "client",
|
|
352
|
+
...opts
|
|
353
|
+
});
|
|
354
|
+
this.name = "ValidationException";
|
|
355
|
+
this.$fault = "client";
|
|
356
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
357
|
+
this.reason = opts.reason;
|
|
358
|
+
this.fieldList = opts.fieldList;
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
__name(_ValidationException, "ValidationException");
|
|
362
|
+
var ValidationException = _ValidationException;
|
|
363
|
+
var AnalyzerConfiguration;
|
|
364
|
+
((AnalyzerConfiguration3) => {
|
|
365
|
+
AnalyzerConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
366
|
+
if (value.unusedAccess !== void 0)
|
|
367
|
+
return visitor.unusedAccess(value.unusedAccess);
|
|
368
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
369
|
+
}, "visit");
|
|
370
|
+
})(AnalyzerConfiguration || (AnalyzerConfiguration = {}));
|
|
371
|
+
var AccessCheckPolicyType = {
|
|
372
|
+
IDENTITY_POLICY: "IDENTITY_POLICY",
|
|
373
|
+
RESOURCE_POLICY: "RESOURCE_POLICY"
|
|
374
|
+
};
|
|
375
|
+
var CheckAccessNotGrantedResult = {
|
|
376
|
+
FAIL: "FAIL",
|
|
377
|
+
PASS: "PASS"
|
|
378
|
+
};
|
|
379
|
+
var _InvalidParameterException = class _InvalidParameterException extends AccessAnalyzerServiceException {
|
|
380
|
+
/**
|
|
381
|
+
* @internal
|
|
382
|
+
*/
|
|
383
|
+
constructor(opts) {
|
|
384
|
+
super({
|
|
385
|
+
name: "InvalidParameterException",
|
|
386
|
+
$fault: "client",
|
|
387
|
+
...opts
|
|
388
|
+
});
|
|
389
|
+
this.name = "InvalidParameterException";
|
|
390
|
+
this.$fault = "client";
|
|
391
|
+
Object.setPrototypeOf(this, _InvalidParameterException.prototype);
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
__name(_InvalidParameterException, "InvalidParameterException");
|
|
395
|
+
var InvalidParameterException = _InvalidParameterException;
|
|
396
|
+
var _UnprocessableEntityException = class _UnprocessableEntityException extends AccessAnalyzerServiceException {
|
|
397
|
+
/**
|
|
398
|
+
* @internal
|
|
399
|
+
*/
|
|
400
|
+
constructor(opts) {
|
|
401
|
+
super({
|
|
402
|
+
name: "UnprocessableEntityException",
|
|
403
|
+
$fault: "client",
|
|
404
|
+
...opts
|
|
405
|
+
});
|
|
406
|
+
this.name = "UnprocessableEntityException";
|
|
407
|
+
this.$fault = "client";
|
|
408
|
+
this.$retryable = {};
|
|
409
|
+
Object.setPrototypeOf(this, _UnprocessableEntityException.prototype);
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
__name(_UnprocessableEntityException, "UnprocessableEntityException");
|
|
413
|
+
var UnprocessableEntityException = _UnprocessableEntityException;
|
|
414
|
+
var CheckNoNewAccessResult = {
|
|
415
|
+
FAIL: "FAIL",
|
|
416
|
+
PASS: "PASS"
|
|
417
|
+
};
|
|
418
|
+
var KmsGrantOperation = {
|
|
419
|
+
CREATE_GRANT: "CreateGrant",
|
|
420
|
+
DECRYPT: "Decrypt",
|
|
421
|
+
DESCRIBE_KEY: "DescribeKey",
|
|
422
|
+
ENCRYPT: "Encrypt",
|
|
423
|
+
GENERATE_DATA_KEY: "GenerateDataKey",
|
|
424
|
+
GENERATE_DATA_KEY_PAIR: "GenerateDataKeyPair",
|
|
425
|
+
GENERATE_DATA_KEY_PAIR_WITHOUT_PLAINTEXT: "GenerateDataKeyPairWithoutPlaintext",
|
|
426
|
+
GENERATE_DATA_KEY_WITHOUT_PLAINTEXT: "GenerateDataKeyWithoutPlaintext",
|
|
427
|
+
GET_PUBLIC_KEY: "GetPublicKey",
|
|
428
|
+
REENCRYPT_FROM: "ReEncryptFrom",
|
|
429
|
+
REENCRYPT_TO: "ReEncryptTo",
|
|
430
|
+
RETIRE_GRANT: "RetireGrant",
|
|
431
|
+
SIGN: "Sign",
|
|
432
|
+
VERIFY: "Verify"
|
|
433
|
+
};
|
|
434
|
+
var RdsDbClusterSnapshotAttributeValue;
|
|
435
|
+
((RdsDbClusterSnapshotAttributeValue3) => {
|
|
436
|
+
RdsDbClusterSnapshotAttributeValue3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
437
|
+
if (value.accountIds !== void 0)
|
|
438
|
+
return visitor.accountIds(value.accountIds);
|
|
439
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
440
|
+
}, "visit");
|
|
441
|
+
})(RdsDbClusterSnapshotAttributeValue || (RdsDbClusterSnapshotAttributeValue = {}));
|
|
442
|
+
var RdsDbSnapshotAttributeValue;
|
|
443
|
+
((RdsDbSnapshotAttributeValue3) => {
|
|
444
|
+
RdsDbSnapshotAttributeValue3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
445
|
+
if (value.accountIds !== void 0)
|
|
446
|
+
return visitor.accountIds(value.accountIds);
|
|
447
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
448
|
+
}, "visit");
|
|
449
|
+
})(RdsDbSnapshotAttributeValue || (RdsDbSnapshotAttributeValue = {}));
|
|
450
|
+
var NetworkOriginConfiguration;
|
|
451
|
+
((NetworkOriginConfiguration3) => {
|
|
452
|
+
NetworkOriginConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
453
|
+
if (value.vpcConfiguration !== void 0)
|
|
454
|
+
return visitor.vpcConfiguration(value.vpcConfiguration);
|
|
455
|
+
if (value.internetConfiguration !== void 0)
|
|
456
|
+
return visitor.internetConfiguration(value.internetConfiguration);
|
|
457
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
458
|
+
}, "visit");
|
|
459
|
+
})(NetworkOriginConfiguration || (NetworkOriginConfiguration = {}));
|
|
460
|
+
var AclGrantee;
|
|
461
|
+
((AclGrantee3) => {
|
|
462
|
+
AclGrantee3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
463
|
+
if (value.id !== void 0)
|
|
464
|
+
return visitor.id(value.id);
|
|
465
|
+
if (value.uri !== void 0)
|
|
466
|
+
return visitor.uri(value.uri);
|
|
467
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
468
|
+
}, "visit");
|
|
469
|
+
})(AclGrantee || (AclGrantee = {}));
|
|
470
|
+
var AclPermission = {
|
|
471
|
+
FULL_CONTROL: "FULL_CONTROL",
|
|
472
|
+
READ: "READ",
|
|
473
|
+
READ_ACP: "READ_ACP",
|
|
474
|
+
WRITE: "WRITE",
|
|
475
|
+
WRITE_ACP: "WRITE_ACP"
|
|
476
|
+
};
|
|
477
|
+
var Configuration;
|
|
478
|
+
((Configuration3) => {
|
|
479
|
+
Configuration3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
480
|
+
if (value.ebsSnapshot !== void 0)
|
|
481
|
+
return visitor.ebsSnapshot(value.ebsSnapshot);
|
|
482
|
+
if (value.ecrRepository !== void 0)
|
|
483
|
+
return visitor.ecrRepository(value.ecrRepository);
|
|
484
|
+
if (value.iamRole !== void 0)
|
|
485
|
+
return visitor.iamRole(value.iamRole);
|
|
486
|
+
if (value.efsFileSystem !== void 0)
|
|
487
|
+
return visitor.efsFileSystem(value.efsFileSystem);
|
|
488
|
+
if (value.kmsKey !== void 0)
|
|
489
|
+
return visitor.kmsKey(value.kmsKey);
|
|
490
|
+
if (value.rdsDbClusterSnapshot !== void 0)
|
|
491
|
+
return visitor.rdsDbClusterSnapshot(value.rdsDbClusterSnapshot);
|
|
492
|
+
if (value.rdsDbSnapshot !== void 0)
|
|
493
|
+
return visitor.rdsDbSnapshot(value.rdsDbSnapshot);
|
|
494
|
+
if (value.secretsManagerSecret !== void 0)
|
|
495
|
+
return visitor.secretsManagerSecret(value.secretsManagerSecret);
|
|
496
|
+
if (value.s3Bucket !== void 0)
|
|
497
|
+
return visitor.s3Bucket(value.s3Bucket);
|
|
498
|
+
if (value.snsTopic !== void 0)
|
|
499
|
+
return visitor.snsTopic(value.snsTopic);
|
|
500
|
+
if (value.sqsQueue !== void 0)
|
|
501
|
+
return visitor.sqsQueue(value.sqsQueue);
|
|
502
|
+
if (value.s3ExpressDirectoryBucket !== void 0)
|
|
503
|
+
return visitor.s3ExpressDirectoryBucket(value.s3ExpressDirectoryBucket);
|
|
504
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
505
|
+
}, "visit");
|
|
506
|
+
})(Configuration || (Configuration = {}));
|
|
507
|
+
var AccessPreviewStatus = {
|
|
508
|
+
COMPLETED: "COMPLETED",
|
|
509
|
+
CREATING: "CREATING",
|
|
510
|
+
FAILED: "FAILED"
|
|
511
|
+
};
|
|
512
|
+
var AccessPreviewStatusReasonCode = {
|
|
513
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
514
|
+
INVALID_CONFIGURATION: "INVALID_CONFIGURATION"
|
|
515
|
+
};
|
|
516
|
+
var FindingDetails;
|
|
517
|
+
((FindingDetails3) => {
|
|
518
|
+
FindingDetails3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
519
|
+
if (value.externalAccessDetails !== void 0)
|
|
520
|
+
return visitor.externalAccessDetails(value.externalAccessDetails);
|
|
521
|
+
if (value.unusedPermissionDetails !== void 0)
|
|
522
|
+
return visitor.unusedPermissionDetails(value.unusedPermissionDetails);
|
|
523
|
+
if (value.unusedIamUserAccessKeyDetails !== void 0)
|
|
524
|
+
return visitor.unusedIamUserAccessKeyDetails(value.unusedIamUserAccessKeyDetails);
|
|
525
|
+
if (value.unusedIamRoleDetails !== void 0)
|
|
526
|
+
return visitor.unusedIamRoleDetails(value.unusedIamRoleDetails);
|
|
527
|
+
if (value.unusedIamUserPasswordDetails !== void 0)
|
|
528
|
+
return visitor.unusedIamUserPasswordDetails(value.unusedIamUserPasswordDetails);
|
|
529
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
530
|
+
}, "visit");
|
|
531
|
+
})(FindingDetails || (FindingDetails = {}));
|
|
532
|
+
var FindingType = {
|
|
533
|
+
EXTERNAL_ACCESS: "ExternalAccess",
|
|
534
|
+
UNUSED_IAM_ROLE: "UnusedIAMRole",
|
|
535
|
+
UNUSED_IAM_USER_ACCESS_KEY: "UnusedIAMUserAccessKey",
|
|
536
|
+
UNUSED_IAM_USER_PASSWORD: "UnusedIAMUserPassword",
|
|
537
|
+
UNUSED_PERMISSION: "UnusedPermission"
|
|
538
|
+
};
|
|
539
|
+
var JobErrorCode = {
|
|
540
|
+
AUTHORIZATION_ERROR: "AUTHORIZATION_ERROR",
|
|
541
|
+
RESOURCE_NOT_FOUND_ERROR: "RESOURCE_NOT_FOUND_ERROR",
|
|
542
|
+
SERVICE_ERROR: "SERVICE_ERROR",
|
|
543
|
+
SERVICE_QUOTA_EXCEEDED_ERROR: "SERVICE_QUOTA_EXCEEDED_ERROR"
|
|
544
|
+
};
|
|
545
|
+
var JobStatus = {
|
|
546
|
+
CANCELED: "CANCELED",
|
|
547
|
+
FAILED: "FAILED",
|
|
548
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
549
|
+
SUCCEEDED: "SUCCEEDED"
|
|
550
|
+
};
|
|
551
|
+
var FindingChangeType = {
|
|
552
|
+
CHANGED: "CHANGED",
|
|
553
|
+
NEW: "NEW",
|
|
554
|
+
UNCHANGED: "UNCHANGED"
|
|
555
|
+
};
|
|
556
|
+
var Locale = {
|
|
557
|
+
DE: "DE",
|
|
558
|
+
EN: "EN",
|
|
559
|
+
ES: "ES",
|
|
560
|
+
FR: "FR",
|
|
561
|
+
IT: "IT",
|
|
562
|
+
JA: "JA",
|
|
563
|
+
KO: "KO",
|
|
564
|
+
PT_BR: "PT_BR",
|
|
565
|
+
ZH_CN: "ZH_CN",
|
|
566
|
+
ZH_TW: "ZH_TW"
|
|
567
|
+
};
|
|
568
|
+
var PolicyType = {
|
|
569
|
+
IDENTITY_POLICY: "IDENTITY_POLICY",
|
|
570
|
+
RESOURCE_POLICY: "RESOURCE_POLICY",
|
|
571
|
+
SERVICE_CONTROL_POLICY: "SERVICE_CONTROL_POLICY"
|
|
572
|
+
};
|
|
573
|
+
var ValidatePolicyResourceType = {
|
|
574
|
+
ROLE_TRUST: "AWS::IAM::AssumeRolePolicyDocument",
|
|
575
|
+
S3_ACCESS_POINT: "AWS::S3::AccessPoint",
|
|
576
|
+
S3_BUCKET: "AWS::S3::Bucket",
|
|
577
|
+
S3_MULTI_REGION_ACCESS_POINT: "AWS::S3::MultiRegionAccessPoint",
|
|
578
|
+
S3_OBJECT_LAMBDA_ACCESS_POINT: "AWS::S3ObjectLambda::AccessPoint"
|
|
579
|
+
};
|
|
580
|
+
var ValidatePolicyFindingType = {
|
|
581
|
+
ERROR: "ERROR",
|
|
582
|
+
SECURITY_WARNING: "SECURITY_WARNING",
|
|
583
|
+
SUGGESTION: "SUGGESTION",
|
|
584
|
+
WARNING: "WARNING"
|
|
585
|
+
};
|
|
586
|
+
var PathElement;
|
|
587
|
+
((PathElement2) => {
|
|
588
|
+
PathElement2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
589
|
+
if (value.index !== void 0)
|
|
590
|
+
return visitor.index(value.index);
|
|
591
|
+
if (value.key !== void 0)
|
|
592
|
+
return visitor.key(value.key);
|
|
593
|
+
if (value.substring !== void 0)
|
|
594
|
+
return visitor.substring(value.substring);
|
|
595
|
+
if (value.value !== void 0)
|
|
596
|
+
return visitor.value(value.value);
|
|
597
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
598
|
+
}, "visit");
|
|
599
|
+
})(PathElement || (PathElement = {}));
|
|
600
|
+
var CheckAccessNotGrantedRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
601
|
+
...obj,
|
|
602
|
+
...obj.policyDocument && { policyDocument: import_smithy_client.SENSITIVE_STRING }
|
|
603
|
+
}), "CheckAccessNotGrantedRequestFilterSensitiveLog");
|
|
604
|
+
var CheckNoNewAccessRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
605
|
+
...obj,
|
|
606
|
+
...obj.newPolicyDocument && { newPolicyDocument: import_smithy_client.SENSITIVE_STRING },
|
|
607
|
+
...obj.existingPolicyDocument && { existingPolicyDocument: import_smithy_client.SENSITIVE_STRING }
|
|
608
|
+
}), "CheckNoNewAccessRequestFilterSensitiveLog");
|
|
609
|
+
|
|
610
|
+
// src/protocols/Aws_restJson1.ts
|
|
611
|
+
var se_ApplyArchiveRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
612
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
613
|
+
const headers = {
|
|
614
|
+
"content-type": "application/json"
|
|
615
|
+
};
|
|
616
|
+
b.bp("/archive-rule");
|
|
617
|
+
let body;
|
|
618
|
+
body = JSON.stringify(
|
|
619
|
+
(0, import_smithy_client.take)(input, {
|
|
620
|
+
analyzerArn: [],
|
|
621
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
622
|
+
ruleName: []
|
|
623
|
+
})
|
|
624
|
+
);
|
|
625
|
+
b.m("PUT").h(headers).b(body);
|
|
626
|
+
return b.build();
|
|
627
|
+
}, "se_ApplyArchiveRuleCommand");
|
|
628
|
+
var se_CancelPolicyGenerationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
629
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
630
|
+
const headers = {};
|
|
631
|
+
b.bp("/policy/generation/{jobId}");
|
|
632
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
633
|
+
let body;
|
|
634
|
+
b.m("PUT").h(headers).b(body);
|
|
635
|
+
return b.build();
|
|
636
|
+
}, "se_CancelPolicyGenerationCommand");
|
|
637
|
+
var se_CheckAccessNotGrantedCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
638
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
639
|
+
const headers = {
|
|
640
|
+
"content-type": "application/json"
|
|
641
|
+
};
|
|
642
|
+
b.bp("/policy/check-access-not-granted");
|
|
643
|
+
let body;
|
|
644
|
+
body = JSON.stringify(
|
|
645
|
+
(0, import_smithy_client.take)(input, {
|
|
646
|
+
access: (_) => (0, import_smithy_client._json)(_),
|
|
647
|
+
policyDocument: [],
|
|
648
|
+
policyType: []
|
|
649
|
+
})
|
|
650
|
+
);
|
|
651
|
+
b.m("POST").h(headers).b(body);
|
|
652
|
+
return b.build();
|
|
653
|
+
}, "se_CheckAccessNotGrantedCommand");
|
|
654
|
+
var se_CheckNoNewAccessCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
655
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
656
|
+
const headers = {
|
|
657
|
+
"content-type": "application/json"
|
|
658
|
+
};
|
|
659
|
+
b.bp("/policy/check-no-new-access");
|
|
660
|
+
let body;
|
|
661
|
+
body = JSON.stringify(
|
|
662
|
+
(0, import_smithy_client.take)(input, {
|
|
663
|
+
existingPolicyDocument: [],
|
|
664
|
+
newPolicyDocument: [],
|
|
665
|
+
policyType: []
|
|
666
|
+
})
|
|
667
|
+
);
|
|
668
|
+
b.m("POST").h(headers).b(body);
|
|
669
|
+
return b.build();
|
|
670
|
+
}, "se_CheckNoNewAccessCommand");
|
|
671
|
+
var se_CreateAccessPreviewCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
672
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
673
|
+
const headers = {
|
|
674
|
+
"content-type": "application/json"
|
|
675
|
+
};
|
|
676
|
+
b.bp("/access-preview");
|
|
677
|
+
let body;
|
|
678
|
+
body = JSON.stringify(
|
|
679
|
+
(0, import_smithy_client.take)(input, {
|
|
680
|
+
analyzerArn: [],
|
|
681
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
682
|
+
configurations: (_) => (0, import_smithy_client._json)(_)
|
|
683
|
+
})
|
|
684
|
+
);
|
|
685
|
+
b.m("PUT").h(headers).b(body);
|
|
686
|
+
return b.build();
|
|
687
|
+
}, "se_CreateAccessPreviewCommand");
|
|
688
|
+
var se_CreateAnalyzerCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
689
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
690
|
+
const headers = {
|
|
691
|
+
"content-type": "application/json"
|
|
692
|
+
};
|
|
693
|
+
b.bp("/analyzer");
|
|
694
|
+
let body;
|
|
695
|
+
body = JSON.stringify(
|
|
696
|
+
(0, import_smithy_client.take)(input, {
|
|
697
|
+
analyzerName: [],
|
|
698
|
+
archiveRules: (_) => (0, import_smithy_client._json)(_),
|
|
699
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
700
|
+
configuration: (_) => (0, import_smithy_client._json)(_),
|
|
701
|
+
tags: (_) => (0, import_smithy_client._json)(_),
|
|
702
|
+
type: []
|
|
703
|
+
})
|
|
704
|
+
);
|
|
705
|
+
b.m("PUT").h(headers).b(body);
|
|
706
|
+
return b.build();
|
|
707
|
+
}, "se_CreateAnalyzerCommand");
|
|
708
|
+
var se_CreateArchiveRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
709
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
710
|
+
const headers = {
|
|
711
|
+
"content-type": "application/json"
|
|
712
|
+
};
|
|
713
|
+
b.bp("/analyzer/{analyzerName}/archive-rule");
|
|
714
|
+
b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
|
|
715
|
+
let body;
|
|
716
|
+
body = JSON.stringify(
|
|
717
|
+
(0, import_smithy_client.take)(input, {
|
|
718
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
719
|
+
filter: (_) => (0, import_smithy_client._json)(_),
|
|
720
|
+
ruleName: []
|
|
721
|
+
})
|
|
722
|
+
);
|
|
723
|
+
b.m("PUT").h(headers).b(body);
|
|
724
|
+
return b.build();
|
|
725
|
+
}, "se_CreateArchiveRuleCommand");
|
|
726
|
+
var se_DeleteAnalyzerCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
727
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
728
|
+
const headers = {};
|
|
729
|
+
b.bp("/analyzer/{analyzerName}");
|
|
730
|
+
b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
|
|
731
|
+
const query = (0, import_smithy_client.map)({
|
|
732
|
+
[_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]
|
|
733
|
+
});
|
|
734
|
+
let body;
|
|
735
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
736
|
+
return b.build();
|
|
737
|
+
}, "se_DeleteAnalyzerCommand");
|
|
738
|
+
var se_DeleteArchiveRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
739
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
740
|
+
const headers = {};
|
|
741
|
+
b.bp("/analyzer/{analyzerName}/archive-rule/{ruleName}");
|
|
742
|
+
b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
|
|
743
|
+
b.p("ruleName", () => input.ruleName, "{ruleName}", false);
|
|
744
|
+
const query = (0, import_smithy_client.map)({
|
|
745
|
+
[_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]
|
|
746
|
+
});
|
|
747
|
+
let body;
|
|
748
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
749
|
+
return b.build();
|
|
750
|
+
}, "se_DeleteArchiveRuleCommand");
|
|
751
|
+
var se_GetAccessPreviewCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
752
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
753
|
+
const headers = {};
|
|
754
|
+
b.bp("/access-preview/{accessPreviewId}");
|
|
755
|
+
b.p("accessPreviewId", () => input.accessPreviewId, "{accessPreviewId}", false);
|
|
756
|
+
const query = (0, import_smithy_client.map)({
|
|
757
|
+
[_aA]: [, (0, import_smithy_client.expectNonNull)(input[_aA], `analyzerArn`)]
|
|
758
|
+
});
|
|
759
|
+
let body;
|
|
760
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
761
|
+
return b.build();
|
|
762
|
+
}, "se_GetAccessPreviewCommand");
|
|
763
|
+
var se_GetAnalyzedResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
764
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
765
|
+
const headers = {};
|
|
766
|
+
b.bp("/analyzed-resource");
|
|
767
|
+
const query = (0, import_smithy_client.map)({
|
|
768
|
+
[_aA]: [, (0, import_smithy_client.expectNonNull)(input[_aA], `analyzerArn`)],
|
|
769
|
+
[_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)]
|
|
770
|
+
});
|
|
771
|
+
let body;
|
|
772
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
773
|
+
return b.build();
|
|
774
|
+
}, "se_GetAnalyzedResourceCommand");
|
|
775
|
+
var se_GetAnalyzerCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
776
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
777
|
+
const headers = {};
|
|
778
|
+
b.bp("/analyzer/{analyzerName}");
|
|
779
|
+
b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
|
|
780
|
+
let body;
|
|
781
|
+
b.m("GET").h(headers).b(body);
|
|
782
|
+
return b.build();
|
|
783
|
+
}, "se_GetAnalyzerCommand");
|
|
784
|
+
var se_GetArchiveRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
785
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
786
|
+
const headers = {};
|
|
787
|
+
b.bp("/analyzer/{analyzerName}/archive-rule/{ruleName}");
|
|
788
|
+
b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
|
|
789
|
+
b.p("ruleName", () => input.ruleName, "{ruleName}", false);
|
|
790
|
+
let body;
|
|
791
|
+
b.m("GET").h(headers).b(body);
|
|
792
|
+
return b.build();
|
|
793
|
+
}, "se_GetArchiveRuleCommand");
|
|
794
|
+
var se_GetFindingCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
795
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
796
|
+
const headers = {};
|
|
797
|
+
b.bp("/finding/{id}");
|
|
798
|
+
b.p("id", () => input.id, "{id}", false);
|
|
799
|
+
const query = (0, import_smithy_client.map)({
|
|
800
|
+
[_aA]: [, (0, import_smithy_client.expectNonNull)(input[_aA], `analyzerArn`)]
|
|
801
|
+
});
|
|
802
|
+
let body;
|
|
803
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
804
|
+
return b.build();
|
|
805
|
+
}, "se_GetFindingCommand");
|
|
806
|
+
var se_GetFindingV2Command = /* @__PURE__ */ __name(async (input, context) => {
|
|
807
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
808
|
+
const headers = {};
|
|
809
|
+
b.bp("/findingv2/{id}");
|
|
810
|
+
b.p("id", () => input.id, "{id}", false);
|
|
811
|
+
const query = (0, import_smithy_client.map)({
|
|
812
|
+
[_aA]: [, (0, import_smithy_client.expectNonNull)(input[_aA], `analyzerArn`)],
|
|
813
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
814
|
+
[_nT]: [, input[_nT]]
|
|
815
|
+
});
|
|
816
|
+
let body;
|
|
817
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
818
|
+
return b.build();
|
|
819
|
+
}, "se_GetFindingV2Command");
|
|
820
|
+
var se_GetGeneratedPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
821
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
822
|
+
const headers = {};
|
|
823
|
+
b.bp("/policy/generation/{jobId}");
|
|
824
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
825
|
+
const query = (0, import_smithy_client.map)({
|
|
826
|
+
[_iRP]: [() => input.includeResourcePlaceholders !== void 0, () => input[_iRP].toString()],
|
|
827
|
+
[_iSLT]: [() => input.includeServiceLevelTemplate !== void 0, () => input[_iSLT].toString()]
|
|
828
|
+
});
|
|
829
|
+
let body;
|
|
830
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
831
|
+
return b.build();
|
|
832
|
+
}, "se_GetGeneratedPolicyCommand");
|
|
833
|
+
var se_ListAccessPreviewFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
834
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
835
|
+
const headers = {
|
|
836
|
+
"content-type": "application/json"
|
|
837
|
+
};
|
|
838
|
+
b.bp("/access-preview/{accessPreviewId}");
|
|
839
|
+
b.p("accessPreviewId", () => input.accessPreviewId, "{accessPreviewId}", false);
|
|
840
|
+
let body;
|
|
841
|
+
body = JSON.stringify(
|
|
842
|
+
(0, import_smithy_client.take)(input, {
|
|
843
|
+
analyzerArn: [],
|
|
844
|
+
filter: (_) => (0, import_smithy_client._json)(_),
|
|
845
|
+
maxResults: [],
|
|
846
|
+
nextToken: []
|
|
847
|
+
})
|
|
848
|
+
);
|
|
849
|
+
b.m("POST").h(headers).b(body);
|
|
850
|
+
return b.build();
|
|
851
|
+
}, "se_ListAccessPreviewFindingsCommand");
|
|
852
|
+
var se_ListAccessPreviewsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
853
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
854
|
+
const headers = {};
|
|
855
|
+
b.bp("/access-preview");
|
|
856
|
+
const query = (0, import_smithy_client.map)({
|
|
857
|
+
[_aA]: [, (0, import_smithy_client.expectNonNull)(input[_aA], `analyzerArn`)],
|
|
858
|
+
[_nT]: [, input[_nT]],
|
|
859
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
860
|
+
});
|
|
861
|
+
let body;
|
|
862
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
863
|
+
return b.build();
|
|
864
|
+
}, "se_ListAccessPreviewsCommand");
|
|
865
|
+
var se_ListAnalyzedResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
866
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
867
|
+
const headers = {
|
|
868
|
+
"content-type": "application/json"
|
|
869
|
+
};
|
|
870
|
+
b.bp("/analyzed-resource");
|
|
871
|
+
let body;
|
|
872
|
+
body = JSON.stringify(
|
|
873
|
+
(0, import_smithy_client.take)(input, {
|
|
874
|
+
analyzerArn: [],
|
|
875
|
+
maxResults: [],
|
|
876
|
+
nextToken: [],
|
|
877
|
+
resourceType: []
|
|
878
|
+
})
|
|
879
|
+
);
|
|
880
|
+
b.m("POST").h(headers).b(body);
|
|
881
|
+
return b.build();
|
|
882
|
+
}, "se_ListAnalyzedResourcesCommand");
|
|
883
|
+
var se_ListAnalyzersCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
884
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
885
|
+
const headers = {};
|
|
886
|
+
b.bp("/analyzer");
|
|
887
|
+
const query = (0, import_smithy_client.map)({
|
|
888
|
+
[_nT]: [, input[_nT]],
|
|
889
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
890
|
+
[_t]: [, input[_t]]
|
|
891
|
+
});
|
|
892
|
+
let body;
|
|
893
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
894
|
+
return b.build();
|
|
895
|
+
}, "se_ListAnalyzersCommand");
|
|
896
|
+
var se_ListArchiveRulesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
897
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
898
|
+
const headers = {};
|
|
899
|
+
b.bp("/analyzer/{analyzerName}/archive-rule");
|
|
900
|
+
b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
|
|
901
|
+
const query = (0, import_smithy_client.map)({
|
|
902
|
+
[_nT]: [, input[_nT]],
|
|
903
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
904
|
+
});
|
|
905
|
+
let body;
|
|
906
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
907
|
+
return b.build();
|
|
908
|
+
}, "se_ListArchiveRulesCommand");
|
|
909
|
+
var se_ListFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
910
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
911
|
+
const headers = {
|
|
912
|
+
"content-type": "application/json"
|
|
913
|
+
};
|
|
914
|
+
b.bp("/finding");
|
|
915
|
+
let body;
|
|
916
|
+
body = JSON.stringify(
|
|
917
|
+
(0, import_smithy_client.take)(input, {
|
|
918
|
+
analyzerArn: [],
|
|
919
|
+
filter: (_) => (0, import_smithy_client._json)(_),
|
|
920
|
+
maxResults: [],
|
|
921
|
+
nextToken: [],
|
|
922
|
+
sort: (_) => (0, import_smithy_client._json)(_)
|
|
923
|
+
})
|
|
924
|
+
);
|
|
925
|
+
b.m("POST").h(headers).b(body);
|
|
926
|
+
return b.build();
|
|
927
|
+
}, "se_ListFindingsCommand");
|
|
928
|
+
var se_ListFindingsV2Command = /* @__PURE__ */ __name(async (input, context) => {
|
|
929
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
930
|
+
const headers = {
|
|
931
|
+
"content-type": "application/json"
|
|
932
|
+
};
|
|
933
|
+
b.bp("/findingv2");
|
|
934
|
+
let body;
|
|
935
|
+
body = JSON.stringify(
|
|
936
|
+
(0, import_smithy_client.take)(input, {
|
|
937
|
+
analyzerArn: [],
|
|
938
|
+
filter: (_) => (0, import_smithy_client._json)(_),
|
|
939
|
+
maxResults: [],
|
|
940
|
+
nextToken: [],
|
|
941
|
+
sort: (_) => (0, import_smithy_client._json)(_)
|
|
942
|
+
})
|
|
943
|
+
);
|
|
944
|
+
b.m("POST").h(headers).b(body);
|
|
945
|
+
return b.build();
|
|
946
|
+
}, "se_ListFindingsV2Command");
|
|
947
|
+
var se_ListPolicyGenerationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
948
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
949
|
+
const headers = {};
|
|
950
|
+
b.bp("/policy/generation");
|
|
951
|
+
const query = (0, import_smithy_client.map)({
|
|
952
|
+
[_pA]: [, input[_pA]],
|
|
953
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
954
|
+
[_nT]: [, input[_nT]]
|
|
955
|
+
});
|
|
956
|
+
let body;
|
|
957
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
958
|
+
return b.build();
|
|
959
|
+
}, "se_ListPolicyGenerationsCommand");
|
|
960
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
961
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
962
|
+
const headers = {};
|
|
963
|
+
b.bp("/tags/{resourceArn}");
|
|
964
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
965
|
+
let body;
|
|
966
|
+
b.m("GET").h(headers).b(body);
|
|
967
|
+
return b.build();
|
|
968
|
+
}, "se_ListTagsForResourceCommand");
|
|
969
|
+
var se_StartPolicyGenerationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
970
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
971
|
+
const headers = {
|
|
972
|
+
"content-type": "application/json"
|
|
973
|
+
};
|
|
974
|
+
b.bp("/policy/generation");
|
|
975
|
+
let body;
|
|
976
|
+
body = JSON.stringify(
|
|
977
|
+
(0, import_smithy_client.take)(input, {
|
|
978
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
979
|
+
cloudTrailDetails: (_) => se_CloudTrailDetails(_, context),
|
|
980
|
+
policyGenerationDetails: (_) => (0, import_smithy_client._json)(_)
|
|
981
|
+
})
|
|
982
|
+
);
|
|
983
|
+
b.m("PUT").h(headers).b(body);
|
|
984
|
+
return b.build();
|
|
985
|
+
}, "se_StartPolicyGenerationCommand");
|
|
986
|
+
var se_StartResourceScanCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
987
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
988
|
+
const headers = {
|
|
989
|
+
"content-type": "application/json"
|
|
990
|
+
};
|
|
991
|
+
b.bp("/resource/scan");
|
|
992
|
+
let body;
|
|
993
|
+
body = JSON.stringify(
|
|
994
|
+
(0, import_smithy_client.take)(input, {
|
|
995
|
+
analyzerArn: [],
|
|
996
|
+
resourceArn: [],
|
|
997
|
+
resourceOwnerAccount: []
|
|
998
|
+
})
|
|
999
|
+
);
|
|
1000
|
+
b.m("POST").h(headers).b(body);
|
|
1001
|
+
return b.build();
|
|
1002
|
+
}, "se_StartResourceScanCommand");
|
|
1003
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1004
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
1005
|
+
const headers = {
|
|
1006
|
+
"content-type": "application/json"
|
|
1007
|
+
};
|
|
1008
|
+
b.bp("/tags/{resourceArn}");
|
|
1009
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1010
|
+
let body;
|
|
1011
|
+
body = JSON.stringify(
|
|
1012
|
+
(0, import_smithy_client.take)(input, {
|
|
1013
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
1014
|
+
})
|
|
1015
|
+
);
|
|
1016
|
+
b.m("POST").h(headers).b(body);
|
|
1017
|
+
return b.build();
|
|
1018
|
+
}, "se_TagResourceCommand");
|
|
1019
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1020
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
1021
|
+
const headers = {};
|
|
1022
|
+
b.bp("/tags/{resourceArn}");
|
|
1023
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1024
|
+
const query = (0, import_smithy_client.map)({
|
|
1025
|
+
[_tK]: [
|
|
1026
|
+
(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
1027
|
+
() => (input[_tK] || []).map((_entry) => _entry)
|
|
1028
|
+
]
|
|
1029
|
+
});
|
|
1030
|
+
let body;
|
|
1031
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
1032
|
+
return b.build();
|
|
1033
|
+
}, "se_UntagResourceCommand");
|
|
1034
|
+
var se_UpdateArchiveRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1035
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
1036
|
+
const headers = {
|
|
1037
|
+
"content-type": "application/json"
|
|
1038
|
+
};
|
|
1039
|
+
b.bp("/analyzer/{analyzerName}/archive-rule/{ruleName}");
|
|
1040
|
+
b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
|
|
1041
|
+
b.p("ruleName", () => input.ruleName, "{ruleName}", false);
|
|
1042
|
+
let body;
|
|
1043
|
+
body = JSON.stringify(
|
|
1044
|
+
(0, import_smithy_client.take)(input, {
|
|
1045
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1046
|
+
filter: (_) => (0, import_smithy_client._json)(_)
|
|
1047
|
+
})
|
|
1048
|
+
);
|
|
1049
|
+
b.m("PUT").h(headers).b(body);
|
|
1050
|
+
return b.build();
|
|
1051
|
+
}, "se_UpdateArchiveRuleCommand");
|
|
1052
|
+
var se_UpdateFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1053
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
1054
|
+
const headers = {
|
|
1055
|
+
"content-type": "application/json"
|
|
1056
|
+
};
|
|
1057
|
+
b.bp("/finding");
|
|
1058
|
+
let body;
|
|
1059
|
+
body = JSON.stringify(
|
|
1060
|
+
(0, import_smithy_client.take)(input, {
|
|
1061
|
+
analyzerArn: [],
|
|
1062
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1063
|
+
ids: (_) => (0, import_smithy_client._json)(_),
|
|
1064
|
+
resourceArn: [],
|
|
1065
|
+
status: []
|
|
1066
|
+
})
|
|
1067
|
+
);
|
|
1068
|
+
b.m("PUT").h(headers).b(body);
|
|
1069
|
+
return b.build();
|
|
1070
|
+
}, "se_UpdateFindingsCommand");
|
|
1071
|
+
var se_ValidatePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1072
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
1073
|
+
const headers = {
|
|
1074
|
+
"content-type": "application/json"
|
|
1075
|
+
};
|
|
1076
|
+
b.bp("/policy/validation");
|
|
1077
|
+
const query = (0, import_smithy_client.map)({
|
|
1078
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1079
|
+
[_nT]: [, input[_nT]]
|
|
1080
|
+
});
|
|
1081
|
+
let body;
|
|
1082
|
+
body = JSON.stringify(
|
|
1083
|
+
(0, import_smithy_client.take)(input, {
|
|
1084
|
+
locale: [],
|
|
1085
|
+
policyDocument: [],
|
|
1086
|
+
policyType: [],
|
|
1087
|
+
validatePolicyResourceType: []
|
|
1088
|
+
})
|
|
1089
|
+
);
|
|
1090
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
1091
|
+
return b.build();
|
|
1092
|
+
}, "se_ValidatePolicyCommand");
|
|
1093
|
+
var de_ApplyArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1094
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1095
|
+
return de_ApplyArchiveRuleCommandError(output, context);
|
|
1096
|
+
}
|
|
1097
|
+
const contents = (0, import_smithy_client.map)({
|
|
1098
|
+
$metadata: deserializeMetadata(output)
|
|
1099
|
+
});
|
|
1100
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1101
|
+
return contents;
|
|
1102
|
+
}, "de_ApplyArchiveRuleCommand");
|
|
1103
|
+
var de_ApplyArchiveRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1104
|
+
const parsedOutput = {
|
|
1105
|
+
...output,
|
|
1106
|
+
body: await parseErrorBody(output.body, context)
|
|
1107
|
+
};
|
|
1108
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
|
+
switch (errorCode) {
|
|
1110
|
+
case "AccessDeniedException":
|
|
1111
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1112
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1113
|
+
case "InternalServerException":
|
|
1114
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1115
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1116
|
+
case "ResourceNotFoundException":
|
|
1117
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1118
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1119
|
+
case "ThrottlingException":
|
|
1120
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1121
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1122
|
+
case "ValidationException":
|
|
1123
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1124
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1125
|
+
default:
|
|
1126
|
+
const parsedBody = parsedOutput.body;
|
|
1127
|
+
return throwDefaultError({
|
|
1128
|
+
output,
|
|
1129
|
+
parsedBody,
|
|
1130
|
+
errorCode
|
|
1131
|
+
});
|
|
1132
|
+
}
|
|
1133
|
+
}, "de_ApplyArchiveRuleCommandError");
|
|
1134
|
+
var de_CancelPolicyGenerationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1135
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1136
|
+
return de_CancelPolicyGenerationCommandError(output, context);
|
|
1137
|
+
}
|
|
1138
|
+
const contents = (0, import_smithy_client.map)({
|
|
1139
|
+
$metadata: deserializeMetadata(output)
|
|
1140
|
+
});
|
|
1141
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1142
|
+
return contents;
|
|
1143
|
+
}, "de_CancelPolicyGenerationCommand");
|
|
1144
|
+
var de_CancelPolicyGenerationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1145
|
+
const parsedOutput = {
|
|
1146
|
+
...output,
|
|
1147
|
+
body: await parseErrorBody(output.body, context)
|
|
1148
|
+
};
|
|
1149
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1150
|
+
switch (errorCode) {
|
|
1151
|
+
case "AccessDeniedException":
|
|
1152
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1153
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1154
|
+
case "InternalServerException":
|
|
1155
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1156
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1157
|
+
case "ThrottlingException":
|
|
1158
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1159
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1160
|
+
case "ValidationException":
|
|
1161
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1162
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1163
|
+
default:
|
|
1164
|
+
const parsedBody = parsedOutput.body;
|
|
1165
|
+
return throwDefaultError({
|
|
1166
|
+
output,
|
|
1167
|
+
parsedBody,
|
|
1168
|
+
errorCode
|
|
1169
|
+
});
|
|
1170
|
+
}
|
|
1171
|
+
}, "de_CancelPolicyGenerationCommandError");
|
|
1172
|
+
var de_CheckAccessNotGrantedCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1173
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1174
|
+
return de_CheckAccessNotGrantedCommandError(output, context);
|
|
1175
|
+
}
|
|
1176
|
+
const contents = (0, import_smithy_client.map)({
|
|
1177
|
+
$metadata: deserializeMetadata(output)
|
|
1178
|
+
});
|
|
1179
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1180
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1181
|
+
message: import_smithy_client.expectString,
|
|
1182
|
+
reasons: import_smithy_client._json,
|
|
1183
|
+
result: import_smithy_client.expectString
|
|
1184
|
+
});
|
|
1185
|
+
Object.assign(contents, doc);
|
|
1186
|
+
return contents;
|
|
1187
|
+
}, "de_CheckAccessNotGrantedCommand");
|
|
1188
|
+
var de_CheckAccessNotGrantedCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1189
|
+
const parsedOutput = {
|
|
1190
|
+
...output,
|
|
1191
|
+
body: await parseErrorBody(output.body, context)
|
|
1192
|
+
};
|
|
1193
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
|
+
switch (errorCode) {
|
|
1195
|
+
case "AccessDeniedException":
|
|
1196
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1197
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1198
|
+
case "InternalServerException":
|
|
1199
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1200
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1201
|
+
case "InvalidParameterException":
|
|
1202
|
+
case "com.amazonaws.accessanalyzer#InvalidParameterException":
|
|
1203
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1204
|
+
case "ThrottlingException":
|
|
1205
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1206
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1207
|
+
case "UnprocessableEntityException":
|
|
1208
|
+
case "com.amazonaws.accessanalyzer#UnprocessableEntityException":
|
|
1209
|
+
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1210
|
+
case "ValidationException":
|
|
1211
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1212
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1213
|
+
default:
|
|
1214
|
+
const parsedBody = parsedOutput.body;
|
|
1215
|
+
return throwDefaultError({
|
|
1216
|
+
output,
|
|
1217
|
+
parsedBody,
|
|
1218
|
+
errorCode
|
|
1219
|
+
});
|
|
1220
|
+
}
|
|
1221
|
+
}, "de_CheckAccessNotGrantedCommandError");
|
|
1222
|
+
var de_CheckNoNewAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1223
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1224
|
+
return de_CheckNoNewAccessCommandError(output, context);
|
|
1225
|
+
}
|
|
1226
|
+
const contents = (0, import_smithy_client.map)({
|
|
1227
|
+
$metadata: deserializeMetadata(output)
|
|
1228
|
+
});
|
|
1229
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1230
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1231
|
+
message: import_smithy_client.expectString,
|
|
1232
|
+
reasons: import_smithy_client._json,
|
|
1233
|
+
result: import_smithy_client.expectString
|
|
1234
|
+
});
|
|
1235
|
+
Object.assign(contents, doc);
|
|
1236
|
+
return contents;
|
|
1237
|
+
}, "de_CheckNoNewAccessCommand");
|
|
1238
|
+
var de_CheckNoNewAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1239
|
+
const parsedOutput = {
|
|
1240
|
+
...output,
|
|
1241
|
+
body: await parseErrorBody(output.body, context)
|
|
1242
|
+
};
|
|
1243
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1244
|
+
switch (errorCode) {
|
|
1245
|
+
case "AccessDeniedException":
|
|
1246
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1247
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1248
|
+
case "InternalServerException":
|
|
1249
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1250
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1251
|
+
case "InvalidParameterException":
|
|
1252
|
+
case "com.amazonaws.accessanalyzer#InvalidParameterException":
|
|
1253
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1254
|
+
case "ThrottlingException":
|
|
1255
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1256
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1257
|
+
case "UnprocessableEntityException":
|
|
1258
|
+
case "com.amazonaws.accessanalyzer#UnprocessableEntityException":
|
|
1259
|
+
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1260
|
+
case "ValidationException":
|
|
1261
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1262
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1263
|
+
default:
|
|
1264
|
+
const parsedBody = parsedOutput.body;
|
|
1265
|
+
return throwDefaultError({
|
|
1266
|
+
output,
|
|
1267
|
+
parsedBody,
|
|
1268
|
+
errorCode
|
|
1269
|
+
});
|
|
1270
|
+
}
|
|
1271
|
+
}, "de_CheckNoNewAccessCommandError");
|
|
1272
|
+
var de_CreateAccessPreviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1273
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1274
|
+
return de_CreateAccessPreviewCommandError(output, context);
|
|
1275
|
+
}
|
|
1276
|
+
const contents = (0, import_smithy_client.map)({
|
|
1277
|
+
$metadata: deserializeMetadata(output)
|
|
1278
|
+
});
|
|
1279
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1280
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1281
|
+
id: import_smithy_client.expectString
|
|
1282
|
+
});
|
|
1283
|
+
Object.assign(contents, doc);
|
|
1284
|
+
return contents;
|
|
1285
|
+
}, "de_CreateAccessPreviewCommand");
|
|
1286
|
+
var de_CreateAccessPreviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1287
|
+
const parsedOutput = {
|
|
1288
|
+
...output,
|
|
1289
|
+
body: await parseErrorBody(output.body, context)
|
|
1290
|
+
};
|
|
1291
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
|
+
switch (errorCode) {
|
|
1293
|
+
case "AccessDeniedException":
|
|
1294
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1295
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1296
|
+
case "ConflictException":
|
|
1297
|
+
case "com.amazonaws.accessanalyzer#ConflictException":
|
|
1298
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1299
|
+
case "InternalServerException":
|
|
1300
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1301
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1302
|
+
case "ResourceNotFoundException":
|
|
1303
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1304
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1305
|
+
case "ServiceQuotaExceededException":
|
|
1306
|
+
case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
|
|
1307
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1308
|
+
case "ThrottlingException":
|
|
1309
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1310
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1311
|
+
case "ValidationException":
|
|
1312
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1313
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1314
|
+
default:
|
|
1315
|
+
const parsedBody = parsedOutput.body;
|
|
1316
|
+
return throwDefaultError({
|
|
1317
|
+
output,
|
|
1318
|
+
parsedBody,
|
|
1319
|
+
errorCode
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
}, "de_CreateAccessPreviewCommandError");
|
|
1323
|
+
var de_CreateAnalyzerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1324
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1325
|
+
return de_CreateAnalyzerCommandError(output, context);
|
|
1326
|
+
}
|
|
1327
|
+
const contents = (0, import_smithy_client.map)({
|
|
1328
|
+
$metadata: deserializeMetadata(output)
|
|
1329
|
+
});
|
|
1330
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1331
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1332
|
+
arn: import_smithy_client.expectString
|
|
1333
|
+
});
|
|
1334
|
+
Object.assign(contents, doc);
|
|
1335
|
+
return contents;
|
|
1336
|
+
}, "de_CreateAnalyzerCommand");
|
|
1337
|
+
var de_CreateAnalyzerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1338
|
+
const parsedOutput = {
|
|
1339
|
+
...output,
|
|
1340
|
+
body: await parseErrorBody(output.body, context)
|
|
1341
|
+
};
|
|
1342
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1343
|
+
switch (errorCode) {
|
|
1344
|
+
case "AccessDeniedException":
|
|
1345
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1346
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1347
|
+
case "ConflictException":
|
|
1348
|
+
case "com.amazonaws.accessanalyzer#ConflictException":
|
|
1349
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1350
|
+
case "InternalServerException":
|
|
1351
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1352
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1353
|
+
case "ServiceQuotaExceededException":
|
|
1354
|
+
case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
|
|
1355
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1356
|
+
case "ThrottlingException":
|
|
1357
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1358
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1359
|
+
case "ValidationException":
|
|
1360
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1361
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1362
|
+
default:
|
|
1363
|
+
const parsedBody = parsedOutput.body;
|
|
1364
|
+
return throwDefaultError({
|
|
1365
|
+
output,
|
|
1366
|
+
parsedBody,
|
|
1367
|
+
errorCode
|
|
1368
|
+
});
|
|
1369
|
+
}
|
|
1370
|
+
}, "de_CreateAnalyzerCommandError");
|
|
1371
|
+
var de_CreateArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1372
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1373
|
+
return de_CreateArchiveRuleCommandError(output, context);
|
|
1374
|
+
}
|
|
1375
|
+
const contents = (0, import_smithy_client.map)({
|
|
1376
|
+
$metadata: deserializeMetadata(output)
|
|
1377
|
+
});
|
|
1378
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1379
|
+
return contents;
|
|
1380
|
+
}, "de_CreateArchiveRuleCommand");
|
|
1381
|
+
var de_CreateArchiveRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1382
|
+
const parsedOutput = {
|
|
1383
|
+
...output,
|
|
1384
|
+
body: await parseErrorBody(output.body, context)
|
|
1385
|
+
};
|
|
1386
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1387
|
+
switch (errorCode) {
|
|
1388
|
+
case "AccessDeniedException":
|
|
1389
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1390
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1391
|
+
case "ConflictException":
|
|
1392
|
+
case "com.amazonaws.accessanalyzer#ConflictException":
|
|
1393
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1394
|
+
case "InternalServerException":
|
|
1395
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1396
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1397
|
+
case "ResourceNotFoundException":
|
|
1398
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1399
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1400
|
+
case "ServiceQuotaExceededException":
|
|
1401
|
+
case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
|
|
1402
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1403
|
+
case "ThrottlingException":
|
|
1404
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1405
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1406
|
+
case "ValidationException":
|
|
1407
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1408
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1409
|
+
default:
|
|
1410
|
+
const parsedBody = parsedOutput.body;
|
|
1411
|
+
return throwDefaultError({
|
|
1412
|
+
output,
|
|
1413
|
+
parsedBody,
|
|
1414
|
+
errorCode
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1417
|
+
}, "de_CreateArchiveRuleCommandError");
|
|
1418
|
+
var de_DeleteAnalyzerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1419
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1420
|
+
return de_DeleteAnalyzerCommandError(output, context);
|
|
1421
|
+
}
|
|
1422
|
+
const contents = (0, import_smithy_client.map)({
|
|
1423
|
+
$metadata: deserializeMetadata(output)
|
|
1424
|
+
});
|
|
1425
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1426
|
+
return contents;
|
|
1427
|
+
}, "de_DeleteAnalyzerCommand");
|
|
1428
|
+
var de_DeleteAnalyzerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1429
|
+
const parsedOutput = {
|
|
1430
|
+
...output,
|
|
1431
|
+
body: await parseErrorBody(output.body, context)
|
|
1432
|
+
};
|
|
1433
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
|
+
switch (errorCode) {
|
|
1435
|
+
case "AccessDeniedException":
|
|
1436
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1437
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1438
|
+
case "InternalServerException":
|
|
1439
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1440
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1441
|
+
case "ResourceNotFoundException":
|
|
1442
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1443
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1444
|
+
case "ThrottlingException":
|
|
1445
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1446
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1447
|
+
case "ValidationException":
|
|
1448
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1449
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1450
|
+
default:
|
|
1451
|
+
const parsedBody = parsedOutput.body;
|
|
1452
|
+
return throwDefaultError({
|
|
1453
|
+
output,
|
|
1454
|
+
parsedBody,
|
|
1455
|
+
errorCode
|
|
1456
|
+
});
|
|
1457
|
+
}
|
|
1458
|
+
}, "de_DeleteAnalyzerCommandError");
|
|
1459
|
+
var de_DeleteArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1460
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1461
|
+
return de_DeleteArchiveRuleCommandError(output, context);
|
|
1462
|
+
}
|
|
1463
|
+
const contents = (0, import_smithy_client.map)({
|
|
1464
|
+
$metadata: deserializeMetadata(output)
|
|
1465
|
+
});
|
|
1466
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1467
|
+
return contents;
|
|
1468
|
+
}, "de_DeleteArchiveRuleCommand");
|
|
1469
|
+
var de_DeleteArchiveRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1470
|
+
const parsedOutput = {
|
|
1471
|
+
...output,
|
|
1472
|
+
body: await parseErrorBody(output.body, context)
|
|
1473
|
+
};
|
|
1474
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1475
|
+
switch (errorCode) {
|
|
1476
|
+
case "AccessDeniedException":
|
|
1477
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1478
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1479
|
+
case "InternalServerException":
|
|
1480
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1481
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1482
|
+
case "ResourceNotFoundException":
|
|
1483
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1484
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1485
|
+
case "ThrottlingException":
|
|
1486
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1487
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1488
|
+
case "ValidationException":
|
|
1489
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1490
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1491
|
+
default:
|
|
1492
|
+
const parsedBody = parsedOutput.body;
|
|
1493
|
+
return throwDefaultError({
|
|
1494
|
+
output,
|
|
1495
|
+
parsedBody,
|
|
1496
|
+
errorCode
|
|
1497
|
+
});
|
|
1498
|
+
}
|
|
1499
|
+
}, "de_DeleteArchiveRuleCommandError");
|
|
1500
|
+
var de_GetAccessPreviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1501
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1502
|
+
return de_GetAccessPreviewCommandError(output, context);
|
|
1503
|
+
}
|
|
1504
|
+
const contents = (0, import_smithy_client.map)({
|
|
1505
|
+
$metadata: deserializeMetadata(output)
|
|
1506
|
+
});
|
|
1507
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1508
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1509
|
+
accessPreview: (_) => de_AccessPreview(_, context)
|
|
1510
|
+
});
|
|
1511
|
+
Object.assign(contents, doc);
|
|
1512
|
+
return contents;
|
|
1513
|
+
}, "de_GetAccessPreviewCommand");
|
|
1514
|
+
var de_GetAccessPreviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1515
|
+
const parsedOutput = {
|
|
1516
|
+
...output,
|
|
1517
|
+
body: await parseErrorBody(output.body, context)
|
|
1518
|
+
};
|
|
1519
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1520
|
+
switch (errorCode) {
|
|
1521
|
+
case "AccessDeniedException":
|
|
1522
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1523
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1524
|
+
case "InternalServerException":
|
|
1525
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1526
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1527
|
+
case "ResourceNotFoundException":
|
|
1528
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1529
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1530
|
+
case "ThrottlingException":
|
|
1531
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1532
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1533
|
+
case "ValidationException":
|
|
1534
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1535
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1536
|
+
default:
|
|
1537
|
+
const parsedBody = parsedOutput.body;
|
|
1538
|
+
return throwDefaultError({
|
|
1539
|
+
output,
|
|
1540
|
+
parsedBody,
|
|
1541
|
+
errorCode
|
|
1542
|
+
});
|
|
1543
|
+
}
|
|
1544
|
+
}, "de_GetAccessPreviewCommandError");
|
|
1545
|
+
var de_GetAnalyzedResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1546
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1547
|
+
return de_GetAnalyzedResourceCommandError(output, context);
|
|
1548
|
+
}
|
|
1549
|
+
const contents = (0, import_smithy_client.map)({
|
|
1550
|
+
$metadata: deserializeMetadata(output)
|
|
1551
|
+
});
|
|
1552
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1553
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1554
|
+
resource: (_) => de_AnalyzedResource(_, context)
|
|
1555
|
+
});
|
|
1556
|
+
Object.assign(contents, doc);
|
|
1557
|
+
return contents;
|
|
1558
|
+
}, "de_GetAnalyzedResourceCommand");
|
|
1559
|
+
var de_GetAnalyzedResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1560
|
+
const parsedOutput = {
|
|
1561
|
+
...output,
|
|
1562
|
+
body: await parseErrorBody(output.body, context)
|
|
1563
|
+
};
|
|
1564
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1565
|
+
switch (errorCode) {
|
|
1566
|
+
case "AccessDeniedException":
|
|
1567
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1568
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1569
|
+
case "InternalServerException":
|
|
1570
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1571
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1572
|
+
case "ResourceNotFoundException":
|
|
1573
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1574
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1575
|
+
case "ThrottlingException":
|
|
1576
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1577
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1578
|
+
case "ValidationException":
|
|
1579
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1580
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1581
|
+
default:
|
|
1582
|
+
const parsedBody = parsedOutput.body;
|
|
1583
|
+
return throwDefaultError({
|
|
1584
|
+
output,
|
|
1585
|
+
parsedBody,
|
|
1586
|
+
errorCode
|
|
1587
|
+
});
|
|
1588
|
+
}
|
|
1589
|
+
}, "de_GetAnalyzedResourceCommandError");
|
|
1590
|
+
var de_GetAnalyzerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1591
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1592
|
+
return de_GetAnalyzerCommandError(output, context);
|
|
1593
|
+
}
|
|
1594
|
+
const contents = (0, import_smithy_client.map)({
|
|
1595
|
+
$metadata: deserializeMetadata(output)
|
|
1596
|
+
});
|
|
1597
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1598
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1599
|
+
analyzer: (_) => de_AnalyzerSummary(_, context)
|
|
1600
|
+
});
|
|
1601
|
+
Object.assign(contents, doc);
|
|
1602
|
+
return contents;
|
|
1603
|
+
}, "de_GetAnalyzerCommand");
|
|
1604
|
+
var de_GetAnalyzerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1605
|
+
const parsedOutput = {
|
|
1606
|
+
...output,
|
|
1607
|
+
body: await parseErrorBody(output.body, context)
|
|
1608
|
+
};
|
|
1609
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
|
+
switch (errorCode) {
|
|
1611
|
+
case "AccessDeniedException":
|
|
1612
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1613
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1614
|
+
case "InternalServerException":
|
|
1615
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1616
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1617
|
+
case "ResourceNotFoundException":
|
|
1618
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1619
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1620
|
+
case "ThrottlingException":
|
|
1621
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1622
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1623
|
+
case "ValidationException":
|
|
1624
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1625
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1626
|
+
default:
|
|
1627
|
+
const parsedBody = parsedOutput.body;
|
|
1628
|
+
return throwDefaultError({
|
|
1629
|
+
output,
|
|
1630
|
+
parsedBody,
|
|
1631
|
+
errorCode
|
|
1632
|
+
});
|
|
1633
|
+
}
|
|
1634
|
+
}, "de_GetAnalyzerCommandError");
|
|
1635
|
+
var de_GetArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1636
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1637
|
+
return de_GetArchiveRuleCommandError(output, context);
|
|
1638
|
+
}
|
|
1639
|
+
const contents = (0, import_smithy_client.map)({
|
|
1640
|
+
$metadata: deserializeMetadata(output)
|
|
1641
|
+
});
|
|
1642
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1643
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1644
|
+
archiveRule: (_) => de_ArchiveRuleSummary(_, context)
|
|
1645
|
+
});
|
|
1646
|
+
Object.assign(contents, doc);
|
|
1647
|
+
return contents;
|
|
1648
|
+
}, "de_GetArchiveRuleCommand");
|
|
1649
|
+
var de_GetArchiveRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1650
|
+
const parsedOutput = {
|
|
1651
|
+
...output,
|
|
1652
|
+
body: await parseErrorBody(output.body, context)
|
|
1653
|
+
};
|
|
1654
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1655
|
+
switch (errorCode) {
|
|
1656
|
+
case "AccessDeniedException":
|
|
1657
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1658
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1659
|
+
case "InternalServerException":
|
|
1660
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1661
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1662
|
+
case "ResourceNotFoundException":
|
|
1663
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1664
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1665
|
+
case "ThrottlingException":
|
|
1666
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1667
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1668
|
+
case "ValidationException":
|
|
1669
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1670
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1671
|
+
default:
|
|
1672
|
+
const parsedBody = parsedOutput.body;
|
|
1673
|
+
return throwDefaultError({
|
|
1674
|
+
output,
|
|
1675
|
+
parsedBody,
|
|
1676
|
+
errorCode
|
|
1677
|
+
});
|
|
1678
|
+
}
|
|
1679
|
+
}, "de_GetArchiveRuleCommandError");
|
|
1680
|
+
var de_GetFindingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1681
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1682
|
+
return de_GetFindingCommandError(output, context);
|
|
1683
|
+
}
|
|
1684
|
+
const contents = (0, import_smithy_client.map)({
|
|
1685
|
+
$metadata: deserializeMetadata(output)
|
|
1686
|
+
});
|
|
1687
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1688
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1689
|
+
finding: (_) => de_Finding(_, context)
|
|
1690
|
+
});
|
|
1691
|
+
Object.assign(contents, doc);
|
|
1692
|
+
return contents;
|
|
1693
|
+
}, "de_GetFindingCommand");
|
|
1694
|
+
var de_GetFindingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1695
|
+
const parsedOutput = {
|
|
1696
|
+
...output,
|
|
1697
|
+
body: await parseErrorBody(output.body, context)
|
|
1698
|
+
};
|
|
1699
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1700
|
+
switch (errorCode) {
|
|
1701
|
+
case "AccessDeniedException":
|
|
1702
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1703
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1704
|
+
case "InternalServerException":
|
|
1705
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1706
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1707
|
+
case "ResourceNotFoundException":
|
|
1708
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1709
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1710
|
+
case "ThrottlingException":
|
|
1711
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1712
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1713
|
+
case "ValidationException":
|
|
1714
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1715
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1716
|
+
default:
|
|
1717
|
+
const parsedBody = parsedOutput.body;
|
|
1718
|
+
return throwDefaultError({
|
|
1719
|
+
output,
|
|
1720
|
+
parsedBody,
|
|
1721
|
+
errorCode
|
|
1722
|
+
});
|
|
1723
|
+
}
|
|
1724
|
+
}, "de_GetFindingCommandError");
|
|
1725
|
+
var de_GetFindingV2Command = /* @__PURE__ */ __name(async (output, context) => {
|
|
1726
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1727
|
+
return de_GetFindingV2CommandError(output, context);
|
|
1728
|
+
}
|
|
1729
|
+
const contents = (0, import_smithy_client.map)({
|
|
1730
|
+
$metadata: deserializeMetadata(output)
|
|
1731
|
+
});
|
|
1732
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1733
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1734
|
+
analyzedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1735
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1736
|
+
error: import_smithy_client.expectString,
|
|
1737
|
+
findingDetails: (_) => de_FindingDetailsList(_, context),
|
|
1738
|
+
findingType: import_smithy_client.expectString,
|
|
1739
|
+
id: import_smithy_client.expectString,
|
|
1740
|
+
nextToken: import_smithy_client.expectString,
|
|
1741
|
+
resource: import_smithy_client.expectString,
|
|
1742
|
+
resourceOwnerAccount: import_smithy_client.expectString,
|
|
1743
|
+
resourceType: import_smithy_client.expectString,
|
|
1744
|
+
status: import_smithy_client.expectString,
|
|
1745
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1746
|
+
});
|
|
1747
|
+
Object.assign(contents, doc);
|
|
1748
|
+
return contents;
|
|
1749
|
+
}, "de_GetFindingV2Command");
|
|
1750
|
+
var de_GetFindingV2CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1751
|
+
const parsedOutput = {
|
|
1752
|
+
...output,
|
|
1753
|
+
body: await parseErrorBody(output.body, context)
|
|
1754
|
+
};
|
|
1755
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1756
|
+
switch (errorCode) {
|
|
1757
|
+
case "AccessDeniedException":
|
|
1758
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1759
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1760
|
+
case "InternalServerException":
|
|
1761
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1762
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1763
|
+
case "ResourceNotFoundException":
|
|
1764
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1765
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1766
|
+
case "ThrottlingException":
|
|
1767
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1768
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1769
|
+
case "ValidationException":
|
|
1770
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1771
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1772
|
+
default:
|
|
1773
|
+
const parsedBody = parsedOutput.body;
|
|
1774
|
+
return throwDefaultError({
|
|
1775
|
+
output,
|
|
1776
|
+
parsedBody,
|
|
1777
|
+
errorCode
|
|
1778
|
+
});
|
|
1779
|
+
}
|
|
1780
|
+
}, "de_GetFindingV2CommandError");
|
|
1781
|
+
var de_GetGeneratedPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1782
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1783
|
+
return de_GetGeneratedPolicyCommandError(output, context);
|
|
1784
|
+
}
|
|
1785
|
+
const contents = (0, import_smithy_client.map)({
|
|
1786
|
+
$metadata: deserializeMetadata(output)
|
|
1787
|
+
});
|
|
1788
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1789
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1790
|
+
generatedPolicyResult: (_) => de_GeneratedPolicyResult(_, context),
|
|
1791
|
+
jobDetails: (_) => de_JobDetails(_, context)
|
|
1792
|
+
});
|
|
1793
|
+
Object.assign(contents, doc);
|
|
1794
|
+
return contents;
|
|
1795
|
+
}, "de_GetGeneratedPolicyCommand");
|
|
1796
|
+
var de_GetGeneratedPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1797
|
+
const parsedOutput = {
|
|
1798
|
+
...output,
|
|
1799
|
+
body: await parseErrorBody(output.body, context)
|
|
1800
|
+
};
|
|
1801
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1802
|
+
switch (errorCode) {
|
|
1803
|
+
case "AccessDeniedException":
|
|
1804
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1805
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1806
|
+
case "InternalServerException":
|
|
1807
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1808
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1809
|
+
case "ThrottlingException":
|
|
1810
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1811
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1812
|
+
case "ValidationException":
|
|
1813
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1814
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1815
|
+
default:
|
|
1816
|
+
const parsedBody = parsedOutput.body;
|
|
1817
|
+
return throwDefaultError({
|
|
1818
|
+
output,
|
|
1819
|
+
parsedBody,
|
|
1820
|
+
errorCode
|
|
1821
|
+
});
|
|
1822
|
+
}
|
|
1823
|
+
}, "de_GetGeneratedPolicyCommandError");
|
|
1824
|
+
var de_ListAccessPreviewFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1825
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1826
|
+
return de_ListAccessPreviewFindingsCommandError(output, context);
|
|
1827
|
+
}
|
|
1828
|
+
const contents = (0, import_smithy_client.map)({
|
|
1829
|
+
$metadata: deserializeMetadata(output)
|
|
1830
|
+
});
|
|
1831
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1832
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1833
|
+
findings: (_) => de_AccessPreviewFindingsList(_, context),
|
|
1834
|
+
nextToken: import_smithy_client.expectString
|
|
1835
|
+
});
|
|
1836
|
+
Object.assign(contents, doc);
|
|
1837
|
+
return contents;
|
|
1838
|
+
}, "de_ListAccessPreviewFindingsCommand");
|
|
1839
|
+
var de_ListAccessPreviewFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1840
|
+
const parsedOutput = {
|
|
1841
|
+
...output,
|
|
1842
|
+
body: await parseErrorBody(output.body, context)
|
|
1843
|
+
};
|
|
1844
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
+
switch (errorCode) {
|
|
1846
|
+
case "AccessDeniedException":
|
|
1847
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1848
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1849
|
+
case "ConflictException":
|
|
1850
|
+
case "com.amazonaws.accessanalyzer#ConflictException":
|
|
1851
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1852
|
+
case "InternalServerException":
|
|
1853
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1854
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1855
|
+
case "ResourceNotFoundException":
|
|
1856
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1857
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1858
|
+
case "ThrottlingException":
|
|
1859
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1860
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1861
|
+
case "ValidationException":
|
|
1862
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1863
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1864
|
+
default:
|
|
1865
|
+
const parsedBody = parsedOutput.body;
|
|
1866
|
+
return throwDefaultError({
|
|
1867
|
+
output,
|
|
1868
|
+
parsedBody,
|
|
1869
|
+
errorCode
|
|
1870
|
+
});
|
|
1871
|
+
}
|
|
1872
|
+
}, "de_ListAccessPreviewFindingsCommandError");
|
|
1873
|
+
var de_ListAccessPreviewsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1874
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1875
|
+
return de_ListAccessPreviewsCommandError(output, context);
|
|
1876
|
+
}
|
|
1877
|
+
const contents = (0, import_smithy_client.map)({
|
|
1878
|
+
$metadata: deserializeMetadata(output)
|
|
1879
|
+
});
|
|
1880
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1881
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1882
|
+
accessPreviews: (_) => de_AccessPreviewsList(_, context),
|
|
1883
|
+
nextToken: import_smithy_client.expectString
|
|
1884
|
+
});
|
|
1885
|
+
Object.assign(contents, doc);
|
|
1886
|
+
return contents;
|
|
1887
|
+
}, "de_ListAccessPreviewsCommand");
|
|
1888
|
+
var de_ListAccessPreviewsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1889
|
+
const parsedOutput = {
|
|
1890
|
+
...output,
|
|
1891
|
+
body: await parseErrorBody(output.body, context)
|
|
1892
|
+
};
|
|
1893
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1894
|
+
switch (errorCode) {
|
|
1895
|
+
case "AccessDeniedException":
|
|
1896
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1897
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1898
|
+
case "InternalServerException":
|
|
1899
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1900
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1901
|
+
case "ResourceNotFoundException":
|
|
1902
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1903
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1904
|
+
case "ThrottlingException":
|
|
1905
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1906
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1907
|
+
case "ValidationException":
|
|
1908
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1909
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1910
|
+
default:
|
|
1911
|
+
const parsedBody = parsedOutput.body;
|
|
1912
|
+
return throwDefaultError({
|
|
1913
|
+
output,
|
|
1914
|
+
parsedBody,
|
|
1915
|
+
errorCode
|
|
1916
|
+
});
|
|
1917
|
+
}
|
|
1918
|
+
}, "de_ListAccessPreviewsCommandError");
|
|
1919
|
+
var de_ListAnalyzedResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1920
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1921
|
+
return de_ListAnalyzedResourcesCommandError(output, context);
|
|
1922
|
+
}
|
|
1923
|
+
const contents = (0, import_smithy_client.map)({
|
|
1924
|
+
$metadata: deserializeMetadata(output)
|
|
1925
|
+
});
|
|
1926
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1927
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1928
|
+
analyzedResources: import_smithy_client._json,
|
|
1929
|
+
nextToken: import_smithy_client.expectString
|
|
1930
|
+
});
|
|
1931
|
+
Object.assign(contents, doc);
|
|
1932
|
+
return contents;
|
|
1933
|
+
}, "de_ListAnalyzedResourcesCommand");
|
|
1934
|
+
var de_ListAnalyzedResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1935
|
+
const parsedOutput = {
|
|
1936
|
+
...output,
|
|
1937
|
+
body: await parseErrorBody(output.body, context)
|
|
1938
|
+
};
|
|
1939
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1940
|
+
switch (errorCode) {
|
|
1941
|
+
case "AccessDeniedException":
|
|
1942
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1943
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1944
|
+
case "InternalServerException":
|
|
1945
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1946
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1947
|
+
case "ResourceNotFoundException":
|
|
1948
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1949
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1950
|
+
case "ThrottlingException":
|
|
1951
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1952
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1953
|
+
case "ValidationException":
|
|
1954
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1955
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1956
|
+
default:
|
|
1957
|
+
const parsedBody = parsedOutput.body;
|
|
1958
|
+
return throwDefaultError({
|
|
1959
|
+
output,
|
|
1960
|
+
parsedBody,
|
|
1961
|
+
errorCode
|
|
1962
|
+
});
|
|
1963
|
+
}
|
|
1964
|
+
}, "de_ListAnalyzedResourcesCommandError");
|
|
1965
|
+
var de_ListAnalyzersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1966
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1967
|
+
return de_ListAnalyzersCommandError(output, context);
|
|
1968
|
+
}
|
|
1969
|
+
const contents = (0, import_smithy_client.map)({
|
|
1970
|
+
$metadata: deserializeMetadata(output)
|
|
1971
|
+
});
|
|
1972
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1973
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1974
|
+
analyzers: (_) => de_AnalyzersList(_, context),
|
|
1975
|
+
nextToken: import_smithy_client.expectString
|
|
1976
|
+
});
|
|
1977
|
+
Object.assign(contents, doc);
|
|
1978
|
+
return contents;
|
|
1979
|
+
}, "de_ListAnalyzersCommand");
|
|
1980
|
+
var de_ListAnalyzersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1981
|
+
const parsedOutput = {
|
|
1982
|
+
...output,
|
|
1983
|
+
body: await parseErrorBody(output.body, context)
|
|
1984
|
+
};
|
|
1985
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1986
|
+
switch (errorCode) {
|
|
1987
|
+
case "AccessDeniedException":
|
|
1988
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1989
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1990
|
+
case "InternalServerException":
|
|
1991
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1992
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1993
|
+
case "ThrottlingException":
|
|
1994
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1995
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1996
|
+
case "ValidationException":
|
|
1997
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1998
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1999
|
+
default:
|
|
2000
|
+
const parsedBody = parsedOutput.body;
|
|
2001
|
+
return throwDefaultError({
|
|
2002
|
+
output,
|
|
2003
|
+
parsedBody,
|
|
2004
|
+
errorCode
|
|
2005
|
+
});
|
|
2006
|
+
}
|
|
2007
|
+
}, "de_ListAnalyzersCommandError");
|
|
2008
|
+
var de_ListArchiveRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2009
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2010
|
+
return de_ListArchiveRulesCommandError(output, context);
|
|
2011
|
+
}
|
|
2012
|
+
const contents = (0, import_smithy_client.map)({
|
|
2013
|
+
$metadata: deserializeMetadata(output)
|
|
2014
|
+
});
|
|
2015
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2016
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2017
|
+
archiveRules: (_) => de_ArchiveRulesList(_, context),
|
|
2018
|
+
nextToken: import_smithy_client.expectString
|
|
2019
|
+
});
|
|
2020
|
+
Object.assign(contents, doc);
|
|
2021
|
+
return contents;
|
|
2022
|
+
}, "de_ListArchiveRulesCommand");
|
|
2023
|
+
var de_ListArchiveRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2024
|
+
const parsedOutput = {
|
|
2025
|
+
...output,
|
|
2026
|
+
body: await parseErrorBody(output.body, context)
|
|
2027
|
+
};
|
|
2028
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2029
|
+
switch (errorCode) {
|
|
2030
|
+
case "AccessDeniedException":
|
|
2031
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2032
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2033
|
+
case "InternalServerException":
|
|
2034
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2035
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2036
|
+
case "ThrottlingException":
|
|
2037
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2038
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2039
|
+
case "ValidationException":
|
|
2040
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2041
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2042
|
+
default:
|
|
2043
|
+
const parsedBody = parsedOutput.body;
|
|
2044
|
+
return throwDefaultError({
|
|
2045
|
+
output,
|
|
2046
|
+
parsedBody,
|
|
2047
|
+
errorCode
|
|
2048
|
+
});
|
|
2049
|
+
}
|
|
2050
|
+
}, "de_ListArchiveRulesCommandError");
|
|
2051
|
+
var de_ListFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2052
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2053
|
+
return de_ListFindingsCommandError(output, context);
|
|
2054
|
+
}
|
|
2055
|
+
const contents = (0, import_smithy_client.map)({
|
|
2056
|
+
$metadata: deserializeMetadata(output)
|
|
2057
|
+
});
|
|
2058
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2059
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2060
|
+
findings: (_) => de_FindingsList(_, context),
|
|
2061
|
+
nextToken: import_smithy_client.expectString
|
|
2062
|
+
});
|
|
2063
|
+
Object.assign(contents, doc);
|
|
2064
|
+
return contents;
|
|
2065
|
+
}, "de_ListFindingsCommand");
|
|
2066
|
+
var de_ListFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2067
|
+
const parsedOutput = {
|
|
2068
|
+
...output,
|
|
2069
|
+
body: await parseErrorBody(output.body, context)
|
|
2070
|
+
};
|
|
2071
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2072
|
+
switch (errorCode) {
|
|
2073
|
+
case "AccessDeniedException":
|
|
2074
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2075
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2076
|
+
case "InternalServerException":
|
|
2077
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2078
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2079
|
+
case "ResourceNotFoundException":
|
|
2080
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2081
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2082
|
+
case "ThrottlingException":
|
|
2083
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2084
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2085
|
+
case "ValidationException":
|
|
2086
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2087
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2088
|
+
default:
|
|
2089
|
+
const parsedBody = parsedOutput.body;
|
|
2090
|
+
return throwDefaultError({
|
|
2091
|
+
output,
|
|
2092
|
+
parsedBody,
|
|
2093
|
+
errorCode
|
|
2094
|
+
});
|
|
2095
|
+
}
|
|
2096
|
+
}, "de_ListFindingsCommandError");
|
|
2097
|
+
var de_ListFindingsV2Command = /* @__PURE__ */ __name(async (output, context) => {
|
|
2098
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2099
|
+
return de_ListFindingsV2CommandError(output, context);
|
|
2100
|
+
}
|
|
2101
|
+
const contents = (0, import_smithy_client.map)({
|
|
2102
|
+
$metadata: deserializeMetadata(output)
|
|
2103
|
+
});
|
|
2104
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2105
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2106
|
+
findings: (_) => de_FindingsListV2(_, context),
|
|
2107
|
+
nextToken: import_smithy_client.expectString
|
|
2108
|
+
});
|
|
2109
|
+
Object.assign(contents, doc);
|
|
2110
|
+
return contents;
|
|
2111
|
+
}, "de_ListFindingsV2Command");
|
|
2112
|
+
var de_ListFindingsV2CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2113
|
+
const parsedOutput = {
|
|
2114
|
+
...output,
|
|
2115
|
+
body: await parseErrorBody(output.body, context)
|
|
2116
|
+
};
|
|
2117
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2118
|
+
switch (errorCode) {
|
|
2119
|
+
case "AccessDeniedException":
|
|
2120
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2121
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2122
|
+
case "InternalServerException":
|
|
2123
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2124
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2125
|
+
case "ResourceNotFoundException":
|
|
2126
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2127
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2128
|
+
case "ThrottlingException":
|
|
2129
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2130
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2131
|
+
case "ValidationException":
|
|
2132
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2133
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2134
|
+
default:
|
|
2135
|
+
const parsedBody = parsedOutput.body;
|
|
2136
|
+
return throwDefaultError({
|
|
2137
|
+
output,
|
|
2138
|
+
parsedBody,
|
|
2139
|
+
errorCode
|
|
2140
|
+
});
|
|
2141
|
+
}
|
|
2142
|
+
}, "de_ListFindingsV2CommandError");
|
|
2143
|
+
var de_ListPolicyGenerationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2144
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2145
|
+
return de_ListPolicyGenerationsCommandError(output, context);
|
|
2146
|
+
}
|
|
2147
|
+
const contents = (0, import_smithy_client.map)({
|
|
2148
|
+
$metadata: deserializeMetadata(output)
|
|
2149
|
+
});
|
|
2150
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2151
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2152
|
+
nextToken: import_smithy_client.expectString,
|
|
2153
|
+
policyGenerations: (_) => de_PolicyGenerationList(_, context)
|
|
2154
|
+
});
|
|
2155
|
+
Object.assign(contents, doc);
|
|
2156
|
+
return contents;
|
|
2157
|
+
}, "de_ListPolicyGenerationsCommand");
|
|
2158
|
+
var de_ListPolicyGenerationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2159
|
+
const parsedOutput = {
|
|
2160
|
+
...output,
|
|
2161
|
+
body: await parseErrorBody(output.body, context)
|
|
2162
|
+
};
|
|
2163
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2164
|
+
switch (errorCode) {
|
|
2165
|
+
case "AccessDeniedException":
|
|
2166
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2167
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2168
|
+
case "InternalServerException":
|
|
2169
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2170
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2171
|
+
case "ThrottlingException":
|
|
2172
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2173
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2174
|
+
case "ValidationException":
|
|
2175
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2176
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2177
|
+
default:
|
|
2178
|
+
const parsedBody = parsedOutput.body;
|
|
2179
|
+
return throwDefaultError({
|
|
2180
|
+
output,
|
|
2181
|
+
parsedBody,
|
|
2182
|
+
errorCode
|
|
2183
|
+
});
|
|
2184
|
+
}
|
|
2185
|
+
}, "de_ListPolicyGenerationsCommandError");
|
|
2186
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2187
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2188
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
2189
|
+
}
|
|
2190
|
+
const contents = (0, import_smithy_client.map)({
|
|
2191
|
+
$metadata: deserializeMetadata(output)
|
|
2192
|
+
});
|
|
2193
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2194
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2195
|
+
tags: import_smithy_client._json
|
|
2196
|
+
});
|
|
2197
|
+
Object.assign(contents, doc);
|
|
2198
|
+
return contents;
|
|
2199
|
+
}, "de_ListTagsForResourceCommand");
|
|
2200
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2201
|
+
const parsedOutput = {
|
|
2202
|
+
...output,
|
|
2203
|
+
body: await parseErrorBody(output.body, context)
|
|
2204
|
+
};
|
|
2205
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2206
|
+
switch (errorCode) {
|
|
2207
|
+
case "AccessDeniedException":
|
|
2208
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2209
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2210
|
+
case "InternalServerException":
|
|
2211
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2212
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2213
|
+
case "ResourceNotFoundException":
|
|
2214
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2215
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2216
|
+
case "ThrottlingException":
|
|
2217
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2218
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2219
|
+
case "ValidationException":
|
|
2220
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2221
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2222
|
+
default:
|
|
2223
|
+
const parsedBody = parsedOutput.body;
|
|
2224
|
+
return throwDefaultError({
|
|
2225
|
+
output,
|
|
2226
|
+
parsedBody,
|
|
2227
|
+
errorCode
|
|
2228
|
+
});
|
|
2229
|
+
}
|
|
2230
|
+
}, "de_ListTagsForResourceCommandError");
|
|
2231
|
+
var de_StartPolicyGenerationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2232
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2233
|
+
return de_StartPolicyGenerationCommandError(output, context);
|
|
2234
|
+
}
|
|
2235
|
+
const contents = (0, import_smithy_client.map)({
|
|
2236
|
+
$metadata: deserializeMetadata(output)
|
|
2237
|
+
});
|
|
2238
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2239
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2240
|
+
jobId: import_smithy_client.expectString
|
|
2241
|
+
});
|
|
2242
|
+
Object.assign(contents, doc);
|
|
2243
|
+
return contents;
|
|
2244
|
+
}, "de_StartPolicyGenerationCommand");
|
|
2245
|
+
var de_StartPolicyGenerationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2246
|
+
const parsedOutput = {
|
|
2247
|
+
...output,
|
|
2248
|
+
body: await parseErrorBody(output.body, context)
|
|
2249
|
+
};
|
|
2250
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2251
|
+
switch (errorCode) {
|
|
2252
|
+
case "AccessDeniedException":
|
|
2253
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2254
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2255
|
+
case "ConflictException":
|
|
2256
|
+
case "com.amazonaws.accessanalyzer#ConflictException":
|
|
2257
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2258
|
+
case "InternalServerException":
|
|
2259
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2260
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2261
|
+
case "ServiceQuotaExceededException":
|
|
2262
|
+
case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
|
|
2263
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2264
|
+
case "ThrottlingException":
|
|
2265
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2266
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2267
|
+
case "ValidationException":
|
|
2268
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2269
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2270
|
+
default:
|
|
2271
|
+
const parsedBody = parsedOutput.body;
|
|
2272
|
+
return throwDefaultError({
|
|
2273
|
+
output,
|
|
2274
|
+
parsedBody,
|
|
2275
|
+
errorCode
|
|
2276
|
+
});
|
|
2277
|
+
}
|
|
2278
|
+
}, "de_StartPolicyGenerationCommandError");
|
|
2279
|
+
var de_StartResourceScanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2280
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2281
|
+
return de_StartResourceScanCommandError(output, context);
|
|
2282
|
+
}
|
|
2283
|
+
const contents = (0, import_smithy_client.map)({
|
|
2284
|
+
$metadata: deserializeMetadata(output)
|
|
2285
|
+
});
|
|
2286
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2287
|
+
return contents;
|
|
2288
|
+
}, "de_StartResourceScanCommand");
|
|
2289
|
+
var de_StartResourceScanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2290
|
+
const parsedOutput = {
|
|
2291
|
+
...output,
|
|
2292
|
+
body: await parseErrorBody(output.body, context)
|
|
2293
|
+
};
|
|
2294
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2295
|
+
switch (errorCode) {
|
|
2296
|
+
case "AccessDeniedException":
|
|
2297
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2298
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2299
|
+
case "InternalServerException":
|
|
2300
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2301
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2302
|
+
case "ResourceNotFoundException":
|
|
2303
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2304
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2305
|
+
case "ThrottlingException":
|
|
2306
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2307
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2308
|
+
case "ValidationException":
|
|
2309
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2310
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2311
|
+
default:
|
|
2312
|
+
const parsedBody = parsedOutput.body;
|
|
2313
|
+
return throwDefaultError({
|
|
2314
|
+
output,
|
|
2315
|
+
parsedBody,
|
|
2316
|
+
errorCode
|
|
2317
|
+
});
|
|
2318
|
+
}
|
|
2319
|
+
}, "de_StartResourceScanCommandError");
|
|
2320
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2321
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2322
|
+
return de_TagResourceCommandError(output, context);
|
|
2323
|
+
}
|
|
2324
|
+
const contents = (0, import_smithy_client.map)({
|
|
2325
|
+
$metadata: deserializeMetadata(output)
|
|
2326
|
+
});
|
|
2327
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2328
|
+
return contents;
|
|
2329
|
+
}, "de_TagResourceCommand");
|
|
2330
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2331
|
+
const parsedOutput = {
|
|
2332
|
+
...output,
|
|
2333
|
+
body: await parseErrorBody(output.body, context)
|
|
2334
|
+
};
|
|
2335
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2336
|
+
switch (errorCode) {
|
|
2337
|
+
case "AccessDeniedException":
|
|
2338
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2339
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2340
|
+
case "InternalServerException":
|
|
2341
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2342
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2343
|
+
case "ResourceNotFoundException":
|
|
2344
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2345
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2346
|
+
case "ThrottlingException":
|
|
2347
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2348
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2349
|
+
case "ValidationException":
|
|
2350
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2351
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2352
|
+
default:
|
|
2353
|
+
const parsedBody = parsedOutput.body;
|
|
2354
|
+
return throwDefaultError({
|
|
2355
|
+
output,
|
|
2356
|
+
parsedBody,
|
|
2357
|
+
errorCode
|
|
2358
|
+
});
|
|
2359
|
+
}
|
|
2360
|
+
}, "de_TagResourceCommandError");
|
|
2361
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2362
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2363
|
+
return de_UntagResourceCommandError(output, context);
|
|
2364
|
+
}
|
|
2365
|
+
const contents = (0, import_smithy_client.map)({
|
|
2366
|
+
$metadata: deserializeMetadata(output)
|
|
2367
|
+
});
|
|
2368
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2369
|
+
return contents;
|
|
2370
|
+
}, "de_UntagResourceCommand");
|
|
2371
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2372
|
+
const parsedOutput = {
|
|
2373
|
+
...output,
|
|
2374
|
+
body: await parseErrorBody(output.body, context)
|
|
2375
|
+
};
|
|
2376
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2377
|
+
switch (errorCode) {
|
|
2378
|
+
case "AccessDeniedException":
|
|
2379
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2380
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2381
|
+
case "InternalServerException":
|
|
2382
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2383
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2384
|
+
case "ResourceNotFoundException":
|
|
2385
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2386
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2387
|
+
case "ThrottlingException":
|
|
2388
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2389
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2390
|
+
case "ValidationException":
|
|
2391
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2392
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2393
|
+
default:
|
|
2394
|
+
const parsedBody = parsedOutput.body;
|
|
2395
|
+
return throwDefaultError({
|
|
2396
|
+
output,
|
|
2397
|
+
parsedBody,
|
|
2398
|
+
errorCode
|
|
2399
|
+
});
|
|
2400
|
+
}
|
|
2401
|
+
}, "de_UntagResourceCommandError");
|
|
2402
|
+
var de_UpdateArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2403
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2404
|
+
return de_UpdateArchiveRuleCommandError(output, context);
|
|
2405
|
+
}
|
|
2406
|
+
const contents = (0, import_smithy_client.map)({
|
|
2407
|
+
$metadata: deserializeMetadata(output)
|
|
2408
|
+
});
|
|
2409
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2410
|
+
return contents;
|
|
2411
|
+
}, "de_UpdateArchiveRuleCommand");
|
|
2412
|
+
var de_UpdateArchiveRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2413
|
+
const parsedOutput = {
|
|
2414
|
+
...output,
|
|
2415
|
+
body: await parseErrorBody(output.body, context)
|
|
2416
|
+
};
|
|
2417
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2418
|
+
switch (errorCode) {
|
|
2419
|
+
case "AccessDeniedException":
|
|
2420
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2421
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2422
|
+
case "InternalServerException":
|
|
2423
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2424
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2425
|
+
case "ResourceNotFoundException":
|
|
2426
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2427
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2428
|
+
case "ThrottlingException":
|
|
2429
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2430
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2431
|
+
case "ValidationException":
|
|
2432
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2433
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2434
|
+
default:
|
|
2435
|
+
const parsedBody = parsedOutput.body;
|
|
2436
|
+
return throwDefaultError({
|
|
2437
|
+
output,
|
|
2438
|
+
parsedBody,
|
|
2439
|
+
errorCode
|
|
2440
|
+
});
|
|
2441
|
+
}
|
|
2442
|
+
}, "de_UpdateArchiveRuleCommandError");
|
|
2443
|
+
var de_UpdateFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2444
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2445
|
+
return de_UpdateFindingsCommandError(output, context);
|
|
2446
|
+
}
|
|
2447
|
+
const contents = (0, import_smithy_client.map)({
|
|
2448
|
+
$metadata: deserializeMetadata(output)
|
|
2449
|
+
});
|
|
2450
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2451
|
+
return contents;
|
|
2452
|
+
}, "de_UpdateFindingsCommand");
|
|
2453
|
+
var de_UpdateFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2454
|
+
const parsedOutput = {
|
|
2455
|
+
...output,
|
|
2456
|
+
body: await parseErrorBody(output.body, context)
|
|
2457
|
+
};
|
|
2458
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2459
|
+
switch (errorCode) {
|
|
2460
|
+
case "AccessDeniedException":
|
|
2461
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2462
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2463
|
+
case "InternalServerException":
|
|
2464
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2465
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2466
|
+
case "ResourceNotFoundException":
|
|
2467
|
+
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
2468
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2469
|
+
case "ThrottlingException":
|
|
2470
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2471
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2472
|
+
case "ValidationException":
|
|
2473
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2474
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2475
|
+
default:
|
|
2476
|
+
const parsedBody = parsedOutput.body;
|
|
2477
|
+
return throwDefaultError({
|
|
2478
|
+
output,
|
|
2479
|
+
parsedBody,
|
|
2480
|
+
errorCode
|
|
2481
|
+
});
|
|
2482
|
+
}
|
|
2483
|
+
}, "de_UpdateFindingsCommandError");
|
|
2484
|
+
var de_ValidatePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2485
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2486
|
+
return de_ValidatePolicyCommandError(output, context);
|
|
2487
|
+
}
|
|
2488
|
+
const contents = (0, import_smithy_client.map)({
|
|
2489
|
+
$metadata: deserializeMetadata(output)
|
|
2490
|
+
});
|
|
2491
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2492
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2493
|
+
findings: import_smithy_client._json,
|
|
2494
|
+
nextToken: import_smithy_client.expectString
|
|
2495
|
+
});
|
|
2496
|
+
Object.assign(contents, doc);
|
|
2497
|
+
return contents;
|
|
2498
|
+
}, "de_ValidatePolicyCommand");
|
|
2499
|
+
var de_ValidatePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2500
|
+
const parsedOutput = {
|
|
2501
|
+
...output,
|
|
2502
|
+
body: await parseErrorBody(output.body, context)
|
|
2503
|
+
};
|
|
2504
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2505
|
+
switch (errorCode) {
|
|
2506
|
+
case "AccessDeniedException":
|
|
2507
|
+
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
2508
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2509
|
+
case "InternalServerException":
|
|
2510
|
+
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
2511
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2512
|
+
case "ThrottlingException":
|
|
2513
|
+
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
2514
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2515
|
+
case "ValidationException":
|
|
2516
|
+
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
2517
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2518
|
+
default:
|
|
2519
|
+
const parsedBody = parsedOutput.body;
|
|
2520
|
+
return throwDefaultError({
|
|
2521
|
+
output,
|
|
2522
|
+
parsedBody,
|
|
2523
|
+
errorCode
|
|
2524
|
+
});
|
|
2525
|
+
}
|
|
2526
|
+
}, "de_ValidatePolicyCommandError");
|
|
2527
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(AccessAnalyzerServiceException);
|
|
2528
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2529
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2530
|
+
const data = parsedOutput.body;
|
|
2531
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2532
|
+
message: import_smithy_client.expectString
|
|
2533
|
+
});
|
|
2534
|
+
Object.assign(contents, doc);
|
|
2535
|
+
const exception = new AccessDeniedException({
|
|
2536
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2537
|
+
...contents
|
|
2538
|
+
});
|
|
2539
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2540
|
+
}, "de_AccessDeniedExceptionRes");
|
|
2541
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2542
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2543
|
+
const data = parsedOutput.body;
|
|
2544
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2545
|
+
message: import_smithy_client.expectString,
|
|
2546
|
+
resourceId: import_smithy_client.expectString,
|
|
2547
|
+
resourceType: import_smithy_client.expectString
|
|
2548
|
+
});
|
|
2549
|
+
Object.assign(contents, doc);
|
|
2550
|
+
const exception = new ConflictException({
|
|
2551
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2552
|
+
...contents
|
|
2553
|
+
});
|
|
2554
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2555
|
+
}, "de_ConflictExceptionRes");
|
|
2556
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2557
|
+
const contents = (0, import_smithy_client.map)({
|
|
2558
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
2559
|
+
});
|
|
2560
|
+
const data = parsedOutput.body;
|
|
2561
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2562
|
+
message: import_smithy_client.expectString
|
|
2563
|
+
});
|
|
2564
|
+
Object.assign(contents, doc);
|
|
2565
|
+
const exception = new InternalServerException({
|
|
2566
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2567
|
+
...contents
|
|
2568
|
+
});
|
|
2569
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2570
|
+
}, "de_InternalServerExceptionRes");
|
|
2571
|
+
var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2572
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2573
|
+
const data = parsedOutput.body;
|
|
2574
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2575
|
+
message: import_smithy_client.expectString
|
|
2576
|
+
});
|
|
2577
|
+
Object.assign(contents, doc);
|
|
2578
|
+
const exception = new InvalidParameterException({
|
|
2579
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2580
|
+
...contents
|
|
2581
|
+
});
|
|
2582
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2583
|
+
}, "de_InvalidParameterExceptionRes");
|
|
2584
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2585
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2586
|
+
const data = parsedOutput.body;
|
|
2587
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2588
|
+
message: import_smithy_client.expectString,
|
|
2589
|
+
resourceId: import_smithy_client.expectString,
|
|
2590
|
+
resourceType: import_smithy_client.expectString
|
|
2591
|
+
});
|
|
2592
|
+
Object.assign(contents, doc);
|
|
2593
|
+
const exception = new ResourceNotFoundException({
|
|
2594
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2595
|
+
...contents
|
|
2596
|
+
});
|
|
2597
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2598
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
2599
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2600
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2601
|
+
const data = parsedOutput.body;
|
|
2602
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2603
|
+
message: import_smithy_client.expectString,
|
|
2604
|
+
resourceId: import_smithy_client.expectString,
|
|
2605
|
+
resourceType: import_smithy_client.expectString
|
|
2606
|
+
});
|
|
2607
|
+
Object.assign(contents, doc);
|
|
2608
|
+
const exception = new ServiceQuotaExceededException({
|
|
2609
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2610
|
+
...contents
|
|
2611
|
+
});
|
|
2612
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2613
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
2614
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2615
|
+
const contents = (0, import_smithy_client.map)({
|
|
2616
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
2617
|
+
});
|
|
2618
|
+
const data = parsedOutput.body;
|
|
2619
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2620
|
+
message: import_smithy_client.expectString
|
|
2621
|
+
});
|
|
2622
|
+
Object.assign(contents, doc);
|
|
2623
|
+
const exception = new ThrottlingException({
|
|
2624
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2625
|
+
...contents
|
|
2626
|
+
});
|
|
2627
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2628
|
+
}, "de_ThrottlingExceptionRes");
|
|
2629
|
+
var de_UnprocessableEntityExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2630
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2631
|
+
const data = parsedOutput.body;
|
|
2632
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2633
|
+
message: import_smithy_client.expectString
|
|
2634
|
+
});
|
|
2635
|
+
Object.assign(contents, doc);
|
|
2636
|
+
const exception = new UnprocessableEntityException({
|
|
2637
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2638
|
+
...contents
|
|
2639
|
+
});
|
|
2640
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2641
|
+
}, "de_UnprocessableEntityExceptionRes");
|
|
2642
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2643
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2644
|
+
const data = parsedOutput.body;
|
|
2645
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2646
|
+
fieldList: import_smithy_client._json,
|
|
2647
|
+
message: import_smithy_client.expectString,
|
|
2648
|
+
reason: import_smithy_client.expectString
|
|
2649
|
+
});
|
|
2650
|
+
Object.assign(contents, doc);
|
|
2651
|
+
const exception = new ValidationException({
|
|
2652
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2653
|
+
...contents
|
|
2654
|
+
});
|
|
2655
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2656
|
+
}, "de_ValidationExceptionRes");
|
|
2657
|
+
var se_CloudTrailDetails = /* @__PURE__ */ __name((input, context) => {
|
|
2658
|
+
return (0, import_smithy_client.take)(input, {
|
|
2659
|
+
accessRole: [],
|
|
2660
|
+
endTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
2661
|
+
startTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
2662
|
+
trails: import_smithy_client._json
|
|
2663
|
+
});
|
|
2664
|
+
}, "se_CloudTrailDetails");
|
|
2665
|
+
var de_AccessPreview = /* @__PURE__ */ __name((output, context) => {
|
|
2666
|
+
return (0, import_smithy_client.take)(output, {
|
|
2667
|
+
analyzerArn: import_smithy_client.expectString,
|
|
2668
|
+
configurations: import_smithy_client._json,
|
|
2669
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2670
|
+
id: import_smithy_client.expectString,
|
|
2671
|
+
status: import_smithy_client.expectString,
|
|
2672
|
+
statusReason: import_smithy_client._json
|
|
2673
|
+
});
|
|
2674
|
+
}, "de_AccessPreview");
|
|
2675
|
+
var de_AccessPreviewFinding = /* @__PURE__ */ __name((output, context) => {
|
|
2676
|
+
return (0, import_smithy_client.take)(output, {
|
|
2677
|
+
action: import_smithy_client._json,
|
|
2678
|
+
changeType: import_smithy_client.expectString,
|
|
2679
|
+
condition: import_smithy_client._json,
|
|
2680
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2681
|
+
error: import_smithy_client.expectString,
|
|
2682
|
+
existingFindingId: import_smithy_client.expectString,
|
|
2683
|
+
existingFindingStatus: import_smithy_client.expectString,
|
|
2684
|
+
id: import_smithy_client.expectString,
|
|
2685
|
+
isPublic: import_smithy_client.expectBoolean,
|
|
2686
|
+
principal: import_smithy_client._json,
|
|
2687
|
+
resource: import_smithy_client.expectString,
|
|
2688
|
+
resourceOwnerAccount: import_smithy_client.expectString,
|
|
2689
|
+
resourceType: import_smithy_client.expectString,
|
|
2690
|
+
sources: import_smithy_client._json,
|
|
2691
|
+
status: import_smithy_client.expectString
|
|
2692
|
+
});
|
|
2693
|
+
}, "de_AccessPreviewFinding");
|
|
2694
|
+
var de_AccessPreviewFindingsList = /* @__PURE__ */ __name((output, context) => {
|
|
2695
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2696
|
+
return de_AccessPreviewFinding(entry, context);
|
|
2697
|
+
});
|
|
2698
|
+
return retVal;
|
|
2699
|
+
}, "de_AccessPreviewFindingsList");
|
|
2700
|
+
var de_AccessPreviewsList = /* @__PURE__ */ __name((output, context) => {
|
|
2701
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2702
|
+
return de_AccessPreviewSummary(entry, context);
|
|
2703
|
+
});
|
|
2704
|
+
return retVal;
|
|
2705
|
+
}, "de_AccessPreviewsList");
|
|
2706
|
+
var de_AccessPreviewSummary = /* @__PURE__ */ __name((output, context) => {
|
|
2707
|
+
return (0, import_smithy_client.take)(output, {
|
|
2708
|
+
analyzerArn: import_smithy_client.expectString,
|
|
2709
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2710
|
+
id: import_smithy_client.expectString,
|
|
2711
|
+
status: import_smithy_client.expectString,
|
|
2712
|
+
statusReason: import_smithy_client._json
|
|
2713
|
+
});
|
|
2714
|
+
}, "de_AccessPreviewSummary");
|
|
2715
|
+
var de_AnalyzedResource = /* @__PURE__ */ __name((output, context) => {
|
|
2716
|
+
return (0, import_smithy_client.take)(output, {
|
|
2717
|
+
actions: import_smithy_client._json,
|
|
2718
|
+
analyzedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2719
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2720
|
+
error: import_smithy_client.expectString,
|
|
2721
|
+
isPublic: import_smithy_client.expectBoolean,
|
|
2722
|
+
resourceArn: import_smithy_client.expectString,
|
|
2723
|
+
resourceOwnerAccount: import_smithy_client.expectString,
|
|
2724
|
+
resourceType: import_smithy_client.expectString,
|
|
2725
|
+
sharedVia: import_smithy_client._json,
|
|
2726
|
+
status: import_smithy_client.expectString,
|
|
2727
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2728
|
+
});
|
|
2729
|
+
}, "de_AnalyzedResource");
|
|
2730
|
+
var de_AnalyzersList = /* @__PURE__ */ __name((output, context) => {
|
|
2731
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2732
|
+
return de_AnalyzerSummary(entry, context);
|
|
2733
|
+
});
|
|
2734
|
+
return retVal;
|
|
2735
|
+
}, "de_AnalyzersList");
|
|
2736
|
+
var de_AnalyzerSummary = /* @__PURE__ */ __name((output, context) => {
|
|
2737
|
+
return (0, import_smithy_client.take)(output, {
|
|
2738
|
+
arn: import_smithy_client.expectString,
|
|
2739
|
+
configuration: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
|
|
2740
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2741
|
+
lastResourceAnalyzed: import_smithy_client.expectString,
|
|
2742
|
+
lastResourceAnalyzedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2743
|
+
name: import_smithy_client.expectString,
|
|
2744
|
+
status: import_smithy_client.expectString,
|
|
2745
|
+
statusReason: import_smithy_client._json,
|
|
2746
|
+
tags: import_smithy_client._json,
|
|
2747
|
+
type: import_smithy_client.expectString
|
|
2748
|
+
});
|
|
2749
|
+
}, "de_AnalyzerSummary");
|
|
2750
|
+
var de_ArchiveRulesList = /* @__PURE__ */ __name((output, context) => {
|
|
2751
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2752
|
+
return de_ArchiveRuleSummary(entry, context);
|
|
2753
|
+
});
|
|
2754
|
+
return retVal;
|
|
2755
|
+
}, "de_ArchiveRulesList");
|
|
2756
|
+
var de_ArchiveRuleSummary = /* @__PURE__ */ __name((output, context) => {
|
|
2757
|
+
return (0, import_smithy_client.take)(output, {
|
|
2758
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2759
|
+
filter: import_smithy_client._json,
|
|
2760
|
+
ruleName: import_smithy_client.expectString,
|
|
2761
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2762
|
+
});
|
|
2763
|
+
}, "de_ArchiveRuleSummary");
|
|
2764
|
+
var de_CloudTrailProperties = /* @__PURE__ */ __name((output, context) => {
|
|
2765
|
+
return (0, import_smithy_client.take)(output, {
|
|
2766
|
+
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2767
|
+
startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2768
|
+
trailProperties: import_smithy_client._json
|
|
2769
|
+
});
|
|
2770
|
+
}, "de_CloudTrailProperties");
|
|
2771
|
+
var de_Finding = /* @__PURE__ */ __name((output, context) => {
|
|
2772
|
+
return (0, import_smithy_client.take)(output, {
|
|
2773
|
+
action: import_smithy_client._json,
|
|
2774
|
+
analyzedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2775
|
+
condition: import_smithy_client._json,
|
|
2776
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2777
|
+
error: import_smithy_client.expectString,
|
|
2778
|
+
id: import_smithy_client.expectString,
|
|
2779
|
+
isPublic: import_smithy_client.expectBoolean,
|
|
2780
|
+
principal: import_smithy_client._json,
|
|
2781
|
+
resource: import_smithy_client.expectString,
|
|
2782
|
+
resourceOwnerAccount: import_smithy_client.expectString,
|
|
2783
|
+
resourceType: import_smithy_client.expectString,
|
|
2784
|
+
sources: import_smithy_client._json,
|
|
2785
|
+
status: import_smithy_client.expectString,
|
|
2786
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2787
|
+
});
|
|
2788
|
+
}, "de_Finding");
|
|
2789
|
+
var de_FindingDetails = /* @__PURE__ */ __name((output, context) => {
|
|
2790
|
+
if (output.externalAccessDetails != null) {
|
|
2791
|
+
return {
|
|
2792
|
+
externalAccessDetails: (0, import_smithy_client._json)(output.externalAccessDetails)
|
|
2793
|
+
};
|
|
2794
|
+
}
|
|
2795
|
+
if (output.unusedIamRoleDetails != null) {
|
|
2796
|
+
return {
|
|
2797
|
+
unusedIamRoleDetails: de_UnusedIamRoleDetails(output.unusedIamRoleDetails, context)
|
|
2798
|
+
};
|
|
2799
|
+
}
|
|
2800
|
+
if (output.unusedIamUserAccessKeyDetails != null) {
|
|
2801
|
+
return {
|
|
2802
|
+
unusedIamUserAccessKeyDetails: de_UnusedIamUserAccessKeyDetails(output.unusedIamUserAccessKeyDetails, context)
|
|
2803
|
+
};
|
|
2804
|
+
}
|
|
2805
|
+
if (output.unusedIamUserPasswordDetails != null) {
|
|
2806
|
+
return {
|
|
2807
|
+
unusedIamUserPasswordDetails: de_UnusedIamUserPasswordDetails(output.unusedIamUserPasswordDetails, context)
|
|
2808
|
+
};
|
|
2809
|
+
}
|
|
2810
|
+
if (output.unusedPermissionDetails != null) {
|
|
2811
|
+
return {
|
|
2812
|
+
unusedPermissionDetails: de_UnusedPermissionDetails(output.unusedPermissionDetails, context)
|
|
2813
|
+
};
|
|
2814
|
+
}
|
|
2815
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2816
|
+
}, "de_FindingDetails");
|
|
2817
|
+
var de_FindingDetailsList = /* @__PURE__ */ __name((output, context) => {
|
|
2818
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2819
|
+
return de_FindingDetails((0, import_core.awsExpectUnion)(entry), context);
|
|
2820
|
+
});
|
|
2821
|
+
return retVal;
|
|
2822
|
+
}, "de_FindingDetailsList");
|
|
2823
|
+
var de_FindingsList = /* @__PURE__ */ __name((output, context) => {
|
|
2824
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2825
|
+
return de_FindingSummary(entry, context);
|
|
2826
|
+
});
|
|
2827
|
+
return retVal;
|
|
2828
|
+
}, "de_FindingsList");
|
|
2829
|
+
var de_FindingsListV2 = /* @__PURE__ */ __name((output, context) => {
|
|
2830
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2831
|
+
return de_FindingSummaryV2(entry, context);
|
|
2832
|
+
});
|
|
2833
|
+
return retVal;
|
|
2834
|
+
}, "de_FindingsListV2");
|
|
2835
|
+
var de_FindingSummary = /* @__PURE__ */ __name((output, context) => {
|
|
2836
|
+
return (0, import_smithy_client.take)(output, {
|
|
2837
|
+
action: import_smithy_client._json,
|
|
2838
|
+
analyzedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2839
|
+
condition: import_smithy_client._json,
|
|
2840
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2841
|
+
error: import_smithy_client.expectString,
|
|
2842
|
+
id: import_smithy_client.expectString,
|
|
2843
|
+
isPublic: import_smithy_client.expectBoolean,
|
|
2844
|
+
principal: import_smithy_client._json,
|
|
2845
|
+
resource: import_smithy_client.expectString,
|
|
2846
|
+
resourceOwnerAccount: import_smithy_client.expectString,
|
|
2847
|
+
resourceType: import_smithy_client.expectString,
|
|
2848
|
+
sources: import_smithy_client._json,
|
|
2849
|
+
status: import_smithy_client.expectString,
|
|
2850
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2851
|
+
});
|
|
2852
|
+
}, "de_FindingSummary");
|
|
2853
|
+
var de_FindingSummaryV2 = /* @__PURE__ */ __name((output, context) => {
|
|
2854
|
+
return (0, import_smithy_client.take)(output, {
|
|
2855
|
+
analyzedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2856
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2857
|
+
error: import_smithy_client.expectString,
|
|
2858
|
+
findingType: import_smithy_client.expectString,
|
|
2859
|
+
id: import_smithy_client.expectString,
|
|
2860
|
+
resource: import_smithy_client.expectString,
|
|
2861
|
+
resourceOwnerAccount: import_smithy_client.expectString,
|
|
2862
|
+
resourceType: import_smithy_client.expectString,
|
|
2863
|
+
status: import_smithy_client.expectString,
|
|
2864
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2865
|
+
});
|
|
2866
|
+
}, "de_FindingSummaryV2");
|
|
2867
|
+
var de_GeneratedPolicyProperties = /* @__PURE__ */ __name((output, context) => {
|
|
2868
|
+
return (0, import_smithy_client.take)(output, {
|
|
2869
|
+
cloudTrailProperties: (_) => de_CloudTrailProperties(_, context),
|
|
2870
|
+
isComplete: import_smithy_client.expectBoolean,
|
|
2871
|
+
principalArn: import_smithy_client.expectString
|
|
2872
|
+
});
|
|
2873
|
+
}, "de_GeneratedPolicyProperties");
|
|
2874
|
+
var de_GeneratedPolicyResult = /* @__PURE__ */ __name((output, context) => {
|
|
2875
|
+
return (0, import_smithy_client.take)(output, {
|
|
2876
|
+
generatedPolicies: import_smithy_client._json,
|
|
2877
|
+
properties: (_) => de_GeneratedPolicyProperties(_, context)
|
|
2878
|
+
});
|
|
2879
|
+
}, "de_GeneratedPolicyResult");
|
|
2880
|
+
var de_JobDetails = /* @__PURE__ */ __name((output, context) => {
|
|
2881
|
+
return (0, import_smithy_client.take)(output, {
|
|
2882
|
+
completedOn: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2883
|
+
jobError: import_smithy_client._json,
|
|
2884
|
+
jobId: import_smithy_client.expectString,
|
|
2885
|
+
startedOn: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2886
|
+
status: import_smithy_client.expectString
|
|
2887
|
+
});
|
|
2888
|
+
}, "de_JobDetails");
|
|
2889
|
+
var de_PolicyGeneration = /* @__PURE__ */ __name((output, context) => {
|
|
2890
|
+
return (0, import_smithy_client.take)(output, {
|
|
2891
|
+
completedOn: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2892
|
+
jobId: import_smithy_client.expectString,
|
|
2893
|
+
principalArn: import_smithy_client.expectString,
|
|
2894
|
+
startedOn: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2895
|
+
status: import_smithy_client.expectString
|
|
2896
|
+
});
|
|
2897
|
+
}, "de_PolicyGeneration");
|
|
2898
|
+
var de_PolicyGenerationList = /* @__PURE__ */ __name((output, context) => {
|
|
2899
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2900
|
+
return de_PolicyGeneration(entry, context);
|
|
2901
|
+
});
|
|
2902
|
+
return retVal;
|
|
2903
|
+
}, "de_PolicyGenerationList");
|
|
2904
|
+
var de_UnusedAction = /* @__PURE__ */ __name((output, context) => {
|
|
2905
|
+
return (0, import_smithy_client.take)(output, {
|
|
2906
|
+
action: import_smithy_client.expectString,
|
|
2907
|
+
lastAccessed: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2908
|
+
});
|
|
2909
|
+
}, "de_UnusedAction");
|
|
2910
|
+
var de_UnusedActionList = /* @__PURE__ */ __name((output, context) => {
|
|
2911
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2912
|
+
return de_UnusedAction(entry, context);
|
|
2913
|
+
});
|
|
2914
|
+
return retVal;
|
|
2915
|
+
}, "de_UnusedActionList");
|
|
2916
|
+
var de_UnusedIamRoleDetails = /* @__PURE__ */ __name((output, context) => {
|
|
2917
|
+
return (0, import_smithy_client.take)(output, {
|
|
2918
|
+
lastAccessed: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2919
|
+
});
|
|
2920
|
+
}, "de_UnusedIamRoleDetails");
|
|
2921
|
+
var de_UnusedIamUserAccessKeyDetails = /* @__PURE__ */ __name((output, context) => {
|
|
2922
|
+
return (0, import_smithy_client.take)(output, {
|
|
2923
|
+
accessKeyId: import_smithy_client.expectString,
|
|
2924
|
+
lastAccessed: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2925
|
+
});
|
|
2926
|
+
}, "de_UnusedIamUserAccessKeyDetails");
|
|
2927
|
+
var de_UnusedIamUserPasswordDetails = /* @__PURE__ */ __name((output, context) => {
|
|
2928
|
+
return (0, import_smithy_client.take)(output, {
|
|
2929
|
+
lastAccessed: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2930
|
+
});
|
|
2931
|
+
}, "de_UnusedIamUserPasswordDetails");
|
|
2932
|
+
var de_UnusedPermissionDetails = /* @__PURE__ */ __name((output, context) => {
|
|
2933
|
+
return (0, import_smithy_client.take)(output, {
|
|
2934
|
+
actions: (_) => de_UnusedActionList(_, context),
|
|
2935
|
+
lastAccessed: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2936
|
+
serviceNamespace: import_smithy_client.expectString
|
|
2937
|
+
});
|
|
2938
|
+
}, "de_UnusedPermissionDetails");
|
|
2939
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
2940
|
+
httpStatusCode: output.statusCode,
|
|
2941
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2942
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2943
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
2944
|
+
}), "deserializeMetadata");
|
|
2945
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2946
|
+
var _aA = "analyzerArn";
|
|
2947
|
+
var _cT = "clientToken";
|
|
2948
|
+
var _iRP = "includeResourcePlaceholders";
|
|
2949
|
+
var _iSLT = "includeServiceLevelTemplate";
|
|
2950
|
+
var _mR = "maxResults";
|
|
2951
|
+
var _nT = "nextToken";
|
|
2952
|
+
var _pA = "principalArn";
|
|
2953
|
+
var _rA = "resourceArn";
|
|
2954
|
+
var _rAS = "retryAfterSeconds";
|
|
2955
|
+
var _ra = "retry-after";
|
|
2956
|
+
var _t = "type";
|
|
2957
|
+
var _tK = "tagKeys";
|
|
2958
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2959
|
+
if (encoded.length) {
|
|
2960
|
+
return JSON.parse(encoded);
|
|
2961
|
+
}
|
|
2962
|
+
return {};
|
|
2963
|
+
}), "parseBody");
|
|
2964
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2965
|
+
const value = await parseBody(errorBody, context);
|
|
2966
|
+
value.message = value.message ?? value.Message;
|
|
2967
|
+
return value;
|
|
2968
|
+
}, "parseErrorBody");
|
|
2969
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2970
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2971
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2972
|
+
let cleanValue = rawValue;
|
|
2973
|
+
if (typeof cleanValue === "number") {
|
|
2974
|
+
cleanValue = cleanValue.toString();
|
|
2975
|
+
}
|
|
2976
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
2977
|
+
cleanValue = cleanValue.split(",")[0];
|
|
2978
|
+
}
|
|
2979
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
2980
|
+
cleanValue = cleanValue.split(":")[0];
|
|
2981
|
+
}
|
|
2982
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
2983
|
+
cleanValue = cleanValue.split("#")[1];
|
|
2984
|
+
}
|
|
2985
|
+
return cleanValue;
|
|
2986
|
+
}, "sanitizeErrorCode");
|
|
2987
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2988
|
+
if (headerKey !== void 0) {
|
|
2989
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2990
|
+
}
|
|
2991
|
+
if (data.code !== void 0) {
|
|
2992
|
+
return sanitizeErrorCode(data.code);
|
|
2993
|
+
}
|
|
2994
|
+
if (data["__type"] !== void 0) {
|
|
2995
|
+
return sanitizeErrorCode(data["__type"]);
|
|
2996
|
+
}
|
|
2997
|
+
}, "loadRestJsonErrorCode");
|
|
2998
|
+
|
|
2999
|
+
// src/commands/ApplyArchiveRuleCommand.ts
|
|
3000
|
+
var _ApplyArchiveRuleCommand = class _ApplyArchiveRuleCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3001
|
+
...commonParams
|
|
3002
|
+
}).m(function(Command, cs, config, o) {
|
|
3003
|
+
return [
|
|
3004
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3005
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3006
|
+
];
|
|
3007
|
+
}).s("AccessAnalyzer", "ApplyArchiveRule", {}).n("AccessAnalyzerClient", "ApplyArchiveRuleCommand").f(void 0, void 0).ser(se_ApplyArchiveRuleCommand).de(de_ApplyArchiveRuleCommand).build() {
|
|
3008
|
+
};
|
|
3009
|
+
__name(_ApplyArchiveRuleCommand, "ApplyArchiveRuleCommand");
|
|
3010
|
+
var ApplyArchiveRuleCommand = _ApplyArchiveRuleCommand;
|
|
3011
|
+
|
|
3012
|
+
// src/commands/CancelPolicyGenerationCommand.ts
|
|
3013
|
+
|
|
3014
|
+
|
|
3015
|
+
|
|
3016
|
+
|
|
3017
|
+
var _CancelPolicyGenerationCommand = class _CancelPolicyGenerationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3018
|
+
...commonParams
|
|
3019
|
+
}).m(function(Command, cs, config, o) {
|
|
3020
|
+
return [
|
|
3021
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3022
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3023
|
+
];
|
|
3024
|
+
}).s("AccessAnalyzer", "CancelPolicyGeneration", {}).n("AccessAnalyzerClient", "CancelPolicyGenerationCommand").f(void 0, void 0).ser(se_CancelPolicyGenerationCommand).de(de_CancelPolicyGenerationCommand).build() {
|
|
3025
|
+
};
|
|
3026
|
+
__name(_CancelPolicyGenerationCommand, "CancelPolicyGenerationCommand");
|
|
3027
|
+
var CancelPolicyGenerationCommand = _CancelPolicyGenerationCommand;
|
|
3028
|
+
|
|
3029
|
+
// src/commands/CheckAccessNotGrantedCommand.ts
|
|
3030
|
+
|
|
3031
|
+
|
|
3032
|
+
|
|
3033
|
+
|
|
3034
|
+
var _CheckAccessNotGrantedCommand = class _CheckAccessNotGrantedCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3035
|
+
...commonParams
|
|
3036
|
+
}).m(function(Command, cs, config, o) {
|
|
3037
|
+
return [
|
|
3038
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3039
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3040
|
+
];
|
|
3041
|
+
}).s("AccessAnalyzer", "CheckAccessNotGranted", {}).n("AccessAnalyzerClient", "CheckAccessNotGrantedCommand").f(CheckAccessNotGrantedRequestFilterSensitiveLog, void 0).ser(se_CheckAccessNotGrantedCommand).de(de_CheckAccessNotGrantedCommand).build() {
|
|
3042
|
+
};
|
|
3043
|
+
__name(_CheckAccessNotGrantedCommand, "CheckAccessNotGrantedCommand");
|
|
3044
|
+
var CheckAccessNotGrantedCommand = _CheckAccessNotGrantedCommand;
|
|
3045
|
+
|
|
3046
|
+
// src/commands/CheckNoNewAccessCommand.ts
|
|
3047
|
+
|
|
3048
|
+
|
|
3049
|
+
|
|
3050
|
+
|
|
3051
|
+
var _CheckNoNewAccessCommand = class _CheckNoNewAccessCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3052
|
+
...commonParams
|
|
3053
|
+
}).m(function(Command, cs, config, o) {
|
|
3054
|
+
return [
|
|
3055
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3056
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3057
|
+
];
|
|
3058
|
+
}).s("AccessAnalyzer", "CheckNoNewAccess", {}).n("AccessAnalyzerClient", "CheckNoNewAccessCommand").f(CheckNoNewAccessRequestFilterSensitiveLog, void 0).ser(se_CheckNoNewAccessCommand).de(de_CheckNoNewAccessCommand).build() {
|
|
3059
|
+
};
|
|
3060
|
+
__name(_CheckNoNewAccessCommand, "CheckNoNewAccessCommand");
|
|
3061
|
+
var CheckNoNewAccessCommand = _CheckNoNewAccessCommand;
|
|
3062
|
+
|
|
3063
|
+
// src/commands/CreateAccessPreviewCommand.ts
|
|
3064
|
+
|
|
3065
|
+
|
|
3066
|
+
|
|
3067
|
+
|
|
3068
|
+
var _CreateAccessPreviewCommand = class _CreateAccessPreviewCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3069
|
+
...commonParams
|
|
3070
|
+
}).m(function(Command, cs, config, o) {
|
|
3071
|
+
return [
|
|
3072
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3073
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3074
|
+
];
|
|
3075
|
+
}).s("AccessAnalyzer", "CreateAccessPreview", {}).n("AccessAnalyzerClient", "CreateAccessPreviewCommand").f(void 0, void 0).ser(se_CreateAccessPreviewCommand).de(de_CreateAccessPreviewCommand).build() {
|
|
3076
|
+
};
|
|
3077
|
+
__name(_CreateAccessPreviewCommand, "CreateAccessPreviewCommand");
|
|
3078
|
+
var CreateAccessPreviewCommand = _CreateAccessPreviewCommand;
|
|
3079
|
+
|
|
3080
|
+
// src/commands/CreateAnalyzerCommand.ts
|
|
3081
|
+
|
|
3082
|
+
|
|
3083
|
+
|
|
3084
|
+
|
|
3085
|
+
var _CreateAnalyzerCommand = class _CreateAnalyzerCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3086
|
+
...commonParams
|
|
3087
|
+
}).m(function(Command, cs, config, o) {
|
|
3088
|
+
return [
|
|
3089
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3090
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3091
|
+
];
|
|
3092
|
+
}).s("AccessAnalyzer", "CreateAnalyzer", {}).n("AccessAnalyzerClient", "CreateAnalyzerCommand").f(void 0, void 0).ser(se_CreateAnalyzerCommand).de(de_CreateAnalyzerCommand).build() {
|
|
3093
|
+
};
|
|
3094
|
+
__name(_CreateAnalyzerCommand, "CreateAnalyzerCommand");
|
|
3095
|
+
var CreateAnalyzerCommand = _CreateAnalyzerCommand;
|
|
3096
|
+
|
|
3097
|
+
// src/commands/CreateArchiveRuleCommand.ts
|
|
3098
|
+
|
|
3099
|
+
|
|
3100
|
+
|
|
3101
|
+
|
|
3102
|
+
var _CreateArchiveRuleCommand = class _CreateArchiveRuleCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3103
|
+
...commonParams
|
|
3104
|
+
}).m(function(Command, cs, config, o) {
|
|
3105
|
+
return [
|
|
3106
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3107
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3108
|
+
];
|
|
3109
|
+
}).s("AccessAnalyzer", "CreateArchiveRule", {}).n("AccessAnalyzerClient", "CreateArchiveRuleCommand").f(void 0, void 0).ser(se_CreateArchiveRuleCommand).de(de_CreateArchiveRuleCommand).build() {
|
|
3110
|
+
};
|
|
3111
|
+
__name(_CreateArchiveRuleCommand, "CreateArchiveRuleCommand");
|
|
3112
|
+
var CreateArchiveRuleCommand = _CreateArchiveRuleCommand;
|
|
3113
|
+
|
|
3114
|
+
// src/commands/DeleteAnalyzerCommand.ts
|
|
3115
|
+
|
|
3116
|
+
|
|
3117
|
+
|
|
3118
|
+
|
|
3119
|
+
var _DeleteAnalyzerCommand = class _DeleteAnalyzerCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3120
|
+
...commonParams
|
|
3121
|
+
}).m(function(Command, cs, config, o) {
|
|
3122
|
+
return [
|
|
3123
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3124
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3125
|
+
];
|
|
3126
|
+
}).s("AccessAnalyzer", "DeleteAnalyzer", {}).n("AccessAnalyzerClient", "DeleteAnalyzerCommand").f(void 0, void 0).ser(se_DeleteAnalyzerCommand).de(de_DeleteAnalyzerCommand).build() {
|
|
3127
|
+
};
|
|
3128
|
+
__name(_DeleteAnalyzerCommand, "DeleteAnalyzerCommand");
|
|
3129
|
+
var DeleteAnalyzerCommand = _DeleteAnalyzerCommand;
|
|
3130
|
+
|
|
3131
|
+
// src/commands/DeleteArchiveRuleCommand.ts
|
|
3132
|
+
|
|
3133
|
+
|
|
3134
|
+
|
|
3135
|
+
|
|
3136
|
+
var _DeleteArchiveRuleCommand = class _DeleteArchiveRuleCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3137
|
+
...commonParams
|
|
3138
|
+
}).m(function(Command, cs, config, o) {
|
|
3139
|
+
return [
|
|
3140
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3141
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3142
|
+
];
|
|
3143
|
+
}).s("AccessAnalyzer", "DeleteArchiveRule", {}).n("AccessAnalyzerClient", "DeleteArchiveRuleCommand").f(void 0, void 0).ser(se_DeleteArchiveRuleCommand).de(de_DeleteArchiveRuleCommand).build() {
|
|
3144
|
+
};
|
|
3145
|
+
__name(_DeleteArchiveRuleCommand, "DeleteArchiveRuleCommand");
|
|
3146
|
+
var DeleteArchiveRuleCommand = _DeleteArchiveRuleCommand;
|
|
3147
|
+
|
|
3148
|
+
// src/commands/GetAccessPreviewCommand.ts
|
|
3149
|
+
|
|
3150
|
+
|
|
3151
|
+
|
|
3152
|
+
|
|
3153
|
+
var _GetAccessPreviewCommand = class _GetAccessPreviewCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3154
|
+
...commonParams
|
|
3155
|
+
}).m(function(Command, cs, config, o) {
|
|
3156
|
+
return [
|
|
3157
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3158
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3159
|
+
];
|
|
3160
|
+
}).s("AccessAnalyzer", "GetAccessPreview", {}).n("AccessAnalyzerClient", "GetAccessPreviewCommand").f(void 0, void 0).ser(se_GetAccessPreviewCommand).de(de_GetAccessPreviewCommand).build() {
|
|
3161
|
+
};
|
|
3162
|
+
__name(_GetAccessPreviewCommand, "GetAccessPreviewCommand");
|
|
3163
|
+
var GetAccessPreviewCommand = _GetAccessPreviewCommand;
|
|
3164
|
+
|
|
3165
|
+
// src/commands/GetAnalyzedResourceCommand.ts
|
|
3166
|
+
|
|
3167
|
+
|
|
3168
|
+
|
|
3169
|
+
|
|
3170
|
+
var _GetAnalyzedResourceCommand = class _GetAnalyzedResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3171
|
+
...commonParams
|
|
3172
|
+
}).m(function(Command, cs, config, o) {
|
|
3173
|
+
return [
|
|
3174
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3175
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3176
|
+
];
|
|
3177
|
+
}).s("AccessAnalyzer", "GetAnalyzedResource", {}).n("AccessAnalyzerClient", "GetAnalyzedResourceCommand").f(void 0, void 0).ser(se_GetAnalyzedResourceCommand).de(de_GetAnalyzedResourceCommand).build() {
|
|
3178
|
+
};
|
|
3179
|
+
__name(_GetAnalyzedResourceCommand, "GetAnalyzedResourceCommand");
|
|
3180
|
+
var GetAnalyzedResourceCommand = _GetAnalyzedResourceCommand;
|
|
3181
|
+
|
|
3182
|
+
// src/commands/GetAnalyzerCommand.ts
|
|
3183
|
+
|
|
3184
|
+
|
|
3185
|
+
|
|
3186
|
+
|
|
3187
|
+
var _GetAnalyzerCommand = class _GetAnalyzerCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3188
|
+
...commonParams
|
|
3189
|
+
}).m(function(Command, cs, config, o) {
|
|
3190
|
+
return [
|
|
3191
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3192
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3193
|
+
];
|
|
3194
|
+
}).s("AccessAnalyzer", "GetAnalyzer", {}).n("AccessAnalyzerClient", "GetAnalyzerCommand").f(void 0, void 0).ser(se_GetAnalyzerCommand).de(de_GetAnalyzerCommand).build() {
|
|
3195
|
+
};
|
|
3196
|
+
__name(_GetAnalyzerCommand, "GetAnalyzerCommand");
|
|
3197
|
+
var GetAnalyzerCommand = _GetAnalyzerCommand;
|
|
3198
|
+
|
|
3199
|
+
// src/commands/GetArchiveRuleCommand.ts
|
|
3200
|
+
|
|
3201
|
+
|
|
3202
|
+
|
|
3203
|
+
|
|
3204
|
+
var _GetArchiveRuleCommand = class _GetArchiveRuleCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3205
|
+
...commonParams
|
|
3206
|
+
}).m(function(Command, cs, config, o) {
|
|
3207
|
+
return [
|
|
3208
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3209
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3210
|
+
];
|
|
3211
|
+
}).s("AccessAnalyzer", "GetArchiveRule", {}).n("AccessAnalyzerClient", "GetArchiveRuleCommand").f(void 0, void 0).ser(se_GetArchiveRuleCommand).de(de_GetArchiveRuleCommand).build() {
|
|
3212
|
+
};
|
|
3213
|
+
__name(_GetArchiveRuleCommand, "GetArchiveRuleCommand");
|
|
3214
|
+
var GetArchiveRuleCommand = _GetArchiveRuleCommand;
|
|
3215
|
+
|
|
3216
|
+
// src/commands/GetFindingCommand.ts
|
|
3217
|
+
|
|
3218
|
+
|
|
3219
|
+
|
|
3220
|
+
|
|
3221
|
+
var _GetFindingCommand = class _GetFindingCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3222
|
+
...commonParams
|
|
3223
|
+
}).m(function(Command, cs, config, o) {
|
|
3224
|
+
return [
|
|
3225
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3226
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3227
|
+
];
|
|
3228
|
+
}).s("AccessAnalyzer", "GetFinding", {}).n("AccessAnalyzerClient", "GetFindingCommand").f(void 0, void 0).ser(se_GetFindingCommand).de(de_GetFindingCommand).build() {
|
|
3229
|
+
};
|
|
3230
|
+
__name(_GetFindingCommand, "GetFindingCommand");
|
|
3231
|
+
var GetFindingCommand = _GetFindingCommand;
|
|
3232
|
+
|
|
3233
|
+
// src/commands/GetFindingV2Command.ts
|
|
3234
|
+
|
|
3235
|
+
|
|
3236
|
+
|
|
3237
|
+
|
|
3238
|
+
var _GetFindingV2Command = class _GetFindingV2Command extends import_smithy_client.Command.classBuilder().ep({
|
|
3239
|
+
...commonParams
|
|
3240
|
+
}).m(function(Command, cs, config, o) {
|
|
3241
|
+
return [
|
|
3242
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3243
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3244
|
+
];
|
|
3245
|
+
}).s("AccessAnalyzer", "GetFindingV2", {}).n("AccessAnalyzerClient", "GetFindingV2Command").f(void 0, void 0).ser(se_GetFindingV2Command).de(de_GetFindingV2Command).build() {
|
|
3246
|
+
};
|
|
3247
|
+
__name(_GetFindingV2Command, "GetFindingV2Command");
|
|
3248
|
+
var GetFindingV2Command = _GetFindingV2Command;
|
|
3249
|
+
|
|
3250
|
+
// src/commands/GetGeneratedPolicyCommand.ts
|
|
3251
|
+
|
|
3252
|
+
|
|
3253
|
+
|
|
3254
|
+
|
|
3255
|
+
var _GetGeneratedPolicyCommand = class _GetGeneratedPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3256
|
+
...commonParams
|
|
3257
|
+
}).m(function(Command, cs, config, o) {
|
|
3258
|
+
return [
|
|
3259
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3260
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3261
|
+
];
|
|
3262
|
+
}).s("AccessAnalyzer", "GetGeneratedPolicy", {}).n("AccessAnalyzerClient", "GetGeneratedPolicyCommand").f(void 0, void 0).ser(se_GetGeneratedPolicyCommand).de(de_GetGeneratedPolicyCommand).build() {
|
|
3263
|
+
};
|
|
3264
|
+
__name(_GetGeneratedPolicyCommand, "GetGeneratedPolicyCommand");
|
|
3265
|
+
var GetGeneratedPolicyCommand = _GetGeneratedPolicyCommand;
|
|
3266
|
+
|
|
3267
|
+
// src/commands/ListAccessPreviewFindingsCommand.ts
|
|
3268
|
+
|
|
3269
|
+
|
|
3270
|
+
|
|
3271
|
+
|
|
3272
|
+
var _ListAccessPreviewFindingsCommand = class _ListAccessPreviewFindingsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3273
|
+
...commonParams
|
|
3274
|
+
}).m(function(Command, cs, config, o) {
|
|
3275
|
+
return [
|
|
3276
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3277
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3278
|
+
];
|
|
3279
|
+
}).s("AccessAnalyzer", "ListAccessPreviewFindings", {}).n("AccessAnalyzerClient", "ListAccessPreviewFindingsCommand").f(void 0, void 0).ser(se_ListAccessPreviewFindingsCommand).de(de_ListAccessPreviewFindingsCommand).build() {
|
|
3280
|
+
};
|
|
3281
|
+
__name(_ListAccessPreviewFindingsCommand, "ListAccessPreviewFindingsCommand");
|
|
3282
|
+
var ListAccessPreviewFindingsCommand = _ListAccessPreviewFindingsCommand;
|
|
3283
|
+
|
|
3284
|
+
// src/commands/ListAccessPreviewsCommand.ts
|
|
3285
|
+
|
|
3286
|
+
|
|
3287
|
+
|
|
3288
|
+
|
|
3289
|
+
var _ListAccessPreviewsCommand = class _ListAccessPreviewsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3290
|
+
...commonParams
|
|
3291
|
+
}).m(function(Command, cs, config, o) {
|
|
3292
|
+
return [
|
|
3293
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3294
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3295
|
+
];
|
|
3296
|
+
}).s("AccessAnalyzer", "ListAccessPreviews", {}).n("AccessAnalyzerClient", "ListAccessPreviewsCommand").f(void 0, void 0).ser(se_ListAccessPreviewsCommand).de(de_ListAccessPreviewsCommand).build() {
|
|
3297
|
+
};
|
|
3298
|
+
__name(_ListAccessPreviewsCommand, "ListAccessPreviewsCommand");
|
|
3299
|
+
var ListAccessPreviewsCommand = _ListAccessPreviewsCommand;
|
|
3300
|
+
|
|
3301
|
+
// src/commands/ListAnalyzedResourcesCommand.ts
|
|
3302
|
+
|
|
3303
|
+
|
|
3304
|
+
|
|
3305
|
+
|
|
3306
|
+
var _ListAnalyzedResourcesCommand = class _ListAnalyzedResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3307
|
+
...commonParams
|
|
3308
|
+
}).m(function(Command, cs, config, o) {
|
|
3309
|
+
return [
|
|
3310
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3311
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3312
|
+
];
|
|
3313
|
+
}).s("AccessAnalyzer", "ListAnalyzedResources", {}).n("AccessAnalyzerClient", "ListAnalyzedResourcesCommand").f(void 0, void 0).ser(se_ListAnalyzedResourcesCommand).de(de_ListAnalyzedResourcesCommand).build() {
|
|
3314
|
+
};
|
|
3315
|
+
__name(_ListAnalyzedResourcesCommand, "ListAnalyzedResourcesCommand");
|
|
3316
|
+
var ListAnalyzedResourcesCommand = _ListAnalyzedResourcesCommand;
|
|
3317
|
+
|
|
3318
|
+
// src/commands/ListAnalyzersCommand.ts
|
|
3319
|
+
|
|
3320
|
+
|
|
3321
|
+
|
|
3322
|
+
|
|
3323
|
+
var _ListAnalyzersCommand = class _ListAnalyzersCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3324
|
+
...commonParams
|
|
3325
|
+
}).m(function(Command, cs, config, o) {
|
|
3326
|
+
return [
|
|
3327
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3328
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3329
|
+
];
|
|
3330
|
+
}).s("AccessAnalyzer", "ListAnalyzers", {}).n("AccessAnalyzerClient", "ListAnalyzersCommand").f(void 0, void 0).ser(se_ListAnalyzersCommand).de(de_ListAnalyzersCommand).build() {
|
|
3331
|
+
};
|
|
3332
|
+
__name(_ListAnalyzersCommand, "ListAnalyzersCommand");
|
|
3333
|
+
var ListAnalyzersCommand = _ListAnalyzersCommand;
|
|
3334
|
+
|
|
3335
|
+
// src/commands/ListArchiveRulesCommand.ts
|
|
3336
|
+
|
|
3337
|
+
|
|
3338
|
+
|
|
3339
|
+
|
|
3340
|
+
var _ListArchiveRulesCommand = class _ListArchiveRulesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3341
|
+
...commonParams
|
|
3342
|
+
}).m(function(Command, cs, config, o) {
|
|
3343
|
+
return [
|
|
3344
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3345
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3346
|
+
];
|
|
3347
|
+
}).s("AccessAnalyzer", "ListArchiveRules", {}).n("AccessAnalyzerClient", "ListArchiveRulesCommand").f(void 0, void 0).ser(se_ListArchiveRulesCommand).de(de_ListArchiveRulesCommand).build() {
|
|
3348
|
+
};
|
|
3349
|
+
__name(_ListArchiveRulesCommand, "ListArchiveRulesCommand");
|
|
3350
|
+
var ListArchiveRulesCommand = _ListArchiveRulesCommand;
|
|
3351
|
+
|
|
3352
|
+
// src/commands/ListFindingsCommand.ts
|
|
3353
|
+
|
|
3354
|
+
|
|
3355
|
+
|
|
3356
|
+
|
|
3357
|
+
var _ListFindingsCommand = class _ListFindingsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3358
|
+
...commonParams
|
|
3359
|
+
}).m(function(Command, cs, config, o) {
|
|
3360
|
+
return [
|
|
3361
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3362
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3363
|
+
];
|
|
3364
|
+
}).s("AccessAnalyzer", "ListFindings", {}).n("AccessAnalyzerClient", "ListFindingsCommand").f(void 0, void 0).ser(se_ListFindingsCommand).de(de_ListFindingsCommand).build() {
|
|
3365
|
+
};
|
|
3366
|
+
__name(_ListFindingsCommand, "ListFindingsCommand");
|
|
3367
|
+
var ListFindingsCommand = _ListFindingsCommand;
|
|
3368
|
+
|
|
3369
|
+
// src/commands/ListFindingsV2Command.ts
|
|
3370
|
+
|
|
3371
|
+
|
|
3372
|
+
|
|
3373
|
+
|
|
3374
|
+
var _ListFindingsV2Command = class _ListFindingsV2Command extends import_smithy_client.Command.classBuilder().ep({
|
|
3375
|
+
...commonParams
|
|
3376
|
+
}).m(function(Command, cs, config, o) {
|
|
3377
|
+
return [
|
|
3378
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3379
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3380
|
+
];
|
|
3381
|
+
}).s("AccessAnalyzer", "ListFindingsV2", {}).n("AccessAnalyzerClient", "ListFindingsV2Command").f(void 0, void 0).ser(se_ListFindingsV2Command).de(de_ListFindingsV2Command).build() {
|
|
3382
|
+
};
|
|
3383
|
+
__name(_ListFindingsV2Command, "ListFindingsV2Command");
|
|
3384
|
+
var ListFindingsV2Command = _ListFindingsV2Command;
|
|
3385
|
+
|
|
3386
|
+
// src/commands/ListPolicyGenerationsCommand.ts
|
|
3387
|
+
|
|
3388
|
+
|
|
3389
|
+
|
|
3390
|
+
|
|
3391
|
+
var _ListPolicyGenerationsCommand = class _ListPolicyGenerationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3392
|
+
...commonParams
|
|
3393
|
+
}).m(function(Command, cs, config, o) {
|
|
3394
|
+
return [
|
|
3395
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3396
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3397
|
+
];
|
|
3398
|
+
}).s("AccessAnalyzer", "ListPolicyGenerations", {}).n("AccessAnalyzerClient", "ListPolicyGenerationsCommand").f(void 0, void 0).ser(se_ListPolicyGenerationsCommand).de(de_ListPolicyGenerationsCommand).build() {
|
|
3399
|
+
};
|
|
3400
|
+
__name(_ListPolicyGenerationsCommand, "ListPolicyGenerationsCommand");
|
|
3401
|
+
var ListPolicyGenerationsCommand = _ListPolicyGenerationsCommand;
|
|
3402
|
+
|
|
3403
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
3404
|
+
|
|
3405
|
+
|
|
3406
|
+
|
|
3407
|
+
|
|
3408
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3409
|
+
...commonParams
|
|
3410
|
+
}).m(function(Command, cs, config, o) {
|
|
3411
|
+
return [
|
|
3412
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3413
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3414
|
+
];
|
|
3415
|
+
}).s("AccessAnalyzer", "ListTagsForResource", {}).n("AccessAnalyzerClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
3416
|
+
};
|
|
3417
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
3418
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
3419
|
+
|
|
3420
|
+
// src/commands/StartPolicyGenerationCommand.ts
|
|
3421
|
+
|
|
3422
|
+
|
|
3423
|
+
|
|
3424
|
+
|
|
3425
|
+
var _StartPolicyGenerationCommand = class _StartPolicyGenerationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3426
|
+
...commonParams
|
|
3427
|
+
}).m(function(Command, cs, config, o) {
|
|
3428
|
+
return [
|
|
3429
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3430
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3431
|
+
];
|
|
3432
|
+
}).s("AccessAnalyzer", "StartPolicyGeneration", {}).n("AccessAnalyzerClient", "StartPolicyGenerationCommand").f(void 0, void 0).ser(se_StartPolicyGenerationCommand).de(de_StartPolicyGenerationCommand).build() {
|
|
3433
|
+
};
|
|
3434
|
+
__name(_StartPolicyGenerationCommand, "StartPolicyGenerationCommand");
|
|
3435
|
+
var StartPolicyGenerationCommand = _StartPolicyGenerationCommand;
|
|
3436
|
+
|
|
3437
|
+
// src/commands/StartResourceScanCommand.ts
|
|
3438
|
+
|
|
3439
|
+
|
|
3440
|
+
|
|
3441
|
+
|
|
3442
|
+
var _StartResourceScanCommand = class _StartResourceScanCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3443
|
+
...commonParams
|
|
3444
|
+
}).m(function(Command, cs, config, o) {
|
|
3445
|
+
return [
|
|
3446
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3447
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3448
|
+
];
|
|
3449
|
+
}).s("AccessAnalyzer", "StartResourceScan", {}).n("AccessAnalyzerClient", "StartResourceScanCommand").f(void 0, void 0).ser(se_StartResourceScanCommand).de(de_StartResourceScanCommand).build() {
|
|
3450
|
+
};
|
|
3451
|
+
__name(_StartResourceScanCommand, "StartResourceScanCommand");
|
|
3452
|
+
var StartResourceScanCommand = _StartResourceScanCommand;
|
|
3453
|
+
|
|
3454
|
+
// src/commands/TagResourceCommand.ts
|
|
3455
|
+
|
|
3456
|
+
|
|
3457
|
+
|
|
3458
|
+
|
|
3459
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3460
|
+
...commonParams
|
|
3461
|
+
}).m(function(Command, cs, config, o) {
|
|
3462
|
+
return [
|
|
3463
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3464
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3465
|
+
];
|
|
3466
|
+
}).s("AccessAnalyzer", "TagResource", {}).n("AccessAnalyzerClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
3467
|
+
};
|
|
3468
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
3469
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
3470
|
+
|
|
3471
|
+
// src/commands/UntagResourceCommand.ts
|
|
3472
|
+
|
|
3473
|
+
|
|
3474
|
+
|
|
3475
|
+
|
|
3476
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3477
|
+
...commonParams
|
|
3478
|
+
}).m(function(Command, cs, config, o) {
|
|
3479
|
+
return [
|
|
3480
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3481
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3482
|
+
];
|
|
3483
|
+
}).s("AccessAnalyzer", "UntagResource", {}).n("AccessAnalyzerClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
3484
|
+
};
|
|
3485
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
3486
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
3487
|
+
|
|
3488
|
+
// src/commands/UpdateArchiveRuleCommand.ts
|
|
3489
|
+
|
|
3490
|
+
|
|
3491
|
+
|
|
3492
|
+
|
|
3493
|
+
var _UpdateArchiveRuleCommand = class _UpdateArchiveRuleCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3494
|
+
...commonParams
|
|
3495
|
+
}).m(function(Command, cs, config, o) {
|
|
3496
|
+
return [
|
|
3497
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3498
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3499
|
+
];
|
|
3500
|
+
}).s("AccessAnalyzer", "UpdateArchiveRule", {}).n("AccessAnalyzerClient", "UpdateArchiveRuleCommand").f(void 0, void 0).ser(se_UpdateArchiveRuleCommand).de(de_UpdateArchiveRuleCommand).build() {
|
|
3501
|
+
};
|
|
3502
|
+
__name(_UpdateArchiveRuleCommand, "UpdateArchiveRuleCommand");
|
|
3503
|
+
var UpdateArchiveRuleCommand = _UpdateArchiveRuleCommand;
|
|
3504
|
+
|
|
3505
|
+
// src/commands/UpdateFindingsCommand.ts
|
|
3506
|
+
|
|
3507
|
+
|
|
3508
|
+
|
|
3509
|
+
|
|
3510
|
+
var _UpdateFindingsCommand = class _UpdateFindingsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3511
|
+
...commonParams
|
|
3512
|
+
}).m(function(Command, cs, config, o) {
|
|
3513
|
+
return [
|
|
3514
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3515
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3516
|
+
];
|
|
3517
|
+
}).s("AccessAnalyzer", "UpdateFindings", {}).n("AccessAnalyzerClient", "UpdateFindingsCommand").f(void 0, void 0).ser(se_UpdateFindingsCommand).de(de_UpdateFindingsCommand).build() {
|
|
3518
|
+
};
|
|
3519
|
+
__name(_UpdateFindingsCommand, "UpdateFindingsCommand");
|
|
3520
|
+
var UpdateFindingsCommand = _UpdateFindingsCommand;
|
|
3521
|
+
|
|
3522
|
+
// src/commands/ValidatePolicyCommand.ts
|
|
3523
|
+
|
|
3524
|
+
|
|
3525
|
+
|
|
3526
|
+
|
|
3527
|
+
var _ValidatePolicyCommand = class _ValidatePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3528
|
+
...commonParams
|
|
3529
|
+
}).m(function(Command, cs, config, o) {
|
|
3530
|
+
return [
|
|
3531
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3532
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3533
|
+
];
|
|
3534
|
+
}).s("AccessAnalyzer", "ValidatePolicy", {}).n("AccessAnalyzerClient", "ValidatePolicyCommand").f(void 0, void 0).ser(se_ValidatePolicyCommand).de(de_ValidatePolicyCommand).build() {
|
|
3535
|
+
};
|
|
3536
|
+
__name(_ValidatePolicyCommand, "ValidatePolicyCommand");
|
|
3537
|
+
var ValidatePolicyCommand = _ValidatePolicyCommand;
|
|
3538
|
+
|
|
3539
|
+
// src/AccessAnalyzer.ts
|
|
3540
|
+
var commands = {
|
|
3541
|
+
ApplyArchiveRuleCommand,
|
|
3542
|
+
CancelPolicyGenerationCommand,
|
|
3543
|
+
CheckAccessNotGrantedCommand,
|
|
3544
|
+
CheckNoNewAccessCommand,
|
|
3545
|
+
CreateAccessPreviewCommand,
|
|
3546
|
+
CreateAnalyzerCommand,
|
|
3547
|
+
CreateArchiveRuleCommand,
|
|
3548
|
+
DeleteAnalyzerCommand,
|
|
3549
|
+
DeleteArchiveRuleCommand,
|
|
3550
|
+
GetAccessPreviewCommand,
|
|
3551
|
+
GetAnalyzedResourceCommand,
|
|
3552
|
+
GetAnalyzerCommand,
|
|
3553
|
+
GetArchiveRuleCommand,
|
|
3554
|
+
GetFindingCommand,
|
|
3555
|
+
GetFindingV2Command,
|
|
3556
|
+
GetGeneratedPolicyCommand,
|
|
3557
|
+
ListAccessPreviewFindingsCommand,
|
|
3558
|
+
ListAccessPreviewsCommand,
|
|
3559
|
+
ListAnalyzedResourcesCommand,
|
|
3560
|
+
ListAnalyzersCommand,
|
|
3561
|
+
ListArchiveRulesCommand,
|
|
3562
|
+
ListFindingsCommand,
|
|
3563
|
+
ListFindingsV2Command,
|
|
3564
|
+
ListPolicyGenerationsCommand,
|
|
3565
|
+
ListTagsForResourceCommand,
|
|
3566
|
+
StartPolicyGenerationCommand,
|
|
3567
|
+
StartResourceScanCommand,
|
|
3568
|
+
TagResourceCommand,
|
|
3569
|
+
UntagResourceCommand,
|
|
3570
|
+
UpdateArchiveRuleCommand,
|
|
3571
|
+
UpdateFindingsCommand,
|
|
3572
|
+
ValidatePolicyCommand
|
|
3573
|
+
};
|
|
3574
|
+
var _AccessAnalyzer = class _AccessAnalyzer extends AccessAnalyzerClient {
|
|
3575
|
+
};
|
|
3576
|
+
__name(_AccessAnalyzer, "AccessAnalyzer");
|
|
3577
|
+
var AccessAnalyzer = _AccessAnalyzer;
|
|
3578
|
+
(0, import_smithy_client.createAggregatedClient)(commands, AccessAnalyzer);
|
|
3579
|
+
|
|
3580
|
+
// src/pagination/GetFindingV2Paginator.ts
|
|
3581
|
+
var import_core3 = require("@smithy/core");
|
|
3582
|
+
var paginateGetFindingV2 = (0, import_core3.createPaginator)(AccessAnalyzerClient, GetFindingV2Command, "nextToken", "nextToken", "maxResults");
|
|
3583
|
+
|
|
3584
|
+
// src/pagination/ListAccessPreviewFindingsPaginator.ts
|
|
3585
|
+
var import_core4 = require("@smithy/core");
|
|
3586
|
+
var paginateListAccessPreviewFindings = (0, import_core4.createPaginator)(AccessAnalyzerClient, ListAccessPreviewFindingsCommand, "nextToken", "nextToken", "maxResults");
|
|
3587
|
+
|
|
3588
|
+
// src/pagination/ListAccessPreviewsPaginator.ts
|
|
3589
|
+
var import_core5 = require("@smithy/core");
|
|
3590
|
+
var paginateListAccessPreviews = (0, import_core5.createPaginator)(AccessAnalyzerClient, ListAccessPreviewsCommand, "nextToken", "nextToken", "maxResults");
|
|
3591
|
+
|
|
3592
|
+
// src/pagination/ListAnalyzedResourcesPaginator.ts
|
|
3593
|
+
var import_core6 = require("@smithy/core");
|
|
3594
|
+
var paginateListAnalyzedResources = (0, import_core6.createPaginator)(AccessAnalyzerClient, ListAnalyzedResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
3595
|
+
|
|
3596
|
+
// src/pagination/ListAnalyzersPaginator.ts
|
|
3597
|
+
var import_core7 = require("@smithy/core");
|
|
3598
|
+
var paginateListAnalyzers = (0, import_core7.createPaginator)(AccessAnalyzerClient, ListAnalyzersCommand, "nextToken", "nextToken", "maxResults");
|
|
3599
|
+
|
|
3600
|
+
// src/pagination/ListArchiveRulesPaginator.ts
|
|
3601
|
+
var import_core8 = require("@smithy/core");
|
|
3602
|
+
var paginateListArchiveRules = (0, import_core8.createPaginator)(AccessAnalyzerClient, ListArchiveRulesCommand, "nextToken", "nextToken", "maxResults");
|
|
3603
|
+
|
|
3604
|
+
// src/pagination/ListFindingsPaginator.ts
|
|
3605
|
+
var import_core9 = require("@smithy/core");
|
|
3606
|
+
var paginateListFindings = (0, import_core9.createPaginator)(AccessAnalyzerClient, ListFindingsCommand, "nextToken", "nextToken", "maxResults");
|
|
3607
|
+
|
|
3608
|
+
// src/pagination/ListFindingsV2Paginator.ts
|
|
3609
|
+
var import_core10 = require("@smithy/core");
|
|
3610
|
+
var paginateListFindingsV2 = (0, import_core10.createPaginator)(AccessAnalyzerClient, ListFindingsV2Command, "nextToken", "nextToken", "maxResults");
|
|
3611
|
+
|
|
3612
|
+
// src/pagination/ListPolicyGenerationsPaginator.ts
|
|
3613
|
+
var import_core11 = require("@smithy/core");
|
|
3614
|
+
var paginateListPolicyGenerations = (0, import_core11.createPaginator)(AccessAnalyzerClient, ListPolicyGenerationsCommand, "nextToken", "nextToken", "maxResults");
|
|
3615
|
+
|
|
3616
|
+
// src/pagination/ValidatePolicyPaginator.ts
|
|
3617
|
+
var import_core12 = require("@smithy/core");
|
|
3618
|
+
var paginateValidatePolicy = (0, import_core12.createPaginator)(AccessAnalyzerClient, ValidatePolicyCommand, "nextToken", "nextToken", "maxResults");
|
|
3619
|
+
|
|
3620
|
+
// src/index.ts
|
|
3621
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
3622
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3623
|
+
0 && (module.exports = {
|
|
3624
|
+
AccessAnalyzer,
|
|
3625
|
+
AccessAnalyzerClient,
|
|
3626
|
+
AccessAnalyzerServiceException,
|
|
3627
|
+
AccessCheckPolicyType,
|
|
3628
|
+
AccessDeniedException,
|
|
3629
|
+
AccessPreviewStatus,
|
|
3630
|
+
AccessPreviewStatusReasonCode,
|
|
3631
|
+
AclGrantee,
|
|
3632
|
+
AclPermission,
|
|
3633
|
+
AnalyzerConfiguration,
|
|
3634
|
+
ApplyArchiveRuleCommand,
|
|
3635
|
+
CancelPolicyGenerationCommand,
|
|
3636
|
+
CheckAccessNotGrantedCommand,
|
|
3637
|
+
CheckAccessNotGrantedRequestFilterSensitiveLog,
|
|
3638
|
+
CheckAccessNotGrantedResult,
|
|
3639
|
+
CheckNoNewAccessCommand,
|
|
3640
|
+
CheckNoNewAccessRequestFilterSensitiveLog,
|
|
3641
|
+
CheckNoNewAccessResult,
|
|
3642
|
+
Configuration,
|
|
3643
|
+
ConflictException,
|
|
3644
|
+
CreateAccessPreviewCommand,
|
|
3645
|
+
CreateAnalyzerCommand,
|
|
3646
|
+
CreateArchiveRuleCommand,
|
|
3647
|
+
DeleteAnalyzerCommand,
|
|
3648
|
+
DeleteArchiveRuleCommand,
|
|
3649
|
+
FindingChangeType,
|
|
3650
|
+
FindingDetails,
|
|
3651
|
+
FindingType,
|
|
3652
|
+
GetAccessPreviewCommand,
|
|
3653
|
+
GetAnalyzedResourceCommand,
|
|
3654
|
+
GetAnalyzerCommand,
|
|
3655
|
+
GetArchiveRuleCommand,
|
|
3656
|
+
GetFindingCommand,
|
|
3657
|
+
GetFindingV2Command,
|
|
3658
|
+
GetGeneratedPolicyCommand,
|
|
3659
|
+
InternalServerException,
|
|
3660
|
+
InvalidParameterException,
|
|
3661
|
+
JobErrorCode,
|
|
3662
|
+
JobStatus,
|
|
3663
|
+
KmsGrantOperation,
|
|
3664
|
+
ListAccessPreviewFindingsCommand,
|
|
3665
|
+
ListAccessPreviewsCommand,
|
|
3666
|
+
ListAnalyzedResourcesCommand,
|
|
3667
|
+
ListAnalyzersCommand,
|
|
3668
|
+
ListArchiveRulesCommand,
|
|
3669
|
+
ListFindingsCommand,
|
|
3670
|
+
ListFindingsV2Command,
|
|
3671
|
+
ListPolicyGenerationsCommand,
|
|
3672
|
+
ListTagsForResourceCommand,
|
|
3673
|
+
Locale,
|
|
3674
|
+
NetworkOriginConfiguration,
|
|
3675
|
+
PathElement,
|
|
3676
|
+
PolicyType,
|
|
3677
|
+
RdsDbClusterSnapshotAttributeValue,
|
|
3678
|
+
RdsDbSnapshotAttributeValue,
|
|
3679
|
+
ResourceNotFoundException,
|
|
3680
|
+
ServiceQuotaExceededException,
|
|
3681
|
+
StartPolicyGenerationCommand,
|
|
3682
|
+
StartResourceScanCommand,
|
|
3683
|
+
TagResourceCommand,
|
|
3684
|
+
ThrottlingException,
|
|
3685
|
+
UnprocessableEntityException,
|
|
3686
|
+
UntagResourceCommand,
|
|
3687
|
+
UpdateArchiveRuleCommand,
|
|
3688
|
+
UpdateFindingsCommand,
|
|
3689
|
+
ValidatePolicyCommand,
|
|
3690
|
+
ValidatePolicyFindingType,
|
|
3691
|
+
ValidatePolicyResourceType,
|
|
3692
|
+
ValidationException,
|
|
3693
|
+
ValidationExceptionReason,
|
|
3694
|
+
__Client,
|
|
3695
|
+
paginateGetFindingV2,
|
|
3696
|
+
paginateListAccessPreviewFindings,
|
|
3697
|
+
paginateListAccessPreviews,
|
|
3698
|
+
paginateListAnalyzedResources,
|
|
3699
|
+
paginateListAnalyzers,
|
|
3700
|
+
paginateListArchiveRules,
|
|
3701
|
+
paginateListFindings,
|
|
3702
|
+
paginateListFindingsV2,
|
|
3703
|
+
paginateListPolicyGenerations,
|
|
3704
|
+
paginateValidatePolicy
|
|
3705
|
+
});
|