Bases: Enum
How should the S3 Action detect changes.
This is the type of the {@link S3SourceAction.trigger} property.
infused
Example:
import aws_cdk.aws_cloudtrail as cloudtrail
# source_bucket: s3.Bucket
source_output = codepipeline.Artifact()
key = "some/key.zip"
trail = cloudtrail.Trail(self, "CloudTrail")
trail.add_s3_event_selector([cloudtrail.S3EventSelector(
bucket=source_bucket,
object_prefix=key
)],
read_write_type=cloudtrail.ReadWriteType.WRITE_ONLY
)
source_action = codepipeline_actions.S3SourceAction(
action_name="S3Source",
bucket_key=key,
bucket=source_bucket,
output=source_output,
trigger=codepipeline_actions.S3Trigger.EVENTS
)
Attributes
CodePipeline will use CloudWatch Events to be notified of changes.
Note that the Bucket that the Action uses needs to be part of a CloudTrail Trail for the events to be delivered.
The Action will never detect changes - the Pipeline it’s part of will only begin a run when explicitly started.
CodePipeline will poll S3 to detect changes.
This is the default method of detecting changes.