accessanalyzer.d.ts
25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class AccessAnalyzer extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: AccessAnalyzer.Types.ClientConfiguration)
config: Config & AccessAnalyzer.Types.ClientConfiguration;
/**
* Creates an analyzer with a zone of trust set to your account.
*/
createAnalyzer(params: AccessAnalyzer.Types.CreateAnalyzerRequest, callback?: (err: AWSError, data: AccessAnalyzer.Types.CreateAnalyzerResponse) => void): Request<AccessAnalyzer.Types.CreateAnalyzerResponse, AWSError>;
/**
* Creates an analyzer with a zone of trust set to your account.
*/
createAnalyzer(callback?: (err: AWSError, data: AccessAnalyzer.Types.CreateAnalyzerResponse) => void): Request<AccessAnalyzer.Types.CreateAnalyzerResponse, AWSError>;
/**
* Creates an archive rule for the specified analyzer.
*/
createArchiveRule(params: AccessAnalyzer.Types.CreateArchiveRuleRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Creates an archive rule for the specified analyzer.
*/
createArchiveRule(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Deletes the specified analyzer. When you delete an analyzer, Access Analyzer is disabled for the account in the current or specific Region. All findings that were generated by the analyzer are deleted. You cannot undo this action.
*/
deleteAnalyzer(params: AccessAnalyzer.Types.DeleteAnalyzerRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Deletes the specified analyzer. When you delete an analyzer, Access Analyzer is disabled for the account in the current or specific Region. All findings that were generated by the analyzer are deleted. You cannot undo this action.
*/
deleteAnalyzer(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Deletes the specified archive rule.
*/
deleteArchiveRule(params: AccessAnalyzer.Types.DeleteArchiveRuleRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Deletes the specified archive rule.
*/
deleteArchiveRule(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Retrieves information about an analyzed resource.
*/
getAnalyzedResource(params: AccessAnalyzer.Types.GetAnalyzedResourceRequest, callback?: (err: AWSError, data: AccessAnalyzer.Types.GetAnalyzedResourceResponse) => void): Request<AccessAnalyzer.Types.GetAnalyzedResourceResponse, AWSError>;
/**
* Retrieves information about an analyzed resource.
*/
getAnalyzedResource(callback?: (err: AWSError, data: AccessAnalyzer.Types.GetAnalyzedResourceResponse) => void): Request<AccessAnalyzer.Types.GetAnalyzedResourceResponse, AWSError>;
/**
* Retrieves information about the specified analyzer.
*/
getAnalyzer(params: AccessAnalyzer.Types.GetAnalyzerRequest, callback?: (err: AWSError, data: AccessAnalyzer.Types.GetAnalyzerResponse) => void): Request<AccessAnalyzer.Types.GetAnalyzerResponse, AWSError>;
/**
* Retrieves information about the specified analyzer.
*/
getAnalyzer(callback?: (err: AWSError, data: AccessAnalyzer.Types.GetAnalyzerResponse) => void): Request<AccessAnalyzer.Types.GetAnalyzerResponse, AWSError>;
/**
* Retrieves information about an archive rule.
*/
getArchiveRule(params: AccessAnalyzer.Types.GetArchiveRuleRequest, callback?: (err: AWSError, data: AccessAnalyzer.Types.GetArchiveRuleResponse) => void): Request<AccessAnalyzer.Types.GetArchiveRuleResponse, AWSError>;
/**
* Retrieves information about an archive rule.
*/
getArchiveRule(callback?: (err: AWSError, data: AccessAnalyzer.Types.GetArchiveRuleResponse) => void): Request<AccessAnalyzer.Types.GetArchiveRuleResponse, AWSError>;
/**
* Retrieves information about the specified finding.
*/
getFinding(params: AccessAnalyzer.Types.GetFindingRequest, callback?: (err: AWSError, data: AccessAnalyzer.Types.GetFindingResponse) => void): Request<AccessAnalyzer.Types.GetFindingResponse, AWSError>;
/**
* Retrieves information about the specified finding.
*/
getFinding(callback?: (err: AWSError, data: AccessAnalyzer.Types.GetFindingResponse) => void): Request<AccessAnalyzer.Types.GetFindingResponse, AWSError>;
/**
* Retrieves a list of resources that have been analyzed.
*/
listAnalyzedResources(params: AccessAnalyzer.Types.ListAnalyzedResourcesRequest, callback?: (err: AWSError, data: AccessAnalyzer.Types.ListAnalyzedResourcesResponse) => void): Request<AccessAnalyzer.Types.ListAnalyzedResourcesResponse, AWSError>;
/**
* Retrieves a list of resources that have been analyzed.
*/
listAnalyzedResources(callback?: (err: AWSError, data: AccessAnalyzer.Types.ListAnalyzedResourcesResponse) => void): Request<AccessAnalyzer.Types.ListAnalyzedResourcesResponse, AWSError>;
/**
* Retrieves a list of analyzers.
*/
listAnalyzers(params: AccessAnalyzer.Types.ListAnalyzersRequest, callback?: (err: AWSError, data: AccessAnalyzer.Types.ListAnalyzersResponse) => void): Request<AccessAnalyzer.Types.ListAnalyzersResponse, AWSError>;
/**
* Retrieves a list of analyzers.
*/
listAnalyzers(callback?: (err: AWSError, data: AccessAnalyzer.Types.ListAnalyzersResponse) => void): Request<AccessAnalyzer.Types.ListAnalyzersResponse, AWSError>;
/**
* Retrieves a list of archive rules created for the specified analyzer.
*/
listArchiveRules(params: AccessAnalyzer.Types.ListArchiveRulesRequest, callback?: (err: AWSError, data: AccessAnalyzer.Types.ListArchiveRulesResponse) => void): Request<AccessAnalyzer.Types.ListArchiveRulesResponse, AWSError>;
/**
* Retrieves a list of archive rules created for the specified analyzer.
*/
listArchiveRules(callback?: (err: AWSError, data: AccessAnalyzer.Types.ListArchiveRulesResponse) => void): Request<AccessAnalyzer.Types.ListArchiveRulesResponse, AWSError>;
/**
* Retrieves a list of findings generated by the specified analyzer.
*/
listFindings(params: AccessAnalyzer.Types.ListFindingsRequest, callback?: (err: AWSError, data: AccessAnalyzer.Types.ListFindingsResponse) => void): Request<AccessAnalyzer.Types.ListFindingsResponse, AWSError>;
/**
* Retrieves a list of findings generated by the specified analyzer.
*/
listFindings(callback?: (err: AWSError, data: AccessAnalyzer.Types.ListFindingsResponse) => void): Request<AccessAnalyzer.Types.ListFindingsResponse, AWSError>;
/**
* Retrieves a list of tags applied to the specified resource.
*/
listTagsForResource(params: AccessAnalyzer.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: AccessAnalyzer.Types.ListTagsForResourceResponse) => void): Request<AccessAnalyzer.Types.ListTagsForResourceResponse, AWSError>;
/**
* Retrieves a list of tags applied to the specified resource.
*/
listTagsForResource(callback?: (err: AWSError, data: AccessAnalyzer.Types.ListTagsForResourceResponse) => void): Request<AccessAnalyzer.Types.ListTagsForResourceResponse, AWSError>;
/**
* Starts a scan of the policies applied to the specified resource.
*/
startResourceScan(params: AccessAnalyzer.Types.StartResourceScanRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Starts a scan of the policies applied to the specified resource.
*/
startResourceScan(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Adds a tag to the specified resource.
*/
tagResource(params: AccessAnalyzer.Types.TagResourceRequest, callback?: (err: AWSError, data: AccessAnalyzer.Types.TagResourceResponse) => void): Request<AccessAnalyzer.Types.TagResourceResponse, AWSError>;
/**
* Adds a tag to the specified resource.
*/
tagResource(callback?: (err: AWSError, data: AccessAnalyzer.Types.TagResourceResponse) => void): Request<AccessAnalyzer.Types.TagResourceResponse, AWSError>;
/**
* Removes a tag from the specified resource.
*/
untagResource(params: AccessAnalyzer.Types.UntagResourceRequest, callback?: (err: AWSError, data: AccessAnalyzer.Types.UntagResourceResponse) => void): Request<AccessAnalyzer.Types.UntagResourceResponse, AWSError>;
/**
* Removes a tag from the specified resource.
*/
untagResource(callback?: (err: AWSError, data: AccessAnalyzer.Types.UntagResourceResponse) => void): Request<AccessAnalyzer.Types.UntagResourceResponse, AWSError>;
/**
* Updates the specified archive rule.
*/
updateArchiveRule(params: AccessAnalyzer.Types.UpdateArchiveRuleRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Updates the specified archive rule.
*/
updateArchiveRule(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Updates findings with the new values provided in the request.
*/
updateFindings(params: AccessAnalyzer.Types.UpdateFindingsRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Updates findings with the new values provided in the request.
*/
updateFindings(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
}
declare namespace AccessAnalyzer {
export type ActionList = String[];
export interface AnalyzedResource {
/**
* The actions that an external principal is granted permission to use by the policy that generated the finding.
*/
actions?: ActionList;
/**
* The time at which the resource was analyzed.
*/
analyzedAt: Timestamp;
/**
* The time at which the finding was created.
*/
createdAt: Timestamp;
/**
* An error message.
*/
error?: String;
/**
* Indicates whether the policy that generated the finding grants public access to the resource.
*/
isPublic: Boolean;
/**
* The ARN of the resource that was analyzed.
*/
resourceArn: ResourceArn;
/**
* The type of the resource that was analyzed.
*/
resourceType: ResourceType;
/**
* Indicates how the access that generated the finding is granted.
*/
sharedVia?: SharedViaList;
/**
* The current status of the finding generated from the analyzed resource.
*/
status?: FindingStatus;
/**
* The time at which the finding was updated.
*/
updatedAt: Timestamp;
}
export interface AnalyzedResourceSummary {
/**
* The ARN of the analyzed resource.
*/
resourceArn: ResourceArn;
/**
* The type of resource that was analyzed.
*/
resourceType: ResourceType;
}
export type AnalyzedResourcesList = AnalyzedResourceSummary[];
export type AnalyzerArn = string;
export interface AnalyzerSummary {
/**
* The ARN of the analyzer.
*/
arn: AnalyzerArn;
/**
* A timestamp for the time at which the analyzer was created.
*/
createdAt: Timestamp;
/**
* The resource that was most recently analyzed by the analyzer.
*/
lastResourceAnalyzed?: String;
/**
* The time at which the most recently analyzed resource was analyzed.
*/
lastResourceAnalyzedAt?: Timestamp;
/**
* The name of the analyzer.
*/
name: Name;
/**
* The tags added to the analyzer.
*/
tags?: TagsMap;
/**
* The type of analyzer, which corresponds to the zone of trust chosen for the analyzer.
*/
type: Type;
}
export type AnalyzersList = AnalyzerSummary[];
export interface ArchiveRuleSummary {
/**
* The time at which the archive rule was created.
*/
createdAt: Timestamp;
/**
* A filter used to define the archive rule.
*/
filter: FilterCriteriaMap;
/**
* The name of the archive rule.
*/
ruleName: Name;
/**
* The time at which the archive rule was last updated.
*/
updatedAt: Timestamp;
}
export type ArchiveRulesList = ArchiveRuleSummary[];
export type Boolean = boolean;
export type ConditionKeyMap = {[key: string]: String};
export interface CreateAnalyzerRequest {
/**
* The name of the analyzer to create.
*/
analyzerName: Name;
/**
* Specifies the archive rules to add for the analyzer.
*/
archiveRules?: InlineArchiveRulesList;
/**
* A client token.
*/
clientToken?: String;
/**
* The tags to apply to the analyzer.
*/
tags?: TagsMap;
/**
* The zone of trust for the analyzer. You can create only one analyzer per account per Region.
*/
type: Type;
}
export interface CreateAnalyzerResponse {
/**
* The ARN of the analyzer that was created by the request.
*/
arn?: AnalyzerArn;
}
export interface CreateArchiveRuleRequest {
/**
* The name of the created analyzer.
*/
analyzerName: Name;
/**
* A client token.
*/
clientToken?: String;
/**
* The criteria for the rule.
*/
filter: FilterCriteriaMap;
/**
* The name of the rule to create.
*/
ruleName: Name;
}
export interface Criterion {
/**
* A "contains" operator to match for the filter used to create the rule.
*/
contains?: ValueList;
/**
* An "equals" operator to match for the filter used to create the rule.
*/
eq?: ValueList;
/**
* An "exists" operator to match for the filter used to create the rule.
*/
exists?: Boolean;
/**
* A "not equals" operator to match for the filter used to create the rule.
*/
neq?: ValueList;
}
export interface DeleteAnalyzerRequest {
/**
* The name of the analyzer to delete.
*/
analyzerName: Name;
/**
* A client token.
*/
clientToken?: String;
}
export interface DeleteArchiveRuleRequest {
/**
* The name of the analyzer that was deleted.
*/
analyzerName: Name;
/**
* A client token.
*/
clientToken?: String;
/**
* The name of the rule to delete.
*/
ruleName: Name;
}
export type FilterCriteriaMap = {[key: string]: Criterion};
export interface Finding {
/**
* The action in the analyzed policy statement that an external principal has permission to use.
*/
action?: ActionList;
/**
* The time at which the resource was analyzed.
*/
analyzedAt: Timestamp;
/**
* The condition in the analyzed policy statement that resulted in a finding.
*/
condition: ConditionKeyMap;
/**
* The time at which the finding was generated.
*/
createdAt: Timestamp;
/**
* An error.
*/
error?: String;
/**
* The ID of the finding.
*/
id: FindingId;
/**
* Indicates whether the policy that generated the finding allows public access to the resource.
*/
isPublic?: Boolean;
/**
* The external principal that access to a resource within the zone of trust.
*/
principal?: PrincipalMap;
/**
* The resource that an external principal has access to.
*/
resource?: String;
/**
* The type of the resource reported in the finding.
*/
resourceType: ResourceType;
/**
* The current status of the finding.
*/
status: FindingStatus;
/**
* The time at which the finding was updated.
*/
updatedAt: Timestamp;
}
export type FindingId = string;
export type FindingIdList = FindingId[];
export type FindingStatus = "ACTIVE"|"ARCHIVED"|"RESOLVED"|string;
export type FindingStatusUpdate = "ACTIVE"|"ARCHIVED"|string;
export interface FindingSummary {
/**
* The action in the analyzed policy statement that an external principal has permission to use.
*/
action?: ActionList;
/**
* The time at which the resource-based policy that generated the finding was analyzed.
*/
analyzedAt: Timestamp;
/**
* The condition in the analyzed policy statement that resulted in a finding.
*/
condition: ConditionKeyMap;
/**
* The time at which the finding was created.
*/
createdAt: Timestamp;
/**
* The error that resulted in an Error finding.
*/
error?: String;
/**
* The ID of the finding.
*/
id: FindingId;
/**
* Indicates whether the finding reports a resource that has a policy that allows public access.
*/
isPublic?: Boolean;
/**
* The external principal that has access to a resource within the zone of trust.
*/
principal?: PrincipalMap;
/**
* The resource that the external principal has access to.
*/
resource?: String;
/**
* The type of the resource that the external principal has access to.
*/
resourceType: ResourceType;
/**
* The status of the finding.
*/
status: FindingStatus;
/**
* The time at which the finding was most recently updated.
*/
updatedAt: Timestamp;
}
export type FindingsList = FindingSummary[];
export interface GetAnalyzedResourceRequest {
/**
* The ARN of the analyzer to retrieve information from.
*/
analyzerArn: AnalyzerArn;
/**
* The ARN of the resource to retrieve information about.
*/
resourceArn: ResourceArn;
}
export interface GetAnalyzedResourceResponse {
/**
* An AnalyedResource object that contains information that Access Analyzer found when it analyzed the resource.
*/
resource?: AnalyzedResource;
}
export interface GetAnalyzerRequest {
/**
* The name of the analyzer retrieved.
*/
analyzerName: Name;
}
export interface GetAnalyzerResponse {
/**
* An AnalyzerSummary object that contains information about the analyzer.
*/
analyzer: AnalyzerSummary;
}
export interface GetArchiveRuleRequest {
/**
* The name of the analyzer to retrieve rules from.
*/
analyzerName: Name;
/**
* The name of the rule to retrieve.
*/
ruleName: Name;
}
export interface GetArchiveRuleResponse {
archiveRule: ArchiveRuleSummary;
}
export interface GetFindingRequest {
/**
* The ARN of the analyzer that generated the finding.
*/
analyzerArn: AnalyzerArn;
/**
* The ID of the finding to retrieve.
*/
id: FindingId;
}
export interface GetFindingResponse {
/**
* A finding object that contains finding details.
*/
finding?: Finding;
}
export interface InlineArchiveRule {
/**
* The criteria for the rule.
*/
filter: FilterCriteriaMap;
/**
* The name of the rule.
*/
ruleName: Name;
}
export type InlineArchiveRulesList = InlineArchiveRule[];
export type Integer = number;
export interface ListAnalyzedResourcesRequest {
/**
* The ARN of the analyzer to retrieve a list of analyzed resources from.
*/
analyzerArn: AnalyzerArn;
/**
* The maximum number of results to return in the response.
*/
maxResults?: Integer;
/**
* A token used for pagination of results returned.
*/
nextToken?: Token;
/**
* The type of resource.
*/
resourceType?: ResourceType;
}
export interface ListAnalyzedResourcesResponse {
/**
* A list of resources that were analyzed.
*/
analyzedResources: AnalyzedResourcesList;
/**
* A token used for pagination of results returned.
*/
nextToken?: Token;
}
export interface ListAnalyzersRequest {
/**
* The maximum number of results to return in the response.
*/
maxResults?: Integer;
/**
* A token used for pagination of results returned.
*/
nextToken?: Token;
/**
* The type of analyzer, which corresponds to the zone of trust selected when the analyzer was created.
*/
type?: Type;
}
export interface ListAnalyzersResponse {
/**
* The analyzers retrieved.
*/
analyzers: AnalyzersList;
/**
* A token used for pagination of results returned.
*/
nextToken?: Token;
}
export interface ListArchiveRulesRequest {
/**
* The name of the analyzer to retrieve rules from.
*/
analyzerName: Name;
/**
* The maximum number of results to return in the request.
*/
maxResults?: Integer;
/**
* A token used for pagination of results returned.
*/
nextToken?: Token;
}
export interface ListArchiveRulesResponse {
/**
* A list of archive rules created for the specified analyzer.
*/
archiveRules: ArchiveRulesList;
/**
* A token used for pagination of results returned.
*/
nextToken?: Token;
}
export interface ListFindingsRequest {
/**
* The ARN of the analyzer to retrieve findings from.
*/
analyzerArn: AnalyzerArn;
/**
* A filter to match for the findings to return.
*/
filter?: FilterCriteriaMap;
/**
* The maximum number of results to return in the response.
*/
maxResults?: Integer;
/**
* A token used for pagination of results returned.
*/
nextToken?: Token;
/**
* The sort order for the findings returned.
*/
sort?: SortCriteria;
}
export interface ListFindingsResponse {
/**
* A list of findings retrieved from the analyzer that match the filter criteria specified, if any.
*/
findings: FindingsList;
/**
* A token used for pagination of results returned.
*/
nextToken?: Token;
}
export interface ListTagsForResourceRequest {
/**
* The ARN of the resource to retrieve tags from.
*/
resourceArn: String;
}
export interface ListTagsForResourceResponse {
/**
* The tags that are applied to the specified resource.
*/
tags?: TagsMap;
}
export type Name = string;
export type OrderBy = "ASC"|"DESC"|string;
export type PrincipalMap = {[key: string]: String};
export type ResourceArn = string;
export type ResourceType = "AWS::IAM::Role"|"AWS::KMS::Key"|"AWS::Lambda::Function"|"AWS::Lambda::LayerVersion"|"AWS::S3::Bucket"|"AWS::SQS::Queue"|string;
export type SharedViaList = String[];
export interface SortCriteria {
/**
* The name of the attribute to sort on.
*/
attributeName?: String;
/**
* The sort order, ascending or descending.
*/
orderBy?: OrderBy;
}
export interface StartResourceScanRequest {
/**
* The ARN of the analyzer to use to scan the policies applied to the specified resource.
*/
analyzerArn: AnalyzerArn;
/**
* The ARN of the resource to scan.
*/
resourceArn: ResourceArn;
}
export type String = string;
export type TagKeys = String[];
export interface TagResourceRequest {
/**
* The ARN of the resource to add the tag to.
*/
resourceArn: String;
/**
* The tags to add to the resource.
*/
tags: TagsMap;
}
export interface TagResourceResponse {
}
export type TagsMap = {[key: string]: String};
export type Timestamp = Date;
export type Token = string;
export type Type = "ACCOUNT"|string;
export interface UntagResourceRequest {
/**
* The ARN of the resource to remove the tag from.
*/
resourceArn: String;
/**
* The key for the tag to add.
*/
tagKeys: TagKeys;
}
export interface UntagResourceResponse {
}
export interface UpdateArchiveRuleRequest {
/**
* The name of the analyzer to update the archive rules for.
*/
analyzerName: Name;
/**
* A client token.
*/
clientToken?: String;
/**
* A filter to match for the rules to update. Only rules that match the filter are updated.
*/
filter: FilterCriteriaMap;
/**
* The name of the rule to update.
*/
ruleName: Name;
}
export interface UpdateFindingsRequest {
/**
* The ARN of the analyzer that generated the findings to update.
*/
analyzerArn: AnalyzerArn;
/**
* A client token.
*/
clientToken?: String;
/**
* The IDs of the findings to update.
*/
ids?: FindingIdList;
/**
* The ARN of the resource identified in the finding.
*/
resourceArn?: ResourceArn;
/**
* The state represents the action to take to update the finding Status. Use ARCHIVE to change an Active finding to an Archived finding. Use ACTIVE to change an Archived finding to an Active finding.
*/
status: FindingStatusUpdate;
}
export type ValueList = String[];
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2019-11-01"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the AccessAnalyzer client.
*/
export import Types = AccessAnalyzer;
}
export = AccessAnalyzer;