/
types.go
1065 lines (782 loc) · 27.4 KB
/
types.go
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
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
"time"
)
// Contains information on the current access control policies for the bucket.
type AccessControlList struct {
// A value that indicates whether public read access for the bucket is enabled
// through an Access Control List (ACL).
AllowsPublicReadAccess bool
// A value that indicates whether public write access for the bucket is enabled
// through an Access Control List (ACL).
AllowsPublicWriteAccess bool
}
// Contains information about the access keys.
type AccessKeyDetails struct {
// The access key ID of the user.
AccessKeyId *string
// The principal ID of the user.
PrincipalId *string
// The name of the user.
UserName *string
// The type of the user.
UserType *string
}
// Contains information about the account.
type AccountDetail struct {
// The member account ID.
//
// This member is required.
AccountId *string
// The email address of the member account.
//
// This member is required.
Email *string
}
// Contains information about the account level permissions on the S3 bucket.
type AccountLevelPermissions struct {
// Describes the S3 Block Public Access settings of the bucket's parent account.
BlockPublicAccess *BlockPublicAccess
}
// Contains information about actions.
type Action struct {
// The GuardDuty finding activity type.
ActionType *string
// Information about the AWS_API_CALL action described in this finding.
AwsApiCallAction *AwsApiCallAction
// Information about the DNS_REQUEST action described in this finding.
DnsRequestAction *DnsRequestAction
// Information about the NETWORK_CONNECTION action described in this finding.
NetworkConnectionAction *NetworkConnectionAction
// Information about the PORT_PROBE action described in this finding.
PortProbeAction *PortProbeAction
}
// The account within the organization specified as the GuardDuty delegated
// administrator.
type AdminAccount struct {
// The AWS account ID for the account.
AdminAccountId *string
// Indicates whether the account is enabled as the delegated administrator.
AdminStatus AdminStatus
}
// Contains information about the API action.
type AwsApiCallAction struct {
// The AWS API name.
Api *string
// The AWS API caller type.
CallerType *string
// The domain information for the AWS API call.
DomainDetails *DomainDetails
// The error code of the failed AWS API action.
ErrorCode *string
// The remote IP information of the connection that initiated the AWS API call.
RemoteIpDetails *RemoteIpDetails
// The AWS service name whose API was invoked.
ServiceName *string
}
// Contains information on how the bucker owner's S3 Block Public Access settings
// are being applied to the S3 bucket. See S3 Block Public Access
// (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html)
// for more information.
type BlockPublicAccess struct {
// Indicates if S3 Block Public Access is set to BlockPublicAcls.
BlockPublicAcls bool
// Indicates if S3 Block Public Access is set to BlockPublicPolicy.
BlockPublicPolicy bool
// Indicates if S3 Block Public Access is set to IgnorePublicAcls.
IgnorePublicAcls bool
// Indicates if S3 Block Public Access is set to RestrictPublicBuckets.
RestrictPublicBuckets bool
}
// Contains information about the bucket level permissions for the S3 bucket.
type BucketLevelPermissions struct {
// Contains information on how Access Control Policies are applied to the bucket.
AccessControlList *AccessControlList
// Contains information on which account level S3 Block Public Access settings are
// applied to the S3 bucket.
BlockPublicAccess *BlockPublicAccess
// Contains information on the bucket policies for the S3 bucket.
BucketPolicy *BucketPolicy
}
// Contains information on the current bucket policies for the S3 bucket.
type BucketPolicy struct {
// A value that indicates whether public read access for the bucket is enabled
// through a bucket policy.
AllowsPublicReadAccess bool
// A value that indicates whether public write access for the bucket is enabled
// through a bucket policy.
AllowsPublicWriteAccess bool
}
// Contains information about the city associated with the IP address.
type City struct {
// The city name of the remote IP address.
CityName *string
}
// Contains information on the status of CloudTrail as a data source for the
// detector.
type CloudTrailConfigurationResult struct {
// Describes whether CloudTrail is enabled as a data source for the detector.
//
// This member is required.
Status DataSourceStatus
}
// Contains information about the condition.
type Condition struct {
// Represents the equal condition to be applied to a single field when querying for
// findings.
//
// Deprecated: This member has been deprecated.
Eq []string
// Represents an equal condition to be applied to a single field when querying for
// findings.
Equals []string
// Represents a greater than condition to be applied to a single field when
// querying for findings.
GreaterThan int64
// Represents a greater than or equal condition to be applied to a single field
// when querying for findings.
GreaterThanOrEqual int64
// Represents a greater than condition to be applied to a single field when
// querying for findings.
//
// Deprecated: This member has been deprecated.
Gt int32
// Represents a greater than or equal condition to be applied to a single field
// when querying for findings.
//
// Deprecated: This member has been deprecated.
Gte int32
// Represents a less than condition to be applied to a single field when querying
// for findings.
LessThan int64
// Represents a less than or equal condition to be applied to a single field when
// querying for findings.
LessThanOrEqual int64
// Represents a less than condition to be applied to a single field when querying
// for findings.
//
// Deprecated: This member has been deprecated.
Lt int32
// Represents a less than or equal condition to be applied to a single field when
// querying for findings.
//
// Deprecated: This member has been deprecated.
Lte int32
// Represents the not equal condition to be applied to a single field when querying
// for findings.
//
// Deprecated: This member has been deprecated.
Neq []string
// Represents a not equal condition to be applied to a single field when querying
// for findings.
NotEquals []string
}
// Contains information about the country where the remote IP address is located.
type Country struct {
// The country code of the remote IP address.
CountryCode *string
// The country name of the remote IP address.
CountryName *string
}
// Contains information about which data sources are enabled.
type DataSourceConfigurations struct {
// Describes whether S3 data event logs are enabled as a data source.
S3Logs *S3LogsConfiguration
}
// Contains information on the status of data sources for the detector.
type DataSourceConfigurationsResult struct {
// An object that contains information on the status of CloudTrail as a data
// source.
//
// This member is required.
CloudTrail *CloudTrailConfigurationResult
// An object that contains information on the status of DNS logs as a data source.
//
// This member is required.
DNSLogs *DNSLogsConfigurationResult
// An object that contains information on the status of VPC flow logs as a data
// source.
//
// This member is required.
FlowLogs *FlowLogsConfigurationResult
// An object that contains information on the status of S3 Data event logs as a
// data source.
//
// This member is required.
S3Logs *S3LogsConfigurationResult
}
// Contains information on the server side encryption method used in the S3 bucket.
// See S3 Server-Side Encryption
// (https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html) for
// more information.
type DefaultServerSideEncryption struct {
// The type of encryption used for objects within the S3 bucket.
EncryptionType *string
// The Amazon Resource Name (ARN) of the KMS encryption key. Only available if the
// bucket EncryptionType is aws:kms.
KmsMasterKeyArn *string
}
// Contains information about the publishing destination, including the ID, type,
// and status.
type Destination struct {
// The unique ID of the publishing destination.
//
// This member is required.
DestinationId *string
// The type of resource used for the publishing destination. Currently, only Amazon
// S3 buckets are supported.
//
// This member is required.
DestinationType DestinationType
// The status of the publishing destination.
//
// This member is required.
Status PublishingStatus
}
// Contains the Amazon Resource Name (ARN) of the resource to publish to, such as
// an S3 bucket, and the ARN of the KMS key to use to encrypt published findings.
type DestinationProperties struct {
// The ARN of the resource to publish to.
DestinationArn *string
// The ARN of the KMS key to use for encryption.
KmsKeyArn *string
}
// Contains information on the status of DNS logs as a data source.
type DNSLogsConfigurationResult struct {
// Denotes whether DNS logs is enabled as a data source.
//
// This member is required.
Status DataSourceStatus
}
// Contains information about the DNS_REQUEST action described in this finding.
type DnsRequestAction struct {
// The domain information for the API request.
Domain *string
}
// Contains information about the domain.
type DomainDetails struct {
// The domain information for the AWS API call.
Domain *string
}
// Contains information about the reason that the finding was generated.
type Evidence struct {
// A list of threat intelligence details related to the evidence.
ThreatIntelligenceDetails []ThreatIntelligenceDetail
}
// Contains information about the finding, which is generated when abnormal or
// suspicious activity is detected.
type Finding struct {
// The ID of the account in which the finding was generated.
//
// This member is required.
AccountId *string
// The ARN of the finding.
//
// This member is required.
Arn *string
// The time and date when the finding was created.
//
// This member is required.
CreatedAt *string
// The ID of the finding.
//
// This member is required.
Id *string
// The Region where the finding was generated.
//
// This member is required.
Region *string
// Contains information about the AWS resource associated with the activity that
// prompted GuardDuty to generate a finding.
//
// This member is required.
Resource *Resource
// The version of the schema used for the finding.
//
// This member is required.
SchemaVersion *string
// The severity of the finding.
//
// This member is required.
Severity float64
// The type of finding.
//
// This member is required.
Type *string
// The time and date when the finding was last updated.
//
// This member is required.
UpdatedAt *string
// The confidence score for the finding.
Confidence float64
// The description of the finding.
Description *string
// The partition associated with the finding.
Partition *string
// Contains additional information about the generated finding.
Service *Service
// The title of the finding.
Title *string
}
// Contains information about the criteria used for querying findings.
type FindingCriteria struct {
// Represents a map of finding properties that match specified conditions and
// values when querying findings.
Criterion map[string]Condition
}
// Contains information about finding statistics.
type FindingStatistics struct {
// Represents a map of severity to count statistics for a set of findings.
CountBySeverity map[string]int32
}
// Contains information on the status of VPC flow logs as a data source.
type FlowLogsConfigurationResult struct {
// Denotes whether VPC flow logs is enabled as a data source.
//
// This member is required.
Status DataSourceStatus
}
// Contains information about the location of the remote IP address.
type GeoLocation struct {
// The latitude information of the remote IP address.
Lat float64
// The longitude information of the remote IP address.
Lon float64
}
// Contains information about the EC2 instance profile.
type IamInstanceProfile struct {
// The profile ARN of the EC2 instance.
Arn *string
// The profile ID of the EC2 instance.
Id *string
}
// Contains information about the details of an instance.
type InstanceDetails struct {
// The Availability Zone of the EC2 instance.
AvailabilityZone *string
// The profile information of the EC2 instance.
IamInstanceProfile *IamInstanceProfile
// The image description of the EC2 instance.
ImageDescription *string
// The image ID of the EC2 instance.
ImageId *string
// The ID of the EC2 instance.
InstanceId *string
// The state of the EC2 instance.
InstanceState *string
// The type of the EC2 instance.
InstanceType *string
// The launch time of the EC2 instance.
LaunchTime *string
// The elastic network interface information of the EC2 instance.
NetworkInterfaces []NetworkInterface
// The Amazon Resource Name (ARN) of the AWS Outpost. Only applicable to AWS
// Outposts instances.
OutpostArn *string
// The platform of the EC2 instance.
Platform *string
// The product code of the EC2 instance.
ProductCodes []ProductCode
// The tags of the EC2 instance.
Tags []Tag
}
// Contains information about the invitation to become a member account.
type Invitation struct {
// The ID of the account that the invitation was sent from.
AccountId *string
// The ID of the invitation. This value is used to validate the inviter account to
// the member account.
InvitationId *string
// The timestamp when the invitation was sent.
InvitedAt *string
// The status of the relationship between the inviter and invitee accounts.
RelationshipStatus *string
}
// Contains information about the local IP address of the connection.
type LocalIpDetails struct {
// The IPv4 local address of the connection.
IpAddressV4 *string
}
// Contains information about the port for the local connection.
type LocalPortDetails struct {
// The port number of the local connection.
Port int32
// The port name of the local connection.
PortName *string
}
// Contains information about the administrator account and invitation.
type Master struct {
// The ID of the account used as the administrator account.
AccountId *string
// The value used to validate the administrator account to the member account.
InvitationId *string
// The timestamp when the invitation was sent.
InvitedAt *string
// The status of the relationship between the administrator and member accounts.
RelationshipStatus *string
}
// Contains information about the member account.
type Member struct {
// The ID of the member account.
//
// This member is required.
AccountId *string
// The email address of the member account.
//
// This member is required.
Email *string
// The administrator account ID.
//
// This member is required.
MasterId *string
// The status of the relationship between the member and the administrator.
//
// This member is required.
RelationshipStatus *string
// The last-updated timestamp of the member.
//
// This member is required.
UpdatedAt *string
// The detector ID of the member account.
DetectorId *string
// The timestamp when the invitation was sent.
InvitedAt *string
}
// Contains information on which data sources are enabled for a member account.
type MemberDataSourceConfiguration struct {
// The account ID for the member account.
//
// This member is required.
AccountId *string
// Contains information on the status of data sources for the account.
//
// This member is required.
DataSources *DataSourceConfigurationsResult
}
// Contains information about the NETWORK_CONNECTION action described in the
// finding.
type NetworkConnectionAction struct {
// Indicates whether EC2 blocked the network connection to your instance.
Blocked bool
// The network connection direction.
ConnectionDirection *string
// The local IP information of the connection.
LocalIpDetails *LocalIpDetails
// The local port information of the connection.
LocalPortDetails *LocalPortDetails
// The network connection protocol.
Protocol *string
// The remote IP information of the connection.
RemoteIpDetails *RemoteIpDetails
// The remote port information of the connection.
RemotePortDetails *RemotePortDetails
}
// Contains information about the elastic network interface of the EC2 instance.
type NetworkInterface struct {
// A list of IPv6 addresses for the EC2 instance.
Ipv6Addresses []string
// The ID of the network interface.
NetworkInterfaceId *string
// The private DNS name of the EC2 instance.
PrivateDnsName *string
// The private IP address of the EC2 instance.
PrivateIpAddress *string
// Other private IP address information of the EC2 instance.
PrivateIpAddresses []PrivateIpAddressDetails
// The public DNS name of the EC2 instance.
PublicDnsName *string
// The public IP address of the EC2 instance.
PublicIp *string
// The security groups associated with the EC2 instance.
SecurityGroups []SecurityGroup
// The subnet ID of the EC2 instance.
SubnetId *string
// The VPC ID of the EC2 instance.
VpcId *string
}
// Contains information about the ISP organization of the remote IP address.
type Organization struct {
// The Autonomous System Number (ASN) of the internet provider of the remote IP
// address.
Asn *string
// The organization that registered this ASN.
AsnOrg *string
// The ISP information for the internet provider.
Isp *string
// The name of the internet provider.
Org *string
}
// An object that contains information on which data sources will be configured to
// be automatically enabled for new members within the organization.
type OrganizationDataSourceConfigurations struct {
// Describes whether S3 data event logs are enabled for new members of the
// organization.
S3Logs *OrganizationS3LogsConfiguration
}
// An object that contains information on which data sources are automatically
// enabled for new members within the organization.
type OrganizationDataSourceConfigurationsResult struct {
// Describes whether S3 data event logs are enabled as a data source.
//
// This member is required.
S3Logs *OrganizationS3LogsConfigurationResult
}
// Describes whether S3 data event logs will be automatically enabled for new
// members of the organization.
type OrganizationS3LogsConfiguration struct {
// A value that contains information on whether S3 data event logs will be enabled
// automatically as a data source for the organization.
//
// This member is required.
AutoEnable bool
}
// The current configuration of S3 data event logs as a data source for the
// organization.
type OrganizationS3LogsConfigurationResult struct {
// A value that describes whether S3 data event logs are automatically enabled for
// new members of the organization.
//
// This member is required.
AutoEnable bool
}
// Contains information on the owner of the bucket.
type Owner struct {
// The canonical user ID of the bucket owner. For information about locating your
// canonical user ID see Finding Your Account Canonical User ID.
// (https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html#FindingCanonicalId)
Id *string
}
// Contains information about how permissions are configured for the S3 bucket.
type PermissionConfiguration struct {
// Contains information about the account level permissions on the S3 bucket.
AccountLevelPermissions *AccountLevelPermissions
// Contains information about the bucket level permissions for the S3 bucket.
BucketLevelPermissions *BucketLevelPermissions
}
// Contains information about the PORT_PROBE action described in the finding.
type PortProbeAction struct {
// Indicates whether EC2 blocked the port probe to the instance, such as with an
// ACL.
Blocked bool
// A list of objects related to port probe details.
PortProbeDetails []PortProbeDetail
}
// Contains information about the port probe details.
type PortProbeDetail struct {
// The local IP information of the connection.
LocalIpDetails *LocalIpDetails
// The local port information of the connection.
LocalPortDetails *LocalPortDetails
// The remote IP information of the connection.
RemoteIpDetails *RemoteIpDetails
}
// Contains other private IP address information of the EC2 instance.
type PrivateIpAddressDetails struct {
// The private DNS name of the EC2 instance.
PrivateDnsName *string
// The private IP address of the EC2 instance.
PrivateIpAddress *string
}
// Contains information about the product code for the EC2 instance.
type ProductCode struct {
// The product code information.
Code *string
// The product code type.
ProductType *string
}
// Describes the public access policies that apply to the S3 bucket.
type PublicAccess struct {
// Describes the effective permission on this bucket after factoring all attached
// policies.
EffectivePermission *string
// Contains information about how permissions are configured for the S3 bucket.
PermissionConfiguration *PermissionConfiguration
}
// Contains information about the remote IP address of the connection.
type RemoteIpDetails struct {
// The city information of the remote IP address.
City *City
// The country code of the remote IP address.
Country *Country
// The location information of the remote IP address.
GeoLocation *GeoLocation
// The IPv4 remote address of the connection.
IpAddressV4 *string
// The ISP organization information of the remote IP address.
Organization *Organization
}
// Contains information about the remote port.
type RemotePortDetails struct {
// The port number of the remote connection.
Port int32
// The port name of the remote connection.
PortName *string
}
// Contains information about the AWS resource associated with the activity that
// prompted GuardDuty to generate a finding.
type Resource struct {
// The IAM access key details (IAM user information) of a user that engaged in the
// activity that prompted GuardDuty to generate a finding.
AccessKeyDetails *AccessKeyDetails
// The information about the EC2 instance associated with the activity that
// prompted GuardDuty to generate a finding.
InstanceDetails *InstanceDetails
// The type of AWS resource.
ResourceType *string
// Contains information on the S3 bucket.
S3BucketDetails []S3BucketDetail
}
// Contains information on the S3 bucket.
type S3BucketDetail struct {
// The Amazon Resource Name (ARN) of the S3 bucket.
Arn *string
// The date and time the bucket was created at.
CreatedAt *time.Time
// Describes the server side encryption method used in the S3 bucket.
DefaultServerSideEncryption *DefaultServerSideEncryption
// The name of the S3 bucket.
Name *string
// The owner of the S3 bucket.
Owner *Owner
// Describes the public access policies that apply to the S3 bucket.
PublicAccess *PublicAccess
// All tags attached to the S3 bucket
Tags []Tag
// Describes whether the bucket is a source or destination bucket.
Type *string
}
// Describes whether S3 data event logs will be enabled as a data source.
type S3LogsConfiguration struct {
// The status of S3 data event logs as a data source.
//
// This member is required.
Enable bool
}
// Describes whether S3 data event logs will be enabled as a data source.
type S3LogsConfigurationResult struct {
// A value that describes whether S3 data event logs are automatically enabled for
// new members of the organization.
//
// This member is required.
Status DataSourceStatus
}
// Contains information about the security groups associated with the EC2 instance.
type SecurityGroup struct {
// The security group ID of the EC2 instance.
GroupId *string
// The security group name of the EC2 instance.
GroupName *string
}
// Contains additional information about the generated finding.
type Service struct {
// Information about the activity that is described in a finding.
Action *Action
// Indicates whether this finding is archived.
Archived bool
// The total count of the occurrences of this finding type.
Count int32
// The detector ID for the GuardDuty service.
DetectorId *string
// The first-seen timestamp of the activity that prompted GuardDuty to generate
// this finding.
EventFirstSeen *string
// The last-seen timestamp of the activity that prompted GuardDuty to generate this
// finding.
EventLastSeen *string
// An evidence object associated with the service.
Evidence *Evidence
// The resource role information for this finding.
ResourceRole *string
// The name of the AWS service (GuardDuty) that generated a finding.
ServiceName *string
// Feedback that was submitted about the finding.
UserFeedback *string
}
// Contains information about the criteria used for sorting findings.
type SortCriteria struct {
// Represents the finding attribute (for example, accountId) to sort findings by.
AttributeName *string
// The order by which the sorted findings are to be displayed.
OrderBy OrderBy
}
// Contains information about a tag associated with the EC2 instance.
type Tag struct {
// The EC2 instance tag key.
Key *string
// The EC2 instance tag value.
Value *string
}
// An instance of a threat intelligence detail that constitutes evidence for the
// finding.
type ThreatIntelligenceDetail struct {
// The name of the threat intelligence list that triggered the finding.
ThreatListName *string
// A list of names of the threats in the threat intelligence list that triggered
// the finding.
ThreatNames []string
}
// Contains the total usage with the corresponding currency unit for that value.
type Total struct {
// The total usage.
Amount *string
// The currency unit that the amount is given in.
Unit *string
}
// Contains information about the accounts that weren't processed.
type UnprocessedAccount struct {
// The AWS account ID.
//
// This member is required.
AccountId *string
// A reason why the account hasn't been processed.
//
// This member is required.
Result *string