malware_protection_plans
Creates, updates, deletes or gets a malware_protection_plan
resource or lists malware_protection_plans
in a region
Overview
Name | malware_protection_plans |
Type | Resource |
Description | Resource Type definition for AWS::GuardDuty::MalwareProtectionPlan |
Id | aws.guardduty.malware_protection_plans |
Fields
Name | Datatype | Description |
---|---|---|
malware_protection_plan_id | string | A unique identifier associated with Malware Protection plan resource. |
arn | string | Amazon Resource Name (ARN) of the protected resource. |
role | string | IAM role that includes the permissions required to scan and (optionally) add tags to the associated protected resource. |
protected_resource | object | Information about the protected resource. Presently, S3Bucket is the only supported protected resource. |
actions | object | Specifies the action that is to be applied to the Malware Protection plan resource. |
created_at | string | The timestamp when the Malware Protection plan resource was created. |
status | string | Status of the Malware Protection plan resource. |
status_reasons | array | Status details associated with the Malware Protection plan resource status. |
tags | array | The 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. |
region | string | AWS region. |
For more information, see AWS::GuardDuty::MalwareProtectionPlan
.
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Role, ProtectedResource, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.guardduty.malware_protection_plans (
Role,
ProtectedResource,
region
)
SELECT
'{{ Role }}',
'{{ ProtectedResource }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.guardduty.malware_protection_plans (
Role,
ProtectedResource,
Actions,
Tags,
region
)
SELECT
'{{ Role }}',
'{{ ProtectedResource }}',
'{{ Actions }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: malware_protection_plan
props:
- name: Role
value: '{{ Role }}'
- name: ProtectedResource
value:
S3Bucket:
BucketName: '{{ BucketName }}'
ObjectPrefixes:
- '{{ ObjectPrefixes[0] }}'
- name: Actions
value:
Tagging:
Status: '{{ Status }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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