Interface Ec2DeploySpecificationsInlineProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
Ec2DeploySpecificationsInlineProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:47.880Z")
@Stability(Stable)
public interface Ec2DeploySpecificationsInlineProps
extends software.amazon.jsii.JsiiSerializable
Properties of
Ec2DeploySpecifications.inline().
Example:
Artifact sourceOutput = new Artifact();
Pipeline pipeline = Pipeline.Builder.create(this, "MyPipeline")
.pipelineType(PipelineType.V2)
.build();
Ec2DeployAction deployAction = Ec2DeployAction.Builder.create()
.actionName("Ec2Deploy")
.input(sourceOutput)
.instanceType(Ec2InstanceType.EC2)
.instanceTagKey("Name")
.instanceTagValue("MyInstance")
.deploySpecifications(Ec2DeploySpecifications.inline(Ec2DeploySpecificationsInlineProps.builder()
.targetDirectory("/home/ec2-user/deploy")
.preScript("scripts/pre-deploy.sh")
.postScript("scripts/post-deploy.sh")
.build()))
.build();
IStage deployStage = pipeline.addStage(StageOptions.builder()
.stageName("Deploy")
.actions(List.of(deployAction))
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEc2DeploySpecificationsInlinePropsstatic final classAn implementation forEc2DeploySpecificationsInlineProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPostScript
Path to the executable script file that runs AFTER the Deploy phase.It should start from the root directory of your uploaded source artifact. Use an absolute path like
uploadDir/postScript.sh. -
getTargetDirectory
The location of the target directory you want to deploy to.Use an absolute path like
/home/ec2-user/deploy. -
getPreScript
Path to the executable script file that runs BEFORE the Deploy phase.It should start from the root directory of your uploaded source artifact. Use an absolute path like
uploadDir/preScript.sh.Default: - No script
-
builder
-