Table of Contents

Class S3BucketLoggingConfig

Namespace
Amazon.S3.Model
Assembly
AWSSDK.S3.dll

Logging Enabled

public class S3BucketLoggingConfig
Inheritance
S3BucketLoggingConfig
Inherited Members

Constructors

S3BucketLoggingConfig()

public S3BucketLoggingConfig()

Properties

Grants

A collection of grants.

public List<S3Grant> Grants { get; set; }

Property Value

List<S3Grant>

TargetBucketName

Specifies the bucket where you want Amazon S3 to store server access logs. You can have your logs delivered to any bucket that you own, including the same bucket that is being logged. You can also configure multiple buckets to deliver their logs to the same target bucket. In this case you should choose a different TargetPrefix for each source bucket so that the delivered log files can be distinguished by key.

public string TargetBucketName { get; set; }

Property Value

string

TargetPrefix

This element lets you specify a prefix for the keys that the log files will be stored under.

public string TargetPrefix { get; set; }

Property Value

string

Methods

AddGrant(S3Grantee, S3Permission)

Creates a S3Grant and adds it to the list of grants.

public void AddGrant(S3Grantee grantee, S3Permission permission)

Parameters

grantee S3Grantee

The grantee for the grant.

permission S3Permission

The permission for the grantee.

RemoveGrant(S3Grantee)

Removes all permissions for the given grantee.

public void RemoveGrant(S3Grantee grantee)

Parameters

grantee S3Grantee

RemoveGrant(S3Grantee, S3Permission)

Removes a specific permission for the given grantee.

public void RemoveGrant(S3Grantee grantee, S3Permission permission)

Parameters

grantee S3Grantee

The grantee

permission S3Permission

The permission for the grantee to remove