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
6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 | |