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
6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 | |