Expand description
Provides a S3 bucket analytics configuration resource.
This resource cannot be used with S3 directory buckets.
§Example Usage
§Add analytics configuration for entire S3 bucket and export results to a second S3 bucket
resources:
example-entire-bucket:
type: aws:s3:AnalyticsConfiguration
properties:
bucket: ${example.id}
name: EntireBucket
storageClassAnalysis:
dataExport:
destination:
s3BucketDestination:
bucketArn: ${analytics.arn}
example:
type: aws:s3:BucketV2
properties:
bucket: example
analytics:
type: aws:s3:BucketV2
properties:
bucket: analytics-destination
§Add analytics configuration with S3 object filter
resources:
example-filtered:
type: aws:s3:AnalyticsConfiguration
properties:
bucket: ${example.id}
name: ImportantBlueDocuments
filter:
prefix: documents/
tags:
priority: high
class: blue
example:
type: aws:s3:BucketV2
properties:
bucket: example
§Import
Using pulumi import
, import S3 bucket analytics configurations using bucket:analytics
. For example:
$ pulumi import aws:s3/analyticsConfiguration:AnalyticsConfiguration my-bucket-entire-bucket my-bucket:EntireBucket
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments