GuardDutyClient.update_detector
rboto-guardduty==0.4.0 · Service index · Types
Model summary (excerpt): 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...
Install and imports
from rboto import GuardDutyClient
from collections.abc import Sequence as _Sequence
from rboto_guardduty.types import (
DataSourceConfigurations,
DetectorFeatureConfiguration,
FindingPublishingFrequency,
UpdateDetectorOutput,
)
Signature
async def update_detector(
*,
detector_id: str,
enable: bool | None = None,
finding_publishing_frequency: FindingPublishingFrequency | None = None,
data_sources: DataSourceConfigurations | None = None,
features: _Sequence[DetectorFeatureConfiguration] | None = None,
) -> UpdateDetectorOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
detector_id |
Yes | The unique ID of the detector to update. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API. |
enable |
No | Specifies whether the detector is enabled or not enabled. |
finding_publishing_frequency |
No | An enum value that specifies how frequently findings are exported, such as to CloudWatch Events. |
data_sources |
No | 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 |
No | Provides the features that will be updated for the detector. |
Output
UpdateDetectorOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
No fields.
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
DataSourceConfigurations, DetectorFeatureConfiguration, FindingPublishingFrequency, UpdateDetectorOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_guardduty.exceptions:
BadRequestError, InternalServerError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.