update_detector
¶
update_detector(
detector_id: DetectorId,
*,
config_overrides: Optional[GuardDutyClientConfig] = 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/guard_duty.py
5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 | |