Class S3SourceAction
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codepipeline.Action
software.amazon.awscdk.services.codepipeline.actions.Action
software.amazon.awscdk.services.codepipeline.actions.S3SourceAction
- All Implemented Interfaces:
IAction
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:48.486Z")
@Stability(Stable)
public class S3SourceAction
extends Action
Source that is provided by a specific Amazon S3 object.
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();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.codepipeline.IAction
IAction.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
S3SourceAction
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
S3SourceAction
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionprotected ActionConfig
bound
(Construct _scope, IStage stage, ActionBindOptions options) This is a renamed version of theIAction.bind
method.The variables emitted by this action.Methods inherited from class software.amazon.awscdk.services.codepipeline.actions.Action
getProvidedActionProperties
Methods inherited from class software.amazon.awscdk.services.codepipeline.Action
bind, getActionProperties, onStateChange, onStateChange, onStateChange, variableExpression
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
S3SourceAction
protected S3SourceAction(software.amazon.jsii.JsiiObjectRef objRef) -
S3SourceAction
protected S3SourceAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
S3SourceAction
- Parameters:
props
- This parameter is required.
-
-
Method Details
-
bound
@Stability(Stable) @NotNull protected ActionConfig bound(@NotNull Construct _scope, @NotNull IStage stage, @NotNull ActionBindOptions options) This is a renamed version of theIAction.bind
method. -
getVariables
The variables emitted by this action.
-