@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:04.158Z") @Stability(value=Experimental) public enum ReadWriteType extends Enum<ReadWriteType>
Example:
import software.amazon.awscdk.core.*;
Bucket sourceBucket;
Artifact sourceOutput = new Artifact();
String key = "some/key.zip";
Trail trail = new Trail(this, "CloudTrail");
trail.addS3EventSelector(List.of(S3EventSelector.builder()
.bucket(sourceBucket)
.objectPrefix(key)
.build()), AddEventSelectorOptions.builder()
.readWriteType(ReadWriteType.WRITE_ONLY)
.build());
S3SourceAction sourceAction = S3SourceAction.Builder.create()
.actionName("S3Source")
.bucketKey(key)
.bucket(sourceBucket)
.output(sourceOutput)
.trigger(S3Trigger.EVENTS)
.build();
| Enum Constant and Description |
|---|
ALL
(experimental) All events.
|
NONE
(experimental) No events.
|
READ_ONLY
(experimental) Read-only events include API operations that read your resources, but don't make changes.
|
WRITE_ONLY
(experimental) Write-only events include API operations that modify (or might modify) your resources.
|
| Modifier and Type | Method and Description |
|---|---|
static ReadWriteType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReadWriteType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final ReadWriteType READ_ONLY
For example, read-only events include the Amazon EC2 DescribeSecurityGroups and DescribeSubnets API operations.
@Stability(value=Experimental) public static final ReadWriteType WRITE_ONLY
For example, the Amazon EC2 RunInstances and TerminateInstances API operations modify your instances.
@Stability(value=Experimental) public static final ReadWriteType ALL
@Stability(value=Experimental) public static final ReadWriteType NONE
public static ReadWriteType[] values()
for (ReadWriteType c : ReadWriteType.values()) System.out.println(c);
public static ReadWriteType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.