Show / Hide Table of Contents

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" },
            },
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
AnalyticsConfiguration
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.S3
Assembly: Pulumi.Aws.dll
Syntax
public class AnalyticsConfiguration : CustomResource

Constructors

View Source

AnalyticsConfiguration(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 Source

Bucket

The name of the bucket this analytics configuration is associated with.

Declaration
public Output<string> Bucket { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

Name

Unique identifier of the analytics configuration for the bucket.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

StorageClassAnalysis

Configuration for the analytics data export (documented below).

Declaration
public Output<AnalyticsConfigurationStorageClassAnalysis> StorageClassAnalysis { get; }
Property Value
Type Description
Output<AnalyticsConfigurationStorageClassAnalysis>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.