AWS SDK Version 3 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.

Logging Enabled

Inheritance Hierarchy

System.Object
  Amazon.S3.Model.S3BucketLoggingConfig

Namespace: Amazon.S3.Model
Assembly: AWSSDK.S3.dll
Version: 3.x.y.z

Syntax

C#
public class S3BucketLoggingConfig

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

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

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 Standard:
Supported in: 1.3

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

Unity:
Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone