Construction properties for a ShellStep.
Namespace: Amazon.CDK.Pipelines
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IShellStepProps
Syntax (vb)
Public Interface IShellStepProps
Examples
CodePipeline pipeline;
var preprod = new MyApplicationStage(this, "PreProd");
var prod = new MyApplicationStage(this, "Prod");
var topic = new Topic(this, "ChangeApprovalTopic");
pipeline.AddStage(preprod, new AddStageOpts {
Post = new [] {
new ShellStep("Validate Endpoint", new ShellStepProps {
Commands = new [] { "curl -Ssf https://my.webservice.com/" }
}) }
});
pipeline.AddStage(prod, new AddStageOpts {
Pre = new [] { new ManualApprovalStep("PromoteToProd", new ManualApprovalStepProps {
//All options below are optional
Comment = "Please validate changes",
ReviewUrl = "https://my.webservice.com/",
NotificationTopic = topic
}) }
});
Synopsis
Properties
| AdditionalInputs | Additional FileSets to put in other directories. |
| Commands | Commands to run. |
| Env | Environment variables to set. |
| EnvFromCfnOutputs | Set environment variables based on Stack Outputs. |
| Input | FileSet to run these scripts on. |
| InstallCommands | Installation commands to run before the regular commands. |
| PrimaryOutputDirectory | The directory that will contain the primary output fileset. |
Properties
AdditionalInputs
Additional FileSets to put in other directories.
IDictionary<string, IFileSetProducer>? AdditionalInputs { get; }
Property Value
Commands
Env
EnvFromCfnOutputs
Set environment variables based on Stack Outputs.
IDictionary<string, CfnOutput>? EnvFromCfnOutputs { get; }
Property Value
Input
InstallCommands
Installation commands to run before the regular commands.
string[]? InstallCommands { get; }
Property Value
string[]
Remarks
PrimaryOutputDirectory
The directory that will contain the primary output fileset.
string? PrimaryOutputDirectory { get; }