@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.564Z") @Stability(value=Stable) public enum S3Trigger extends Enum<S3Trigger>
This is the type of the {@link S3SourceAction.trigger} property.
Example:
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.services.cloudtrail.*;
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 |
|---|
EVENTS
CodePipeline will use CloudWatch Events to be notified of changes.
|
NONE
The Action will never detect changes - the Pipeline it's part of will only begin a run when explicitly started.
|
POLL
CodePipeline will poll S3 to detect changes.
|
| Modifier and Type | Method and Description |
|---|---|
static S3Trigger |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static S3Trigger[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final S3Trigger NONE
@Stability(value=Stable) public static final S3Trigger POLL
This is the default method of detecting changes.
@Stability(value=Stable) public static final S3Trigger EVENTS
Note that the Bucket that the Action uses needs to be part of a CloudTrail Trail for the events to be delivered.
public static S3Trigger[] values()
for (S3Trigger c : S3Trigger.values()) System.out.println(c);
public static S3Trigger 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.