Class CodeDeployEcsDeployAction.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeDeployEcsDeployAction>
- Enclosing class:
- CodeDeployEcsDeployAction
CodeDeployEcsDeployAction
.-
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) The physical, human-readable name of the Action.appSpecTemplateFile
(ArtifactPath appSpecTemplateFile) The name of the CodeDeploy AppSpec file.appSpecTemplateInput
(Artifact appSpecTemplateInput) The artifact containing the CodeDeploy AppSpec file.build()
containerImageInputs
(List<? extends CodeDeployEcsContainerImageInput> containerImageInputs) Configuration for dynamically updated images in the task definition.create()
deploymentGroup
(IEcsDeploymentGroup deploymentGroup) The CodeDeploy ECS Deployment Group to deploy to.The Role in which context's this Action will be executing in.The runOrder property for this Action.taskDefinitionTemplateFile
(ArtifactPath taskDefinitionTemplateFile) The name of the ECS task definition template file.taskDefinitionTemplateInput
(Artifact taskDefinitionTemplateInput) The artifact containing the ECS task definition template file.variablesNamespace
(String variablesNamespace) The name of the namespace to use for variables emitted by this action.
-
Method Details
-
create
- Returns:
- a new instance of
CodeDeployEcsDeployAction.Builder
.
-
actionName
The physical, human-readable name of the Action.Note that Action names must be unique within a single Stage.
- Parameters:
actionName
- The physical, human-readable name of the Action. This parameter is required.- Returns:
this
-
runOrder
The runOrder property for this Action.RunOrder determines the relative order in which multiple Actions in the same Stage execute.
Default: 1
- Parameters:
runOrder
- The runOrder property for this Action. This parameter is required.- Returns:
this
- See Also:
-
variablesNamespace
@Stability(Stable) public CodeDeployEcsDeployAction.Builder variablesNamespace(String variablesNamespace) The name of the namespace to use for variables emitted by this action.Default: - a name will be generated, based on the stage and action names, if any of the action's variables were referenced - otherwise, no namespace will be set
- Parameters:
variablesNamespace
- The name of the namespace to use for variables emitted by this action. This parameter is required.- Returns:
this
-
role
The Role in which context's this Action will be executing in.The Pipeline's Role will assume this Role (the required permissions for that will be granted automatically) right before executing this Action. This Action will be passed into your
IAction.bind
method in theActionBindOptions.role
property.Default: a new Role will be generated
- Parameters:
role
- The Role in which context's this Action will be executing in. This parameter is required.- Returns:
this
-
deploymentGroup
@Stability(Stable) public CodeDeployEcsDeployAction.Builder deploymentGroup(IEcsDeploymentGroup deploymentGroup) The CodeDeploy ECS Deployment Group to deploy to.- Parameters:
deploymentGroup
- The CodeDeploy ECS Deployment Group to deploy to. This parameter is required.- Returns:
this
-
appSpecTemplateFile
@Stability(Stable) public CodeDeployEcsDeployAction.Builder appSpecTemplateFile(ArtifactPath appSpecTemplateFile) 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
- Parameters:
appSpecTemplateFile
- The name of the CodeDeploy AppSpec file. This parameter is required.- Returns:
this
-
appSpecTemplateInput
@Stability(Stable) public CodeDeployEcsDeployAction.Builder appSpecTemplateInput(Artifact appSpecTemplateInput) 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
- Parameters:
appSpecTemplateInput
- The artifact containing the CodeDeploy AppSpec file. This parameter is required.- Returns:
this
-
containerImageInputs
@Stability(Stable) public CodeDeployEcsDeployAction.Builder containerImageInputs(List<? extends CodeDeployEcsContainerImageInput> containerImageInputs) 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.
- Parameters:
containerImageInputs
- Configuration for dynamically updated images in the task definition. This parameter is required.- Returns:
this
-
taskDefinitionTemplateFile
@Stability(Stable) public CodeDeployEcsDeployAction.Builder taskDefinitionTemplateFile(ArtifactPath taskDefinitionTemplateFile) 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
- Parameters:
taskDefinitionTemplateFile
- The name of the ECS task definition template file. This parameter is required.- Returns:
this
-
taskDefinitionTemplateInput
@Stability(Stable) public CodeDeployEcsDeployAction.Builder taskDefinitionTemplateInput(Artifact taskDefinitionTemplateInput) 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
- Parameters:
taskDefinitionTemplateInput
- The artifact containing the ECS task definition template file. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CodeDeployEcsDeployAction>
- Returns:
- a newly built instance of
CodeDeployEcsDeployAction
.
-