@Stability(value=Stable) public static final class CfnTrail.DataResourceProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnTrail.DataResourceProperty>
CfnTrail.DataResourceProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnTrail.DataResourceProperty |
build()
Builds the configured instance.
|
CfnTrail.DataResourceProperty.Builder |
type(String type)
Sets the value of
CfnTrail.DataResourceProperty.getType() |
CfnTrail.DataResourceProperty.Builder |
values(List<String> values)
Sets the value of
CfnTrail.DataResourceProperty.getValues() |
@Stability(value=Stable) public CfnTrail.DataResourceProperty.Builder type(String type)
CfnTrail.DataResourceProperty.getType()type - The resource type in which you want to log data events. This parameter is required.
You can specify the following basic event selector resource types:
AWS::S3::ObjectAWS::Lambda::FunctionAWS::DynamoDB::TableThe following resource types are also availble through advanced event selectors. Basic event selector resource types are valid in advanced event selectors, but advanced event selector resource types are not valid in basic event selectors. For more information, see AdvancedFieldSelector:Field .
AWS::S3Outposts::ObjectAWS::ManagedBlockchain::NodeAWS::S3ObjectLambda::AccessPointAWS::EC2::SnapshotAWS::S3::AccessPointAWS::DynamoDB::Streamthis@Stability(value=Stable) public CfnTrail.DataResourceProperty.Builder values(List<String> values)
CfnTrail.DataResourceProperty.getValues()values - An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified objects.
arn:aws:s3::: .
This also enables logging of data event activity performed by any user or role in your AWS account , even if that activity is performed on a bucket that belongs to another AWS account .
arn:aws:s3:::bucket-1/ . The trail logs data events for all objects in this S3 bucket.arn:aws:s3:::bucket-1/example-images . The trail logs data events for objects in this S3 bucket that match the prefix.arn:aws:lambda .
This also enables logging of
Invokeactivity performed by any user or role in your AWS account , even if that activity is performed on a function that belongs to another AWS account .
Lambda function ARNs are exact. For example, if you specify a function ARN arn:aws:lambda:us-west-2:111111111111:function:helloworld , data events will only be logged for arn:aws:lambda:us-west-2:111111111111:function:helloworld . They will not be logged for arn:aws:lambda:us-west-2:111111111111:function:helloworld2 .
arn:aws:dynamodb .this@Stability(value=Stable) public CfnTrail.DataResourceProperty build()
build in interface software.amazon.jsii.Builder<CfnTrail.DataResourceProperty>CfnTrail.DataResourcePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.