GuardDutyClient.update_malware_protection_plan
rboto-guardduty==0.4.0 · Service index · Types
Model summary (excerpt): Updates an existing Malware Protection plan resource.
Install and imports
from rboto import GuardDutyClient
from rboto_guardduty.types import (
MalwareProtectionPlanActions,
UpdateProtectedResource,
)
Signature
async def update_malware_protection_plan(
*,
malware_protection_plan_id: str,
role: str | None = None,
actions: MalwareProtectionPlanActions | None = None,
protected_resource: UpdateProtectedResource | None = None,
) -> None: ...
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) |
|---|---|---|
malware_protection_plan_id |
Yes | A unique identifier associated with the Malware Protection plan. |
role |
No | Amazon Resource Name (ARN) of the IAM role with permissions to scan and add tags to the associated protected resource. |
actions |
No | Information about whether the tags will be added to the S3 object after scanning. |
protected_resource |
No | Information about the protected resource that is associated with the created Malware Protection plan. Presently, S3Bucket is the only supported protected resource. |
Output
None.
| 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
MalwareProtectionPlanActions, UpdateProtectedResource
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:
AccessDeniedError, BadRequestError, InternalServerError, ResourceNotFoundError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.