@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-07-01T09:58:43.098Z") public class S3SourceAction extends Action
Will trigger the pipeline as soon as the S3 object changes, but only if there is a CloudTrail Trail in the account that captures the S3 event.
Example:
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();
Modifier and Type | Class and Description |
---|---|
static class |
S3SourceAction.Builder
A fluent builder for
S3SourceAction . |
IAction.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
S3SourceAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
S3SourceAction(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected ActionConfig |
bound(Construct _scope,
IStage stage,
ActionBindOptions options)
This is a renamed version of the
IAction.bind method. |
S3SourceVariables |
getVariables()
The variables emitted by this action.
|
getProvidedActionProperties
bind, getActionProperties, onStateChange, onStateChange, onStateChange, variableExpression
protected S3SourceAction(software.amazon.jsii.JsiiObjectRef objRef)
protected S3SourceAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected ActionConfig bound(Construct _scope, IStage stage, ActionBindOptions options)
IAction.bind
method.
public S3SourceVariables getVariables()