Class S3SourceAction
Source that is provided by a specific Amazon S3 object.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CodePipeline.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class S3SourceAction : Action, IAction
Syntax (vb)
Public Class S3SourceAction
Inherits Action
Implements IAction
Remarks
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.
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
Constructors
S3SourceAction(IS3SourceActionProps) | |
S3SourceAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
S3SourceAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Variables | The variables emitted by this action. |
Methods
Bound(Construct, IStage, IActionBindOptions) | This is a renamed version of the |
Constructors
S3SourceAction(IS3SourceActionProps)
S3SourceAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected S3SourceAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
S3SourceAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected S3SourceAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Variables
The variables emitted by this action.
public virtual IS3SourceVariables Variables { get; }
Property Value
Methods
Bound(Construct, IStage, IActionBindOptions)
This is a renamed version of the IAction.bind
method.
protected override IActionConfig Bound(Construct scope, IStage stage, IActionBindOptions options)
Parameters
- scope Constructs.Construct
- stage IStage
- options IActionBindOptions
Returns