public class S3ObjectResource
extends com.amazonaws.auth.policy.Resource
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:
Constructor and Description |
---|
S3ObjectResource(String bucketName,
String keyPattern)
Constructs a new object resource that represents the specified objects.
|
public S3ObjectResource(String bucketName, String keyPattern)
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.Copyright © 2015. All rights reserved.