Table of Contents

Class S3BucketLoggingConfig

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

Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys for a bucket. For more information, see PUT Bucket logging in the Amazon S3 API Reference.

public class S3BucketLoggingConfig
Inheritance
S3BucketLoggingConfig
Inherited Members

Constructors

S3BucketLoggingConfig()

public S3BucketLoggingConfig()

Properties

Grants

A collection of grants.

Buckets that use the bucket owner enforced setting for Object Ownership don't support target grants. For more information, see Permissions for server access log delivery in the Amazon S3 User Guide.

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

Gets and sets the property TargetPrefix.

A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.

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