Skip to content

Guardduty  >  Operations  >  create_malware_protection_plan

create_malware_protection_plan

Operation

create_malware_protection_plan async

create_malware_protection_plan(input: CreateMalwareProtectionPlanInput, plugins: list[Plugin] | None = None) -> CreateMalwareProtectionPlanOutput

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.

Parameters:

Name Type Description Default
input CreateMalwareProtectionPlanInput

An instance of CreateMalwareProtectionPlanInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
CreateMalwareProtectionPlanOutput

An instance of CreateMalwareProtectionPlanOutput.

Input

CreateMalwareProtectionPlanInput dataclass

Dataclass for CreateMalwareProtectionPlanInput structure.

Attributes

actions class-attribute instance-attribute
actions: MalwareProtectionPlanActions | None = None

Information about whether the tags will be added to the S3 object after scanning.

client_token class-attribute instance-attribute
client_token: str | None = None

The idempotency token for the create request.

protected_resource class-attribute instance-attribute
protected_resource: CreateProtectedResource | None = None

Information about the protected resource that is associated with the created Malware Protection plan. Presently, S3Bucket is the only supported protected resource.

role class-attribute instance-attribute
role: str | None = None

Amazon Resource Name (ARN) of the IAM role that has the permissions to scan and add tags to the associated protected resource.

tags class-attribute instance-attribute
tags: dict[str, str] | None = None

Tags added to the Malware Protection plan resource.

Output

CreateMalwareProtectionPlanOutput dataclass

Dataclass for CreateMalwareProtectionPlanOutput structure.

Attributes

malware_protection_plan_id class-attribute instance-attribute
malware_protection_plan_id: str | None = None

A unique identifier associated with the Malware Protection plan resource.