Skip to content

Create Malware Protection Plan

guardduty_create_malware_protection_plan R Documentation

Creates a new Malware Protection plan for the protected resource

Description

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.

Usage

guardduty_create_malware_protection_plan(ClientToken, Role,
  ProtectedResource, Actions, Tags)

Arguments

ClientToken

The idempotency token for the create request.

Role

[required] IAM role with permissions required to scan and add tags to the associated protected resource.

ProtectedResource

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

Actions

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

Tags

Tags added to the Malware Protection plan resource.

Value

A list with the following syntax:

list(
  MalwareProtectionPlanId = "string"
)

Request syntax

svc$create_malware_protection_plan(
  ClientToken = "string",
  Role = "string",
  ProtectedResource = list(
    S3Bucket = list(
      BucketName = "string",
      ObjectPrefixes = list(
        "string"
      )
    )
  ),
  Actions = list(
    Tagging = list(
      Status = "ENABLED"|"DISABLED"
    )
  ),
  Tags = list(
    "string"
  )
)