public class S3ObjectResource extends 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.
|
S3ObjectResource(String partitionName,
String bucketName,
String keyPattern)
Constructs a new object resource that represents the specified objects.
|
public S3ObjectResource(String bucketName, String keyPattern)
S3ObjectResource(String, String, String)
to specify other partitions if needed.
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.S3ObjectResource(String, String, String)
public S3ObjectResource(String partitionName, String bucketName, String keyPattern)
partitionName
- The name of the partition in which the specified bucket is located.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 © 2020. All rights reserved.