GuardDutyClient.start_malware_scan
rboto-guardduty==0.4.0 · Service index · Types
Model summary (excerpt): Initiates the malware scan. Invoking this API will automatically create the Service-linked role in the corresponding account if the resourceArn belongs to an EC2 instance. When the malware scan starts, you can use the associated scan ID to track the status of the scan. For more information, see ListMalwareScans and GetMalwareScan . When you use this API, the Amazon Web Services service terms...
Install and imports
from rboto import GuardDutyClient
from rboto_guardduty.types import (
StartMalwareScanConfiguration,
StartMalwareScanOutput,
)
Signature
async def start_malware_scan(
*,
resource_arn: str,
client_token: str | None = None,
scan_configuration: StartMalwareScanConfiguration | None = None,
) -> StartMalwareScanOutput: ...
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) |
|---|---|---|
resource_arn |
Yes | Amazon Resource Name (ARN) of the resource for which you invoked the API. |
client_token |
No | The idempotency token for the create request. |
scan_configuration |
No | Contains information about the configuration to be used for the malware scan. |
Output
StartMalwareScanOutput.
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 |
|---|---|---|---|
scan_id |
str | None |
Always present | — |
| 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
StartMalwareScanConfiguration, StartMalwareScanOutput
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, ConflictError, InternalServerError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.