com.amazonaws.auth.policy.resources

## クラス S3ObjectResource

- java.lang.Object
- - com.amazonaws.auth.policy.Resource
  - - com.amazonaws.auth.policy.resources.S3ObjectResource

-     public class S3ObjectResource
      extends Resource

  Represents one or more Amazon S3 objects involved in an AWS access control policy. S3 object resources can be fully specified (i.e. the full key) or you can use the '*' wildcard to match multiple objects.

  For example, an object resource created for bucket 'mybucket' and key pattern 'foo*' will match any object stored in 'mybucket' with a key that starts with 'foo':

          new S3ObjectResource("mybucket", "foo*");

  To match all objects in a bucket:

          new S3ObjectResource("mybucket", "*");

  Amazon S3 object resources can be used in the following operations:

  - `S3Actions.GetObject`
  - `S3Actions.GetObjectVersion`
  - `S3Actions.PutObject`
  - `S3Actions.GetObjectAcl`
  - `S3Actions.GetObjectVersionAcl`
  - `S3Actions.SetObjectAcl`
  - `S3Actions.SetObjectVersionAcl`
  - `S3Actions.DeleteObject`
  - `S3Actions.DeleteObjectVersion`

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `S3ObjectResource(java.lang.String bucketName, java.lang.String keyPattern)` Constructs a new object resource that represents the specified objects.

  - ### メソッドの概要

    - ### クラスから継承されたメソッド com.amazonaws.auth.policy.Resource

      `getId`

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

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

- - ### コンストラクタの詳細

    - #### S3ObjectResource

          public S3ObjectResource(java.lang.String bucketName,
                          java.lang.String keyPattern)

      Constructs a new object resource that represents the specified objects. The keyPattern argument may contain the '*' wildcard to match multiple objects. For example, an object resource created for bucket 'mybucket' and key pattern 'foo*' will match any object stored in 'mybucket' with a key that starts with 'foo'.
      パラメータ:
        `bucketName` - The name of the bucket containing the object or objects represented by this resource.
        `keyPattern` - The key or key pattern, which can optionally contain the '*' wildcard to include multiple objects in the resource.