@aws-sdk/client-accessanalyzer 3.183.0 → 3.185.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/AccessAnalyzer.js +121 -114
  4. package/dist-es/AccessAnalyzerClient.js +28 -22
  5. package/dist-es/commands/ApplyArchiveRuleCommand.js +29 -22
  6. package/dist-es/commands/CancelPolicyGenerationCommand.js +28 -21
  7. package/dist-es/commands/CreateAccessPreviewCommand.js +28 -21
  8. package/dist-es/commands/CreateAnalyzerCommand.js +28 -21
  9. package/dist-es/commands/CreateArchiveRuleCommand.js +29 -22
  10. package/dist-es/commands/DeleteAnalyzerCommand.js +29 -22
  11. package/dist-es/commands/DeleteArchiveRuleCommand.js +29 -22
  12. package/dist-es/commands/GetAccessPreviewCommand.js +28 -21
  13. package/dist-es/commands/GetAnalyzedResourceCommand.js +28 -21
  14. package/dist-es/commands/GetAnalyzerCommand.js +28 -21
  15. package/dist-es/commands/GetArchiveRuleCommand.js +28 -21
  16. package/dist-es/commands/GetFindingCommand.js +28 -21
  17. package/dist-es/commands/GetGeneratedPolicyCommand.js +28 -21
  18. package/dist-es/commands/ListAccessPreviewFindingsCommand.js +28 -21
  19. package/dist-es/commands/ListAccessPreviewsCommand.js +28 -21
  20. package/dist-es/commands/ListAnalyzedResourcesCommand.js +28 -21
  21. package/dist-es/commands/ListAnalyzersCommand.js +28 -21
  22. package/dist-es/commands/ListArchiveRulesCommand.js +28 -21
  23. package/dist-es/commands/ListFindingsCommand.js +28 -21
  24. package/dist-es/commands/ListPolicyGenerationsCommand.js +28 -21
  25. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  26. package/dist-es/commands/StartPolicyGenerationCommand.js +28 -21
  27. package/dist-es/commands/StartResourceScanCommand.js +29 -22
  28. package/dist-es/commands/TagResourceCommand.js +28 -21
  29. package/dist-es/commands/UntagResourceCommand.js +28 -21
  30. package/dist-es/commands/UpdateArchiveRuleCommand.js +29 -22
  31. package/dist-es/commands/UpdateFindingsCommand.js +29 -22
  32. package/dist-es/commands/ValidatePolicyCommand.js +28 -21
  33. package/dist-es/endpoints.js +8 -8
  34. package/dist-es/models/AccessAnalyzerServiceException.js +10 -5
  35. package/dist-es/models/models_0.js +220 -409
  36. package/dist-es/pagination/ListAccessPreviewFindingsPaginator.js +68 -25
  37. package/dist-es/pagination/ListAccessPreviewsPaginator.js +68 -25
  38. package/dist-es/pagination/ListAnalyzedResourcesPaginator.js +68 -25
  39. package/dist-es/pagination/ListAnalyzersPaginator.js +68 -25
  40. package/dist-es/pagination/ListArchiveRulesPaginator.js +68 -25
  41. package/dist-es/pagination/ListFindingsPaginator.js +68 -25
  42. package/dist-es/pagination/ListPolicyGenerationsPaginator.js +68 -25
  43. package/dist-es/pagination/ValidatePolicyPaginator.js +68 -25
  44. package/dist-es/protocols/Aws_restJson1.js +3152 -2350
  45. package/dist-es/runtimeConfig.browser.js +12 -26
  46. package/dist-es/runtimeConfig.js +12 -30
  47. package/dist-es/runtimeConfig.native.js +5 -8
  48. package/dist-es/runtimeConfig.shared.js +11 -8
  49. package/package.json +5 -5
@@ -1,88 +1,89 @@
1
+ import { __assign, __extends, __read } from "tslib";
1
2
  import { AccessAnalyzerServiceException as __BaseException } from "./AccessAnalyzerServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- constructor(opts) {
