@aws-sdk/client-accessanalyzer 3.687.0 → 3.692.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/README.md +8 -0
- package/dist-cjs/index.js +58 -0
- package/dist-es/AccessAnalyzer.js +2 -0
- package/dist-es/commands/UpdateAnalyzerCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +31 -0
- package/dist-types/AccessAnalyzer.d.ts +7 -0
- package/dist-types/AccessAnalyzerClient.d.ts +3 -2
- package/dist-types/commands/CreateAnalyzerCommand.d.ts +14 -0
- package/dist-types/commands/GetAnalyzerCommand.d.ts +14 -0
- package/dist-types/commands/GetFindingCommand.d.ts +1 -0
- package/dist-types/commands/GetFindingV2Command.d.ts +1 -0
- package/dist-types/commands/ListAccessPreviewFindingsCommand.d.ts +1 -0
- package/dist-types/commands/ListAnalyzedResourcesCommand.d.ts +1 -2
- package/dist-types/commands/ListAnalyzersCommand.d.ts +14 -0
- package/dist-types/commands/ListFindingsCommand.d.ts +1 -0
- package/dist-types/commands/UpdateAnalyzerCommand.d.ts +126 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +326 -207
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/AccessAnalyzer.d.ts +17 -0
- package/dist-types/ts3.4/AccessAnalyzerClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/UpdateAnalyzerCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +223 -187
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +35 -35
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { AccessAnalyzerServiceException as __BaseException } from "./AccessAnalyzerServiceException";
|
|
3
3
|
export interface Access {
|
|
4
|
-
actions?: string[];
|
|
5
|
-
resources?: string[];
|
|
4
|
+
actions?: string[] | undefined;
|
|
5
|
+
resources?: string[] | undefined;
|
|
6
6
|
}
|
|
7
7
|
export declare class AccessDeniedException extends __BaseException {
|
|
8
8
|
readonly name: "AccessDeniedException";
|
|
@@ -19,22 +19,22 @@ export declare class ConflictException extends __BaseException {
|
|
|
19
19
|
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
20
20
|
}
|
|
21
21
|
export interface Criterion {
|
|
22
|
-
eq?: string[];
|
|
23
|
-
neq?: string[];
|
|
24
|
-
contains?: string[];
|
|
25
|
-
exists?: boolean;
|
|
22
|
+
eq?: string[] | undefined;
|
|
23
|
+
neq?: string[] | undefined;
|
|
24
|
+
contains?: string[] | undefined;
|
|
25
|
+
exists?: boolean | undefined;
|
|
26
26
|
}
|
|
27
27
|
export interface CreateArchiveRuleRequest {
|
|
28
28
|
analyzerName: string | undefined;
|
|
29
29
|
ruleName: string | undefined;
|
|
30
30
|
filter: Record<string, Criterion> | undefined;
|
|
31
|
-
clientToken?: string;
|
|
31
|
+
clientToken?: string | undefined;
|
|
32
32
|
}
|
|
33
33
|
export declare class InternalServerException extends __BaseException {
|
|
34
34
|
readonly name: "InternalServerException";
|
|
35
35
|
readonly $fault: "server";
|
|
36
36
|
$retryable: {};
|
|
37
|
-
retryAfterSeconds?: number;
|
|
37
|
+
retryAfterSeconds?: number | undefined;
|
|
38
38
|
constructor(
|
|
39
39
|
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
40
40
|
);
|
|
@@ -63,7 +63,7 @@ export declare class ThrottlingException extends __BaseException {
|
|
|
63
63
|
$retryable: {
|
|
64
64
|
throttling: boolean;
|
|
65
65
|
};
|
|
66
|
-
retryAfterSeconds?: number;
|
|
66
|
+
retryAfterSeconds?: number | undefined;
|
|
67
67
|
constructor(
|
|
68
68
|
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
69
69
|
);
|
|
@@ -85,7 +85,7 @@ export declare class ValidationException extends __BaseException {
|
|
|
85
85
|
readonly name: "ValidationException";
|
|
86
86
|
readonly $fault: "client";
|
|
87
87
|
reason: ValidationExceptionReason | undefined;
|
|
88
|
-
fieldList?: ValidationExceptionField[];
|
|
88
|
+
fieldList?: ValidationExceptionField[] | undefined;
|
|
89
89
|
constructor(
|
|
90
90
|
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
91
91
|
);
|
|
@@ -93,7 +93,7 @@ export declare class ValidationException extends __BaseException {
|
|
|
93
93
|
export interface DeleteArchiveRuleRequest {
|
|
94
94
|
analyzerName: string | undefined;
|
|
95
95
|
ruleName: string | undefined;
|
|
96
|
-
clientToken?: string;
|
|
96
|
+
clientToken?: string | undefined;
|
|
97
97
|
}
|
|
98
98
|
export interface GetArchiveRuleRequest {
|
|
99
99
|
analyzerName: string | undefined;
|
|
@@ -110,25 +110,33 @@ export interface GetArchiveRuleResponse {
|
|
|
110
110
|
}
|
|
111
111
|
export interface ListArchiveRulesRequest {
|
|
112
112
|
analyzerName: string | undefined;
|
|
113
|
-
nextToken?: string;
|
|
114
|
-
maxResults?: number;
|
|
113
|
+
nextToken?: string | undefined;
|
|
114
|
+
maxResults?: number | undefined;
|
|
115
115
|
}
|
|
116
116
|
export interface ListArchiveRulesResponse {
|
|
117
117
|
archiveRules: ArchiveRuleSummary[] | undefined;
|
|
118
|
-
nextToken?: string;
|
|
118
|
+
nextToken?: string | undefined;
|
|
119
119
|
}
|
|
120
120
|
export interface UpdateArchiveRuleRequest {
|
|
121
121
|
analyzerName: string | undefined;
|
|
122
122
|
ruleName: string | undefined;
|
|
123
123
|
filter: Record<string, Criterion> | undefined;
|
|
124
|
-
clientToken?: string;
|
|
124
|
+
clientToken?: string | undefined;
|
|
125
125
|
}
|
|
126
126
|
export interface InlineArchiveRule {
|
|
127
127
|
ruleName: string | undefined;
|
|
128
128
|
filter: Record<string, Criterion> | undefined;
|
|
129
129
|
}
|
|
130
|
+
export interface AnalysisRuleCriteria {
|
|
131
|
+
accountIds?: string[] | undefined;
|
|
132
|
+
resourceTags?: Record<string, string>[] | undefined;
|
|
133
|
+
}
|
|
134
|
+
export interface AnalysisRule {
|
|
135
|
+
exclusions?: AnalysisRuleCriteria[] | undefined;
|
|
136
|
+
}
|
|
130
137
|
export interface UnusedAccessConfiguration {
|
|
131
|
-
unusedAccessAge?: number;
|
|
138
|
+
unusedAccessAge?: number | undefined;
|
|
139
|
+
analysisRule?: AnalysisRule | undefined;
|
|
132
140
|
}
|
|
133
141
|
export type AnalyzerConfiguration =
|
|
134
142
|
| AnalyzerConfiguration.UnusedAccessMember
|
|
@@ -156,17 +164,17 @@ export type Type =
|
|
|
156
164
|
export interface CreateAnalyzerRequest {
|
|
157
165
|
analyzerName: string | undefined;
|
|
158
166
|
type: Type | undefined;
|
|
159
|
-
archiveRules?: InlineArchiveRule[];
|
|
160
|
-
tags?: Record<string, string
|
|
161
|
-
clientToken?: string;
|
|
162
|
-
configuration?: AnalyzerConfiguration;
|
|
167
|
+
archiveRules?: InlineArchiveRule[] | undefined;
|
|
168
|
+
tags?: Record<string, string> | undefined;
|
|
169
|
+
clientToken?: string | undefined;
|
|
170
|
+
configuration?: AnalyzerConfiguration | undefined;
|
|
163
171
|
}
|
|
164
172
|
export interface CreateAnalyzerResponse {
|
|
165
|
-
arn?: string;
|
|
173
|
+
arn?: string | undefined;
|
|
166
174
|
}
|
|
167
175
|
export interface DeleteAnalyzerRequest {
|
|
168
176
|
analyzerName: string | undefined;
|
|
169
|
-
clientToken?: string;
|
|
177
|
+
clientToken?: string | undefined;
|
|
170
178
|
}
|
|
171
179
|
export interface GetAnalyzerRequest {
|
|
172
180
|
analyzerName: string | undefined;
|
|
@@ -185,29 +193,36 @@ export interface AnalyzerSummary {
|
|
|
185
193
|
name: string | undefined;
|
|
186
194
|
type: Type | undefined;
|
|
187
195
|
createdAt: Date | undefined;
|
|
188
|
-
lastResourceAnalyzed?: string;
|
|
189
|
-
lastResourceAnalyzedAt?: Date;
|
|
190
|
-
tags?: Record<string, string
|
|
196
|
+
lastResourceAnalyzed?: string | undefined;
|
|
197
|
+
lastResourceAnalyzedAt?: Date | undefined;
|
|
198
|
+
tags?: Record<string, string> | undefined;
|
|
191
199
|
status: AnalyzerStatus | undefined;
|
|
192
|
-
statusReason?: StatusReason;
|
|
193
|
-
configuration?: AnalyzerConfiguration;
|
|
200
|
+
statusReason?: StatusReason | undefined;
|
|
201
|
+
configuration?: AnalyzerConfiguration | undefined;
|
|
194
202
|
}
|
|
195
203
|
export interface GetAnalyzerResponse {
|
|
196
204
|
analyzer: AnalyzerSummary | undefined;
|
|
197
205
|
}
|
|
198
206
|
export interface ListAnalyzersRequest {
|
|
199
|
-
nextToken?: string;
|
|
200
|
-
maxResults?: number;
|
|
201
|
-
type?: Type;
|
|
207
|
+
nextToken?: string | undefined;
|
|
208
|
+
maxResults?: number | undefined;
|
|
209
|
+
type?: Type | undefined;
|
|
202
210
|
}
|
|
203
211
|
export interface ListAnalyzersResponse {
|
|
204
212
|
analyzers: AnalyzerSummary[] | undefined;
|
|
205
|
-
nextToken?: string;
|
|
213
|
+
nextToken?: string | undefined;
|
|
214
|
+
}
|
|
215
|
+
export interface UpdateAnalyzerRequest {
|
|
216
|
+
analyzerName: string | undefined;
|
|
217
|
+
configuration?: AnalyzerConfiguration | undefined;
|
|
218
|
+
}
|
|
219
|
+
export interface UpdateAnalyzerResponse {
|
|
220
|
+
configuration?: AnalyzerConfiguration | undefined;
|
|
206
221
|
}
|
|
207
222
|
export interface ApplyArchiveRuleRequest {
|
|
208
223
|
analyzerArn: string | undefined;
|
|
209
224
|
ruleName: string | undefined;
|
|
210
|
-
clientToken?: string;
|
|
225
|
+
clientToken?: string | undefined;
|
|
211
226
|
}
|
|
212
227
|
export interface CancelPolicyGenerationRequest {
|
|
213
228
|
jobId: string | undefined;
|
|
@@ -225,9 +240,9 @@ export interface CheckAccessNotGrantedRequest {
|
|
|
225
240
|
policyType: AccessCheckPolicyType | undefined;
|
|
226
241
|
}
|
|
227
242
|
export interface ReasonSummary {
|
|
228
|
-
description?: string;
|
|
229
|
-
statementIndex?: number;
|
|
230
|
-
statementId?: string;
|
|
243
|
+
description?: string | undefined;
|
|
244
|
+
statementIndex?: number | undefined;
|
|
245
|
+
statementId?: string | undefined;
|
|
231
246
|
}
|
|
232
247
|
export declare const CheckAccessNotGrantedResult: {
|
|
233
248
|
readonly FAIL: "FAIL";
|
|
@@ -236,9 +251,9 @@ export declare const CheckAccessNotGrantedResult: {
|
|
|
236
251
|
export type CheckAccessNotGrantedResult =
|
|
237
252
|
(typeof CheckAccessNotGrantedResult)[keyof typeof CheckAccessNotGrantedResult];
|
|
238
253
|
export interface CheckAccessNotGrantedResponse {
|
|
239
|
-
result?: CheckAccessNotGrantedResult;
|
|
240
|
-
message?: string;
|
|
241
|
-
reasons?: ReasonSummary[];
|
|
254
|
+
result?: CheckAccessNotGrantedResult | undefined;
|
|
255
|
+
message?: string | undefined;
|
|
256
|
+
reasons?: ReasonSummary[] | undefined;
|
|
242
257
|
}
|
|
243
258
|
export declare class InvalidParameterException extends __BaseException {
|
|
244
259
|
readonly name: "InvalidParameterException";
|
|
@@ -267,9 +282,9 @@ export declare const CheckNoNewAccessResult: {
|
|
|
267
282
|
export type CheckNoNewAccessResult =
|
|
268
283
|
(typeof CheckNoNewAccessResult)[keyof typeof CheckNoNewAccessResult];
|
|
269
284
|
export interface CheckNoNewAccessResponse {
|
|
270
|
-
result?: CheckNoNewAccessResult;
|
|
271
|
-
message?: string;
|
|
272
|
-
reasons?: ReasonSummary[];
|
|
285
|
+
result?: CheckNoNewAccessResult | undefined;
|
|
286
|
+
message?: string | undefined;
|
|
287
|
+
reasons?: ReasonSummary[] | undefined;
|
|
273
288
|
}
|
|
274
289
|
export declare const AccessCheckResourceType: {
|
|
275
290
|
readonly DYNAMODB_STREAM: "AWS::DynamoDB::Stream";
|
|
@@ -304,33 +319,33 @@ export declare const CheckNoPublicAccessResult: {
|
|
|
304
319
|
export type CheckNoPublicAccessResult =
|
|
305
320
|
(typeof CheckNoPublicAccessResult)[keyof typeof CheckNoPublicAccessResult];
|
|
306
321
|
export interface CheckNoPublicAccessResponse {
|
|
307
|
-
result?: CheckNoPublicAccessResult;
|
|
308
|
-
message?: string;
|
|
309
|
-
reasons?: ReasonSummary[];
|
|
322
|
+
result?: CheckNoPublicAccessResult | undefined;
|
|
323
|
+
message?: string | undefined;
|
|
324
|
+
reasons?: ReasonSummary[] | undefined;
|
|
310
325
|
}
|
|
311
326
|
export interface DynamodbStreamConfiguration {
|
|
312
|
-
streamPolicy?: string;
|
|
327
|
+
streamPolicy?: string | undefined;
|
|
313
328
|
}
|
|
314
329
|
export interface DynamodbTableConfiguration {
|
|
315
|
-
tablePolicy?: string;
|
|
330
|
+
tablePolicy?: string | undefined;
|
|
316
331
|
}
|
|
317
332
|
export interface EbsSnapshotConfiguration {
|
|
318
|
-
userIds?: string[];
|
|
319
|
-
groups?: string[];
|
|
320
|
-
kmsKeyId?: string;
|
|
333
|
+
userIds?: string[] | undefined;
|
|
334
|
+
groups?: string[] | undefined;
|
|
335
|
+
kmsKeyId?: string | undefined;
|
|
321
336
|
}
|
|
322
337
|
export interface EcrRepositoryConfiguration {
|
|
323
|
-
repositoryPolicy?: string;
|
|
338
|
+
repositoryPolicy?: string | undefined;
|
|
324
339
|
}
|
|
325
340
|
export interface EfsFileSystemConfiguration {
|
|
326
|
-
fileSystemPolicy?: string;
|
|
341
|
+
fileSystemPolicy?: string | undefined;
|
|
327
342
|
}
|
|
328
343
|
export interface IamRoleConfiguration {
|
|
329
|
-
trustPolicy?: string;
|
|
344
|
+
trustPolicy?: string | undefined;
|
|
330
345
|
}
|
|
331
346
|
export interface KmsGrantConstraints {
|
|
332
|
-
encryptionContextEquals?: Record<string, string
|
|
333
|
-
encryptionContextSubset?: Record<string, string
|
|
347
|
+
encryptionContextEquals?: Record<string, string> | undefined;
|
|
348
|
+
encryptionContextSubset?: Record<string, string> | undefined;
|
|
334
349
|
}
|
|
335
350
|
export declare const KmsGrantOperation: {
|
|
336
351
|
readonly CREATE_GRANT: "CreateGrant";
|
|
@@ -353,13 +368,13 @@ export type KmsGrantOperation =
|
|
|
353
368
|
export interface KmsGrantConfiguration {
|
|
354
369
|
operations: KmsGrantOperation[] | undefined;
|
|
355
370
|
granteePrincipal: string | undefined;
|
|
356
|
-
retiringPrincipal?: string;
|
|
357
|
-
constraints?: KmsGrantConstraints;
|
|
371
|
+
retiringPrincipal?: string | undefined;
|
|
372
|
+
constraints?: KmsGrantConstraints | undefined;
|
|
358
373
|
issuingAccount: string | undefined;
|
|
359
374
|
}
|
|
360
375
|
export interface KmsKeyConfiguration {
|
|
361
|
-
keyPolicies?: Record<string, string
|
|
362
|
-
grants?: KmsGrantConfiguration[];
|
|
376
|
+
keyPolicies?: Record<string, string> | undefined;
|
|
377
|
+
grants?: KmsGrantConfiguration[] | undefined;
|
|
363
378
|
}
|
|
364
379
|
export type RdsDbClusterSnapshotAttributeValue =
|
|
365
380
|
| RdsDbClusterSnapshotAttributeValue.AccountIdsMember
|
|
@@ -383,8 +398,8 @@ export declare namespace RdsDbClusterSnapshotAttributeValue {
|
|
|
383
398
|
) => T;
|
|
384
399
|
}
|
|
385
400
|
export interface RdsDbClusterSnapshotConfiguration {
|
|
386
|
-
attributes?: Record<string, RdsDbClusterSnapshotAttributeValue
|
|
387
|
-
kmsKeyId?: string;
|
|
401
|
+
attributes?: Record<string, RdsDbClusterSnapshotAttributeValue> | undefined;
|
|
402
|
+
kmsKeyId?: string | undefined;
|
|
388
403
|
}
|
|
389
404
|
export type RdsDbSnapshotAttributeValue =
|
|
390
405
|
| RdsDbSnapshotAttributeValue.AccountIdsMember
|
|
@@ -408,8 +423,8 @@ export declare namespace RdsDbSnapshotAttributeValue {
|
|
|
408
423
|
) => T;
|
|
409
424
|
}
|
|
410
425
|
export interface RdsDbSnapshotConfiguration {
|
|
411
|
-
attributes?: Record<string, RdsDbSnapshotAttributeValue
|
|
412
|
-
kmsKeyId?: string;
|
|
426
|
+
attributes?: Record<string, RdsDbSnapshotAttributeValue> | undefined;
|
|
427
|
+
kmsKeyId?: string | undefined;
|
|
413
428
|
}
|
|
414
429
|
export interface InternetConfiguration {}
|
|
415
430
|
export interface VpcConfiguration {
|
|
@@ -447,9 +462,9 @@ export interface S3PublicAccessBlockConfiguration {
|
|
|
447
462
|
restrictPublicBuckets: boolean | undefined;
|
|
448
463
|
}
|
|
449
464
|
export interface S3AccessPointConfiguration {
|
|
450
|
-
accessPointPolicy?: string;
|
|
451
|
-
publicAccessBlock?: S3PublicAccessBlockConfiguration;
|
|
452
|
-
networkOrigin?: NetworkOriginConfiguration;
|
|
465
|
+
accessPointPolicy?: string | undefined;
|
|
466
|
+
publicAccessBlock?: S3PublicAccessBlockConfiguration | undefined;
|
|
467
|
+
networkOrigin?: NetworkOriginConfiguration | undefined;
|
|
453
468
|
}
|
|
454
469
|
export type AclGrantee =
|
|
455
470
|
| AclGrantee.IdMember
|
|
@@ -491,23 +506,23 @@ export interface S3BucketAclGrantConfiguration {
|
|
|
491
506
|
grantee: AclGrantee | undefined;
|
|
492
507
|
}
|
|
493
508
|
export interface S3BucketConfiguration {
|
|
494
|
-
bucketPolicy?: string;
|
|
495
|
-
bucketAclGrants?: S3BucketAclGrantConfiguration[];
|
|
496
|
-
bucketPublicAccessBlock?: S3PublicAccessBlockConfiguration;
|
|
497
|
-
accessPoints?: Record<string, S3AccessPointConfiguration
|
|
509
|
+
bucketPolicy?: string | undefined;
|
|
510
|
+
bucketAclGrants?: S3BucketAclGrantConfiguration[] | undefined;
|
|
511
|
+
bucketPublicAccessBlock?: S3PublicAccessBlockConfiguration | undefined;
|
|
512
|
+
accessPoints?: Record<string, S3AccessPointConfiguration> | undefined;
|
|
498
513
|
}
|
|
499
514
|
export interface S3ExpressDirectoryBucketConfiguration {
|
|
500
|
-
bucketPolicy?: string;
|
|
515
|
+
bucketPolicy?: string | undefined;
|
|
501
516
|
}
|
|
502
517
|
export interface SecretsManagerSecretConfiguration {
|
|
503
|
-
kmsKeyId?: string;
|
|
504
|
-
secretPolicy?: string;
|
|
518
|
+
kmsKeyId?: string | undefined;
|
|
519
|
+
secretPolicy?: string | undefined;
|
|
505
520
|
}
|
|
506
521
|
export interface SnsTopicConfiguration {
|
|
507
|
-
topicPolicy?: string;
|
|
522
|
+
topicPolicy?: string | undefined;
|
|
508
523
|
}
|
|
509
524
|
export interface SqsQueueConfiguration {
|
|
510
|
-
queuePolicy?: string;
|
|
525
|
+
queuePolicy?: string | undefined;
|
|
511
526
|
}
|
|
512
527
|
export type Configuration =
|
|
513
528
|
| Configuration.DynamodbStreamMember
|
|
@@ -805,7 +820,7 @@ export declare namespace Configuration {
|
|
|
805
820
|
export interface CreateAccessPreviewRequest {
|
|
806
821
|
analyzerArn: string | undefined;
|
|
807
822
|
configurations: Record<string, Configuration> | undefined;
|
|
808
|
-
clientToken?: string;
|
|
823
|
+
clientToken?: string | undefined;
|
|
809
824
|
}
|
|
810
825
|
export interface CreateAccessPreviewResponse {
|
|
811
826
|
id: string | undefined;
|
|
@@ -840,7 +855,7 @@ export interface AccessPreview {
|
|
|
840
855
|
configurations: Record<string, Configuration> | undefined;
|
|
841
856
|
createdAt: Date | undefined;
|
|
842
857
|
status: AccessPreviewStatus | undefined;
|
|
843
|
-
statusReason?: AccessPreviewStatusReason;
|
|
858
|
+
statusReason?: AccessPreviewStatusReason | undefined;
|
|
844
859
|
}
|
|
845
860
|
export interface GetAccessPreviewResponse {
|
|
846
861
|
accessPreview: AccessPreview | undefined;
|
|
@@ -856,6 +871,7 @@ export type ResourceType =
|
|
|
856
871
|
| "AWS::ECR::Repository"
|
|
857
872
|
| "AWS::EFS::FileSystem"
|
|
858
873
|
| "AWS::IAM::Role"
|
|
874
|
+
| "AWS::IAM::User"
|
|
859
875
|
| "AWS::KMS::Key"
|
|
860
876
|
| "AWS::Lambda::Function"
|
|
861
877
|
| "AWS::Lambda::LayerVersion"
|
|
@@ -874,22 +890,29 @@ export interface AnalyzedResource {
|
|
|
874
890
|
analyzedAt: Date | undefined;
|
|
875
891
|
updatedAt: Date | undefined;
|
|
876
892
|
isPublic: boolean | undefined;
|
|
877
|
-
actions?: string[];
|
|
878
|
-
sharedVia?: string[];
|
|
879
|
-
status?: FindingStatus;
|
|
893
|
+
actions?: string[] | undefined;
|
|
894
|
+
sharedVia?: string[] | undefined;
|
|
895
|
+
status?: FindingStatus | undefined;
|
|
880
896
|
resourceOwnerAccount: string | undefined;
|
|
881
|
-
error?: string;
|
|
897
|
+
error?: string | undefined;
|
|
882
898
|
}
|
|
883
899
|
export interface GetAnalyzedResourceResponse {
|
|
884
|
-
resource?: AnalyzedResource;
|
|
900
|
+
resource?: AnalyzedResource | undefined;
|
|
885
901
|
}
|
|
886
902
|
export interface GetFindingRequest {
|
|
887
903
|
analyzerArn: string | undefined;
|
|
888
904
|
id: string | undefined;
|
|
889
905
|
}
|
|
906
|
+
export declare const ResourceControlPolicyRestriction: {
|
|
907
|
+
readonly APPLICABLE: "APPLICABLE";
|
|
908
|
+
readonly FAILED_TO_EVALUATE_RCP: "FAILED_TO_EVALUATE_RCP";
|
|
909
|
+
readonly NOT_APPLICABLE: "NOT_APPLICABLE";
|
|
910
|
+
};
|
|
911
|
+
export type ResourceControlPolicyRestriction =
|
|
912
|
+
(typeof ResourceControlPolicyRestriction)[keyof typeof ResourceControlPolicyRestriction];
|
|
890
913
|
export interface FindingSourceDetail {
|
|
891
|
-
accessPointArn?: string;
|
|
892
|
-
accessPointAccount?: string;
|
|
914
|
+
accessPointArn?: string | undefined;
|
|
915
|
+
accessPointAccount?: string | undefined;
|
|
893
916
|
}
|
|
894
917
|
export type FindingSourceType =
|
|
895
918
|
| "BUCKET_ACL"
|
|
@@ -898,14 +921,14 @@ export type FindingSourceType =
|
|
|
898
921
|
| "S3_ACCESS_POINT_ACCOUNT";
|
|
899
922
|
export interface FindingSource {
|
|
900
923
|
type: FindingSourceType | undefined;
|
|
901
|
-
detail?: FindingSourceDetail;
|
|
924
|
+
detail?: FindingSourceDetail | undefined;
|
|
902
925
|
}
|
|
903
926
|
export interface Finding {
|
|
904
927
|
id: string | undefined;
|
|
905
|
-
principal?: Record<string, string
|
|
906
|
-
action?: string[];
|
|
907
|
-
resource?: string;
|
|
908
|
-
isPublic?: boolean;
|
|
928
|
+
principal?: Record<string, string> | undefined;
|
|
929
|
+
action?: string[] | undefined;
|
|
930
|
+
resource?: string | undefined;
|
|
931
|
+
isPublic?: boolean | undefined;
|
|
909
932
|
resourceType: ResourceType | undefined;
|
|
910
933
|
condition: Record<string, string> | undefined;
|
|
911
934
|
createdAt: Date | undefined;
|
|
@@ -913,17 +936,20 @@ export interface Finding {
|
|
|
913
936
|
updatedAt: Date | undefined;
|
|
914
937
|
status: FindingStatus | undefined;
|
|
915
938
|
resourceOwnerAccount: string | undefined;
|
|
916
|
-
error?: string;
|
|
917
|
-
sources?: FindingSource[];
|
|
939
|
+
error?: string | undefined;
|
|
940
|
+
sources?: FindingSource[] | undefined;
|
|
941
|
+
resourceControlPolicyRestriction?:
|
|
942
|
+
| ResourceControlPolicyRestriction
|
|
943
|
+
| undefined;
|
|
918
944
|
}
|
|
919
945
|
export interface GetFindingResponse {
|
|
920
|
-
finding?: Finding;
|
|
946
|
+
finding?: Finding | undefined;
|
|
921
947
|
}
|
|
922
948
|
export interface GetFindingRecommendationRequest {
|
|
923
949
|
analyzerArn: string | undefined;
|
|
924
950
|
id: string | undefined;
|
|
925
|
-
maxResults?: number;
|
|
926
|
-
nextToken?: string;
|
|
951
|
+
maxResults?: number | undefined;
|
|
952
|
+
nextToken?: string | undefined;
|
|
927
953
|
}
|
|
928
954
|
export interface RecommendationError {
|
|
929
955
|
code: string | undefined;
|
|
@@ -941,10 +967,10 @@ export declare const RecommendedRemediationAction: {
|
|
|
941
967
|
export type RecommendedRemediationAction =
|
|
942
968
|
(typeof RecommendedRemediationAction)[keyof typeof RecommendedRemediationAction];
|
|
943
969
|
export interface UnusedPermissionsRecommendedStep {
|
|
944
|
-
policyUpdatedAt?: Date;
|
|
970
|
+
policyUpdatedAt?: Date | undefined;
|
|
945
971
|
recommendedAction: RecommendedRemediationAction | undefined;
|
|
946
|
-
recommendedPolicy?: string;
|
|
947
|
-
existingPolicyId?: string;
|
|
972
|
+
recommendedPolicy?: string | undefined;
|
|
973
|
+
existingPolicyId?: string | undefined;
|
|
948
974
|
}
|
|
949
975
|
export type RecommendedStep =
|
|
950
976
|
| RecommendedStep.UnusedPermissionsRecommendedStepMember
|
|
@@ -974,45 +1000,48 @@ export declare const Status: {
|
|
|
974
1000
|
export type Status = (typeof Status)[keyof typeof Status];
|
|
975
1001
|
export interface GetFindingRecommendationResponse {
|
|
976
1002
|
startedAt: Date | undefined;
|
|
977
|
-
completedAt?: Date;
|
|
978
|
-
nextToken?: string;
|
|
979
|
-
error?: RecommendationError;
|
|
1003
|
+
completedAt?: Date | undefined;
|
|
1004
|
+
nextToken?: string | undefined;
|
|
1005
|
+
error?: RecommendationError | undefined;
|
|
980
1006
|
resourceArn: string | undefined;
|
|
981
|
-
recommendedSteps?: RecommendedStep[];
|
|
1007
|
+
recommendedSteps?: RecommendedStep[] | undefined;
|
|
982
1008
|
recommendationType: RecommendationType | undefined;
|
|
983
1009
|
status: Status | undefined;
|
|
984
1010
|
}
|
|
985
1011
|
export interface GetFindingV2Request {
|
|
986
1012
|
analyzerArn: string | undefined;
|
|
987
1013
|
id: string | undefined;
|
|
988
|
-
maxResults?: number;
|
|
989
|
-
nextToken?: string;
|
|
1014
|
+
maxResults?: number | undefined;
|
|
1015
|
+
nextToken?: string | undefined;
|
|
990
1016
|
}
|
|
991
1017
|
export interface ExternalAccessDetails {
|
|
992
|
-
action?: string[];
|
|
1018
|
+
action?: string[] | undefined;
|
|
993
1019
|
condition: Record<string, string> | undefined;
|
|
994
|
-
isPublic?: boolean;
|
|
995
|
-
principal?: Record<string, string
|
|
996
|
-
sources?: FindingSource[];
|
|
1020
|
+
isPublic?: boolean | undefined;
|
|
1021
|
+
principal?: Record<string, string> | undefined;
|
|
1022
|
+
sources?: FindingSource[] | undefined;
|
|
1023
|
+
resourceControlPolicyRestriction?:
|
|
1024
|
+
| ResourceControlPolicyRestriction
|
|
1025
|
+
| undefined;
|
|
997
1026
|
}
|
|
998
1027
|
export interface UnusedIamRoleDetails {
|
|
999
|
-
lastAccessed?: Date;
|
|
1028
|
+
lastAccessed?: Date | undefined;
|
|
1000
1029
|
}
|
|
1001
1030
|
export interface UnusedIamUserAccessKeyDetails {
|
|
1002
1031
|
accessKeyId: string | undefined;
|
|
1003
|
-
lastAccessed?: Date;
|
|
1032
|
+
lastAccessed?: Date | undefined;
|
|
1004
1033
|
}
|
|
1005
1034
|
export interface UnusedIamUserPasswordDetails {
|
|
1006
|
-
lastAccessed?: Date;
|
|
1035
|
+
lastAccessed?: Date | undefined;
|
|
1007
1036
|
}
|
|
1008
1037
|
export interface UnusedAction {
|
|
1009
1038
|
action: string | undefined;
|
|
1010
|
-
lastAccessed?: Date;
|
|
1039
|
+
lastAccessed?: Date | undefined;
|
|
1011
1040
|
}
|
|
1012
1041
|
export interface UnusedPermissionDetails {
|
|
1013
|
-
actions?: UnusedAction[];
|
|
1042
|
+
actions?: UnusedAction[] | undefined;
|
|
1014
1043
|
serviceNamespace: string | undefined;
|
|
1015
|
-
lastAccessed?: Date;
|
|
1044
|
+
lastAccessed?: Date | undefined;
|
|
1016
1045
|
}
|
|
1017
1046
|
export type FindingDetails =
|
|
1018
1047
|
| FindingDetails.ExternalAccessDetailsMember
|
|
@@ -1091,29 +1120,29 @@ export type FindingType = (typeof FindingType)[keyof typeof FindingType];
|
|
|
1091
1120
|
export interface GetFindingV2Response {
|
|
1092
1121
|
analyzedAt: Date | undefined;
|
|
1093
1122
|
createdAt: Date | undefined;
|
|
1094
|
-
error?: string;
|
|
1123
|
+
error?: string | undefined;
|
|
1095
1124
|
id: string | undefined;
|
|
1096
|
-
nextToken?: string;
|
|
1097
|
-
resource?: string;
|
|
1125
|
+
nextToken?: string | undefined;
|
|
1126
|
+
resource?: string | undefined;
|
|
1098
1127
|
resourceType: ResourceType | undefined;
|
|
1099
1128
|
resourceOwnerAccount: string | undefined;
|
|
1100
1129
|
status: FindingStatus | undefined;
|
|
1101
1130
|
updatedAt: Date | undefined;
|
|
1102
1131
|
findingDetails: FindingDetails[] | undefined;
|
|
1103
|
-
findingType?: FindingType;
|
|
1132
|
+
findingType?: FindingType | undefined;
|
|
1104
1133
|
}
|
|
1105
1134
|
export interface GetGeneratedPolicyRequest {
|
|
1106
1135
|
jobId: string | undefined;
|
|
1107
|
-
includeResourcePlaceholders?: boolean;
|
|
1108
|
-
includeServiceLevelTemplate?: boolean;
|
|
1136
|
+
includeResourcePlaceholders?: boolean | undefined;
|
|
1137
|
+
includeServiceLevelTemplate?: boolean | undefined;
|
|
1109
1138
|
}
|
|
1110
1139
|
export interface GeneratedPolicy {
|
|
1111
1140
|
policy: string | undefined;
|
|
1112
1141
|
}
|
|
1113
1142
|
export interface TrailProperties {
|
|
1114
1143
|
cloudTrailArn: string | undefined;
|
|
1115
|
-
regions?: string[];
|
|
1116
|
-
allRegions?: boolean;
|
|
1144
|
+
regions?: string[] | undefined;
|
|
1145
|
+
allRegions?: boolean | undefined;
|
|
1117
1146
|
}
|
|
1118
1147
|
export interface CloudTrailProperties {
|
|
1119
1148
|
trailProperties: TrailProperties[] | undefined;
|
|
@@ -1121,13 +1150,13 @@ export interface CloudTrailProperties {
|
|
|
1121
1150
|
endTime: Date | undefined;
|
|
1122
1151
|
}
|
|
1123
1152
|
export interface GeneratedPolicyProperties {
|
|
1124
|
-
isComplete?: boolean;
|
|
1153
|
+
isComplete?: boolean | undefined;
|
|
1125
1154
|
principalArn: string | undefined;
|
|
1126
|
-
cloudTrailProperties?: CloudTrailProperties;
|
|
1155
|
+
cloudTrailProperties?: CloudTrailProperties | undefined;
|
|
1127
1156
|
}
|
|
1128
1157
|
export interface GeneratedPolicyResult {
|
|
1129
1158
|
properties: GeneratedPolicyProperties | undefined;
|
|
1130
|
-
generatedPolicies?: GeneratedPolicy[];
|
|
1159
|
+
generatedPolicies?: GeneratedPolicy[] | undefined;
|
|
1131
1160
|
}
|
|
1132
1161
|
export declare const JobErrorCode: {
|
|
1133
1162
|
readonly AUTHORIZATION_ERROR: "AUTHORIZATION_ERROR";
|
|
@@ -1151,8 +1180,8 @@ export interface JobDetails {
|
|
|
1151
1180
|
jobId: string | undefined;
|
|
1152
1181
|
status: JobStatus | undefined;
|
|
1153
1182
|
startedOn: Date | undefined;
|
|
1154
|
-
completedOn?: Date;
|
|
1155
|
-
jobError?: JobError;
|
|
1183
|
+
completedOn?: Date | undefined;
|
|
1184
|
+
jobError?: JobError | undefined;
|
|
1156
1185
|
}
|
|
1157
1186
|
export interface GetGeneratedPolicyResponse {
|
|
1158
1187
|
jobDetails: JobDetails | undefined;
|
|
@@ -1161,9 +1190,9 @@ export interface GetGeneratedPolicyResponse {
|
|
|
1161
1190
|
export interface ListAccessPreviewFindingsRequest {
|
|
1162
1191
|
accessPreviewId: string | undefined;
|
|
1163
1192
|
analyzerArn: string | undefined;
|
|
1164
|
-
filter?: Record<string, Criterion
|
|
1165
|
-
nextToken?: string;
|
|
1166
|
-
maxResults?: number;
|
|
1193
|
+
filter?: Record<string, Criterion> | undefined;
|
|
1194
|
+
nextToken?: string | undefined;
|
|
1195
|
+
maxResults?: number | undefined;
|
|
1167
1196
|
}
|
|
1168
1197
|
export declare const FindingChangeType: {
|
|
1169
1198
|
readonly CHANGED: "CHANGED";
|
|
@@ -1174,46 +1203,49 @@ export type FindingChangeType =
|
|
|
1174
1203
|
(typeof FindingChangeType)[keyof typeof FindingChangeType];
|
|
1175
1204
|
export interface AccessPreviewFinding {
|
|
1176
1205
|
id: string | undefined;
|
|
1177
|
-
existingFindingId?: string;
|
|
1178
|
-
existingFindingStatus?: FindingStatus;
|
|
1179
|
-
principal?: Record<string, string
|
|
1180
|
-
action?: string[];
|
|
1181
|
-
condition?: Record<string, string
|
|
1182
|
-
resource?: string;
|
|
1183
|
-
isPublic?: boolean;
|
|
1206
|
+
existingFindingId?: string | undefined;
|
|
1207
|
+
existingFindingStatus?: FindingStatus | undefined;
|
|
1208
|
+
principal?: Record<string, string> | undefined;
|
|
1209
|
+
action?: string[] | undefined;
|
|
1210
|
+
condition?: Record<string, string> | undefined;
|
|
1211
|
+
resource?: string | undefined;
|
|
1212
|
+
isPublic?: boolean | undefined;
|
|
1184
1213
|
resourceType: ResourceType | undefined;
|
|
1185
1214
|
createdAt: Date | undefined;
|
|
1186
1215
|
changeType: FindingChangeType | undefined;
|
|
1187
1216
|
status: FindingStatus | undefined;
|
|
1188
1217
|
resourceOwnerAccount: string | undefined;
|
|
1189
|
-
error?: string;
|
|
1190
|
-
sources?: FindingSource[];
|
|
1218
|
+
error?: string | undefined;
|
|
1219
|
+
sources?: FindingSource[] | undefined;
|
|
1220
|
+
resourceControlPolicyRestriction?:
|
|
1221
|
+
| ResourceControlPolicyRestriction
|
|
1222
|
+
| undefined;
|
|
1191
1223
|
}
|
|
1192
1224
|
export interface ListAccessPreviewFindingsResponse {
|
|
1193
1225
|
findings: AccessPreviewFinding[] | undefined;
|
|
1194
|
-
nextToken?: string;
|
|
1226
|
+
nextToken?: string | undefined;
|
|
1195
1227
|
}
|
|
1196
1228
|
export interface ListAccessPreviewsRequest {
|
|
1197
1229
|
analyzerArn: string | undefined;
|
|
1198
|
-
nextToken?: string;
|
|
1199
|
-
maxResults?: number;
|
|
1230
|
+
nextToken?: string | undefined;
|
|
1231
|
+
maxResults?: number | undefined;
|
|
1200
1232
|
}
|
|
1201
1233
|
export interface AccessPreviewSummary {
|
|
1202
1234
|
id: string | undefined;
|
|
1203
1235
|
analyzerArn: string | undefined;
|
|
1204
1236
|
createdAt: Date | undefined;
|
|
1205
1237
|
status: AccessPreviewStatus | undefined;
|
|
1206
|
-
statusReason?: AccessPreviewStatusReason;
|
|
1238
|
+
statusReason?: AccessPreviewStatusReason | undefined;
|
|
1207
1239
|
}
|
|
1208
1240
|
export interface ListAccessPreviewsResponse {
|
|
1209
1241
|
accessPreviews: AccessPreviewSummary[] | undefined;
|
|
1210
|
-
nextToken?: string;
|
|
1242
|
+
nextToken?: string | undefined;
|
|
1211
1243
|
}
|
|
1212
1244
|
export interface ListAnalyzedResourcesRequest {
|
|
1213
1245
|
analyzerArn: string | undefined;
|
|
1214
|
-
resourceType?: ResourceType;
|
|
1215
|
-
nextToken?: string;
|
|
1216
|
-
maxResults?: number;
|
|
1246
|
+
resourceType?: ResourceType | undefined;
|
|
1247
|
+
nextToken?: string | undefined;
|
|
1248
|
+
maxResults?: number | undefined;
|
|
1217
1249
|
}
|
|
1218
1250
|
export interface AnalyzedResourceSummary {
|
|
1219
1251
|
resourceArn: string | undefined;
|
|
@@ -1222,26 +1254,26 @@ export interface AnalyzedResourceSummary {
|
|
|
1222
1254
|
}
|
|
1223
1255
|
export interface ListAnalyzedResourcesResponse {
|
|
1224
1256
|
analyzedResources: AnalyzedResourceSummary[] | undefined;
|
|
1225
|
-
nextToken?: string;
|
|
1257
|
+
nextToken?: string | undefined;
|
|
1226
1258
|
}
|
|
1227
1259
|
export type OrderBy = "ASC" | "DESC";
|
|
1228
1260
|
export interface SortCriteria {
|
|
1229
|
-
attributeName?: string;
|
|
1230
|
-
orderBy?: OrderBy;
|
|
1261
|
+
attributeName?: string | undefined;
|
|
1262
|
+
orderBy?: OrderBy | undefined;
|
|
1231
1263
|
}
|
|
1232
1264
|
export interface ListFindingsRequest {
|
|
1233
1265
|
analyzerArn: string | undefined;
|
|
1234
|
-
filter?: Record<string, Criterion
|
|
1235
|
-
sort?: SortCriteria;
|
|
1236
|
-
nextToken?: string;
|
|
1237
|
-
maxResults?: number;
|
|
1266
|
+
filter?: Record<string, Criterion> | undefined;
|
|
1267
|
+
sort?: SortCriteria | undefined;
|
|
1268
|
+
nextToken?: string | undefined;
|
|
1269
|
+
maxResults?: number | undefined;
|
|
1238
1270
|
}
|
|
1239
1271
|
export interface FindingSummary {
|
|
1240
1272
|
id: string | undefined;
|
|
1241
|
-
principal?: Record<string, string
|
|
1242
|
-
action?: string[];
|
|
1243
|
-
resource?: string;
|
|
1244
|
-
isPublic?: boolean;
|
|
1273
|
+
principal?: Record<string, string> | undefined;
|
|
1274
|
+
action?: string[] | undefined;
|
|
1275
|
+
resource?: string | undefined;
|
|
1276
|
+
isPublic?: boolean | undefined;
|
|
1245
1277
|
resourceType: ResourceType | undefined;
|
|
1246
1278
|
condition: Record<string, string> | undefined;
|
|
1247
1279
|
createdAt: Date | undefined;
|
|
@@ -1249,76 +1281,79 @@ export interface FindingSummary {
|
|
|
1249
1281
|
updatedAt: Date | undefined;
|
|
1250
1282
|
status: FindingStatus | undefined;
|
|
1251
1283
|
resourceOwnerAccount: string | undefined;
|
|
1252
|
-
error?: string;
|
|
1253
|
-
sources?: FindingSource[];
|
|
1284
|
+
error?: string | undefined;
|
|
1285
|
+
sources?: FindingSource[] | undefined;
|
|
1286
|
+
resourceControlPolicyRestriction?:
|
|
1287
|
+
| ResourceControlPolicyRestriction
|
|
1288
|
+
| undefined;
|
|
1254
1289
|
}
|
|
1255
1290
|
export interface ListFindingsResponse {
|
|
1256
1291
|
findings: FindingSummary[] | undefined;
|
|
1257
|
-
nextToken?: string;
|
|
1292
|
+
nextToken?: string | undefined;
|
|
1258
1293
|
}
|
|
1259
1294
|
export interface ListFindingsV2Request {
|
|
1260
1295
|
analyzerArn: string | undefined;
|
|
1261
|
-
filter?: Record<string, Criterion
|
|
1262
|
-
maxResults?: number;
|
|
1263
|
-
nextToken?: string;
|
|
1264
|
-
sort?: SortCriteria;
|
|
1296
|
+
filter?: Record<string, Criterion> | undefined;
|
|
1297
|
+
maxResults?: number | undefined;
|
|
1298
|
+
nextToken?: string | undefined;
|
|
1299
|
+
sort?: SortCriteria | undefined;
|
|
1265
1300
|
}
|
|
1266
1301
|
export interface FindingSummaryV2 {
|
|
1267
1302
|
analyzedAt: Date | undefined;
|
|
1268
1303
|
createdAt: Date | undefined;
|
|
1269
|
-
error?: string;
|
|
1304
|
+
error?: string | undefined;
|
|
1270
1305
|
id: string | undefined;
|
|
1271
|
-
resource?: string;
|
|
1306
|
+
resource?: string | undefined;
|
|
1272
1307
|
resourceType: ResourceType | undefined;
|
|
1273
1308
|
resourceOwnerAccount: string | undefined;
|
|
1274
1309
|
status: FindingStatus | undefined;
|
|
1275
1310
|
updatedAt: Date | undefined;
|
|
1276
|
-
findingType?: FindingType;
|
|
1311
|
+
findingType?: FindingType | undefined;
|
|
1277
1312
|
}
|
|
1278
1313
|
export interface ListFindingsV2Response {
|
|
1279
1314
|
findings: FindingSummaryV2[] | undefined;
|
|
1280
|
-
nextToken?: string;
|
|
1315
|
+
nextToken?: string | undefined;
|
|
1281
1316
|
}
|
|
1282
1317
|
export interface ListPolicyGenerationsRequest {
|
|
1283
|
-
principalArn?: string;
|
|
1284
|
-
maxResults?: number;
|
|
1285
|
-
nextToken?: string;
|
|
1318
|
+
principalArn?: string | undefined;
|
|
1319
|
+
maxResults?: number | undefined;
|
|
1320
|
+
nextToken?: string | undefined;
|
|
1286
1321
|
}
|
|
1287
1322
|
export interface PolicyGeneration {
|
|
1288
1323
|
jobId: string | undefined;
|
|
1289
1324
|
principalArn: string | undefined;
|
|
1290
1325
|
status: JobStatus | undefined;
|
|
1291
1326
|
startedOn: Date | undefined;
|
|
1292
|
-
completedOn?: Date;
|
|
1327
|
+
completedOn?: Date | undefined;
|
|
1293
1328
|
}
|
|
1294
1329
|
export interface ListPolicyGenerationsResponse {
|
|
1295
1330
|
policyGenerations: PolicyGeneration[] | undefined;
|
|
1296
|
-
nextToken?: string;
|
|
1331
|
+
nextToken?: string | undefined;
|
|
1297
1332
|
}
|
|
1298
1333
|
export interface ListTagsForResourceRequest {
|
|
1299
1334
|
resourceArn: string | undefined;
|
|
1300
1335
|
}
|
|
1301
1336
|
export interface ListTagsForResourceResponse {
|
|
1302
|
-
tags?: Record<string, string
|
|
1337
|
+
tags?: Record<string, string> | undefined;
|
|
1303
1338
|
}
|
|
1304
1339
|
export interface Trail {
|
|
1305
1340
|
cloudTrailArn: string | undefined;
|
|
1306
|
-
regions?: string[];
|
|
1307
|
-
allRegions?: boolean;
|
|
1341
|
+
regions?: string[] | undefined;
|
|
1342
|
+
allRegions?: boolean | undefined;
|
|
1308
1343
|
}
|
|
1309
1344
|
export interface CloudTrailDetails {
|
|
1310
1345
|
trails: Trail[] | undefined;
|
|
1311
1346
|
accessRole: string | undefined;
|
|
1312
1347
|
startTime: Date | undefined;
|
|
1313
|
-
endTime?: Date;
|
|
1348
|
+
endTime?: Date | undefined;
|
|
1314
1349
|
}
|
|
1315
1350
|
export interface PolicyGenerationDetails {
|
|
1316
1351
|
principalArn: string | undefined;
|
|
1317
1352
|
}
|
|
1318
1353
|
export interface StartPolicyGenerationRequest {
|
|
1319
1354
|
policyGenerationDetails: PolicyGenerationDetails | undefined;
|
|
1320
|
-
cloudTrailDetails?: CloudTrailDetails;
|
|
1321
|
-
clientToken?: string;
|
|
1355
|
+
cloudTrailDetails?: CloudTrailDetails | undefined;
|
|
1356
|
+
clientToken?: string | undefined;
|
|
1322
1357
|
}
|
|
1323
1358
|
export interface StartPolicyGenerationResponse {
|
|
1324
1359
|
jobId: string | undefined;
|
|
@@ -1326,7 +1361,7 @@ export interface StartPolicyGenerationResponse {
|
|
|
1326
1361
|
export interface StartResourceScanRequest {
|
|
1327
1362
|
analyzerArn: string | undefined;
|
|
1328
1363
|
resourceArn: string | undefined;
|
|
1329
|
-
resourceOwnerAccount?: string;
|
|
1364
|
+
resourceOwnerAccount?: string | undefined;
|
|
1330
1365
|
}
|
|
1331
1366
|
export interface TagResourceRequest {
|
|
1332
1367
|
resourceArn: string | undefined;
|
|
@@ -1342,9 +1377,9 @@ export type FindingStatusUpdate = "ACTIVE" | "ARCHIVED";
|
|
|
1342
1377
|
export interface UpdateFindingsRequest {
|
|
1343
1378
|
analyzerArn: string | undefined;
|
|
1344
1379
|
status: FindingStatusUpdate | undefined;
|
|
1345
|
-
ids?: string[];
|
|
1346
|
-
resourceArn?: string;
|
|
1347
|
-
clientToken?: string;
|
|
1380
|
+
ids?: string[] | undefined;
|
|
1381
|
+
resourceArn?: string | undefined;
|
|
1382
|
+
clientToken?: string | undefined;
|
|
1348
1383
|
}
|
|
1349
1384
|
export declare const Locale: {
|
|
1350
1385
|
readonly DE: "DE";
|
|
@@ -1361,6 +1396,7 @@ export declare const Locale: {
|
|
|
1361
1396
|
export type Locale = (typeof Locale)[keyof typeof Locale];
|
|
1362
1397
|
export declare const PolicyType: {
|
|
1363
1398
|
readonly IDENTITY_POLICY: "IDENTITY_POLICY";
|
|
1399
|
+
readonly RESOURCE_CONTROL_POLICY: "RESOURCE_CONTROL_POLICY";
|
|
1364
1400
|
readonly RESOURCE_POLICY: "RESOURCE_POLICY";
|
|
1365
1401
|
readonly SERVICE_CONTROL_POLICY: "SERVICE_CONTROL_POLICY";
|
|
1366
1402
|
};
|
|
@@ -1376,12 +1412,12 @@ export declare const ValidatePolicyResourceType: {
|
|
|
1376
1412
|
export type ValidatePolicyResourceType =
|
|
1377
1413
|
(typeof ValidatePolicyResourceType)[keyof typeof ValidatePolicyResourceType];
|
|
1378
1414
|
export interface ValidatePolicyRequest {
|
|
1379
|
-
locale?: Locale;
|
|
1380
|
-
maxResults?: number;
|
|
1381
|
-
nextToken?: string;
|
|
1415
|
+
locale?: Locale | undefined;
|
|
1416
|
+
maxResults?: number | undefined;
|
|
1417
|
+
nextToken?: string | undefined;
|
|
1382
1418
|
policyDocument: string | undefined;
|
|
1383
1419
|
policyType: PolicyType | undefined;
|
|
1384
|
-
validatePolicyResourceType?: ValidatePolicyResourceType;
|
|
1420
|
+
validatePolicyResourceType?: ValidatePolicyResourceType | undefined;
|
|
1385
1421
|
}
|
|
1386
1422
|
export declare const ValidatePolicyFindingType: {
|
|
1387
1423
|
readonly ERROR: "ERROR";
|
|
@@ -1468,7 +1504,7 @@ export interface ValidatePolicyFinding {
|
|
|
1468
1504
|
}
|
|
1469
1505
|
export interface ValidatePolicyResponse {
|
|
1470
1506
|
findings: ValidatePolicyFinding[] | undefined;
|
|
1471
|
-
nextToken?: string;
|
|
1507
|
+
nextToken?: string | undefined;
|
|
1472
1508
|
}
|
|
1473
1509
|
export declare const CheckAccessNotGrantedRequestFilterSensitiveLog: (
|
|
1474
1510
|
obj: CheckAccessNotGrantedRequest
|