public final class S3ConditionFactory
extends java.lang.Object
newCannedACLCondition(CannedAccessControlList)
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CANNED_ACL_CONDITION_KEY
Condition key for the canned ACL specified by a request.
|
static java.lang.String |
COPY_SOURCE_CONDITION_KEY
Condition key for the source object specified by a request to copy an
object.
|
static java.lang.String |
DELIMITER_CONDITION_KEY
Condition key for the delimiter specified by a request.
|
static java.lang.String |
LOCATION_CONSTRAINT_CONDITION_KEY
Condition key for the location constraint specified by a request.
|
static java.lang.String |
MAX_KEYS_CONDITION_KEY
Condition key for the max keys specified by a request.
|
static java.lang.String |
METADATA_DIRECTIVE_CONDITION_KEY
Condition key for the metadata directive specified by a request to copy
an object.
|
static java.lang.String |
PREFIX_CONDITION_KEY
Condition key for the prefix specified by a request.
|
static java.lang.String |
VERSION_ID_CONDITION_KEY
Condition key for the version ID of an object version specified by a
request.
|
Modifier and Type | Method and Description |
---|---|
static Condition |
newCannedACLCondition(CannedAccessControlList cannedAcl)
Constructs a new access policy condition that compares an Amazon S3
canned ACL with the canned ACL specified by an incoming request.
|
public static final java.lang.String CANNED_ACL_CONDITION_KEY
This condition key may only be used with StringCondition
objects.
public static final java.lang.String LOCATION_CONSTRAINT_CONDITION_KEY
This condition key may only be used with StringCondition
objects.
public static final java.lang.String PREFIX_CONDITION_KEY
This condition key may only be used with StringCondition
objects.
public static final java.lang.String DELIMITER_CONDITION_KEY
This condition key may only be used with StringCondition
objects.
public static final java.lang.String MAX_KEYS_CONDITION_KEY
This condition key may only be used with StringCondition
objects.
public static final java.lang.String COPY_SOURCE_CONDITION_KEY
This condition key may only be used with StringCondition
objects.
public static final java.lang.String METADATA_DIRECTIVE_CONDITION_KEY
This condition key may only be used with StringCondition
objects.
public static final java.lang.String VERSION_ID_CONDITION_KEY
This condition key may only be used with StringCondition
objects.
public static Condition newCannedACLCondition(CannedAccessControlList cannedAcl)
You can use this condition to ensure that any objects uploaded to an Amazon S3 bucket have a specific canned ACL set.
cannedAcl
- The Amazon S3 canned ACL to compare against.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.