@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:04.881Z") @Stability(value=Experimental) 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.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();
| Modifier and Type | Class and Description |
|---|---|
static class |
S3SourceAction.Builder
(experimental) A fluent builder for
S3SourceAction. |
software.amazon.jsii.JsiiObject.InitializationModeIAction.Jsii$Default| Modifier | Constructor and Description |
|---|---|
protected |
S3SourceAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
S3SourceAction(software.amazon.jsii.JsiiObjectRef objRef) |
|
S3SourceAction(S3SourceActionProps props) |
| Modifier and Type | Method and Description |
|---|---|
protected ActionConfig |
bound(Construct _scope,
IStage stage,
ActionBindOptions options)
(experimental) This is a renamed version of the
IAction.bind method. |
S3SourceVariables |
getVariables()
(experimental) The variables emitted by this action.
|
getProvidedActionPropertiesbind, getActionProperties, onStateChange, onStateChange, onStateChange, variableExpressionjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected S3SourceAction(software.amazon.jsii.JsiiObjectRef objRef)
protected S3SourceAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public S3SourceAction(@NotNull
S3SourceActionProps props)
props - This parameter is required.@Stability(value=Experimental) @NotNull protected ActionConfig bound(@NotNull Construct _scope, @NotNull IStage stage, @NotNull ActionBindOptions options)
IAction.bind method.
@Stability(value=Experimental) @NotNull public S3SourceVariables getVariables()
Copyright © 2022. All rights reserved.