update_detector
async
¶
update_detector(
detector_id: DetectorId,
*,
config_overrides: Optional[AsyncGuardDutyClientConfig] = None,
enable: Optional[Boolean] = None,
finding_publishing_frequency: Optional[FindingPublishingFrequency] = None,
data_sources: Optional[DataSourceConfigurations] = None,
features: Optional[DetectorFeatureConfigurations] = None,
) -> UpdateDetectorResponse
Updates the GuardDuty detector specified by the detector ID.
Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring (RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring.
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.
Parameters:
-
detector_id(DetectorId) –The unique ID of the detector to update.
To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API. -
enable(Optional[Boolean], default:None) –Specifies whether the detector is enabled or not enabled.
-
finding_publishing_frequency(Optional[FindingPublishingFrequency], default:None) –An enum value that specifies how frequently findings are exported, such as to CloudWatch Events.
-
data_sources(Optional[DataSourceConfigurations], default:None) –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.
-
features(Optional[DetectorFeatureConfigurations], default:None) –Provides the features that will be updated for the detector.
Raises:
-
BadRequestException–A bad request exception object.
-
InternalServerErrorException–An internal server error exception object.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_guardduty/_services/async_guard_duty.py
5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 | |