@aws-sdk/client-accessanalyzer 3.933.0 → 3.935.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/index.js +0 -197
- package/dist-es/index.js +1 -1
- package/dist-es/models/errors.js +134 -0
- package/dist-es/models/models_0.js +0 -134
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +2 -1
- package/dist-types/models/errors.d.ts +166 -0
- package/dist-types/models/models_0.d.ts +0 -165
- package/dist-types/ts3.4/index.d.ts +2 -1
- package/dist-types/ts3.4/models/errors.d.ts +82 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -78
- package/package.json +12 -12
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -209,13 +209,6 @@ let ThrottlingException$1 = class ThrottlingException extends AccessAnalyzerServ
|
|
|
209
209
|
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
210
210
|
}
|
|
211
211
|
};
|
|
212
|
-
const ValidationExceptionReason = {
|
|
213
|
-
CANNOT_PARSE: "cannotParse",
|
|
214
|
-
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
215
|
-
NOT_SUPPORTED: "notSupported",
|
|
216
|
-
OTHER: "other",
|
|
217
|
-
UNKNOWN_OPERATION: "unknownOperation",
|
|
218
|
-
};
|
|
219
212
|
let ValidationException$1 = class ValidationException extends AccessAnalyzerServiceException$1 {
|
|
220
213
|
name = "ValidationException";
|
|
221
214
|
$fault = "client";
|
|
@@ -232,14 +225,6 @@ let ValidationException$1 = class ValidationException extends AccessAnalyzerServ
|
|
|
232
225
|
this.fieldList = opts.fieldList;
|
|
233
226
|
}
|
|
234
227
|
};
|
|
235
|
-
const AccessCheckPolicyType = {
|
|
236
|
-
IDENTITY_POLICY: "IDENTITY_POLICY",
|
|
237
|
-
RESOURCE_POLICY: "RESOURCE_POLICY",
|
|
238
|
-
};
|
|
239
|
-
const CheckAccessNotGrantedResult = {
|
|
240
|
-
FAIL: "FAIL",
|
|
241
|
-
PASS: "PASS",
|
|
242
|
-
};
|
|
243
228
|
let InvalidParameterException$1 = class InvalidParameterException extends AccessAnalyzerServiceException$1 {
|
|
244
229
|
name = "InvalidParameterException";
|
|
245
230
|
$fault = "client";
|
|
@@ -265,163 +250,6 @@ let UnprocessableEntityException$1 = class UnprocessableEntityException extends
|
|
|
265
250
|
Object.setPrototypeOf(this, UnprocessableEntityException.prototype);
|
|
266
251
|
}
|
|
267
252
|
};
|
|
268
|
-
const CheckNoNewAccessResult = {
|
|
269
|
-
FAIL: "FAIL",
|
|
270
|
-
PASS: "PASS",
|
|
271
|
-
};
|
|
272
|
-
const AccessCheckResourceType = {
|
|
273
|
-
API_GATEWAY_REST_API: "AWS::ApiGateway::RestApi",
|
|
274
|
-
BACKUP_VAULT: "AWS::Backup::BackupVault",
|
|
275
|
-
CLOUDTRAIL_DASHBOARD: "AWS::CloudTrail::Dashboard",
|
|
276
|
-
CLOUDTRAIL_EVENT_DATA_STORE: "AWS::CloudTrail::EventDataStore",
|
|
277
|
-
CODE_ARTIFACT_DOMAIN: "AWS::CodeArtifact::Domain",
|
|
278
|
-
DYNAMODB_STREAM: "AWS::DynamoDB::Stream",
|
|
279
|
-
DYNAMODB_TABLE: "AWS::DynamoDB::Table",
|
|
280
|
-
EFS_FILESYSTEM: "AWS::EFS::FileSystem",
|
|
281
|
-
KINESIS_DATA_STREAM: "AWS::Kinesis::Stream",
|
|
282
|
-
KINESIS_STREAM_CONSUMER: "AWS::Kinesis::StreamConsumer",
|
|
283
|
-
KMS_KEY: "AWS::KMS::Key",
|
|
284
|
-
LAMBDA_FUNCTION: "AWS::Lambda::Function",
|
|
285
|
-
OPENSEARCHSERVICE_DOMAIN: "AWS::OpenSearchService::Domain",
|
|
286
|
-
ROLE_TRUST: "AWS::IAM::AssumeRolePolicyDocument",
|
|
287
|
-
S3EXPRESS_DIRECTORYBUCKET: "AWS::S3Express::DirectoryBucket",
|
|
288
|
-
S3_ACCESS_POINT: "AWS::S3::AccessPoint",
|
|
289
|
-
S3_BUCKET: "AWS::S3::Bucket",
|
|
290
|
-
S3_EXPRESS_ACCESS_POINT: "AWS::S3Express::AccessPoint",
|
|
291
|
-
S3_GLACIER: "AWS::S3::Glacier",
|
|
292
|
-
S3_OUTPOSTS_ACCESS_POINT: "AWS::S3Outposts::AccessPoint",
|
|
293
|
-
S3_OUTPOSTS_BUCKET: "AWS::S3Outposts::Bucket",
|
|
294
|
-
S3_TABLE: "AWS::S3Tables::Table",
|
|
295
|
-
S3_TABLE_BUCKET: "AWS::S3Tables::TableBucket",
|
|
296
|
-
SECRETSMANAGER_SECRET: "AWS::SecretsManager::Secret",
|
|
297
|
-
SNS_TOPIC: "AWS::SNS::Topic",
|
|
298
|
-
SQS_QUEUE: "AWS::SQS::Queue",
|
|
299
|
-
};
|
|
300
|
-
const CheckNoPublicAccessResult = {
|
|
301
|
-
FAIL: "FAIL",
|
|
302
|
-
PASS: "PASS",
|
|
303
|
-
};
|
|
304
|
-
const KmsGrantOperation = {
|
|
305
|
-
CREATE_GRANT: "CreateGrant",
|
|
306
|
-
DECRYPT: "Decrypt",
|
|
307
|
-
DESCRIBE_KEY: "DescribeKey",
|
|
308
|
-
ENCRYPT: "Encrypt",
|
|
309
|
-
GENERATE_DATA_KEY: "GenerateDataKey",
|
|
310
|
-
GENERATE_DATA_KEY_PAIR: "GenerateDataKeyPair",
|
|
311
|
-
GENERATE_DATA_KEY_PAIR_WITHOUT_PLAINTEXT: "GenerateDataKeyPairWithoutPlaintext",
|
|
312
|
-
GENERATE_DATA_KEY_WITHOUT_PLAINTEXT: "GenerateDataKeyWithoutPlaintext",
|
|
313
|
-
GET_PUBLIC_KEY: "GetPublicKey",
|
|
314
|
-
REENCRYPT_FROM: "ReEncryptFrom",
|
|
315
|
-
REENCRYPT_TO: "ReEncryptTo",
|
|
316
|
-
RETIRE_GRANT: "RetireGrant",
|
|
317
|
-
SIGN: "Sign",
|
|
318
|
-
VERIFY: "Verify",
|
|
319
|
-
};
|
|
320
|
-
const AclPermission = {
|
|
321
|
-
FULL_CONTROL: "FULL_CONTROL",
|
|
322
|
-
READ: "READ",
|
|
323
|
-
READ_ACP: "READ_ACP",
|
|
324
|
-
WRITE: "WRITE",
|
|
325
|
-
WRITE_ACP: "WRITE_ACP",
|
|
326
|
-
};
|
|
327
|
-
const AccessPreviewStatus = {
|
|
328
|
-
COMPLETED: "COMPLETED",
|
|
329
|
-
CREATING: "CREATING",
|
|
330
|
-
FAILED: "FAILED",
|
|
331
|
-
};
|
|
332
|
-
const AccessPreviewStatusReasonCode = {
|
|
333
|
-
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
334
|
-
INVALID_CONFIGURATION: "INVALID_CONFIGURATION",
|
|
335
|
-
};
|
|
336
|
-
const ResourceControlPolicyRestriction = {
|
|
337
|
-
APPLICABLE: "APPLICABLE",
|
|
338
|
-
APPLIED: "APPLIED",
|
|
339
|
-
FAILED_TO_EVALUATE_RCP: "FAILED_TO_EVALUATE_RCP",
|
|
340
|
-
NOT_APPLICABLE: "NOT_APPLICABLE",
|
|
341
|
-
};
|
|
342
|
-
const RecommendationType = {
|
|
343
|
-
UNUSED_PERMISSION_RECOMMENDATION: "UnusedPermissionRecommendation",
|
|
344
|
-
};
|
|
345
|
-
const RecommendedRemediationAction = {
|
|
346
|
-
CREATE_POLICY: "CREATE_POLICY",
|
|
347
|
-
DETACH_POLICY: "DETACH_POLICY",
|
|
348
|
-
};
|
|
349
|
-
const Status = {
|
|
350
|
-
FAILED: "FAILED",
|
|
351
|
-
IN_PROGRESS: "IN_PROGRESS",
|
|
352
|
-
SUCCEEDED: "SUCCEEDED",
|
|
353
|
-
};
|
|
354
|
-
const InternalAccessType = {
|
|
355
|
-
INTRA_ACCOUNT: "INTRA_ACCOUNT",
|
|
356
|
-
INTRA_ORG: "INTRA_ORG",
|
|
357
|
-
};
|
|
358
|
-
const PrincipalType = {
|
|
359
|
-
IAM_ROLE: "IAM_ROLE",
|
|
360
|
-
IAM_USER: "IAM_USER",
|
|
361
|
-
};
|
|
362
|
-
const ServiceControlPolicyRestriction = {
|
|
363
|
-
APPLICABLE: "APPLICABLE",
|
|
364
|
-
APPLIED: "APPLIED",
|
|
365
|
-
FAILED_TO_EVALUATE_SCP: "FAILED_TO_EVALUATE_SCP",
|
|
366
|
-
NOT_APPLICABLE: "NOT_APPLICABLE",
|
|
367
|
-
};
|
|
368
|
-
const FindingType = {
|
|
369
|
-
EXTERNAL_ACCESS: "ExternalAccess",
|
|
370
|
-
INTERNAL_ACCESS: "InternalAccess",
|
|
371
|
-
UNUSED_IAM_ROLE: "UnusedIAMRole",
|
|
372
|
-
UNUSED_IAM_USER_ACCESS_KEY: "UnusedIAMUserAccessKey",
|
|
373
|
-
UNUSED_IAM_USER_PASSWORD: "UnusedIAMUserPassword",
|
|
374
|
-
UNUSED_PERMISSION: "UnusedPermission",
|
|
375
|
-
};
|
|
376
|
-
const JobErrorCode = {
|
|
377
|
-
AUTHORIZATION_ERROR: "AUTHORIZATION_ERROR",
|
|
378
|
-
RESOURCE_NOT_FOUND_ERROR: "RESOURCE_NOT_FOUND_ERROR",
|
|
379
|
-
SERVICE_ERROR: "SERVICE_ERROR",
|
|
380
|
-
SERVICE_QUOTA_EXCEEDED_ERROR: "SERVICE_QUOTA_EXCEEDED_ERROR",
|
|
381
|
-
};
|
|
382
|
-
const JobStatus = {
|
|
383
|
-
CANCELED: "CANCELED",
|
|
384
|
-
FAILED: "FAILED",
|
|
385
|
-
IN_PROGRESS: "IN_PROGRESS",
|
|
386
|
-
SUCCEEDED: "SUCCEEDED",
|
|
387
|
-
};
|
|
388
|
-
const FindingChangeType = {
|
|
389
|
-
CHANGED: "CHANGED",
|
|
390
|
-
NEW: "NEW",
|
|
391
|
-
UNCHANGED: "UNCHANGED",
|
|
392
|
-
};
|
|
393
|
-
const Locale = {
|
|
394
|
-
DE: "DE",
|
|
395
|
-
EN: "EN",
|
|
396
|
-
ES: "ES",
|
|
397
|
-
FR: "FR",
|
|
398
|
-
IT: "IT",
|
|
399
|
-
JA: "JA",
|
|
400
|
-
KO: "KO",
|
|
401
|
-
PT_BR: "PT_BR",
|
|
402
|
-
ZH_CN: "ZH_CN",
|
|
403
|
-
ZH_TW: "ZH_TW",
|
|
404
|
-
};
|
|
405
|
-
const PolicyType = {
|
|
406
|
-
IDENTITY_POLICY: "IDENTITY_POLICY",
|
|
407
|
-
RESOURCE_CONTROL_POLICY: "RESOURCE_CONTROL_POLICY",
|
|
408
|
-
RESOURCE_POLICY: "RESOURCE_POLICY",
|
|
409
|
-
SERVICE_CONTROL_POLICY: "SERVICE_CONTROL_POLICY",
|
|
410
|
-
};
|
|
411
|
-
const ValidatePolicyResourceType = {
|
|
412
|
-
DYNAMODB_TABLE: "AWS::DynamoDB::Table",
|
|
413
|
-
ROLE_TRUST: "AWS::IAM::AssumeRolePolicyDocument",
|
|
414
|
-
S3_ACCESS_POINT: "AWS::S3::AccessPoint",
|
|
415
|
-
S3_BUCKET: "AWS::S3::Bucket",
|
|
416
|
-
S3_MULTI_REGION_ACCESS_POINT: "AWS::S3::MultiRegionAccessPoint",
|
|
417
|
-
S3_OBJECT_LAMBDA_ACCESS_POINT: "AWS::S3ObjectLambda::AccessPoint",
|
|
418
|
-
};
|
|
419
|
-
const ValidatePolicyFindingType = {
|
|
420
|
-
ERROR: "ERROR",
|
|
421
|
-
SECURITY_WARNING: "SECURITY_WARNING",
|
|
422
|
-
SUGGESTION: "SUGGESTION",
|
|
423
|
-
WARNING: "WARNING",
|
|
424
|
-
};
|
|
425
253
|
|
|
426
254
|
const _A = "Access";
|
|
427
255
|
const _AA = "AccountAggregations";
|
|
@@ -2961,28 +2789,18 @@ Object.defineProperty(exports, "__Client", {
|
|
|
2961
2789
|
exports.AccessAnalyzer = AccessAnalyzer;
|
|
2962
2790
|
exports.AccessAnalyzerClient = AccessAnalyzerClient;
|
|
2963
2791
|
exports.AccessAnalyzerServiceException = AccessAnalyzerServiceException$1;
|
|
2964
|
-
exports.AccessCheckPolicyType = AccessCheckPolicyType;
|
|
2965
|
-
exports.AccessCheckResourceType = AccessCheckResourceType;
|
|
2966
2792
|
exports.AccessDeniedException = AccessDeniedException$1;
|
|
2967
|
-
exports.AccessPreviewStatus = AccessPreviewStatus;
|
|
2968
|
-
exports.AccessPreviewStatusReasonCode = AccessPreviewStatusReasonCode;
|
|
2969
|
-
exports.AclPermission = AclPermission;
|
|
2970
2793
|
exports.ApplyArchiveRuleCommand = ApplyArchiveRuleCommand;
|
|
2971
2794
|
exports.CancelPolicyGenerationCommand = CancelPolicyGenerationCommand;
|
|
2972
2795
|
exports.CheckAccessNotGrantedCommand = CheckAccessNotGrantedCommand;
|
|
2973
|
-
exports.CheckAccessNotGrantedResult = CheckAccessNotGrantedResult;
|
|
2974
2796
|
exports.CheckNoNewAccessCommand = CheckNoNewAccessCommand;
|
|
2975
|
-
exports.CheckNoNewAccessResult = CheckNoNewAccessResult;
|
|
2976
2797
|
exports.CheckNoPublicAccessCommand = CheckNoPublicAccessCommand;
|
|
2977
|
-
exports.CheckNoPublicAccessResult = CheckNoPublicAccessResult;
|
|
2978
2798
|
exports.ConflictException = ConflictException$1;
|
|
2979
2799
|
exports.CreateAccessPreviewCommand = CreateAccessPreviewCommand;
|
|
2980
2800
|
exports.CreateAnalyzerCommand = CreateAnalyzerCommand;
|
|
2981
2801
|
exports.CreateArchiveRuleCommand = CreateArchiveRuleCommand;
|
|
2982
2802
|
exports.DeleteAnalyzerCommand = DeleteAnalyzerCommand;
|
|
2983
2803
|
exports.DeleteArchiveRuleCommand = DeleteArchiveRuleCommand;
|
|
2984
|
-
exports.FindingChangeType = FindingChangeType;
|
|
2985
|
-
exports.FindingType = FindingType;
|
|
2986
2804
|
exports.GenerateFindingRecommendationCommand = GenerateFindingRecommendationCommand;
|
|
2987
2805
|
exports.GetAccessPreviewCommand = GetAccessPreviewCommand;
|
|
2988
2806
|
exports.GetAnalyzedResourceCommand = GetAnalyzedResourceCommand;
|
|
@@ -2993,12 +2811,8 @@ exports.GetFindingRecommendationCommand = GetFindingRecommendationCommand;
|
|
|
2993
2811
|
exports.GetFindingV2Command = GetFindingV2Command;
|
|
2994
2812
|
exports.GetFindingsStatisticsCommand = GetFindingsStatisticsCommand;
|
|
2995
2813
|
exports.GetGeneratedPolicyCommand = GetGeneratedPolicyCommand;
|
|
2996
|
-
exports.InternalAccessType = InternalAccessType;
|
|
2997
2814
|
exports.InternalServerException = InternalServerException$1;
|
|
2998
2815
|
exports.InvalidParameterException = InvalidParameterException$1;
|
|
2999
|
-
exports.JobErrorCode = JobErrorCode;
|
|
3000
|
-
exports.JobStatus = JobStatus;
|
|
3001
|
-
exports.KmsGrantOperation = KmsGrantOperation;
|
|
3002
2816
|
exports.ListAccessPreviewFindingsCommand = ListAccessPreviewFindingsCommand;
|
|
3003
2817
|
exports.ListAccessPreviewsCommand = ListAccessPreviewsCommand;
|
|
3004
2818
|
exports.ListAnalyzedResourcesCommand = ListAnalyzedResourcesCommand;
|
|
@@ -3008,18 +2822,10 @@ exports.ListFindingsCommand = ListFindingsCommand;
|
|
|
3008
2822
|
exports.ListFindingsV2Command = ListFindingsV2Command;
|
|
3009
2823
|
exports.ListPolicyGenerationsCommand = ListPolicyGenerationsCommand;
|
|
3010
2824
|
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
3011
|
-
exports.Locale = Locale;
|
|
3012
|
-
exports.PolicyType = PolicyType;
|
|
3013
|
-
exports.PrincipalType = PrincipalType;
|
|
3014
|
-
exports.RecommendationType = RecommendationType;
|
|
3015
|
-
exports.RecommendedRemediationAction = RecommendedRemediationAction;
|
|
3016
|
-
exports.ResourceControlPolicyRestriction = ResourceControlPolicyRestriction;
|
|
3017
2825
|
exports.ResourceNotFoundException = ResourceNotFoundException$1;
|
|
3018
|
-
exports.ServiceControlPolicyRestriction = ServiceControlPolicyRestriction;
|
|
3019
2826
|
exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
|
|
3020
2827
|
exports.StartPolicyGenerationCommand = StartPolicyGenerationCommand;
|
|
3021
2828
|
exports.StartResourceScanCommand = StartResourceScanCommand;
|
|
3022
|
-
exports.Status = Status;
|
|
3023
2829
|
exports.TagResourceCommand = TagResourceCommand;
|
|
3024
2830
|
exports.ThrottlingException = ThrottlingException$1;
|
|
3025
2831
|
exports.UnprocessableEntityException = UnprocessableEntityException$1;
|
|
@@ -3028,10 +2834,7 @@ exports.UpdateAnalyzerCommand = UpdateAnalyzerCommand;
|
|
|
3028
2834
|
exports.UpdateArchiveRuleCommand = UpdateArchiveRuleCommand;
|
|
3029
2835
|
exports.UpdateFindingsCommand = UpdateFindingsCommand;
|
|
3030
2836
|
exports.ValidatePolicyCommand = ValidatePolicyCommand;
|
|
3031
|
-
exports.ValidatePolicyFindingType = ValidatePolicyFindingType;
|
|
3032
|
-
exports.ValidatePolicyResourceType = ValidatePolicyResourceType;
|
|
3033
2837
|
exports.ValidationException = ValidationException$1;
|
|
3034
|
-
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
3035
2838
|
exports.paginateGetFindingRecommendation = paginateGetFindingRecommendation;
|
|
3036
2839
|
exports.paginateGetFindingV2 = paginateGetFindingV2;
|
|
3037
2840
|
exports.paginateListAccessPreviewFindings = paginateListAccessPreviewFindings;
|
package/dist-es/index.js
CHANGED
|
@@ -2,5 +2,5 @@ export * from "./AccessAnalyzerClient";
|
|
|
2
2
|
export * from "./AccessAnalyzer";
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./pagination";
|
|
5
|
-
export * from "./models";
|
|
5
|
+
export * from "./models/errors";
|
|
6
6
|
export { AccessAnalyzerServiceException } from "./models/AccessAnalyzerServiceException";
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { AccessAnalyzerServiceException as __BaseException } from "./AccessAnalyzerServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "AccessDeniedException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class ConflictException extends __BaseException {
|
|
15
|
+
name = "ConflictException";
|
|
16
|
+
$fault = "client";
|
|
17
|
+
resourceId;
|
|
18
|
+
resourceType;
|
|
19
|
+
constructor(opts) {
|
|
20
|
+
super({
|
|
21
|
+
name: "ConflictException",
|
|
22
|
+
$fault: "client",
|
|
23
|
+
...opts,
|
|
24
|
+
});
|
|
25
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
26
|
+
this.resourceId = opts.resourceId;
|
|
27
|
+
this.resourceType = opts.resourceType;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export class InternalServerException extends __BaseException {
|
|
31
|
+
name = "InternalServerException";
|
|
32
|
+
$fault = "server";
|
|
33
|
+
$retryable = {};
|
|
34
|
+
retryAfterSeconds;
|
|
35
|
+
constructor(opts) {
|
|
36
|
+
super({
|
|
37
|
+
name: "InternalServerException",
|
|
38
|
+
$fault: "server",
|
|
39
|
+
...opts,
|
|
40
|
+
});
|
|
41
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
42
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
46
|
+
name = "ResourceNotFoundException";
|
|
47
|
+
$fault = "client";
|
|
48
|
+
resourceId;
|
|
49
|
+
resourceType;
|
|
50
|
+
constructor(opts) {
|
|
51
|
+
super({
|
|
52
|
+
name: "ResourceNotFoundException",
|
|
53
|
+
$fault: "client",
|
|
54
|
+
...opts,
|
|
55
|
+
});
|
|
56
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
57
|
+
this.resourceId = opts.resourceId;
|
|
58
|
+
this.resourceType = opts.resourceType;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
62
|
+
name = "ServiceQuotaExceededException";
|
|
63
|
+
$fault = "client";
|
|
64
|
+
resourceId;
|
|
65
|
+
resourceType;
|
|
66
|
+
constructor(opts) {
|
|
67
|
+
super({
|
|
68
|
+
name: "ServiceQuotaExceededException",
|
|
69
|
+
$fault: "client",
|
|
70
|
+
...opts,
|
|
71
|
+
});
|
|
72
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
73
|
+
this.resourceId = opts.resourceId;
|
|
74
|
+
this.resourceType = opts.resourceType;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
export class ThrottlingException extends __BaseException {
|
|
78
|
+
name = "ThrottlingException";
|
|
79
|
+
$fault = "client";
|
|
80
|
+
$retryable = {
|
|
81
|
+
throttling: true,
|
|
82
|
+
};
|
|
83
|
+
retryAfterSeconds;
|
|
84
|
+
constructor(opts) {
|
|
85
|
+
super({
|
|
86
|
+
name: "ThrottlingException",
|
|
87
|
+
$fault: "client",
|
|
88
|
+
...opts,
|
|
89
|
+
});
|
|
90
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
91
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export class ValidationException extends __BaseException {
|
|
95
|
+
name = "ValidationException";
|
|
96
|
+
$fault = "client";
|
|
97
|
+
reason;
|
|
98
|
+
fieldList;
|
|
99
|
+
constructor(opts) {
|
|
100
|
+
super({
|
|
101
|
+
name: "ValidationException",
|
|
102
|
+
$fault: "client",
|
|
103
|
+
...opts,
|
|
104
|
+
});
|
|
105
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
106
|
+
this.reason = opts.reason;
|
|
107
|
+
this.fieldList = opts.fieldList;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
export class InvalidParameterException extends __BaseException {
|
|
111
|
+
name = "InvalidParameterException";
|
|
112
|
+
$fault = "client";
|
|
113
|
+
constructor(opts) {
|
|
114
|
+
super({
|
|
115
|
+
name: "InvalidParameterException",
|
|
116
|
+
$fault: "client",
|
|
117
|
+
...opts,
|
|
118
|
+
});
|
|
119
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
export class UnprocessableEntityException extends __BaseException {
|
|
123
|
+
name = "UnprocessableEntityException";
|
|
124
|
+
$fault = "client";
|
|
125
|
+
$retryable = {};
|
|
126
|
+
constructor(opts) {
|
|
127
|
+
super({
|
|
128
|
+
name: "UnprocessableEntityException",
|
|
129
|
+
$fault: "client",
|
|
130
|
+
...opts,
|
|
131
|
+
});
|
|
132
|
+
Object.setPrototypeOf(this, UnprocessableEntityException.prototype);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -1,96 +1,3 @@
|
|
|
1
|
-
import { AccessAnalyzerServiceException as __BaseException } from "./AccessAnalyzerServiceException";
|
|
2
|
-
export class AccessDeniedException extends __BaseException {
|
|
3
|
-
name = "AccessDeniedException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "AccessDeniedException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export class ConflictException extends __BaseException {
|
|
15
|
-
name = "ConflictException";
|
|
16
|
-
$fault = "client";
|
|
17
|
-
resourceId;
|
|
18
|
-
resourceType;
|
|
19
|
-
constructor(opts) {
|
|
20
|
-
super({
|
|
21
|
-
name: "ConflictException",
|
|
22
|
-
$fault: "client",
|
|
23
|
-
...opts,
|
|
24
|
-
});
|
|
25
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
26
|
-
this.resourceId = opts.resourceId;
|
|
27
|
-
this.resourceType = opts.resourceType;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
export class InternalServerException extends __BaseException {
|
|
31
|
-
name = "InternalServerException";
|
|
32
|
-
$fault = "server";
|
|
33
|
-
$retryable = {};
|
|
34
|
-
retryAfterSeconds;
|
|
35
|
-
constructor(opts) {
|
|
36
|
-
super({
|
|
37
|
-
name: "InternalServerException",
|
|
38
|
-
$fault: "server",
|
|
39
|
-
...opts,
|
|
40
|
-
});
|
|
41
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
42
|
-
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
46
|
-
name = "ResourceNotFoundException";
|
|
47
|
-
$fault = "client";
|
|
48
|
-
resourceId;
|
|
49
|
-
resourceType;
|
|
50
|
-
constructor(opts) {
|
|
51
|
-
super({
|
|
52
|
-
name: "ResourceNotFoundException",
|
|
53
|
-
$fault: "client",
|
|
54
|
-
...opts,
|
|
55
|
-
});
|
|
56
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
57
|
-
this.resourceId = opts.resourceId;
|
|
58
|
-
this.resourceType = opts.resourceType;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
export class ServiceQuotaExceededException extends __BaseException {
|
|
62
|
-
name = "ServiceQuotaExceededException";
|
|
63
|
-
$fault = "client";
|
|
64
|
-
resourceId;
|
|
65
|
-
resourceType;
|
|
66
|
-
constructor(opts) {
|
|
67
|
-
super({
|
|
68
|
-
name: "ServiceQuotaExceededException",
|
|
69
|
-
$fault: "client",
|
|
70
|
-
...opts,
|
|
71
|
-
});
|
|
72
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
73
|
-
this.resourceId = opts.resourceId;
|
|
74
|
-
this.resourceType = opts.resourceType;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
export class ThrottlingException extends __BaseException {
|
|
78
|
-
name = "ThrottlingException";
|
|
79
|
-
$fault = "client";
|
|
80
|
-
$retryable = {
|
|
81
|
-
throttling: true,
|
|
82
|
-
};
|
|
83
|
-
retryAfterSeconds;
|
|
84
|
-
constructor(opts) {
|
|
85
|
-
super({
|
|
86
|
-
name: "ThrottlingException",
|
|
87
|
-
$fault: "client",
|
|
88
|
-
...opts,
|
|
89
|
-
});
|
|
90
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
91
|
-
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
1
|
export const ValidationExceptionReason = {
|
|
95
2
|
CANNOT_PARSE: "cannotParse",
|
|
96
3
|
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
@@ -98,22 +5,6 @@ export const ValidationExceptionReason = {
|
|
|
98
5
|
OTHER: "other",
|
|
99
6
|
UNKNOWN_OPERATION: "unknownOperation",
|
|
100
7
|
};
|
|
101
|
-
export class ValidationException extends __BaseException {
|
|
102
|
-
name = "ValidationException";
|
|
103
|
-
$fault = "client";
|
|
104
|
-
reason;
|
|
105
|
-
fieldList;
|
|
106
|
-
constructor(opts) {
|
|
107
|
-
super({
|
|
108
|
-
name: "ValidationException",
|
|
109
|
-
$fault: "client",
|
|
110
|
-
...opts,
|
|
111
|
-
});
|
|
112
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
113
|
-
this.reason = opts.reason;
|
|
114
|
-
this.fieldList = opts.fieldList;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
8
|
export const AccessCheckPolicyType = {
|
|
118
9
|
IDENTITY_POLICY: "IDENTITY_POLICY",
|
|
119
10
|
RESOURCE_POLICY: "RESOURCE_POLICY",
|
|
@@ -122,31 +13,6 @@ export const CheckAccessNotGrantedResult = {
|
|
|
122
13
|
FAIL: "FAIL",
|
|
123
14
|
PASS: "PASS",
|
|
124
15
|
};
|
|
125
|
-
export class InvalidParameterException extends __BaseException {
|
|
126
|
-
name = "InvalidParameterException";
|
|
127
|
-
$fault = "client";
|
|
128
|
-
constructor(opts) {
|
|
129
|
-
super({
|
|
130
|
-
name: "InvalidParameterException",
|
|
131
|
-
$fault: "client",
|
|
132
|
-
...opts,
|
|
133
|
-
});
|
|
134
|
-
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
export class UnprocessableEntityException extends __BaseException {
|
|
138
|
-
name = "UnprocessableEntityException";
|
|
139
|
-
$fault = "client";
|
|
140
|
-
$retryable = {};
|
|
141
|
-
constructor(opts) {
|
|
142
|
-
super({
|
|
143
|
-
name: "UnprocessableEntityException",
|
|
144
|
-
$fault: "client",
|
|
145
|
-
...opts,
|
|
146
|
-
});
|
|
147
|
-
Object.setPrototypeOf(this, UnprocessableEntityException.prototype);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
16
|
export const CheckNoNewAccessResult = {
|
|
151
17
|
FAIL: "FAIL",
|
|
152
18
|
PASS: "PASS",
|
|
@@ -472,7 +472,7 @@ const _vPRT = "validatePolicyResourceType";
|
|
|
472
472
|
const n0 = "com.amazonaws.accessanalyzer";
|
|
473
473
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
474
474
|
import { AccessAnalyzerServiceException as __AccessAnalyzerServiceException } from "../models/AccessAnalyzerServiceException";
|
|
475
|
-
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, InvalidParameterException as __InvalidParameterException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, UnprocessableEntityException as __UnprocessableEntityException, ValidationException as __ValidationException, } from "../models/
|
|
475
|
+
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, InvalidParameterException as __InvalidParameterException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, UnprocessableEntityException as __UnprocessableEntityException, ValidationException as __ValidationException, } from "../models/errors";
|
|
476
476
|
export var AccessCheckPolicyDocument = [0, n0, _ACPD, 8, 0];
|
|
477
477
|
export var Access = [3, n0, _A, 0, [_a, _r], [64 | 0, 64 | 0]];
|
|
478
478
|
export var AccessDeniedException = [
|
package/dist-types/index.d.ts
CHANGED
|
@@ -10,5 +10,6 @@ export type { RuntimeExtension } from "./runtimeExtensions";
|
|
|
10
10
|
export type { AccessAnalyzerExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
12
|
export * from "./pagination";
|
|
13
|
-
export * from "./models";
|
|
13
|
+
export * from "./models/errors";
|
|
14
|
+
export type * from "./models/models_0";
|
|
14
15
|
export { AccessAnalyzerServiceException } from "./models/AccessAnalyzerServiceException";
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { AccessAnalyzerServiceException as __BaseException } from "./AccessAnalyzerServiceException";
|
|
3
|
+
import { ValidationExceptionField, ValidationExceptionReason } from "./models_0";
|
|
4
|
+
/**
|
|
5
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
9
|
+
readonly name: "AccessDeniedException";
|
|
10
|
+
readonly $fault: "client";
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* <p>A conflict exception error.</p>
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export declare class ConflictException extends __BaseException {
|
|
21
|
+
readonly name: "ConflictException";
|
|
22
|
+
readonly $fault: "client";
|
|
23
|
+
/**
|
|
24
|
+
* <p>The ID of the resource.</p>
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
resourceId: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* <p>The resource type.</p>
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
resourceType: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* <p>Internal server error.</p>
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export declare class InternalServerException extends __BaseException {
|
|
43
|
+
readonly name: "InternalServerException";
|
|
44
|
+
readonly $fault: "server";
|
|
45
|
+
$retryable: {};
|
|
46
|
+
/**
|
|
47
|
+
* <p>The seconds to wait to retry.</p>
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
retryAfterSeconds?: number | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* <p>The specified resource could not be found.</p>
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
61
|
+
readonly name: "ResourceNotFoundException";
|
|
62
|
+
readonly $fault: "client";
|
|
63
|
+
/**
|
|
64
|
+
* <p>The ID of the resource.</p>
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
resourceId: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* <p>The type of the resource.</p>
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
resourceType: string | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* <p>Service quote met error.</p>
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
83
|
+
readonly name: "ServiceQuotaExceededException";
|
|
84
|
+
readonly $fault: "client";
|
|
85
|
+
/**
|
|
86
|
+
* <p>The resource ID.</p>
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
resourceId: string | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* <p>The resource type.</p>
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
resourceType: string | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* <p>Throttling limit exceeded error.</p>
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
export declare class ThrottlingException extends __BaseException {
|
|
105
|
+
readonly name: "ThrottlingException";
|
|
106
|
+
readonly $fault: "client";
|
|
107
|
+
$retryable: {
|
|
108
|
+
throttling: boolean;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* <p>The seconds to wait to retry.</p>
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
retryAfterSeconds?: number | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* @internal
|
|
117
|
+
*/
|
|
118
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* <p>Validation exception error.</p>
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
export declare class ValidationException extends __BaseException {
|
|
125
|
+
readonly name: "ValidationException";
|
|
126
|
+
readonly $fault: "client";
|
|
127
|
+
/**
|
|
128
|
+
* <p>The reason for the exception.</p>
|
|
129
|
+
* @public
|
|
130
|
+
*/
|
|
131
|
+
reason: ValidationExceptionReason | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* <p>A list of fields that didn't validate.</p>
|
|
134
|
+
* @public
|
|
135
|
+
*/
|
|
136
|
+
fieldList?: ValidationExceptionField[] | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* @internal
|
|
139
|
+
*/
|
|
140
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* <p>The specified parameter is invalid.</p>
|
|
144
|
+
* @public
|
|
145
|
+
*/
|
|
146
|
+
export declare class InvalidParameterException extends __BaseException {
|
|
147
|
+
readonly name: "InvalidParameterException";
|
|
148
|
+
readonly $fault: "client";
|
|
149
|
+
/**
|
|
150
|
+
* @internal
|
|
151
|
+
*/
|
|
152
|
+
constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* <p>The specified entity could not be processed.</p>
|
|
156
|
+
* @public
|
|
157
|
+
*/
|
|
158
|
+
export declare class UnprocessableEntityException extends __BaseException {
|
|
159
|
+
readonly name: "UnprocessableEntityException";
|
|
160
|
+
readonly $fault: "client";
|
|
161
|
+
$retryable: {};
|
|
162
|
+
/**
|
|
163
|
+
* @internal
|
|
164
|
+
*/
|
|
165
|
+
constructor(opts: __ExceptionOptionType<UnprocessableEntityException, __BaseException>);
|
|
166
|
+
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
-
import { AccessAnalyzerServiceException as __BaseException } from "./AccessAnalyzerServiceException";
|
|
3
1
|
/**
|
|
4
2
|
* <p>Contains information about actions and resources that define permissions to check against a policy.</p>
|
|
5
3
|
* @public
|
|
@@ -16,40 +14,6 @@ export interface Access {
|
|
|
16
14
|
*/
|
|
17
15
|
resources?: string[] | undefined;
|
|
18
16
|
}
|
|
19
|
-
/**
|
|
20
|
-
* <p>You do not have sufficient access to perform this action.</p>
|
|
21
|
-
* @public
|
|
22
|
-
*/
|
|
23
|
-
export declare class AccessDeniedException extends __BaseException {
|
|
24
|
-
readonly name: "AccessDeniedException";
|
|
25
|
-
readonly $fault: "client";
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
29
|
-
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* <p>A conflict exception error.</p>
|
|
33
|
-
* @public
|
|
34
|
-
*/
|
|
35
|
-
export declare class ConflictException extends __BaseException {
|
|
36
|
-
readonly name: "ConflictException";
|
|
37
|
-
readonly $fault: "client";
|
|
38
|
-
/**
|
|
39
|
-
* <p>The ID of the resource.</p>
|
|
40
|
-
* @public
|
|
41
|
-
*/
|
|
42
|
-
resourceId: string | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* <p>The resource type.</p>
|
|
45
|
-
* @public
|
|
46
|
-
*/
|
|
47
|
-
resourceType: string | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
*/
|
|
51
|
-
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
52
|
-
}
|
|
53
17
|
/**
|
|
54
18
|
* <p>The criteria to use in the filter that defines the archive rule. For more information on available filter keys, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html">IAM Access Analyzer filter keys</a>.</p>
|
|
55
19
|
* @public
|
|
@@ -102,88 +66,6 @@ export interface CreateArchiveRuleRequest {
|
|
|
102
66
|
*/
|
|
103
67
|
clientToken?: string | undefined;
|
|
104
68
|
}
|
|
105
|
-
/**
|
|
106
|
-
* <p>Internal server error.</p>
|
|
107
|
-
* @public
|
|
108
|
-
*/
|
|
109
|
-
export declare class InternalServerException extends __BaseException {
|
|
110
|
-
readonly name: "InternalServerException";
|
|
111
|
-
readonly $fault: "server";
|
|
112
|
-
$retryable: {};
|
|
113
|
-
/**
|
|
114
|
-
* <p>The seconds to wait to retry.</p>
|
|
115
|
-
* @public
|
|
116
|
-
*/
|
|
117
|
-
retryAfterSeconds?: number | undefined;
|
|
118
|
-
/**
|
|
119
|
-
* @internal
|
|
120
|
-
*/
|
|
121
|
-
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* <p>The specified resource could not be found.</p>
|
|
125
|
-
* @public
|
|
126
|
-
*/
|
|
127
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
128
|
-
readonly name: "ResourceNotFoundException";
|
|
129
|
-
readonly $fault: "client";
|
|
130
|
-
/**
|
|
131
|
-
* <p>The ID of the resource.</p>
|
|
132
|
-
* @public
|
|
133
|
-
*/
|
|
134
|
-
resourceId: string | undefined;
|
|
135
|
-
/**
|
|
136
|
-
* <p>The type of the resource.</p>
|
|
137
|
-
* @public
|
|
138
|
-
*/
|
|
139
|
-
resourceType: string | undefined;
|
|
140
|
-
/**
|
|
141
|
-
* @internal
|
|
142
|
-
*/
|
|
143
|
-
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* <p>Service quote met error.</p>
|
|
147
|
-
* @public
|
|
148
|
-
*/
|
|
149
|
-
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
150
|
-
readonly name: "ServiceQuotaExceededException";
|
|
151
|
-
readonly $fault: "client";
|
|
152
|
-
/**
|
|
153
|
-
* <p>The resource ID.</p>
|
|
154
|
-
* @public
|
|
155
|
-
*/
|
|
156
|
-
resourceId: string | undefined;
|
|
157
|
-
/**
|
|
158
|
-
* <p>The resource type.</p>
|
|
159
|
-
* @public
|
|
160
|
-
*/
|
|
161
|
-
resourceType: string | undefined;
|
|
162
|
-
/**
|
|
163
|
-
* @internal
|
|
164
|
-
*/
|
|
165
|
-
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* <p>Throttling limit exceeded error.</p>
|
|
169
|
-
* @public
|
|
170
|
-
*/
|
|
171
|
-
export declare class ThrottlingException extends __BaseException {
|
|
172
|
-
readonly name: "ThrottlingException";
|
|
173
|
-
readonly $fault: "client";
|
|
174
|
-
$retryable: {
|
|
175
|
-
throttling: boolean;
|
|
176
|
-
};
|
|
177
|
-
/**
|
|
178
|
-
* <p>The seconds to wait to retry.</p>
|
|
179
|
-
* @public
|
|
180
|
-
*/
|
|
181
|
-
retryAfterSeconds?: number | undefined;
|
|
182
|
-
/**
|
|
183
|
-
* @internal
|
|
184
|
-
*/
|
|
185
|
-
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
186
|
-
}
|
|
187
69
|
/**
|
|
188
70
|
* <p>Contains information about a validation exception.</p>
|
|
189
71
|
* @public
|
|
@@ -215,28 +97,6 @@ export declare const ValidationExceptionReason: {
|
|
|
215
97
|
* @public
|
|
216
98
|
*/
|
|
217
99
|
export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
218
|
-
/**
|
|
219
|
-
* <p>Validation exception error.</p>
|
|
220
|
-
* @public
|
|
221
|
-
*/
|
|
222
|
-
export declare class ValidationException extends __BaseException {
|
|
223
|
-
readonly name: "ValidationException";
|
|
224
|
-
readonly $fault: "client";
|
|
225
|
-
/**
|
|
226
|
-
* <p>The reason for the exception.</p>
|
|
227
|
-
* @public
|
|
228
|
-
*/
|
|
229
|
-
reason: ValidationExceptionReason | undefined;
|
|
230
|
-
/**
|
|
231
|
-
* <p>A list of fields that didn't validate.</p>
|
|
232
|
-
* @public
|
|
233
|
-
*/
|
|
234
|
-
fieldList?: ValidationExceptionField[] | undefined;
|
|
235
|
-
/**
|
|
236
|
-
* @internal
|
|
237
|
-
*/
|
|
238
|
-
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
239
|
-
}
|
|
240
100
|
/**
|
|
241
101
|
* <p>Deletes an archive rule.</p>
|
|
242
102
|
* @public
|
|
@@ -872,31 +732,6 @@ export interface CheckAccessNotGrantedResponse {
|
|
|
872
732
|
*/
|
|
873
733
|
reasons?: ReasonSummary[] | undefined;
|
|
874
734
|
}
|
|
875
|
-
/**
|
|
876
|
-
* <p>The specified parameter is invalid.</p>
|
|
877
|
-
* @public
|
|
878
|
-
*/
|
|
879
|
-
export declare class InvalidParameterException extends __BaseException {
|
|
880
|
-
readonly name: "InvalidParameterException";
|
|
881
|
-
readonly $fault: "client";
|
|
882
|
-
/**
|
|
883
|
-
* @internal
|
|
884
|
-
*/
|
|
885
|
-
constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
|
|
886
|
-
}
|
|
887
|
-
/**
|
|
888
|
-
* <p>The specified entity could not be processed.</p>
|
|
889
|
-
* @public
|
|
890
|
-
*/
|
|
891
|
-
export declare class UnprocessableEntityException extends __BaseException {
|
|
892
|
-
readonly name: "UnprocessableEntityException";
|
|
893
|
-
readonly $fault: "client";
|
|
894
|
-
$retryable: {};
|
|
895
|
-
/**
|
|
896
|
-
* @internal
|
|
897
|
-
*/
|
|
898
|
-
constructor(opts: __ExceptionOptionType<UnprocessableEntityException, __BaseException>);
|
|
899
|
-
}
|
|
900
735
|
/**
|
|
901
736
|
* @public
|
|
902
737
|
*/
|
|
@@ -5,5 +5,6 @@ export { RuntimeExtension } from "./runtimeExtensions";
|
|
|
5
5
|
export { AccessAnalyzerExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
7
|
export * from "./pagination";
|
|
8
|
-
export * from "./models";
|
|
8
|
+
export * from "./models/errors";
|
|
9
|
+
export * from "./models/models_0";
|
|
9
10
|
export { AccessAnalyzerServiceException } from "./models/AccessAnalyzerServiceException";
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { AccessAnalyzerServiceException as __BaseException } from "./AccessAnalyzerServiceException";
|
|
3
|
+
import {
|
|
4
|
+
ValidationExceptionField,
|
|
5
|
+
ValidationExceptionReason,
|
|
6
|
+
} from "./models_0";
|
|
7
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
8
|
+
readonly name: "AccessDeniedException";
|
|
9
|
+
readonly $fault: "client";
|
|
10
|
+
constructor(
|
|
11
|
+
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
export declare class ConflictException extends __BaseException {
|
|
15
|
+
readonly name: "ConflictException";
|
|
16
|
+
readonly $fault: "client";
|
|
17
|
+
resourceId: string | undefined;
|
|
18
|
+
resourceType: string | undefined;
|
|
19
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
20
|
+
}
|
|
21
|
+
export declare class InternalServerException extends __BaseException {
|
|
22
|
+
readonly name: "InternalServerException";
|
|
23
|
+
readonly $fault: "server";
|
|
24
|
+
$retryable: {};
|
|
25
|
+
retryAfterSeconds?: number | undefined;
|
|
26
|
+
constructor(
|
|
27
|
+
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
31
|
+
readonly name: "ResourceNotFoundException";
|
|
32
|
+
readonly $fault: "client";
|
|
33
|
+
resourceId: string | undefined;
|
|
34
|
+
resourceType: string | undefined;
|
|
35
|
+
constructor(
|
|
36
|
+
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
40
|
+
readonly name: "ServiceQuotaExceededException";
|
|
41
|
+
readonly $fault: "client";
|
|
42
|
+
resourceId: string | undefined;
|
|
43
|
+
resourceType: string | undefined;
|
|
44
|
+
constructor(
|
|
45
|
+
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
export declare class ThrottlingException extends __BaseException {
|
|
49
|
+
readonly name: "ThrottlingException";
|
|
50
|
+
readonly $fault: "client";
|
|
51
|
+
$retryable: {
|
|
52
|
+
throttling: boolean;
|
|
53
|
+
};
|
|
54
|
+
retryAfterSeconds?: number | undefined;
|
|
55
|
+
constructor(
|
|
56
|
+
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
export declare class ValidationException extends __BaseException {
|
|
60
|
+
readonly name: "ValidationException";
|
|
61
|
+
readonly $fault: "client";
|
|
62
|
+
reason: ValidationExceptionReason | undefined;
|
|
63
|
+
fieldList?: ValidationExceptionField[] | undefined;
|
|
64
|
+
constructor(
|
|
65
|
+
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
export declare class InvalidParameterException extends __BaseException {
|
|
69
|
+
readonly name: "InvalidParameterException";
|
|
70
|
+
readonly $fault: "client";
|
|
71
|
+
constructor(
|
|
72
|
+
opts: __ExceptionOptionType<InvalidParameterException, __BaseException>
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
export declare class UnprocessableEntityException extends __BaseException {
|
|
76
|
+
readonly name: "UnprocessableEntityException";
|
|
77
|
+
readonly $fault: "client";
|
|
78
|
+
$retryable: {};
|
|
79
|
+
constructor(
|
|
80
|
+
opts: __ExceptionOptionType<UnprocessableEntityException, __BaseException>
|
|
81
|
+
);
|
|
82
|
+
}
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
-
import { AccessAnalyzerServiceException as __BaseException } from "./AccessAnalyzerServiceException";
|
|
3
1
|
export interface Access {
|
|
4
2
|
actions?: string[] | undefined;
|
|
5
3
|
resources?: string[] | undefined;
|
|
6
4
|
}
|
|
7
|
-
export declare class AccessDeniedException extends __BaseException {
|
|
8
|
-
readonly name: "AccessDeniedException";
|
|
9
|
-
readonly $fault: "client";
|
|
10
|
-
constructor(
|
|
11
|
-
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
export declare class ConflictException extends __BaseException {
|
|
15
|
-
readonly name: "ConflictException";
|
|
16
|
-
readonly $fault: "client";
|
|
17
|
-
resourceId: string | undefined;
|
|
18
|
-
resourceType: string | undefined;
|
|
19
|
-
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
20
|
-
}
|
|
21
5
|
export interface Criterion {
|
|
22
6
|
eq?: string[] | undefined;
|
|
23
7
|
neq?: string[] | undefined;
|
|
@@ -30,44 +14,6 @@ export interface CreateArchiveRuleRequest {
|
|
|
30
14
|
filter: Record<string, Criterion> | undefined;
|
|
31
15
|
clientToken?: string | undefined;
|
|
32
16
|
}
|
|
33
|
-
export declare class InternalServerException extends __BaseException {
|
|
34
|
-
readonly name: "InternalServerException";
|
|
35
|
-
readonly $fault: "server";
|
|
36
|
-
$retryable: {};
|
|
37
|
-
retryAfterSeconds?: number | undefined;
|
|
38
|
-
constructor(
|
|
39
|
-
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
43
|
-
readonly name: "ResourceNotFoundException";
|
|
44
|
-
readonly $fault: "client";
|
|
45
|
-
resourceId: string | undefined;
|
|
46
|
-
resourceType: string | undefined;
|
|
47
|
-
constructor(
|
|
48
|
-
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
52
|
-
readonly name: "ServiceQuotaExceededException";
|
|
53
|
-
readonly $fault: "client";
|
|
54
|
-
resourceId: string | undefined;
|
|
55
|
-
resourceType: string | undefined;
|
|
56
|
-
constructor(
|
|
57
|
-
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
export declare class ThrottlingException extends __BaseException {
|
|
61
|
-
readonly name: "ThrottlingException";
|
|
62
|
-
readonly $fault: "client";
|
|
63
|
-
$retryable: {
|
|
64
|
-
throttling: boolean;
|
|
65
|
-
};
|
|
66
|
-
retryAfterSeconds?: number | undefined;
|
|
67
|
-
constructor(
|
|
68
|
-
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
17
|
export interface ValidationExceptionField {
|
|
72
18
|
name: string | undefined;
|
|
73
19
|
message: string | undefined;
|
|
@@ -81,15 +27,6 @@ export declare const ValidationExceptionReason: {
|
|
|
81
27
|
};
|
|
82
28
|
export type ValidationExceptionReason =
|
|
83
29
|
(typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
84
|
-
export declare class ValidationException extends __BaseException {
|
|
85
|
-
readonly name: "ValidationException";
|
|
86
|
-
readonly $fault: "client";
|
|
87
|
-
reason: ValidationExceptionReason | undefined;
|
|
88
|
-
fieldList?: ValidationExceptionField[] | undefined;
|
|
89
|
-
constructor(
|
|
90
|
-
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
30
|
export interface DeleteArchiveRuleRequest {
|
|
94
31
|
analyzerName: string | undefined;
|
|
95
32
|
ruleName: string | undefined;
|
|
@@ -294,21 +231,6 @@ export interface CheckAccessNotGrantedResponse {
|
|
|
294
231
|
message?: string | undefined;
|
|
295
232
|
reasons?: ReasonSummary[] | undefined;
|
|
296
233
|
}
|
|
297
|
-
export declare class InvalidParameterException extends __BaseException {
|
|
298
|
-
readonly name: "InvalidParameterException";
|
|
299
|
-
readonly $fault: "client";
|
|
300
|
-
constructor(
|
|
301
|
-
opts: __ExceptionOptionType<InvalidParameterException, __BaseException>
|
|
302
|
-
);
|
|
303
|
-
}
|
|
304
|
-
export declare class UnprocessableEntityException extends __BaseException {
|
|
305
|
-
readonly name: "UnprocessableEntityException";
|
|
306
|
-
readonly $fault: "client";
|
|
307
|
-
$retryable: {};
|
|
308
|
-
constructor(
|
|
309
|
-
opts: __ExceptionOptionType<UnprocessableEntityException, __BaseException>
|
|
310
|
-
);
|
|
311
|
-
}
|
|
312
234
|
export interface CheckNoNewAccessRequest {
|
|
313
235
|
newPolicyDocument: string | undefined;
|
|
314
236
|
existingPolicyDocument: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-accessanalyzer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Accessanalyzer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.935.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-accessanalyzer",
|
|
@@ -20,38 +20,38 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.935.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.935.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.930.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.930.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.933.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.935.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.930.0",
|
|
30
30
|
"@aws-sdk/types": "3.930.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.930.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.930.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.935.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.3",
|
|
35
|
-
"@smithy/core": "^3.18.
|
|
35
|
+
"@smithy/core": "^3.18.5",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.6",
|
|
37
37
|
"@smithy/hash-node": "^4.2.5",
|
|
38
38
|
"@smithy/invalid-dependency": "^4.2.5",
|
|
39
39
|
"@smithy/middleware-content-length": "^4.2.5",
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
41
|
-
"@smithy/middleware-retry": "^4.4.
|
|
42
|
-
"@smithy/middleware-serde": "^4.2.
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.3.12",
|
|
41
|
+
"@smithy/middleware-retry": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-serde": "^4.2.6",
|
|
43
43
|
"@smithy/middleware-stack": "^4.2.5",
|
|
44
44
|
"@smithy/node-config-provider": "^4.3.5",
|
|
45
45
|
"@smithy/node-http-handler": "^4.4.5",
|
|
46
46
|
"@smithy/protocol-http": "^5.3.5",
|
|
47
|
-
"@smithy/smithy-client": "^4.9.
|
|
47
|
+
"@smithy/smithy-client": "^4.9.8",
|
|
48
48
|
"@smithy/types": "^4.9.0",
|
|
49
49
|
"@smithy/url-parser": "^4.2.5",
|
|
50
50
|
"@smithy/util-base64": "^4.3.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.3.11",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.2.14",
|
|
55
55
|
"@smithy/util-endpoints": "^3.2.5",
|
|
56
56
|
"@smithy/util-middleware": "^4.2.5",
|
|
57
57
|
"@smithy/util-retry": "^4.2.5",
|
package/dist-es/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|