@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.562Z") @Stability(value=Stable) 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:
// 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();
| Modifier and Type | Class and Description |
|---|---|
static class |
S3SourceAction.Builder
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(software.constructs.Construct _scope,
IStage stage,
ActionBindOptions options)
This is a renamed version of the
IAction.bind method. |
S3SourceVariables |
getVariables()
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=Stable)
public S3SourceAction(@NotNull
S3SourceActionProps props)
props - This parameter is required.@Stability(value=Stable) @NotNull protected ActionConfig bound(@NotNull software.constructs.Construct _scope, @NotNull IStage stage, @NotNull ActionBindOptions options)
IAction.bind method.
@Stability(value=Stable) @NotNull public S3SourceVariables getVariables()
Copyright © 2022. All rights reserved.