AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
Logging Enabled

Inheritance Hierarchy

System.Object
  Amazon.S3.Model.S3BucketLoggingConfig

Namespace: Amazon.S3.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class S3BucketLoggingConfig : Object

The S3BucketLoggingConfig type exposes the following members

Constructors

NameDescription
Public Method S3BucketLoggingConfig()

Properties

NameTypeDescription
Public Property Grants System.Collections.Generic.List<Amazon.S3.Model.S3Grant> A collection of grants.
Public Property TargetBucketName System.String 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 Property TargetPrefix System.String This element lets you specify a prefix for the keys that the log files will be stored under.

Methods

NameDescription
Public Method AddGrant(S3Grantee, S3Permission) Creates a S3Grant and adds it to the list of grants.
Public Method RemoveGrant(S3Grantee, S3Permission) Removes a specific permission for the given grantee.
Public Method RemoveGrant(S3Grantee) Removes all permissions for the given grantee.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8