@aws-sdk/client-accessanalyzer 3.185.0 → 3.188.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 (48) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/AccessAnalyzer.js +114 -121
  3. package/dist-es/AccessAnalyzerClient.js +22 -28
  4. package/dist-es/commands/ApplyArchiveRuleCommand.js +22 -29
  5. package/dist-es/commands/CancelPolicyGenerationCommand.js +21 -28
  6. package/dist-es/commands/CreateAccessPreviewCommand.js +21 -28
  7. package/dist-es/commands/CreateAnalyzerCommand.js +21 -28
  8. package/dist-es/commands/CreateArchiveRuleCommand.js +22 -29
  9. package/dist-es/commands/DeleteAnalyzerCommand.js +22 -29
  10. package/dist-es/commands/DeleteArchiveRuleCommand.js +22 -29
  11. package/dist-es/commands/GetAccessPreviewCommand.js +21 -28
  12. package/dist-es/commands/GetAnalyzedResourceCommand.js +21 -28
  13. package/dist-es/commands/GetAnalyzerCommand.js +21 -28
  14. package/dist-es/commands/GetArchiveRuleCommand.js +21 -28
  15. package/dist-es/commands/GetFindingCommand.js +21 -28
  16. package/dist-es/commands/GetGeneratedPolicyCommand.js +21 -28
  17. package/dist-es/commands/ListAccessPreviewFindingsCommand.js +21 -28
  18. package/dist-es/commands/ListAccessPreviewsCommand.js +21 -28
  19. package/dist-es/commands/ListAnalyzedResourcesCommand.js +21 -28
  20. package/dist-es/commands/ListAnalyzersCommand.js +21 -28
  21. package/dist-es/commands/ListArchiveRulesCommand.js +21 -28
  22. package/dist-es/commands/ListFindingsCommand.js +21 -28
  23. package/dist-es/commands/ListPolicyGenerationsCommand.js +21 -28
  24. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  25. package/dist-es/commands/StartPolicyGenerationCommand.js +21 -28
  26. package/dist-es/commands/StartResourceScanCommand.js +22 -29
  27. package/dist-es/commands/TagResourceCommand.js +21 -28
  28. package/dist-es/commands/UntagResourceCommand.js +21 -28
  29. package/dist-es/commands/UpdateArchiveRuleCommand.js +22 -29
  30. package/dist-es/commands/UpdateFindingsCommand.js +22 -29
  31. package/dist-es/commands/ValidatePolicyCommand.js +21 -28
  32. package/dist-es/endpoints.js +8 -8
  33. package/dist-es/models/AccessAnalyzerServiceException.js +5 -10
  34. package/dist-es/models/models_0.js +409 -220
  35. package/dist-es/pagination/ListAccessPreviewFindingsPaginator.js +25 -68
  36. package/dist-es/pagination/ListAccessPreviewsPaginator.js +25 -68
  37. package/dist-es/pagination/ListAnalyzedResourcesPaginator.js +25 -68
  38. package/dist-es/pagination/ListAnalyzersPaginator.js +25 -68
  39. package/dist-es/pagination/ListArchiveRulesPaginator.js +25 -68
  40. package/dist-es/pagination/ListFindingsPaginator.js +25 -68
  41. package/dist-es/pagination/ListPolicyGenerationsPaginator.js +25 -68
  42. package/dist-es/pagination/ValidatePolicyPaginator.js +25 -68
  43. package/dist-es/protocols/Aws_restJson1.js +2350 -3152
  44. package/dist-es/runtimeConfig.browser.js +26 -12
  45. package/dist-es/runtimeConfig.js +30 -12
  46. package/dist-es/runtimeConfig.native.js +8 -5
  47. package/dist-es/runtimeConfig.shared.js +8 -11
  48. package/package.json +33 -33
@@ -1,89 +1,88 @@
1
- import { __assign, __extends, __read } from "tslib";
2
1
  import { AccessAnalyzerServiceException as __BaseException } from "./AccessAnalyzerServiceException";
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;
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);
11
12
  }
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;
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;
25
26
  }
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;
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;
39
40
  }
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;
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;
53
54
  }
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;
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;
67
68
  }
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 = {
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 = {
78
80
  throttling: true,
79
81
  };
80
- Object.setPrototypeOf(_this, ThrottlingException.prototype);
81
- _this.retryAfterSeconds = opts.retryAfterSeconds;
82
- return _this;
82
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
83
+ this.retryAfterSeconds = opts.retryAfterSeconds;
83
84
  }
84
- return ThrottlingException;
85
- }(__BaseException));
86
- export { ThrottlingException };
85
+ }
87
86
  export var ValidationExceptionReason;
