

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

# AWS::S3::StorageLens BucketsAndRegions
<a name="aws-properties-s3-storagelens-bucketsandregions"></a>

This resource contains the details of the buckets and Regions for the Amazon S3 Storage Lens configuration. 

## Syntax
<a name="aws-properties-s3-storagelens-bucketsandregions-syntax"></a>

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

### JSON
<a name="aws-properties-s3-storagelens-bucketsandregions-syntax.json"></a>

```
{
  "[Buckets](#cfn-s3-storagelens-bucketsandregions-buckets)" : [ String, ... ],
  "[Regions](#cfn-s3-storagelens-bucketsandregions-regions)" : [ String, ... ]
}
```

### YAML
<a name="aws-properties-s3-storagelens-bucketsandregions-syntax.yaml"></a>

```
  [Buckets](#cfn-s3-storagelens-bucketsandregions-buckets): 
    - String
  [Regions](#cfn-s3-storagelens-bucketsandregions-regions): 
    - String
```

## Properties
<a name="aws-properties-s3-storagelens-bucketsandregions-properties"></a>

`Buckets`  <a name="cfn-s3-storagelens-bucketsandregions-buckets"></a>
This property contains the details of the buckets for the Amazon S3 Storage Lens configuration. This should be the bucket Amazon Resource Name(ARN). For valid values, see [Buckets ARN format here](https://docs.amazonaws.cn/AmazonS3/latest/API/API_control_Include.html#API_control_Include_Contents) in the *Amazon S3 API Reference*.  
*Required*: No  
*Type*: Array of String  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Regions`  <a name="cfn-s3-storagelens-bucketsandregions-regions"></a>
This property contains the details of the Regions for the S3 Storage Lens configuration.  
*Required*: No  
*Type*: Array of String  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)