-
Notifications
You must be signed in to change notification settings - Fork 596
/
types.go
2950 lines (2077 loc) · 77.7 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 (
smithydocument "github.com/aws/smithy-go/document"
"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
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// Provides details of the GuardDuty member account that uses a free trial service.
type AccountFreeTrialInfo struct {
// The account identifier of the GuardDuty member account.
AccountId *string
// Describes the data source enabled for the GuardDuty member account.
//
// Deprecated: This parameter is deprecated, use Features instead
DataSources *DataSourcesFreeTrial
// A list of features enabled for the GuardDuty account.
Features []FreeTrialFeatureConfigurationResult
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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 Kubernetes API call action described in this finding.
KubernetesApiCallAction *KubernetesApiCallAction
// Information about the NETWORK_CONNECTION action described in this finding.
NetworkConnectionAction *NetworkConnectionAction
// Information about the PORT_PROBE action described in this finding.
PortProbeAction *PortProbeAction
// Information about RDS_LOGIN_ATTEMPT action described in this finding.
RdsLoginAttemptAction *RdsLoginAttemptAction
noSmithyDocumentSerde
}
// Information about the installed EKS add-on (GuardDuty security agent).
type AddonDetails struct {
// Status of the installed EKS add-on.
AddonStatus *string
// Version of the installed EKS add-on.
AddonVersion *string
noSmithyDocumentSerde
}
// The account within the organization specified as the GuardDuty delegated
// administrator.
type AdminAccount struct {
// The Amazon Web Services account ID for the account.
AdminAccountId *string
// Indicates whether the account is enabled as the delegated administrator.
AdminStatus AdminStatus
noSmithyDocumentSerde
}
// Contains information about the administrator account and invitation.
type Administrator struct {
// The ID of the account used as the administrator account.
AccountId *string
// The value that is 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
noSmithyDocumentSerde
}
// Contains information about the API action.
type AwsApiCallAction struct {
// The details of the Amazon Web Services account that made the API call. This
// field identifies the resources that were affected by this API call.
AffectedResources map[string]string
// The Amazon Web Services API name.
Api *string
// The Amazon Web Services API caller type.
CallerType *string
// The domain information for the Amazon Web Services API call.
DomainDetails *DomainDetails
// The error code of the failed Amazon Web Services API action.
ErrorCode *string
// The details of the Amazon Web Services account that made the API call. This
// field appears if the call was made from outside your account.
RemoteAccountDetails *RemoteAccountDetails
// The remote IP information of the connection that initiated the Amazon Web
// Services API call.
RemoteIpDetails *RemoteIpDetails
// The Amazon Web Services service name whose API was invoked.
ServiceName *string
// The agent through which the API request was made.
UserAgent *string
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// Contains information about the city associated with the IP address.
type City struct {
// The city name of the remote IP address.
CityName *string
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// Details of a container.
type Container struct {
// The container runtime (such as, Docker or containerd) used to run the container.
ContainerRuntime *string
// Container ID.
Id *string
// Container image.
Image *string
// Part of the image name before the last slash. For example, imagePrefix for
// public.ecr.aws/amazonlinux/amazonlinux:latest would be
// public.ecr.aws/amazonlinux. If the image name is relative and does not have a
// slash, this field is empty.
ImagePrefix *string
// Container name.
Name *string
// Container security context.
SecurityContext *SecurityContext
// Container volume mounts.
VolumeMounts []VolumeMount
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// Information about the EKS cluster that has a coverage status.
type CoverageEksClusterDetails struct {
// Information about the installed EKS add-on.
AddonDetails *AddonDetails
// Name of the EKS cluster.
ClusterName *string
// Represents all the nodes within the EKS cluster in your account.
CompatibleNodes int64
// Represents the nodes within the EKS cluster that have a HEALTHY coverage status.
CoveredNodes int64
// Indicates how the Amazon EKS add-on GuardDuty agent is managed for this EKS
// cluster. AUTO_MANAGED indicates GuardDuty deploys and manages updates for this
// resource. MANUAL indicates that you are responsible to deploy, update, and
// manage the Amazon EKS add-on GuardDuty agent for this resource.
ManagementType ManagementType
noSmithyDocumentSerde
}
// Represents a condition that when matched will be added to the response of the
// operation.
type CoverageFilterCondition struct {
// Represents an equal condition that is applied to a single field while
// retrieving the coverage details.
Equals []string
// Represents a not equal condition that is applied to a single field while
// retrieving the coverage details.
NotEquals []string
noSmithyDocumentSerde
}
// Represents the criteria used in the filter.
type CoverageFilterCriteria struct {
// Represents a condition that when matched will be added to the response of the
// operation.
FilterCriterion []CoverageFilterCriterion
noSmithyDocumentSerde
}
// Represents a condition that when matched will be added to the response of the
// operation.
type CoverageFilterCriterion struct {
// An enum value representing possible filter fields. Replace the enum value
// CLUSTER_NAME with EKS_CLUSTER_NAME . CLUSTER_NAME has been deprecated.
CriterionKey CoverageFilterCriterionKey
// Contains information about the condition.
FilterCondition *CoverageFilterCondition
noSmithyDocumentSerde
}
// Information about the resource of the GuardDuty account.
type CoverageResource struct {
// The unique ID of the Amazon Web Services account.
AccountId *string
// Represents the status of the EKS cluster coverage.
CoverageStatus CoverageStatus
// The unique ID of the GuardDuty detector associated with the resource.
DetectorId *string
// Represents the reason why a coverage status was UNHEALTHY for the EKS cluster.
Issue *string
// Information about the resource for which the coverage statistics are retrieved.
ResourceDetails *CoverageResourceDetails
// The unique ID of the resource.
ResourceId *string
// The timestamp at which the coverage details for the resource were last updated.
// This is in UTC format.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// Information about the resource for each individual EKS cluster.
type CoverageResourceDetails struct {
// EKS cluster details involved in the coverage statistics.
EksClusterDetails *CoverageEksClusterDetails
// The type of Amazon Web Services resource.
ResourceType ResourceType
noSmithyDocumentSerde
}
// Information about the sorting criteria used in the coverage statistics.
type CoverageSortCriteria struct {
// Represents the field name used to sort the coverage details. Replace the enum
// value CLUSTER_NAME with EKS_CLUSTER_NAME . CLUSTER_NAME has been deprecated.
AttributeName CoverageSortKey
// The order in which the sorted findings are to be displayed.
OrderBy OrderBy
noSmithyDocumentSerde
}
// Information about the coverage statistics for a resource.
type CoverageStatistics struct {
// Represents coverage statistics for EKS clusters aggregated by coverage status.
CountByCoverageStatus map[string]int64
// Represents coverage statistics for EKS clusters aggregated by resource type.
CountByResourceType map[string]int64
noSmithyDocumentSerde
}
// Contains information about which data sources are enabled.
type DataSourceConfigurations struct {
// Describes whether any Kubernetes logs are enabled as data sources.
Kubernetes *KubernetesConfiguration
// Describes whether Malware Protection is enabled as a data source.
MalwareProtection *MalwareProtectionConfiguration
// Describes whether S3 data event logs are enabled as a data source.
S3Logs *S3LogsConfiguration
noSmithyDocumentSerde
}
// 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
// An object that contains information on the status of all Kubernetes data
// sources.
Kubernetes *KubernetesConfigurationResult
// Describes the configuration of Malware Protection data sources.
MalwareProtection *MalwareProtectionConfigurationResult
noSmithyDocumentSerde
}
// Contains information about which data sources are enabled for the GuardDuty
// member account.
type DataSourceFreeTrial struct {
// A value that specifies the number of days left to use each enabled data source.
FreeTrialDaysRemaining int32
noSmithyDocumentSerde
}
// Contains information about which data sources are enabled for the GuardDuty
// member account.
type DataSourcesFreeTrial struct {
// Describes whether any Amazon Web Services CloudTrail management event logs are
// enabled as data sources.
CloudTrail *DataSourceFreeTrial
// Describes whether any DNS logs are enabled as data sources.
DnsLogs *DataSourceFreeTrial
// Describes whether any VPC Flow logs are enabled as data sources.
FlowLogs *DataSourceFreeTrial
// Describes whether any Kubernetes logs are enabled as data sources.
Kubernetes *KubernetesDataSourceFreeTrial
// Describes whether Malware Protection is enabled as a data source.
MalwareProtection *MalwareProtectionDataSourceFreeTrial
// Describes whether any S3 data event logs are enabled as data sources.
S3Logs *DataSourceFreeTrial
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// 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. To specify an S3 bucket folder use the
// following format: arn:aws:s3:::DOC-EXAMPLE-BUCKET/myFolder/
DestinationArn *string
// The ARN of the KMS key to use for encryption.
KmsKeyArn *string
noSmithyDocumentSerde
}
// Information about the additional configuration for a feature in your GuardDuty
// account.
type DetectorAdditionalConfiguration struct {
// Name of the additional configuration.
Name FeatureAdditionalConfiguration
// Status of the additional configuration.
Status FeatureStatus
noSmithyDocumentSerde
}
// Information about the additional configuration.
type DetectorAdditionalConfigurationResult struct {
// Name of the additional configuration.
Name FeatureAdditionalConfiguration
// Status of the additional configuration.
Status FeatureStatus
// The timestamp at which the additional configuration was last updated. This is
// in UTC format.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// Contains information about a GuardDuty feature.
type DetectorFeatureConfiguration struct {
// Additional configuration for a resource.
AdditionalConfiguration []DetectorAdditionalConfiguration
// The name of the feature.
Name DetectorFeature
// The status of the feature.
Status FeatureStatus
noSmithyDocumentSerde
}
// Contains information about a GuardDuty feature.
type DetectorFeatureConfigurationResult struct {
// Additional configuration for a resource.
AdditionalConfiguration []DetectorAdditionalConfigurationResult
// Indicates the name of the feature that can be enabled for the detector.
Name DetectorFeatureResult
// Indicates the status of the feature that is enabled for the detector.
Status FeatureStatus
// The timestamp at which the feature object was updated.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// Contains information about the DNS_REQUEST action described in this finding.
type DnsRequestAction struct {
// Indicates whether the targeted port is blocked.
Blocked bool
// The domain information for the DNS query.
Domain *string
// The network connection protocol observed in the activity that prompted
// GuardDuty to generate the finding.
Protocol *string
noSmithyDocumentSerde
}
// Contains information about the domain.
type DomainDetails struct {
// The domain information for the Amazon Web Services API call.
Domain *string
noSmithyDocumentSerde
}
// Contains list of scanned and skipped EBS volumes with details.
type EbsVolumeDetails struct {
// List of EBS volumes that were scanned.
ScannedVolumeDetails []VolumeDetail
// List of EBS volumes that were skipped from the malware scan.
SkippedVolumeDetails []VolumeDetail
noSmithyDocumentSerde
}
// Contains details from the malware scan that created a finding.
type EbsVolumeScanDetails struct {
// Returns the completion date and time of the malware scan.
ScanCompletedAt *time.Time
// Contains a complete view providing malware scan result details.
ScanDetections *ScanDetections
// Unique Id of the malware scan that generated the finding.
ScanId *string
// Returns the start date and time of the malware scan.
ScanStartedAt *time.Time
// Specifies the scan type that invoked the malware scan.
ScanType ScanType
// Contains list of threat intelligence sources used to detect threats.
Sources []string
// GuardDuty finding ID that triggered a malware scan.
TriggerFindingId *string
noSmithyDocumentSerde
}
// Describes the configuration of scanning EBS volumes as a data source.
type EbsVolumesResult struct {
// Specifies the reason why scanning EBS volumes (Malware Protection) was not
// enabled as a data source.
Reason *string
// Describes whether scanning EBS volumes is enabled as a data source.
Status DataSourceStatus
noSmithyDocumentSerde
}
// Contains information about the details of the ECS Cluster.
type EcsClusterDetails struct {
// The number of services that are running on the cluster in an ACTIVE state.
ActiveServicesCount int32
// The Amazon Resource Name (ARN) that identifies the cluster.
Arn *string
// The name of the ECS Cluster.
Name *string
// The number of container instances registered into the cluster.
RegisteredContainerInstancesCount int32
// The number of tasks in the cluster that are in the RUNNING state.
RunningTasksCount int32
// The status of the ECS cluster.
Status *string
// The tags of the ECS Cluster.
Tags []Tag
// Contains information about the details of the ECS Task.
TaskDetails *EcsTaskDetails
noSmithyDocumentSerde
}
// Contains information about the task in an ECS cluster.
type EcsTaskDetails struct {
// The Amazon Resource Name (ARN) of the task.
Arn *string
// The containers that's associated with the task.
Containers []Container
// The ARN of the task definition that creates the task.
DefinitionArn *string
// The name of the task group that's associated with the task.
Group *string
// The Unix timestamp for the time when the task started.
StartedAt *time.Time
// Contains the tag specified when a task is started.
StartedBy *string
// The tags of the ECS Task.
Tags []Tag
// The Unix timestamp for the time when the task was created.
TaskCreatedAt *time.Time
// The version counter for the task.
Version *string
// The list of data volume definitions for the task.
Volumes []Volume
noSmithyDocumentSerde
}
// Details about the EKS cluster involved in a Kubernetes finding.
type EksClusterDetails struct {
// EKS cluster ARN.
Arn *string
// The timestamp when the EKS cluster was created.
CreatedAt *time.Time
// EKS cluster name.
Name *string
// The EKS cluster status.
Status *string
// The EKS cluster tags.
Tags []Tag
// The VPC ID to which the EKS cluster is attached.
VpcId *string
noSmithyDocumentSerde
}
// 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
noSmithyDocumentSerde
}
// Contains information about the condition.
type FilterCondition struct {
// Represents an equal condition to be applied to a single field when querying for
// scan entries.
EqualsValue *string
// Represents a greater than condition to be applied to a single field when
// querying for scan entries.
GreaterThan int64
// Represents a less than condition to be applied to a single field when querying
// for scan entries.
LessThan int64
noSmithyDocumentSerde
}
// Represents the criteria to be used in the filter for describing scan entries.
type FilterCriteria struct {
// Represents a condition that when matched will be added to the response of the
// operation.
FilterCriterion []FilterCriterion
noSmithyDocumentSerde
}
// Represents a condition that when matched will be added to the response of the
// operation. Irrespective of using any filter criteria, an administrator account
// can view the scan entries for all of its member accounts. However, each member
// account can view the scan entries only for their own account.
type FilterCriterion struct {
// An enum value representing possible scan properties to match with given scan
// entries. Replace the enum value CLUSTER_NAME with EKS_CLUSTER_NAME .
// CLUSTER_NAME has been deprecated.
CriterionKey CriterionKey
// Contains information about the condition.
FilterCondition *FilterCondition
noSmithyDocumentSerde
}
// Contains information about the finding that 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 Amazon Web Services 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