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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEcsDeployActionProps
static final class
An implementation forEcsDeployActionProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic EcsDeployActionProps.Builder
builder()
default Duration
Timeout for the ECS deployment in minutes.default ArtifactPath
The name of the JSON image definitions file to use for deployments.default Artifact
getInput()
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, getVariablesNamespace
Methods inherited from interface software.amazon.awscdk.services.codepipeline.CommonAwsActionProps
getRole
Methods 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:
name
is the name of the container in the Task Definition, andimageUri
is 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 theinput
property.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:
name
is the name of the container in the Task Definition, andimageUri
is 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 theimageFile
property instead.Default: - one of this property, or `imageFile`, is required
-
builder
- Returns:
- a
EcsDeployActionProps.Builder
ofEcsDeployActionProps
-