Skip to content

GuardDutyClient.create_malware_protection_plan

rboto-guardduty==0.4.0 · Service index · Types

Model summary (excerpt): Creates a new Malware Protection plan for the protected resource. When you create a Malware Protection plan, the Amazon Web Services service terms for GuardDuty Malware Protection apply. For more information, see Amazon Web Services service terms for GuardDuty Malware Protection .

Install and imports

python -m pip install "rboto[guardduty]==0.4.0"
from rboto import GuardDutyClient
from rboto_guardduty.types import (
    CreateMalwareProtectionPlanOutput,
    CreateProtectedResource,
    MalwareProtectionPlanActions,
)

Signature

async def create_malware_protection_plan(
    *,
    role: str,
    protected_resource: CreateProtectedResource,
    client_token: str | None = None,
    actions: MalwareProtectionPlanActions | None = None,
    tags: dict[str, str] | None = None,
) -> CreateMalwareProtectionPlanOutput: ...

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)
role Yes Amazon Resource Name (ARN) of the IAM role that has the permissions to scan and add tags to the associated protected resource.
protected_resource Yes Information about the protected resource that is associated with the created Malware Protection plan. Presently, S3Bucket is the only supported protected resource.
client_token No The idempotency token for the create request.
actions No Information about whether the tags will be added to the S3 object after scanning.
tags No Tags added to the Malware Protection plan resource.

Output

CreateMalwareProtectionPlanOutput.

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
malware_protection_plan_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.

CreateMalwareProtectionPlanOutput, CreateProtectedResource, MalwareProtectionPlanActions

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, ConflictError, InternalServerError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model