@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.563Z") @Stability(value=Stable) public interface S3SourceActionProps extends software.amazon.jsii.JsiiSerializable, CommonAwsActionProps
S3 source Action.
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 | Interface and Description |
|---|---|
static class |
S3SourceActionProps.Builder
A builder for
S3SourceActionProps |
static class |
S3SourceActionProps.Jsii$Proxy
An implementation for
S3SourceActionProps |
| Modifier and Type | Method and Description |
|---|---|
static S3SourceActionProps.Builder |
builder() |
IBucket |
getBucket()
The Amazon S3 bucket that stores the source code.
|
String |
getBucketKey()
The key within the S3 bucket that stores the source code.
|
Artifact |
getOutput() |
default S3Trigger |
getTrigger()
How should CodePipeline detect source changes for this Action.
|
getRolegetActionName, getRunOrder, getVariablesNamespace@Stability(value=Stable) @NotNull IBucket getBucket()
If you import an encrypted bucket in your stack, please specify
the encryption key at import time by using Bucket.fromBucketAttributes() method.
@Stability(value=Stable) @NotNull String getBucketKey()
Example:
// Example automatically generated from non-compiling source. May contain errors. "path/to/file.zip";
@Stability(value=Stable) @NotNull Artifact getOutput()
@Stability(value=Stable) @Nullable default S3Trigger getTrigger()
Note that if this is S3Trigger.EVENTS, you need to make sure to include the source Bucket in a CloudTrail Trail, as otherwise the CloudWatch Events will not be emitted.
Default: S3Trigger.POLL
@Stability(value=Stable) static S3SourceActionProps.Builder builder()
builder in interface CommonActionPropsbuilder in interface CommonAwsActionPropsS3SourceActionProps.Builder of S3SourceActionPropsCopyright © 2022. All rights reserved.