Skip to content

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] Amazon Resource Name (ARN) of the IAM role that has the permissions 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"
  )
)