@aws-sdk/client-accessanalyzer 3.936.0 → 3.939.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 +198 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/enums.js +172 -0
- package/dist-es/models/models_0.js +1 -172
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +404 -0
- package/dist-types/models/errors.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +1 -404
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +253 -0
- package/dist-types/ts3.4/models/errors.d.ts +2 -4
- package/dist-types/ts3.4/models/models_0.d.ts +34 -253
- package/package.json +2 -2
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
export declare const ValidationExceptionReason: {
|
|
2
|
+
readonly CANNOT_PARSE: "cannotParse";
|
|
3
|
+
readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
|
|
4
|
+
readonly NOT_SUPPORTED: "notSupported";
|
|
5
|
+
readonly OTHER: "other";
|
|
6
|
+
readonly UNKNOWN_OPERATION: "unknownOperation";
|
|
7
|
+
};
|
|
8
|
+
export type ValidationExceptionReason =
|
|
9
|
+
(typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
10
|
+
export type ResourceType =
|
|
11
|
+
| "AWS::DynamoDB::Stream"
|
|
12
|
+
| "AWS::DynamoDB::Table"
|
|
13
|
+
| "AWS::EC2::Snapshot"
|
|
14
|
+
| "AWS::ECR::Repository"
|
|
15
|
+
| "AWS::EFS::FileSystem"
|
|
16
|
+
| "AWS::IAM::Role"
|
|
17
|
+
| "AWS::IAM::User"
|
|
18
|
+
| "AWS::KMS::Key"
|
|
19
|
+
| "AWS::Lambda::Function"
|
|
20
|
+
| "AWS::Lambda::LayerVersion"
|
|
21
|
+
| "AWS::RDS::DBClusterSnapshot"
|
|
22
|
+
| "AWS::RDS::DBSnapshot"
|
|
23
|
+
| "AWS::S3::Bucket"
|
|
24
|
+
| "AWS::S3Express::DirectoryBucket"
|
|
25
|
+
| "AWS::SNS::Topic"
|
|
26
|
+
| "AWS::SQS::Queue"
|
|
27
|
+
| "AWS::SecretsManager::Secret";
|
|
28
|
+
export type Type =
|
|
29
|
+
| "ACCOUNT"
|
|
30
|
+
| "ACCOUNT_INTERNAL_ACCESS"
|
|
31
|
+
| "ACCOUNT_UNUSED_ACCESS"
|
|
32
|
+
| "ORGANIZATION"
|
|
33
|
+
| "ORGANIZATION_INTERNAL_ACCESS"
|
|
34
|
+
| "ORGANIZATION_UNUSED_ACCESS";
|
|
35
|
+
export type AnalyzerStatus = "ACTIVE" | "CREATING" | "DISABLED" | "FAILED";
|
|
36
|
+
export type ReasonCode =
|
|
37
|
+
| "AWS_SERVICE_ACCESS_DISABLED"
|
|
38
|
+
| "DELEGATED_ADMINISTRATOR_DEREGISTERED"
|
|
39
|
+
| "ORGANIZATION_DELETED"
|
|
40
|
+
| "SERVICE_LINKED_ROLE_CREATION_FAILED";
|
|
41
|
+
export declare const AccessCheckPolicyType: {
|
|
42
|
+
readonly IDENTITY_POLICY: "IDENTITY_POLICY";
|
|
43
|
+
readonly RESOURCE_POLICY: "RESOURCE_POLICY";
|
|
44
|
+
};
|
|
45
|
+
export type AccessCheckPolicyType =
|
|
46
|
+
(typeof AccessCheckPolicyType)[keyof typeof AccessCheckPolicyType];
|
|
47
|
+
export declare const CheckAccessNotGrantedResult: {
|
|
48
|
+
readonly FAIL: "FAIL";
|
|
49
|
+
readonly PASS: "PASS";
|
|
50
|
+
};
|
|
51
|
+
export type CheckAccessNotGrantedResult =
|
|
52
|
+
(typeof CheckAccessNotGrantedResult)[keyof typeof CheckAccessNotGrantedResult];
|
|
53
|
+
export declare const CheckNoNewAccessResult: {
|
|
54
|
+
readonly FAIL: "FAIL";
|
|
55
|
+
readonly PASS: "PASS";
|
|
56
|
+
};
|
|
57
|
+
export type CheckNoNewAccessResult =
|
|
58
|
+
(typeof CheckNoNewAccessResult)[keyof typeof CheckNoNewAccessResult];
|
|
59
|
+
export declare const AccessCheckResourceType: {
|
|
60
|
+
readonly API_GATEWAY_REST_API: "AWS::ApiGateway::RestApi";
|
|
61
|
+
readonly BACKUP_VAULT: "AWS::Backup::BackupVault";
|
|
62
|
+
readonly CLOUDTRAIL_DASHBOARD: "AWS::CloudTrail::Dashboard";
|
|
63
|
+
readonly CLOUDTRAIL_EVENT_DATA_STORE: "AWS::CloudTrail::EventDataStore";
|
|
64
|
+
readonly CODE_ARTIFACT_DOMAIN: "AWS::CodeArtifact::Domain";
|
|
65
|
+
readonly DYNAMODB_STREAM: "AWS::DynamoDB::Stream";
|
|
66
|
+
readonly DYNAMODB_TABLE: "AWS::DynamoDB::Table";
|
|
67
|
+
readonly EFS_FILESYSTEM: "AWS::EFS::FileSystem";
|
|
68
|
+
readonly KINESIS_DATA_STREAM: "AWS::Kinesis::Stream";
|
|
69
|
+
readonly KINESIS_STREAM_CONSUMER: "AWS::Kinesis::StreamConsumer";
|
|
70
|
+
readonly KMS_KEY: "AWS::KMS::Key";
|
|
71
|
+
readonly LAMBDA_FUNCTION: "AWS::Lambda::Function";
|
|
72
|
+
readonly OPENSEARCHSERVICE_DOMAIN: "AWS::OpenSearchService::Domain";
|
|
73
|
+
readonly ROLE_TRUST: "AWS::IAM::AssumeRolePolicyDocument";
|
|
74
|
+
readonly S3EXPRESS_DIRECTORYBUCKET: "AWS::S3Express::DirectoryBucket";
|
|
75
|
+
readonly S3_ACCESS_POINT: "AWS::S3::AccessPoint";
|
|
76
|
+
readonly S3_BUCKET: "AWS::S3::Bucket";
|
|
77
|
+
readonly S3_EXPRESS_ACCESS_POINT: "AWS::S3Express::AccessPoint";
|
|
78
|
+
readonly S3_GLACIER: "AWS::S3::Glacier";
|
|
79
|
+
readonly S3_OUTPOSTS_ACCESS_POINT: "AWS::S3Outposts::AccessPoint";
|
|
80
|
+
readonly S3_OUTPOSTS_BUCKET: "AWS::S3Outposts::Bucket";
|
|
81
|
+
readonly S3_TABLE: "AWS::S3Tables::Table";
|
|
82
|
+
readonly S3_TABLE_BUCKET: "AWS::S3Tables::TableBucket";
|
|
83
|
+
readonly SECRETSMANAGER_SECRET: "AWS::SecretsManager::Secret";
|
|
84
|
+
readonly SNS_TOPIC: "AWS::SNS::Topic";
|
|
85
|
+
readonly SQS_QUEUE: "AWS::SQS::Queue";
|
|
86
|
+
};
|
|
87
|
+
export type AccessCheckResourceType =
|
|
88
|
+
(typeof AccessCheckResourceType)[keyof typeof AccessCheckResourceType];
|
|
89
|
+
export declare const CheckNoPublicAccessResult: {
|
|
90
|
+
readonly FAIL: "FAIL";
|
|
91
|
+
readonly PASS: "PASS";
|
|
92
|
+
};
|
|
93
|
+
export type CheckNoPublicAccessResult =
|
|
94
|
+
(typeof CheckNoPublicAccessResult)[keyof typeof CheckNoPublicAccessResult];
|
|
95
|
+
export declare const KmsGrantOperation: {
|
|
96
|
+
readonly CREATE_GRANT: "CreateGrant";
|
|
97
|
+
readonly DECRYPT: "Decrypt";
|
|
98
|
+
readonly DESCRIBE_KEY: "DescribeKey";
|
|
99
|
+
readonly ENCRYPT: "Encrypt";
|
|
100
|
+
readonly GENERATE_DATA_KEY: "GenerateDataKey";
|
|
101
|
+
readonly GENERATE_DATA_KEY_PAIR: "GenerateDataKeyPair";
|
|
102
|
+
readonly GENERATE_DATA_KEY_PAIR_WITHOUT_PLAINTEXT: "GenerateDataKeyPairWithoutPlaintext";
|
|
103
|
+
readonly GENERATE_DATA_KEY_WITHOUT_PLAINTEXT: "GenerateDataKeyWithoutPlaintext";
|
|
104
|
+
readonly GET_PUBLIC_KEY: "GetPublicKey";
|
|
105
|
+
readonly REENCRYPT_FROM: "ReEncryptFrom";
|
|
106
|
+
readonly REENCRYPT_TO: "ReEncryptTo";
|
|
107
|
+
readonly RETIRE_GRANT: "RetireGrant";
|
|
108
|
+
readonly SIGN: "Sign";
|
|
109
|
+
readonly VERIFY: "Verify";
|
|
110
|
+
};
|
|
111
|
+
export type KmsGrantOperation =
|
|
112
|
+
(typeof KmsGrantOperation)[keyof typeof KmsGrantOperation];
|
|
113
|
+
export declare const AclPermission: {
|
|
114
|
+
readonly FULL_CONTROL: "FULL_CONTROL";
|
|
115
|
+
readonly READ: "READ";
|
|
116
|
+
readonly READ_ACP: "READ_ACP";
|
|
117
|
+
readonly WRITE: "WRITE";
|
|
118
|
+
readonly WRITE_ACP: "WRITE_ACP";
|
|
119
|
+
};
|
|
120
|
+
export type AclPermission = (typeof AclPermission)[keyof typeof AclPermission];
|
|
121
|
+
export declare const AccessPreviewStatus: {
|
|
122
|
+
readonly COMPLETED: "COMPLETED";
|
|
123
|
+
readonly CREATING: "CREATING";
|
|
124
|
+
readonly FAILED: "FAILED";
|
|
125
|
+
};
|
|
126
|
+
export type AccessPreviewStatus =
|
|
127
|
+
(typeof AccessPreviewStatus)[keyof typeof AccessPreviewStatus];
|
|
128
|
+
export declare const AccessPreviewStatusReasonCode: {
|
|
129
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
130
|
+
readonly INVALID_CONFIGURATION: "INVALID_CONFIGURATION";
|
|
131
|
+
};
|
|
132
|
+
export type AccessPreviewStatusReasonCode =
|
|
133
|
+
(typeof AccessPreviewStatusReasonCode)[keyof typeof AccessPreviewStatusReasonCode];
|
|
134
|
+
export type FindingStatus = "ACTIVE" | "ARCHIVED" | "RESOLVED";
|
|
135
|
+
export declare const ResourceControlPolicyRestriction: {
|
|
136
|
+
readonly APPLICABLE: "APPLICABLE";
|
|
137
|
+
readonly APPLIED: "APPLIED";
|
|
138
|
+
readonly FAILED_TO_EVALUATE_RCP: "FAILED_TO_EVALUATE_RCP";
|
|
139
|
+
readonly NOT_APPLICABLE: "NOT_APPLICABLE";
|
|
140
|
+
};
|
|
141
|
+
export type ResourceControlPolicyRestriction =
|
|
142
|
+
(typeof ResourceControlPolicyRestriction)[keyof typeof ResourceControlPolicyRestriction];
|
|
143
|
+
export type FindingSourceType =
|
|
144
|
+
| "BUCKET_ACL"
|
|
145
|
+
| "POLICY"
|
|
146
|
+
| "S3_ACCESS_POINT"
|
|
147
|
+
| "S3_ACCESS_POINT_ACCOUNT";
|
|
148
|
+
export declare const RecommendationType: {
|
|
149
|
+
readonly UNUSED_PERMISSION_RECOMMENDATION: "UnusedPermissionRecommendation";
|
|
150
|
+
};
|
|
151
|
+
export type RecommendationType =
|
|
152
|
+
(typeof RecommendationType)[keyof typeof RecommendationType];
|
|
153
|
+
export declare const RecommendedRemediationAction: {
|
|
154
|
+
readonly CREATE_POLICY: "CREATE_POLICY";
|
|
155
|
+
readonly DETACH_POLICY: "DETACH_POLICY";
|
|
156
|
+
};
|
|
157
|
+
export type RecommendedRemediationAction =
|
|
158
|
+
(typeof RecommendedRemediationAction)[keyof typeof RecommendedRemediationAction];
|
|
159
|
+
export declare const Status: {
|
|
160
|
+
readonly FAILED: "FAILED";
|
|
161
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
162
|
+
readonly SUCCEEDED: "SUCCEEDED";
|
|
163
|
+
};
|
|
164
|
+
export type Status = (typeof Status)[keyof typeof Status];
|
|
165
|
+
export declare const InternalAccessType: {
|
|
166
|
+
readonly INTRA_ACCOUNT: "INTRA_ACCOUNT";
|
|
167
|
+
readonly INTRA_ORG: "INTRA_ORG";
|
|
168
|
+
};
|
|
169
|
+
export type InternalAccessType =
|
|
170
|
+
(typeof InternalAccessType)[keyof typeof InternalAccessType];
|
|
171
|
+
export declare const PrincipalType: {
|
|
172
|
+
readonly IAM_ROLE: "IAM_ROLE";
|
|
173
|
+
readonly IAM_USER: "IAM_USER";
|
|
174
|
+
};
|
|
175
|
+
export type PrincipalType = (typeof PrincipalType)[keyof typeof PrincipalType];
|
|
176
|
+
export declare const ServiceControlPolicyRestriction: {
|
|
177
|
+
readonly APPLICABLE: "APPLICABLE";
|
|
178
|
+
readonly APPLIED: "APPLIED";
|
|
179
|
+
readonly FAILED_TO_EVALUATE_SCP: "FAILED_TO_EVALUATE_SCP";
|
|
180
|
+
readonly NOT_APPLICABLE: "NOT_APPLICABLE";
|
|
181
|
+
};
|
|
182
|
+
export type ServiceControlPolicyRestriction =
|
|
183
|
+
(typeof ServiceControlPolicyRestriction)[keyof typeof ServiceControlPolicyRestriction];
|
|
184
|
+
export declare const FindingType: {
|
|
185
|
+
readonly EXTERNAL_ACCESS: "ExternalAccess";
|
|
186
|
+
readonly INTERNAL_ACCESS: "InternalAccess";
|
|
187
|
+
readonly UNUSED_IAM_ROLE: "UnusedIAMRole";
|
|
188
|
+
readonly UNUSED_IAM_USER_ACCESS_KEY: "UnusedIAMUserAccessKey";
|
|
189
|
+
readonly UNUSED_IAM_USER_PASSWORD: "UnusedIAMUserPassword";
|
|
190
|
+
readonly UNUSED_PERMISSION: "UnusedPermission";
|
|
191
|
+
};
|
|
192
|
+
export type FindingType = (typeof FindingType)[keyof typeof FindingType];
|
|
193
|
+
export declare const JobErrorCode: {
|
|
194
|
+
readonly AUTHORIZATION_ERROR: "AUTHORIZATION_ERROR";
|
|
195
|
+
readonly RESOURCE_NOT_FOUND_ERROR: "RESOURCE_NOT_FOUND_ERROR";
|
|
196
|
+
readonly SERVICE_ERROR: "SERVICE_ERROR";
|
|
197
|
+
readonly SERVICE_QUOTA_EXCEEDED_ERROR: "SERVICE_QUOTA_EXCEEDED_ERROR";
|
|
198
|
+
};
|
|
199
|
+
export type JobErrorCode = (typeof JobErrorCode)[keyof typeof JobErrorCode];
|
|
200
|
+
export declare const JobStatus: {
|
|
201
|
+
readonly CANCELED: "CANCELED";
|
|
202
|
+
readonly FAILED: "FAILED";
|
|
203
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
204
|
+
readonly SUCCEEDED: "SUCCEEDED";
|
|
205
|
+
};
|
|
206
|
+
export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
|
|
207
|
+
export declare const FindingChangeType: {
|
|
208
|
+
readonly CHANGED: "CHANGED";
|
|
209
|
+
readonly NEW: "NEW";
|
|
210
|
+
readonly UNCHANGED: "UNCHANGED";
|
|
211
|
+
};
|
|
212
|
+
export type FindingChangeType =
|
|
213
|
+
(typeof FindingChangeType)[keyof typeof FindingChangeType];
|
|
214
|
+
export type OrderBy = "ASC" | "DESC";
|
|
215
|
+
export type FindingStatusUpdate = "ACTIVE" | "ARCHIVED";
|
|
216
|
+
export declare const Locale: {
|
|
217
|
+
readonly DE: "DE";
|
|
218
|
+
readonly EN: "EN";
|
|
219
|
+
readonly ES: "ES";
|
|
220
|
+
readonly FR: "FR";
|
|
221
|
+
readonly IT: "IT";
|
|
222
|
+
readonly JA: "JA";
|
|
223
|
+
readonly KO: "KO";
|
|
224
|
+
readonly PT_BR: "PT_BR";
|
|
225
|
+
readonly ZH_CN: "ZH_CN";
|
|
226
|
+
readonly ZH_TW: "ZH_TW";
|
|
227
|
+
};
|
|
228
|
+
export type Locale = (typeof Locale)[keyof typeof Locale];
|
|
229
|
+
export declare const PolicyType: {
|
|
230
|
+
readonly IDENTITY_POLICY: "IDENTITY_POLICY";
|
|
231
|
+
readonly RESOURCE_CONTROL_POLICY: "RESOURCE_CONTROL_POLICY";
|
|
232
|
+
readonly RESOURCE_POLICY: "RESOURCE_POLICY";
|
|
233
|
+
readonly SERVICE_CONTROL_POLICY: "SERVICE_CONTROL_POLICY";
|
|
234
|
+
};
|
|
235
|
+
export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType];
|
|
236
|
+
export declare const ValidatePolicyResourceType: {
|
|
237
|
+
readonly DYNAMODB_TABLE: "AWS::DynamoDB::Table";
|
|
238
|
+
readonly ROLE_TRUST: "AWS::IAM::AssumeRolePolicyDocument";
|
|
239
|
+
readonly S3_ACCESS_POINT: "AWS::S3::AccessPoint";
|
|
240
|
+
readonly S3_BUCKET: "AWS::S3::Bucket";
|
|
241
|
+
readonly S3_MULTI_REGION_ACCESS_POINT: "AWS::S3::MultiRegionAccessPoint";
|
|
242
|
+
readonly S3_OBJECT_LAMBDA_ACCESS_POINT: "AWS::S3ObjectLambda::AccessPoint";
|
|
243
|
+
};
|
|
244
|
+
export type ValidatePolicyResourceType =
|
|
245
|
+
(typeof ValidatePolicyResourceType)[keyof typeof ValidatePolicyResourceType];
|
|
246
|
+
export declare const ValidatePolicyFindingType: {
|
|
247
|
+
readonly ERROR: "ERROR";
|
|
248
|
+
readonly SECURITY_WARNING: "SECURITY_WARNING";
|
|
249
|
+
readonly SUGGESTION: "SUGGESTION";
|
|
250
|
+
readonly WARNING: "WARNING";
|
|
251
|
+
};
|
|
252
|
+
export type ValidatePolicyFindingType =
|
|
253
|
+
(typeof ValidatePolicyFindingType)[keyof typeof ValidatePolicyFindingType];
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { AccessAnalyzerServiceException as __BaseException } from "./AccessAnalyzerServiceException";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
ValidationExceptionReason,
|
|
6
|
-
} from "./models_0";
|
|
3
|
+
import { ValidationExceptionReason } from "./enums";
|
|
4
|
+
import { ValidationExceptionField } from "./models_0";
|
|
7
5
|
export declare class AccessDeniedException extends __BaseException {
|
|
8
6
|
readonly name: "AccessDeniedException";
|
|
9
7
|
readonly $fault: "client";
|