88
87
  (function (ValidationExceptionReason) {
89
88
  ValidationExceptionReason["CANNOT_PARSE"] = "cannotParse";
@@ -91,20 +90,20 @@ export var ValidationExceptionReason;
91
90
  ValidationExceptionReason["OTHER"] = "other";
92
91
  ValidationExceptionReason["UNKNOWN_OPERATION"] = "unknownOperation";
93
92
  })(ValidationExceptionReason || (ValidationExceptionReason = {}));
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;
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;
104
105
  }
105
- return ValidationException;
106
- }(__BaseException));
107
- export { ValidationException };
106
+ }
108
107
  export var KmsGrantOperation;
109
108
  (function (KmsGrantOperation) {
110
109
  KmsGrantOperation["CREATE_GRANT"] = "CreateGrant";
@@ -124,7 +123,7 @@ export var KmsGrantOperation;
124
123
  })(KmsGrantOperation || (KmsGrantOperation = {}));
125
124
  export var NetworkOriginConfiguration;
126
125
  (function (NetworkOriginConfiguration) {
127
- NetworkOriginConfiguration.visit = function (value, visitor) {
126
+ NetworkOriginConfiguration.visit = (value, visitor) => {
128
127
  if (value.vpcConfiguration !== undefined)
129
128
  return visitor.vpcConfiguration(value.vpcConfiguration);
130
129
  if (value.internetConfiguration !== undefined)
@@ -134,7 +133,7 @@ export var NetworkOriginConfiguration;
134
133
  })(NetworkOriginConfiguration || (NetworkOriginConfiguration = {}));
135
134
  export var AclGrantee;
136
135
  (function (AclGrantee) {
137
- AclGrantee.visit = function (value, visitor) {
136
+ AclGrantee.visit = (value, visitor) => {
138
137
  if (value.id !== undefined)
139
138
  return visitor.id(value.id);
140
139
  if (value.uri !== undefined)
@@ -152,7 +151,7 @@ export var AclPermission;
152
151
  })(AclPermission || (AclPermission = {}));
153
152
  export var Configuration;
154
153
  (function (Configuration) {
155
- Configuration.visit = function (value, visitor) {
154
+ Configuration.visit = (value, visitor) => {
156
155
  if (value.iamRole !== undefined)
157
156
  return visitor.iamRole(value.iamRole);
158
157
  if (value.kmsKey !== undefined)
@@ -233,7 +232,7 @@ export var ValidatePolicyFindingType;
233
232
  })(ValidatePolicyFindingType || (ValidatePolicyFindingType = {}));
234
233
  export var PathElement;
235
234
  (function (PathElement) {
236
- PathElement.visit = function (value, visitor) {
235
+ PathElement.visit = (value, visitor) => {
237
236
  if (value.index !== undefined)
238
237
  return visitor.index(value.index);
239
238
  if (value.key !== undefined)
@@ -245,69 +244,139 @@ export var PathElement;
245
244
  return visitor._(value.$unknown[0], value.$unknown[1]);
246
245
  };
247
246
  })(PathElement || (PathElement = {}));
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;
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) => {
279
335
  if (obj.vpcConfiguration !== undefined)
280
336
  return { vpcConfiguration: VpcConfigurationFilterSensitiveLog(obj.vpcConfiguration) };
281
337
  if (obj.internetConfiguration !== undefined)
282
338
  return { internetConfiguration: InternetConfigurationFilterSensitiveLog(obj.internetConfiguration) };
283
339
  if (obj.$unknown !== undefined)
284
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
340
+ return { [obj.$unknown[0]]: "UNKNOWN" };
285
341
  };
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;
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) => {
290
350
  if (obj.id !== undefined)
291
351
  return { id: obj.id };
292
352
  if (obj.uri !== undefined)
293
353
  return { uri: obj.uri };
294
354
  if (obj.$unknown !== undefined)
295
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
355
+ return { [obj.$unknown[0]]: "UNKNOWN" };
296
356
  };
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;
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) => {
311
380
  if (obj.iamRole !== undefined)
312
381
  return { iamRole: IamRoleConfigurationFilterSensitiveLog(obj.iamRole) };
313
382
  if (obj.kmsKey !== undefined)
@@ -319,76 +388,184 @@ export var ConfigurationFilterSensitiveLog = function (obj) {
319
388
  if (obj.sqsQueue !== undefined)
320
389
  return { sqsQueue: SqsQueueConfigurationFilterSensitiveLog(obj.sqsQueue) };
321
390
  if (obj.$unknown !== undefined)
322
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
391
+ return { [obj.$unknown[0]]: "UNKNOWN" };
323
392
  };
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;
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) => {
392
569
  if (obj.index !== undefined)
393
570
  return { index: obj.index };
394
571
  if (obj.key !== undefined)
@@ -398,10 +575,22 @@ export var PathElementFilterSensitiveLog = function (obj) {
398
575
  if (obj.value !== undefined)
399
576
  return { value: obj.value };
400
577
  if (obj.$unknown !== undefined)
401
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
578
+ return { [obj.$unknown[0]]: "UNKNOWN" };
402
579
  };
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)); };
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
+ });