Interface CodeDeployEcsDeployActionProps
- All Superinterfaces:
CommonActionProps
,CommonAwsActionProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CodeDeployEcsDeployActionProps.Jsii$Proxy
CodeDeploy ECS deploy CodePipeline Action
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.codedeploy.*; import software.amazon.awscdk.services.codepipeline.*; import software.amazon.awscdk.services.codepipeline.actions.*; import software.amazon.awscdk.services.iam.*; Artifact artifact; ArtifactPath artifactPath; IEcsDeploymentGroup ecsDeploymentGroup; Role role; CodeDeployEcsDeployActionProps codeDeployEcsDeployActionProps = CodeDeployEcsDeployActionProps.builder() .actionName("actionName") .deploymentGroup(ecsDeploymentGroup) // the properties below are optional .appSpecTemplateFile(artifactPath) .appSpecTemplateInput(artifact) .containerImageInputs(List.of(CodeDeployEcsContainerImageInput.builder() .input(artifact) // the properties below are optional .taskDefinitionPlaceholder("taskDefinitionPlaceholder") .build())) .role(role) .runOrder(123) .taskDefinitionTemplateFile(artifactPath) .taskDefinitionTemplateInput(artifact) .variablesNamespace("variablesNamespace") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCodeDeployEcsDeployActionProps
static final class
An implementation forCodeDeployEcsDeployActionProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default ArtifactPath
The name of the CodeDeploy AppSpec file.default Artifact
The artifact containing the CodeDeploy AppSpec file.default List<CodeDeployEcsContainerImageInput>
Configuration for dynamically updated images in the task definition.The CodeDeploy ECS Deployment Group to deploy to.default ArtifactPath
The name of the ECS task definition template file.default Artifact
The artifact containing the ECS task definition template file.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
-
getDeploymentGroup
The CodeDeploy ECS Deployment Group to deploy to. -
getAppSpecTemplateFile
The name of the CodeDeploy AppSpec file.During deployment, a new task definition will be registered with ECS, and the new task definition ID will be inserted into the CodeDeploy AppSpec file. The AppSpec file contents will be provided to CodeDeploy for the deployment.
Use this property if you want to use a different name for this file than the default 'appspec.yaml'. If you use this property, you don't need to specify the
appSpecTemplateInput
property.Default: - one of this property, or `appSpecTemplateInput`, is required
-
getAppSpecTemplateInput
The artifact containing the CodeDeploy AppSpec file.During deployment, a new task definition will be registered with ECS, and the new task definition ID will be inserted into the CodeDeploy AppSpec file. The AppSpec file contents will be provided to CodeDeploy for the deployment.
If you use this property, it's assumed the file is called 'appspec.yaml'. If your AppSpec file uses a different filename, leave this property empty, and use the
appSpecTemplateFile
property instead.Default: - one of this property, or `appSpecTemplateFile`, is required
-
getContainerImageInputs
@Stability(Stable) @Nullable default List<CodeDeployEcsContainerImageInput> getContainerImageInputs()Configuration for dynamically updated images in the task definition.Provide pairs of an image details input artifact and a placeholder string that will be used to dynamically update the ECS task definition template file prior to deployment. A maximum of 4 images can be given.
-
getTaskDefinitionTemplateFile
The name of the ECS task definition template file.During deployment, the task definition template file contents will be registered with ECS.
Use this property if you want to use a different name for this file than the default 'taskdef.json'. If you use this property, you don't need to specify the
taskDefinitionTemplateInput
property.Default: - one of this property, or `taskDefinitionTemplateInput`, is required
-
getTaskDefinitionTemplateInput
The artifact containing the ECS task definition template file.During deployment, the task definition template file contents will be registered with ECS.
If you use this property, it's assumed the file is called 'taskdef.json'. If your task definition template uses a different filename, leave this property empty, and use the
taskDefinitionTemplateFile
property instead.Default: - one of this property, or `taskDefinitionTemplateFile`, is required
-
builder
-