Class S3BucketLoggingConfig
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
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
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
Methods
AddGrant(S3Grantee, S3Permission)
Creates a S3Grant and adds it to the list of grants.
public void AddGrant(S3Grantee grantee, S3Permission permission)
Parameters
grantee
S3GranteeThe grantee for the grant.
permission
S3PermissionThe 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
S3GranteeThe grantee
permission
S3PermissionThe permission for the grantee to remove