update_detector
(**kwargs)¶Updates the Amazon GuardDuty detector specified by the detectorId.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
See also: AWS API Documentation
Request Syntax
response = client.update_detector(
DetectorId='string',
Enable=True|False,
FindingPublishingFrequency='FIFTEEN_MINUTES'|'ONE_HOUR'|'SIX_HOURS',
DataSources={
'S3Logs': {
'Enable': True|False
},
'Kubernetes': {
'AuditLogs': {
'Enable': True|False
}
},
'MalwareProtection': {
'ScanEc2InstanceWithFindings': {
'EbsVolumes': True|False
}
}
}
)
[REQUIRED]
The unique ID of the detector to update.
Describes which data sources will be updated.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
Describes whether S3 data event logs are enabled as a data source.
The status of S3 data event logs as a data source.
Describes whether any Kubernetes logs are enabled as data sources.
The status of Kubernetes audit logs as a data source.
The status of Kubernetes audit logs as a data source.
Describes whether Malware Protection is enabled as a data source.
Describes the configuration of Malware Protection for EC2 instances with findings.
Describes the configuration for scanning EBS volumes as data source.
dict
Response Syntax
{}
Response Structure
Exceptions
GuardDuty.Client.exceptions.BadRequestException
GuardDuty.Client.exceptions.InternalServerErrorException