com.amazonaws.auth.policy.conditions

## クラス S3ConditionFactory

- java.lang.Object
- - com.amazonaws.auth.policy.conditions.S3ConditionFactory

-     public class S3ConditionFactory
      extends java.lang.Object

  Factory for creating access control policy conditions specific to Amazon S3. This class provides access to the AWS access control policy condition keys specific to Amazon S3, as well as methods for quickly creating common S3 specific policy conditions such as `newCannedACLCondition(CannedAccessControlList)`.

- - ### フィールドの概要

    フィールド
    修飾子とタイプ | フィールドと説明
    --- | ---
    `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.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `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.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### フィールドの詳細

    - #### CANNED_ACL_CONDITION_KEY

          public static final java.lang.String CANNED_ACL_CONDITION_KEY

      Condition key for the canned ACL specified by a request.

      This condition key may only be used with `StringCondition` objects.

      関連項目:
        定数フィールド値

    - #### LOCATION_CONSTRAINT_CONDITION_KEY

          public static final java.lang.String LOCATION_CONSTRAINT_CONDITION_KEY

      Condition key for the location constraint specified by a request.

      This condition key may only be used with `StringCondition` objects.

      関連項目:
        定数フィールド値

    - #### PREFIX_CONDITION_KEY

          public static final java.lang.String PREFIX_CONDITION_KEY

      Condition key for the prefix specified by a request.

      This condition key may only be used with `StringCondition` objects.

      関連項目:
        定数フィールド値

    - #### DELIMITER_CONDITION_KEY

          public static final java.lang.String DELIMITER_CONDITION_KEY

      Condition key for the delimiter specified by a request.

      This condition key may only be used with `StringCondition` objects.

      関連項目:
        定数フィールド値

    - #### MAX_KEYS_CONDITION_KEY

          public static final java.lang.String MAX_KEYS_CONDITION_KEY

      Condition key for the max keys specified by a request.

      This condition key may only be used with `StringCondition` objects.

      関連項目:
        定数フィールド値

    - #### COPY_SOURCE_CONDITION_KEY

          public static final java.lang.String COPY_SOURCE_CONDITION_KEY

      Condition key for the source object specified by a request to copy an object.

      This condition key may only be used with `StringCondition` objects.

      関連項目:
        定数フィールド値

    - #### METADATA_DIRECTIVE_CONDITION_KEY

          public static final java.lang.String METADATA_DIRECTIVE_CONDITION_KEY

      Condition key for the metadata directive specified by a request to copy an object.

      This condition key may only be used with `StringCondition` objects.

      関連項目:
        定数フィールド値

    - #### VERSION_ID_CONDITION_KEY

          public static final java.lang.String VERSION_ID_CONDITION_KEY

      Condition key for the version ID of an object version specified by a request.

      This condition key may only be used with `StringCondition` objects.

      関連項目:
        定数フィールド値

  - ### メソッドの詳細

    - #### newCannedACLCondition

          public 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.

      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.
      戻り値:
        A new access control policy condition that compares the Amazon S3 canned ACL specified in incoming requests against the value specified.