

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::GuardDuty::MalwareProtectionPlan S3Bucket
<a name="aws-properties-guardduty-malwareprotectionplan-s3bucket"></a>

Information about the protected S3 bucket resource.

## Syntax
<a name="aws-properties-guardduty-malwareprotectionplan-s3bucket-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-guardduty-malwareprotectionplan-s3bucket-syntax.json"></a>

```
{
  "[BucketName](#cfn-guardduty-malwareprotectionplan-s3bucket-bucketname)" : {{String}},
  "[ObjectPrefixes](#cfn-guardduty-malwareprotectionplan-s3bucket-objectprefixes)" : {{[ String, ... ]}}
}
```

### YAML
<a name="aws-properties-guardduty-malwareprotectionplan-s3bucket-syntax.yaml"></a>

```
  [BucketName](#cfn-guardduty-malwareprotectionplan-s3bucket-bucketname): {{String}}
  [ObjectPrefixes](#cfn-guardduty-malwareprotectionplan-s3bucket-objectprefixes): {{
    - String}}
```

## Properties
<a name="aws-properties-guardduty-malwareprotectionplan-s3bucket-properties"></a>

`BucketName`  <a name="cfn-guardduty-malwareprotectionplan-s3bucket-bucketname"></a>
Name of the S3 bucket.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ObjectPrefixes`  <a name="cfn-guardduty-malwareprotectionplan-s3bucket-objectprefixes"></a>
Information about the specified object prefixes. An S3 object will be scanned only if it belongs to any of the specified object prefixes.  
*Required*: No  
*Type*: Array of String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)