AWS SDK for .NET Documentation
NewCannedACLCondition Method (cannedAcl)
Amazon ► Amazon.Auth.AccessControlPolicy ► ConditionFactory ► NewCannedACLCondition(S3CannedACL)
Did this page help you? Yes No Tell us about it...
Constructs a new access policy condition that compares an Amazon S3 canned ACL with the canned ACL specified by an incoming request.

You can use this condition to ensure that any objects uploaded to an Amazon S3 bucket have a specific canned ACL set.

Declaration Syntax

C#

    public static Condition NewCannedACLCondition(
    	S3CannedACL cannedAcl
    )

Parameters

cannedAcl (S3CannedACL)
  The Amazon S3 canned ACL to compare against.

Return Value
A new access control policy condition that compares the Amazon S3 canned ACL specified in incoming requests against the value specified.

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)