4
- super({
5
- name: "AccessDeniedException",
6
- $fault: "client",
7
- ...opts,
8
- });
9
- this.name = "AccessDeniedException";
10
- this.$fault = "client";
11
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
3
+ var AccessDeniedException = (function (_super) {
4
+ __extends(AccessDeniedException, _super);
5
+ function AccessDeniedException(opts) {
6
+ var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
7
+ _this.name = "AccessDeniedException";
8
+ _this.$fault = "client";
9
+ Object.setPrototypeOf(_this, AccessDeniedException.prototype);
10
+ return _this;
12
11
  }
13
- }
14
- export class ConflictException extends __BaseException {
15
- constructor(opts) {
16
- super({
17
- name: "ConflictException",
18
- $fault: "client",
19
- ...opts,
20
- });
21
- this.name = "ConflictException";
22
- this.$fault = "client";
23
- Object.setPrototypeOf(this, ConflictException.prototype);
24
- this.resourceId = opts.resourceId;
25
- this.resourceType = opts.resourceType;
12
+ return AccessDeniedException;
13
+ }(__BaseException));
14
+ export { AccessDeniedException };
15
+ var ConflictException = (function (_super) {
16
+ __extends(ConflictException, _super);
17
+ function ConflictException(opts) {
18
+ var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
19
+ _this.name = "ConflictException";
20
+ _this.$fault = "client";
21
+ Object.setPrototypeOf(_this, ConflictException.prototype);
22
+ _this.resourceId = opts.resourceId;
23
+ _this.resourceType = opts.resourceType;
24
+ return _this;
26
25
  }
27
- }
28
- export class InternalServerException extends __BaseException {
29
- constructor(opts) {
30
- super({
31
- name: "InternalServerException",
32
- $fault: "server",
33
- ...opts,
34
- });
35
- this.name = "InternalServerException";
36
- this.$fault = "server";
37
- this.$retryable = {};
38
- Object.setPrototypeOf(this, InternalServerException.prototype);
39
- this.retryAfterSeconds = opts.retryAfterSeconds;
26
+ return ConflictException;
27
+ }(__BaseException));
28
+ export { ConflictException };
29
+ var InternalServerException = (function (_super) {
30
+ __extends(InternalServerException, _super);
31
+ function InternalServerException(opts) {
32
+ var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
33
+ _this.name = "InternalServerException";
34
+ _this.$fault = "server";
35
+ _this.$retryable = {};
36
+ Object.setPrototypeOf(_this, InternalServerException.prototype);
37
+ _this.retryAfterSeconds = opts.retryAfterSeconds;
38
+ return _this;
40
39
  }
41
- }
42
- export class ResourceNotFoundException extends __BaseException {
43
- constructor(opts) {
44
- super({
45
- name: "ResourceNotFoundException",
46
- $fault: "client",
47
- ...opts,
48
- });
49
- this.name = "ResourceNotFoundException";
50
- this.$fault = "client";
51
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
52
- this.resourceId = opts.resourceId;
53
- this.resourceType = opts.resourceType;
40
+ return InternalServerException;
41
+ }(__BaseException));
42
+ export { InternalServerException };
43
+ var ResourceNotFoundException = (function (_super) {
44
+ __extends(ResourceNotFoundException, _super);
45
+ function ResourceNotFoundException(opts) {
46
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
47
+ _this.name = "ResourceNotFoundException";
48
+ _this.$fault = "client";
49
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
50
+ _this.resourceId = opts.resourceId;
51
+ _this.resourceType = opts.resourceType;
52
+ return _this;
54
53
  }
55
- }
56
- export class ServiceQuotaExceededException extends __BaseException {
57
- constructor(opts) {
58
- super({
59
- name: "ServiceQuotaExceededException",
60
- $fault: "client",
61
- ...opts,
62
- });
63
- this.name = "ServiceQuotaExceededException";
64
- this.$fault = "client";
65
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
66
- this.resourceId = opts.resourceId;
67
- this.resourceType = opts.resourceType;
54
+ return ResourceNotFoundException;
55
+ }(__BaseException));
56
+ export { ResourceNotFoundException };
57
+ var ServiceQuotaExceededException = (function (_super) {
58
+ __extends(ServiceQuotaExceededException, _super);
59
+ function ServiceQuotaExceededException(opts) {
60
+ var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
61
+ _this.name = "ServiceQuotaExceededException";
62
+ _this.$fault = "client";
63
+ Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
64
+ _this.resourceId = opts.resourceId;
65
+ _this.resourceType = opts.resourceType;
66
+ return _this;
68
67
  }
69
- }
70
- export class ThrottlingException extends __BaseException {
71
- constructor(opts) {
72
- super({
73
- name: "ThrottlingException",
74
- $fault: "client",
75
- ...opts,
76
- });
77
- this.name = "ThrottlingException";
78
- this.$fault = "client";
79
- this.$retryable = {
68
+ return ServiceQuotaExceededException;
69
+ }(__BaseException));
70
+ export { ServiceQuotaExceededException };
71
+ var ThrottlingException = (function (_super) {
72
+ __extends(ThrottlingException, _super);
73
+ function ThrottlingException(opts) {
74
+ var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
75
+ _this.name = "ThrottlingException";
76
+ _this.$fault = "client";
77
+ _this.$retryable = {
80
78
  throttling: true,
81
79
  };
82
- Object.setPrototypeOf(this, ThrottlingException.prototype);
83
- this.retryAfterSeconds = opts.retryAfterSeconds;
80
+ Object.setPrototypeOf(_this, ThrottlingException.prototype);
81
+ _this.retryAfterSeconds = opts.retryAfterSeconds;
82
+ return _this;
84
83
  }
85
- }
84
+ return ThrottlingException;
85
+ }(__BaseException));
86
+ export { ThrottlingException };
86
87
  export var ValidationExceptionReason;
87
88
  (function (ValidationExceptionReason) {
88
89
  ValidationExceptionReason["CANNOT_PARSE"] = "cannotParse";
@@ -90,20 +91,20 @@ export var ValidationExceptionReason;
90
91
  ValidationExceptionReason["OTHER"] = "other";
91
92
  ValidationExceptionReason["UNKNOWN_OPERATION"] = "unknownOperation";
92
93
  })(ValidationExceptionReason || (ValidationExceptionReason = {}));
93
- export class ValidationException extends __BaseException {
94
- constructor(opts) {
95
- super({
96
- name: "ValidationException",
97
- $fault: "client",
98
- ...opts,
99
- });
100
- this.name = "ValidationException";
101
- this.$fault = "client";
102
- Object.setPrototypeOf(this, ValidationException.prototype);
103
- this.reason = opts.reason;
104
- this.fieldList = opts.fieldList;
94
+ var ValidationException = (function (_super) {
95
+ __extends(ValidationException, _super);
96
+ function ValidationException(opts) {
97
+ var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
98
+ _this.name = "ValidationException";
99
+ _this.$fault = "client";
100
+ Object.setPrototypeOf(_this, ValidationException.prototype);
101
+ _this.reason = opts.reason;
102
+ _this.fieldList = opts.fieldList;
103
+ return _this;
105
104
  }
106
- }
105
+ return ValidationException;
106
+ }(__BaseException));
107
+ export { ValidationException };
107
108
  export var KmsGrantOperation;
108
109
  (function (KmsGrantOperation) {
109
110
  KmsGrantOperation["CREATE_GRANT"] = "CreateGrant";
@@ -123,7 +124,7 @@ export var KmsGrantOperation;
123
124
  })(KmsGrantOperation || (KmsGrantOperation = {}));
124
125
  export var NetworkOriginConfiguration;
125
126
  (function (NetworkOriginConfiguration) {
126
- NetworkOriginConfiguration.visit = (value, visitor) => {
127
+ NetworkOriginConfiguration.visit = function (value, visitor) {
127
128
  if (value.vpcConfiguration !== undefined)
128
129
  return visitor.vpcConfiguration(value.vpcConfiguration);
129
130
  if (value.internetConfiguration !== undefined)
@@ -133,7 +134,7 @@ export var NetworkOriginConfiguration;
133
134
  })(NetworkOriginConfiguration || (NetworkOriginConfiguration = {}));
134
135
  export var AclGrantee;
135
136
  (function (AclGrantee) {
136
- AclGrantee.visit = (value, visitor) => {
137
+ AclGrantee.visit = function (value, visitor) {
137
138
  if (value.id !== undefined)
138
139
  return visitor.id(value.id);
139
140
  if (value.uri !== undefined)
@@ -151,7 +152,7 @@ export var AclPermission;
151
152
  })(AclPermission || (AclPermission = {}));
152
153
  export var Configuration;
153
154
  (function (Configuration) {
154
- Configuration.visit = (value, visitor) => {
155
+ Configuration.visit = function (value, visitor) {
155
156
  if (value.iamRole !== undefined)
156
157
  return visitor.iamRole(value.iamRole);
157
158
  if (value.kmsKey !== undefined)
@@ -232,7 +233,7 @@ export var ValidatePolicyFindingType;
232
233
  })(ValidatePolicyFindingType || (ValidatePolicyFindingType = {}));
233
234
  export var PathElement;
234
235
  (function (PathElement) {
235
- PathElement.visit = (value, visitor) => {
236
+ PathElement.visit = function (value, visitor) {
236
237
  if (value.index !== undefined)
237
238
  return visitor.index(value.index);
238
239
  if (value.key !== undefined)
@@ -244,139 +245,69 @@ export var PathElement;
244
245
  return visitor._(value.$unknown[0], value.$unknown[1]);
245
246
  };
246
247
  })(PathElement || (PathElement = {}));
247
- export const CriterionFilterSensitiveLog = (obj) => ({
248
- ...obj,
249
- });
250
- export const CreateArchiveRuleRequestFilterSensitiveLog = (obj) => ({
251
- ...obj,
252
- });
253
- export const ValidationExceptionFieldFilterSensitiveLog = (obj) => ({
254
- ...obj,
255
- });
256
- export const DeleteArchiveRuleRequestFilterSensitiveLog = (obj) => ({
257
- ...obj,
258
- });
259
- export const GetArchiveRuleRequestFilterSensitiveLog = (obj) => ({
260
- ...obj,
261
- });
262
- export const ArchiveRuleSummaryFilterSensitiveLog = (obj) => ({
263
- ...obj,
264
- });
265
- export const GetArchiveRuleResponseFilterSensitiveLog = (obj) => ({
266
- ...obj,
267
- });
268
- export const ListArchiveRulesRequestFilterSensitiveLog = (obj) => ({
269
- ...obj,
270
- });
271
- export const ListArchiveRulesResponseFilterSensitiveLog = (obj) => ({
272
- ...obj,
273
- });
274
- export const UpdateArchiveRuleRequestFilterSensitiveLog = (obj) => ({
275
- ...obj,
276
- });
277
- export const InlineArchiveRuleFilterSensitiveLog = (obj) => ({
278
- ...obj,
279
- });
280
- export const CreateAnalyzerRequestFilterSensitiveLog = (obj) => ({
281
- ...obj,
282
- });
283
- export const CreateAnalyzerResponseFilterSensitiveLog = (obj) => ({
284
- ...obj,
285
- });
286
- export const DeleteAnalyzerRequestFilterSensitiveLog = (obj) => ({
287
- ...obj,
288
- });
289
- export const GetAnalyzerRequestFilterSensitiveLog = (obj) => ({
290
- ...obj,
291
- });
292
- export const StatusReasonFilterSensitiveLog = (obj) => ({
293
- ...obj,
294
- });
295
- export const AnalyzerSummaryFilterSensitiveLog = (obj) => ({
296
- ...obj,
297
- });
298
- export const GetAnalyzerResponseFilterSensitiveLog = (obj) => ({
299
- ...obj,
300
- });
301
- export const ListAnalyzersRequestFilterSensitiveLog = (obj) => ({
302
- ...obj,
303
- });
304
- export const ListAnalyzersResponseFilterSensitiveLog = (obj) => ({
305
- ...obj,
306
- });
307
- export const ApplyArchiveRuleRequestFilterSensitiveLog = (obj) => ({
308
- ...obj,
309
- });
310
- export const CancelPolicyGenerationRequestFilterSensitiveLog = (obj) => ({
311
- ...obj,
312
- });
313
- export const CancelPolicyGenerationResponseFilterSensitiveLog = (obj) => ({
314
- ...obj,
315
- });
316
- export const IamRoleConfigurationFilterSensitiveLog = (obj) => ({
317
- ...obj,
318
- });
319
- export const KmsGrantConstraintsFilterSensitiveLog = (obj) => ({
320
- ...obj,
321
- });
322
- export const KmsGrantConfigurationFilterSensitiveLog = (obj) => ({
323
- ...obj,
324
- });
325
- export const KmsKeyConfigurationFilterSensitiveLog = (obj) => ({
326
- ...obj,
327
- });
328
- export const InternetConfigurationFilterSensitiveLog = (obj) => ({
329
- ...obj,
330
- });
331
- export const VpcConfigurationFilterSensitiveLog = (obj) => ({
332
- ...obj,
333
- });
334
- export const NetworkOriginConfigurationFilterSensitiveLog = (obj) => {
248
+ export var CriterionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
249
+ export var CreateArchiveRuleRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
250
+ export var ValidationExceptionFieldFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
251
+ export var DeleteArchiveRuleRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
252
+ export var GetArchiveRuleRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
253
+ export var ArchiveRuleSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
254
+ export var GetArchiveRuleResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
255
+ export var ListArchiveRulesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
256
+ export var ListArchiveRulesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
257
+ export var UpdateArchiveRuleRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
258
+ export var InlineArchiveRuleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
259
+ export var CreateAnalyzerRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
260
+ export var CreateAnalyzerResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
261
+ export var DeleteAnalyzerRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
262
+ export var GetAnalyzerRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
263
+ export var StatusReasonFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
264
+ export var AnalyzerSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
265
+ export var GetAnalyzerResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
266
+ export var ListAnalyzersRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
267
+ export var ListAnalyzersResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
268
+ export var ApplyArchiveRuleRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
269
+ export var CancelPolicyGenerationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
270
+ export var CancelPolicyGenerationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
271
+ export var IamRoleConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
272
+ export var KmsGrantConstraintsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
273
+ export var KmsGrantConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
274
+ export var KmsKeyConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
275
+ export var InternetConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
276
+ export var VpcConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
277
+ export var NetworkOriginConfigurationFilterSensitiveLog = function (obj) {
278
+ var _a;
335
279
  if (obj.vpcConfiguration !== undefined)
336
280
  return { vpcConfiguration: VpcConfigurationFilterSensitiveLog(obj.vpcConfiguration) };
337
281
  if (obj.internetConfiguration !== undefined)
338
282
  return { internetConfiguration: InternetConfigurationFilterSensitiveLog(obj.internetConfiguration) };
339
283
  if (obj.$unknown !== undefined)
340
- return { [obj.$unknown[0]]: "UNKNOWN" };
284
+ return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
341
285
  };
342
- export const S3PublicAccessBlockConfigurationFilterSensitiveLog = (obj) => ({
343
- ...obj,
344
- });
345
- export const S3AccessPointConfigurationFilterSensitiveLog = (obj) => ({
346
- ...obj,
347
- ...(obj.networkOrigin && { networkOrigin: NetworkOriginConfigurationFilterSensitiveLog(obj.networkOrigin) }),
348
- });
349
- export const AclGranteeFilterSensitiveLog = (obj) => {
286
+ export var S3PublicAccessBlockConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
287
+ export var S3AccessPointConfigurationFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.networkOrigin && { networkOrigin: NetworkOriginConfigurationFilterSensitiveLog(obj.networkOrigin) }))); };
288
+ export var AclGranteeFilterSensitiveLog = function (obj) {
289
+ var _a;
350
290
  if (obj.id !== undefined)
351
291
  return { id: obj.id };
352
292
  if (obj.uri !== undefined)
353
293
  return { uri: obj.uri };
354
294
  if (obj.$unknown !== undefined)
355
- return { [obj.$unknown[0]]: "UNKNOWN" };
295
+ return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
356
296
  };
357
- export const S3BucketAclGrantConfigurationFilterSensitiveLog = (obj) => ({
358
- ...obj,
359
- ...(obj.grantee && { grantee: AclGranteeFilterSensitiveLog(obj.grantee) }),
360
- });
361
- export const S3BucketConfigurationFilterSensitiveLog = (obj) => ({
362
- ...obj,
363
- ...(obj.bucketAclGrants && {
364
- bucketAclGrants: obj.bucketAclGrants.map((item) => S3BucketAclGrantConfigurationFilterSensitiveLog(item)),
365
- }),
366
- ...(obj.accessPoints && {
367
- accessPoints: Object.entries(obj.accessPoints).reduce((acc, [key, value]) => ({
368
- ...acc,
369
- [key]: S3AccessPointConfigurationFilterSensitiveLog(value),
370
- }), {}),
371
- }),
372
- });
373
- export const SecretsManagerSecretConfigurationFilterSensitiveLog = (obj) => ({
374
- ...obj,
375
- });
376
- export const SqsQueueConfigurationFilterSensitiveLog = (obj) => ({
377
- ...obj,
378
- });
379
- export const ConfigurationFilterSensitiveLog = (obj) => {
297
+ export var S3BucketAclGrantConfigurationFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.grantee && { grantee: AclGranteeFilterSensitiveLog(obj.grantee) }))); };
298
+ export var S3BucketConfigurationFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.bucketAclGrants && {
299
+ bucketAclGrants: obj.bucketAclGrants.map(function (item) { return S3BucketAclGrantConfigurationFilterSensitiveLog(item); }),
300
+ })), (obj.accessPoints && {
301
+ accessPoints: Object.entries(obj.accessPoints).reduce(function (acc, _a) {
302
+ var _b;
303
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
304
+ return (__assign(__assign({}, acc), (_b = {}, _b[key] = S3AccessPointConfigurationFilterSensitiveLog(value), _b)));
305
+ }, {}),
306
+ }))); };
307
+ export var SecretsManagerSecretConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
308
+ export var SqsQueueConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
309
+ export var ConfigurationFilterSensitiveLog = function (obj) {
310
+ var _a;
380
311
  if (obj.iamRole !== undefined)
381
312
  return { iamRole: IamRoleConfigurationFilterSensitiveLog(obj.iamRole) };
382
313
  if (obj.kmsKey !== undefined)
@@ -388,184 +319,76 @@ export const ConfigurationFilterSensitiveLog = (obj) => {
388
319
  if (obj.sqsQueue !== undefined)
389
320
  return { sqsQueue: SqsQueueConfigurationFilterSensitiveLog(obj.sqsQueue) };
390
321
  if (obj.$unknown !== undefined)
391
- return { [obj.$unknown[0]]: "UNKNOWN" };
322
+ return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
392
323
  };
393
- export const CreateAccessPreviewRequestFilterSensitiveLog = (obj) => ({
394
- ...obj,
395
- ...(obj.configurations && {
396
- configurations: Object.entries(obj.configurations).reduce((acc, [key, value]) => ({
397
- ...acc,
398
- [key]: ConfigurationFilterSensitiveLog(value),
399
- }), {}),
400
- }),
401
- });
402
- export const CreateAccessPreviewResponseFilterSensitiveLog = (obj) => ({
403
- ...obj,
404
- });
405
- export const GetAccessPreviewRequestFilterSensitiveLog = (obj) => ({
406
- ...obj,
407
- });
408
- export const AccessPreviewStatusReasonFilterSensitiveLog = (obj) => ({
409
- ...obj,
410
- });
411
- export const AccessPreviewFilterSensitiveLog = (obj) => ({
412
- ...obj,
413
- ...(obj.configurations && {
414
- configurations: Object.entries(obj.configurations).reduce((acc, [key, value]) => ({
415
- ...acc,
416
- [key]: ConfigurationFilterSensitiveLog(value),
417
- }), {}),
418
- }),
419
- });
420
- export const GetAccessPreviewResponseFilterSensitiveLog = (obj) => ({
421
- ...obj,
422
- ...(obj.accessPreview && { accessPreview: AccessPreviewFilterSensitiveLog(obj.accessPreview) }),
423
- });
424
- export const GetAnalyzedResourceRequestFilterSensitiveLog = (obj) => ({
425
- ...obj,
426
- });
427
- export const AnalyzedResourceFilterSensitiveLog = (obj) => ({
428
- ...obj,
429
- });
430
- export const GetAnalyzedResourceResponseFilterSensitiveLog = (obj) => ({
431
- ...obj,
432
- });
433
- export const GetFindingRequestFilterSensitiveLog = (obj) => ({
434
- ...obj,
435
- });
436
- export const FindingSourceDetailFilterSensitiveLog = (obj) => ({
437
- ...obj,
438
- });
439
- export const FindingSourceFilterSensitiveLog = (obj) => ({
440
- ...obj,
441
- });
442
- export const FindingFilterSensitiveLog = (obj) => ({
443
- ...obj,
444
- });
445
- export const GetFindingResponseFilterSensitiveLog = (obj) => ({
446
- ...obj,
447
- });
448
- export const GetGeneratedPolicyRequestFilterSensitiveLog = (obj) => ({
449
- ...obj,
450
- });
451
- export const GeneratedPolicyFilterSensitiveLog = (obj) => ({
452
- ...obj,
453
- });
454
- export const TrailPropertiesFilterSensitiveLog = (obj) => ({
455
- ...obj,
456
- });
457
- export const CloudTrailPropertiesFilterSensitiveLog = (obj) => ({
458
- ...obj,
459
- });
460
- export const GeneratedPolicyPropertiesFilterSensitiveLog = (obj) => ({
461
- ...obj,
462
- });
463
- export const GeneratedPolicyResultFilterSensitiveLog = (obj) => ({
464
- ...obj,
465
- });
466
- export const JobErrorFilterSensitiveLog = (obj) => ({
467
- ...obj,
468
- });
469
- export const JobDetailsFilterSensitiveLog = (obj) => ({
470
- ...obj,
471
- });
472
- export const GetGeneratedPolicyResponseFilterSensitiveLog = (obj) => ({
473
- ...obj,
474
- });
475
- export const ListAccessPreviewFindingsRequestFilterSensitiveLog = (obj) => ({
476
- ...obj,
477
- });
478
- export const AccessPreviewFindingFilterSensitiveLog = (obj) => ({
479
- ...obj,
480
- });
481
- export const ListAccessPreviewFindingsResponseFilterSensitiveLog = (obj) => ({
482
- ...obj,
483
- });
484
- export const ListAccessPreviewsRequestFilterSensitiveLog = (obj) => ({
485
- ...obj,
486
- });
487
- export const AccessPreviewSummaryFilterSensitiveLog = (obj) => ({
488
- ...obj,
489
- });
490
- export const ListAccessPreviewsResponseFilterSensitiveLog = (obj) => ({
491
- ...obj,
492
- });
493
- export const ListAnalyzedResourcesRequestFilterSensitiveLog = (obj) => ({
494
- ...obj,
495
- });
496
- export const AnalyzedResourceSummaryFilterSensitiveLog = (obj) => ({
497
- ...obj,
498
- });
499
- export const ListAnalyzedResourcesResponseFilterSensitiveLog = (obj) => ({
500
- ...obj,
501
- });
502
- export const SortCriteriaFilterSensitiveLog = (obj) => ({
503
- ...obj,
504
- });
505
- export const ListFindingsRequestFilterSensitiveLog = (obj) => ({
506
- ...obj,
507
- });
508
- export const FindingSummaryFilterSensitiveLog = (obj) => ({
509
- ...obj,
510
- });
511
- export const ListFindingsResponseFilterSensitiveLog = (obj) => ({
512
- ...obj,
513
- });
514
- export const ListPolicyGenerationsRequestFilterSensitiveLog = (obj) => ({
515
- ...obj,
516
- });
517
- export const PolicyGenerationFilterSensitiveLog = (obj) => ({
518
- ...obj,
519
- });
520
- export const ListPolicyGenerationsResponseFilterSensitiveLog = (obj) => ({
521
- ...obj,
522
- });
523
- export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
524
- ...obj,
525
- });
526
- export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
527
- ...obj,
528
- });
529
- export const TrailFilterSensitiveLog = (obj) => ({
530
- ...obj,
531
- });
532
- export const CloudTrailDetailsFilterSensitiveLog = (obj) => ({
533
- ...obj,
534
- });
535
- export const PolicyGenerationDetailsFilterSensitiveLog = (obj) => ({
536
- ...obj,
537
- });
538
- export const StartPolicyGenerationRequestFilterSensitiveLog = (obj) => ({
539
- ...obj,
540
- });
541
- export const StartPolicyGenerationResponseFilterSensitiveLog = (obj) => ({
542
- ...obj,
543
- });
544
- export const StartResourceScanRequestFilterSensitiveLog = (obj) => ({
545
- ...obj,
546
- });
547
- export const TagResourceRequestFilterSensitiveLog = (obj) => ({
548
- ...obj,
549
- });
550
- export const TagResourceResponseFilterSensitiveLog = (obj) => ({
551
- ...obj,
552
- });
553
- export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
554
- ...obj,
555
- });
556
- export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
557
- ...obj,
558
- });
559
- export const UpdateFindingsRequestFilterSensitiveLog = (obj) => ({
560
- ...obj,
561
- });
562
- export const ValidatePolicyRequestFilterSensitiveLog = (obj) => ({
563
- ...obj,
564
- });
565
- export const SubstringFilterSensitiveLog = (obj) => ({
566
- ...obj,
567
- });
568
- export const PathElementFilterSensitiveLog = (obj) => {
324
+ export var CreateAccessPreviewRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.configurations && {
325
+ configurations: Object.entries(obj.configurations).reduce(function (acc, _a) {
326
+ var _b;
327
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
328
+ return (__assign(__assign({}, acc), (_b = {}, _b[key] = ConfigurationFilterSensitiveLog(value), _b)));
329
+ }, {}),
330
+ }))); };
331
+ export var CreateAccessPreviewResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
332
+ export var GetAccessPreviewRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
333
+ export var AccessPreviewStatusReasonFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
334
+ export var AccessPreviewFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.configurations && {
335
+ configurations: Object.entries(obj.configurations).reduce(function (acc, _a) {
336
+ var _b;
337
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
338
+ return (__assign(__assign({}, acc), (_b = {}, _b[key] = ConfigurationFilterSensitiveLog(value), _b)));
339
+ }, {}),
340
+ }))); };
341
+ export var GetAccessPreviewResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessPreview && { accessPreview: AccessPreviewFilterSensitiveLog(obj.accessPreview) }))); };
342
+ export var GetAnalyzedResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
343
+ export var AnalyzedResourceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
344
+ export var GetAnalyzedResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
345
+ export var GetFindingRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
346
+ export var FindingSourceDetailFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
347
+ export var FindingSourceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
348
+ export var FindingFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
349
+ export var GetFindingResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
350
+ export var GetGeneratedPolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
351
+ export var GeneratedPolicyFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
352
+ export var TrailPropertiesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
353
+ export var CloudTrailPropertiesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
354
+ export var GeneratedPolicyPropertiesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
355
+ export var GeneratedPolicyResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
356
+ export var JobErrorFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
357
+ export var JobDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
358
+ export var GetGeneratedPolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
359
+ export var ListAccessPreviewFindingsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
360
+ export var AccessPreviewFindingFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
361
+ export var ListAccessPreviewFindingsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
362
+ export var ListAccessPreviewsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
363
+ export var AccessPreviewSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
364
+ export var ListAccessPreviewsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
365
+ export var ListAnalyzedResourcesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
366
+ export var AnalyzedResourceSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
367
+ export var ListAnalyzedResourcesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
368
+ export var SortCriteriaFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
369
+ export var ListFindingsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
370
+ export var FindingSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
371
+ export var ListFindingsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
372
+ export var ListPolicyGenerationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
373
+ export var PolicyGenerationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
374
+ export var ListPolicyGenerationsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
375
+ export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
376
+ export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
377
+ export var TrailFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
378
+ export var CloudTrailDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
379
+ export var PolicyGenerationDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
380
+ export var StartPolicyGenerationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
381
+ export var StartPolicyGenerationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
382
+ export var StartResourceScanRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
383
+ export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
384
+ export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
385
+ export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
386
+ export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
387
+ export var UpdateFindingsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
388
+ export var ValidatePolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
389
+ export var SubstringFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
390
+ export var PathElementFilterSensitiveLog = function (obj) {
391
+ var _a;
569
392
  if (obj.index !== undefined)
570
393
  return { index: obj.index };
571
394
  if (obj.key !== undefined)
@@ -575,22 +398,10 @@ export const PathElementFilterSensitiveLog = (obj) => {
575
398
  if (obj.value !== undefined)
576
399
  return { value: obj.value };
577
400
  if (obj.$unknown !== undefined)
578
- return { [obj.$unknown[0]]: "UNKNOWN" };
401
+ return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
579
402
  };
580
- export const PositionFilterSensitiveLog = (obj) => ({
581
- ...obj,
582
- });
583
- export const SpanFilterSensitiveLog = (obj) => ({
584
- ...obj,
585
- });
586
- export const LocationFilterSensitiveLog = (obj) => ({
587
- ...obj,
588
- ...(obj.path && { path: obj.path.map((item) => PathElementFilterSensitiveLog(item)) }),
589
- });
590
- export const ValidatePolicyFindingFilterSensitiveLog = (obj) => ({
591
- ...obj,
592
- ...(obj.locations && { locations: obj.locations.map((item) => LocationFilterSensitiveLog(item)) }),
593
- });
594
- export const ValidatePolicyResponseFilterSensitiveLog = (obj) => ({
595
- ...obj,
596
- });
403
+ export var PositionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
404
+ export var SpanFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
405
+ export var LocationFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.path && { path: obj.path.map(function (item) { return PathElementFilterSensitiveLog(item); }) }))); };
406
+ export var ValidatePolicyFindingFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.locations && { locations: obj.locations.map(function (item) { return LocationFilterSensitiveLog(item); }) }))); };
407
+ export var ValidatePolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };