Class CodePipelineFileSet
A FileSet created from a CodePipeline artifact.
Implements
Inherited Members
Namespace: Amazon.CDK.Pipelines
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CodePipelineFileSet : FileSet, IFileSetProducer
Syntax (vb)
Public Class CodePipelineFileSet
Inherits FileSet
Implements IFileSetProducer
Remarks
You only need to use this if you want to add CDK Pipeline stages add the end of an existing CodePipeline, which should be very rare.
ExampleMetadata: infused
Examples
Pipeline codePipeline;
var sourceArtifact = new Artifact("MySourceArtifact");
var pipeline = new CodePipeline(this, "Pipeline", new CodePipelineProps {
CodePipeline = codePipeline,
Synth = new ShellStep("Synth", new ShellStepProps {
Input = CodePipelineFileSet.FromArtifact(sourceArtifact),
Commands = new [] { "npm ci", "npm run build", "npx cdk synth" }
})
});
Synopsis
Constructors
CodePipelineFileSet(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CodePipelineFileSet(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
FromArtifact(Artifact_) | Turn a CodePipeline Artifact into a FileSet. |
Constructors
CodePipelineFileSet(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CodePipelineFileSet(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CodePipelineFileSet(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CodePipelineFileSet(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
FromArtifact(Artifact_)
Turn a CodePipeline Artifact into a FileSet.
public static CodePipelineFileSet FromArtifact(Artifact_ artifact)
Parameters
- artifact Artifact_
Returns