Class S3Trigger
How should the S3 Action detect changes.
Inheritance
System.Object
S3Trigger
Namespace: Amazon.CDK.AWS.CodePipeline.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class S3Trigger : Enum
Syntax (vb)
Public NotInheritable Class S3Trigger
Inherits
Enum
Remarks
This is the type of the S3SourceAction.trigger
property.
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.CloudTrail;
Bucket sourceBucket;
var sourceOutput = new Artifact();
var key = "some/key.zip";
var trail = new Trail(this, "CloudTrail");
trail.AddS3EventSelector(new [] { new S3EventSelector {
Bucket = sourceBucket,
ObjectPrefix = key
} }, new AddEventSelectorOptions {
ReadWriteType = ReadWriteType.WRITE_ONLY
});
var sourceAction = new S3SourceAction(new S3SourceActionProps {
ActionName = "S3Source",
BucketKey = key,
Bucket = sourceBucket,
Output = sourceOutput,
Trigger = S3Trigger.EVENTS
});
Synopsis
Fields
EVENTS | CodePipeline will use CloudWatch Events to be notified of changes. |
NONE | The Action will never detect changes - the Pipeline it's part of will only begin a run when explicitly started. |
POLL | CodePipeline will poll S3 to detect changes. |
value__ |
Fields
EVENTS
CodePipeline will use CloudWatch Events to be notified of changes.
public const S3Trigger EVENTS
Field Value
Type | Description |
---|---|
S3Trigger |
Remarks
Note that the Bucket that the Action uses needs to be part of a CloudTrail Trail for the events to be delivered.
NONE
The Action will never detect changes - the Pipeline it's part of will only begin a run when explicitly started.
public const S3Trigger NONE
Field Value
Type | Description |
---|---|
S3Trigger |
POLL
CodePipeline will poll S3 to detect changes.
public const S3Trigger POLL
Field Value
Type | Description |
---|---|
S3Trigger |
Remarks
This is the default method of detecting changes.
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |