Skip to main content

malware_protection_plans

Creates, updates, deletes or gets a malware_protection_plan resource or lists malware_protection_plans in a region

Overview

Namemalware_protection_plans
TypeResource
DescriptionResource Type definition for AWS::GuardDuty::MalwareProtectionPlan
Idaws.guardduty.malware_protection_plans

Fields

NameDatatypeDescription
malware_protection_plan_idstringA unique identifier associated with Malware Protection plan resource.
arnstringAmazon Resource Name (ARN) of the protected resource.
rolestringIAM role that includes the permissions required to scan and (optionally) add tags to the associated protected resource.
protected_resourceobjectInformation about the protected resource. Presently, S3Bucket is the only supported protected resource.
actionsobjectSpecifies the action that is to be applied to the Malware Protection plan resource.
created_atstringThe timestamp when the Malware Protection plan resource was created.
statusstringStatus of the Malware Protection plan resource.
status_reasonsarrayStatus details associated with the Malware Protection plan resource status.
tagsarrayThe tags to be added to the created Malware Protection plan resource. Each tag consists of a key and an optional value, both of which you need to specify.
regionstringAWS region.

For more information, see AWS::GuardDuty::MalwareProtectionPlan.

Methods

NameAccessible byRequired Params
create_resourceINSERTRole, ProtectedResource, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all malware_protection_plans in a region.

SELECT
region,
malware_protection_plan_id,
arn,
role,
protected_resource,
actions,
created_at,
status,
status_reasons,
tags
FROM aws.guardduty.malware_protection_plans
WHERE region = 'us-east-1';

Gets all properties from an individual malware_protection_plan.

SELECT
region,
malware_protection_plan_id,
arn,
role,
protected_resource,
actions,
created_at,
status,
status_reasons,
tags
FROM aws.guardduty.malware_protection_plans
WHERE region = 'us-east-1' AND data__Identifier = '<MalwareProtectionPlanId>';

INSERT example

Use the following StackQL query and manifest file to create a new malware_protection_plan resource, using stack-deploy.

/*+ create */
INSERT INTO aws.guardduty.malware_protection_plans (
Role,
ProtectedResource,
region
)
SELECT
'{{ Role }}',
'{{ ProtectedResource }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.guardduty.malware_protection_plans
WHERE data__Identifier = '<MalwareProtectionPlanId>'
AND region = 'us-east-1';

Permissions

To operate on the malware_protection_plans resource, the following permissions are required:

Create

guardduty:CreateMalwareProtectionPlan,
guardduty:GetMalwareProtectionPlan,
guardduty:TagResource,
iam:PassRole

Read

guardduty:GetMalwareProtectionPlan

Delete

guardduty:DeleteMalwareProtectionPlan,
guardduty:GetMalwareProtectionPlan

Update

guardduty:UpdateMalwareProtectionPlan,
guardduty:GetMalwareProtectionPlan,
guardduty:TagResource,
guardduty:UntagResource,
iam:PassRole

List

guardduty:ListMalwareProtectionPlans