GuardDutyClient.create_detector
rboto-guardduty==0.4.0 · Service index · Types
Model summary (excerpt): Creates a single GuardDuty detector. A detector is a resource that represents the GuardDuty service. To start using GuardDuty, you must create a detector in each Region where you enable the service. You can have only one detector per account per Region. All data sources are enabled in a new detector by default. When you don't specify any features , with an exception to RUNTIME_MONITORING , all...
Install and imports
from rboto import GuardDutyClient
from collections.abc import Sequence as _Sequence
from rboto_guardduty.types import (
CreateDetectorOutput,
DataSourceConfigurations,
DetectorFeatureConfiguration,
FindingPublishingFrequency,
)
Signature
async def create_detector(
*,
enable: bool,
client_token: str | None = None,
finding_publishing_frequency: FindingPublishingFrequency | None = None,
data_sources: DataSourceConfigurations | None = None,
tags: dict[str, str] | None = None,
features: _Sequence[DetectorFeatureConfiguration] | None = None,
) -> CreateDetectorOutput: ...
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) |
|---|---|---|
enable |
Yes | A Boolean value that specifies whether the detector is to be enabled. |
client_token |
No | The idempotency token for the create request. |
finding_publishing_frequency |
No | A value that specifies how frequently updated findings are exported. |
data_sources |
No | Describes which data sources will be enabled for the detector. 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 . |
tags |
No | The tags to be added to a new detector resource. |
features |
No | A list of features that will be configured for the detector. |
Output
CreateDetectorOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
detector_id |
str | None |
Always present | — |
unprocessed_data_sources |
UnprocessedDataSourcesResultOutput | None |
Always present | UnprocessedDataSourcesResultOutput |
| 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
CreateDetectorOutput, DataSourceConfigurations, DetectorFeatureConfiguration, FindingPublishingFrequency
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.