Interface EcsDeployActionProps
- All Superinterfaces:
CommonActionProps,CommonAwsActionProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EcsDeployActionProps.Jsii$Proxy
EcsDeployAction.
Example:
import software.amazon.awscdk.services.ecs.*;
FargateService service;
Pipeline pipeline = new Pipeline(this, "MyPipeline");
Artifact buildOutput = new Artifact();
IStage deployStage = pipeline.addStage(StageOptions.builder()
.stageName("Deploy")
.actions(List.of(
EcsDeployAction.Builder.create()
.actionName("DeployAction")
.service(service)
// if your file is called imagedefinitions.json,
// use the `input` property,
// and leave out the `imageFile` property
.input(buildOutput)
// if your file name is _not_ imagedefinitions.json,
// use the `imageFile` property,
// and leave out the `input` property
.imageFile(buildOutput.atPath("imageDef.json"))
.deploymentTimeout(Duration.minutes(60))
.build()))
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEcsDeployActionPropsstatic final classAn implementation forEcsDeployActionProps -
Method Summary
Modifier and TypeMethodDescriptionstatic EcsDeployActionProps.Builderbuilder()default DurationTimeout for the ECS deployment in minutes.default ArtifactPathThe name of the JSON image definitions file to use for deployments.default ArtifactgetInput()The input artifact that contains the JSON image definitions file to use for deployments.The ECS Service to deploy.Methods inherited from interface software.amazon.awscdk.services.codepipeline.CommonActionProps
getActionName, getRunOrder, getVariablesNamespaceMethods inherited from interface software.amazon.awscdk.services.codepipeline.CommonAwsActionProps
getRoleMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getService
The ECS Service to deploy. -
getDeploymentTimeout
Timeout for the ECS deployment in minutes.Value must be between 1-60.
Default: - 60 minutes
-
getImageFile
The name of the JSON image definitions file to use for deployments.The JSON file is a list of objects, each with 2 keys:
nameis the name of the container in the Task Definition, andimageUriis the Docker image URI you want to update your service with. Use this property if you want to use a different name for this file than the default 'imagedefinitions.json'. If you use this property, you don't need to specify theinputproperty.Default: - one of this property, or `input`, is required
-
getInput
The input artifact that contains the JSON image definitions file to use for deployments.The JSON file is a list of objects, each with 2 keys:
nameis the name of the container in the Task Definition, andimageUriis the Docker image URI you want to update your service with. If you use this property, it's assumed the file is called 'imagedefinitions.json'. If your build uses a different file, leave this property empty, and use theimageFileproperty instead.Default: - one of this property, or `imageFile`, is required
-
builder
- Returns:
- a
EcsDeployActionProps.BuilderofEcsDeployActionProps
-