public static interface DataResource.Builder extends CopyableBuilder<DataResource.Builder,DataResource>
Modifier and Type | Method and Description |
---|---|
DataResource.Builder |
type(String type)
The resource type in which you want to log data events.
|
DataResource.Builder |
values(Collection<String> values)
A list of ARN-like strings for the specified S3 objects.
|
DataResource.Builder |
values(String... values)
A list of ARN-like strings for the specified S3 objects.
|
copy
applyMutation, build
DataResource.Builder type(String type)
The resource type in which you want to log data events. You can specify only the following value:
AWS::S3::Object
.
type
- The resource type in which you want to log data events. You can specify only the following value:
AWS::S3::Object
.DataResource.Builder values(Collection<String> values)
A list of ARN-like strings for the specified S3 objects.
To log data events for all objects in an S3 bucket, specify the bucket and an empty object prefix such as
arn:aws:s3:::bucket-1/
. The trail logs data events for all objects in this S3 bucket.
To log data events for specific objects, specify the S3 bucket and object prefix such as
arn:aws:s3:::bucket-1/example-images
. The trail logs data events for objects in this S3 bucket
that match the prefix.
values
- A list of ARN-like strings for the specified S3 objects.
To log data events for all objects in an S3 bucket, specify the bucket and an empty object prefix such
as arn:aws:s3:::bucket-1/
. The trail logs data events for all objects in this S3 bucket.
To log data events for specific objects, specify the S3 bucket and object prefix such as
arn:aws:s3:::bucket-1/example-images
. The trail logs data events for objects in this S3
bucket that match the prefix.
DataResource.Builder values(String... values)
A list of ARN-like strings for the specified S3 objects.
To log data events for all objects in an S3 bucket, specify the bucket and an empty object prefix such as
arn:aws:s3:::bucket-1/
. The trail logs data events for all objects in this S3 bucket.
To log data events for specific objects, specify the S3 bucket and object prefix such as
arn:aws:s3:::bucket-1/example-images
. The trail logs data events for objects in this S3 bucket
that match the prefix.
values
- A list of ARN-like strings for the specified S3 objects.
To log data events for all objects in an S3 bucket, specify the bucket and an empty object prefix such
as arn:aws:s3:::bucket-1/
. The trail logs data events for all objects in this S3 bucket.
To log data events for specific objects, specify the S3 bucket and object prefix such as
arn:aws:s3:::bucket-1/example-images
. The trail logs data events for objects in this S3
bucket that match the prefix.
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.