Skip to content
v2.277.0

BucketsAndRegionsProperty Struct ​

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

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
const bucketsAndRegionsProperty: s3.CfnStorageLens.BucketsAndRegionsProperty = {
  buckets: ['buckets'],
  regions: ['regions'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3 as s3

buckets_and_regions_property = s3.CfnStorageLens.BucketsAndRegionsProperty(
    buckets=["buckets"],
    regions=["regions"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3.*;

BucketsAndRegionsProperty bucketsAndRegionsProperty = BucketsAndRegionsProperty.builder()
        .buckets(List.of("buckets"))
        .regions(List.of("regions"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;

var bucketsAndRegionsProperty = new BucketsAndRegionsProperty {
    Buckets = new [] { "buckets" },
    Regions = new [] { "regions" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

bucketsAndRegionsProperty := &BucketsAndRegionsProperty{
	Buckets: []*string{
		jsii.String("buckets"),
	},
	Regions: []*string{
		jsii.String("regions"),
	},
}

Properties ​

bucketsoptionalstring[]bucketsoptionaltyping.List[str]bucketsoptionalList<String>Bucketsoptionalstring[]Bucketsoptional*[]*string#
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 in the Amazon S3 API Reference .

regionsoptionalstring[]regionsoptionaltyping.List[str]regionsoptionalList<String>Regionsoptionalstring[]Regionsoptional*[]*string#
This property contains the details of the Regions for the S3 Storage Lens configuration.