Class AnalyticsConfiguration
Provides a S3 bucket analytics configuration resource.
Example Usage
Add analytics configuration with S3 bucket object filter
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.S3.Bucket("example", new Aws.S3.BucketArgs
{
});
var example_filtered = new Aws.S3.AnalyticsConfiguration("example-filtered", new Aws.S3.AnalyticsConfigurationArgs
{
Bucket = example.BucketName,
Filter = new Aws.S3.Inputs.AnalyticsConfigurationFilterArgs
{
Prefix = "documents/",
Tags =
{
{ "priority", "high" },
{ "class", "blue" },
},
},
});
}
}
Inherited Members
Namespace: Pulumi.Aws.S3
Assembly: Pulumi.Aws.dll
Syntax
public class AnalyticsConfiguration : CustomResource
Constructors
View SourceAnalyticsConfiguration(String, AnalyticsConfigurationArgs, CustomResourceOptions)
Create a AnalyticsConfiguration resource with the given unique name, arguments, and options.
Declaration
public AnalyticsConfiguration(string name, AnalyticsConfigurationArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AnalyticsConfigurationArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceBucket
The name of the bucket this analytics configuration is associated with.
Declaration
public Output<string> Bucket { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Filter
Object filtering that accepts a prefix, tags, or a logical AND of prefix and tags (documented below).
Declaration
public Output<AnalyticsConfigurationFilter> Filter { get; }
Property Value
| Type | Description |
|---|---|
| Output<AnalyticsConfigurationFilter> |
Name
Unique identifier of the analytics configuration for the bucket.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StorageClassAnalysis
Configuration for the analytics data export (documented below).
Declaration
public Output<AnalyticsConfigurationStorageClassAnalysis> StorageClassAnalysis { get; }
Property Value
| Type | Description |
|---|---|
| Output<AnalyticsConfigurationStorageClassAnalysis> |
Methods
View SourceGet(String, Input<String>, AnalyticsConfigurationState, CustomResourceOptions)
Get an existing AnalyticsConfiguration resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AnalyticsConfiguration Get(string name, Input<string> id, AnalyticsConfigurationState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AnalyticsConfigurationState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AnalyticsConfiguration |