Class CodeDeployEcsContainerImageInput
Configuration for replacing a placeholder string in the ECS task definition template file with an image URI.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CodePipeline.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CodeDeployEcsContainerImageInput : Object, ICodeDeployEcsContainerImageInput
Syntax (vb)
Public Class CodeDeployEcsContainerImageInput
Inherits Object
Implements ICodeDeployEcsContainerImageInput
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodePipeline;
using Amazon.CDK.AWS.CodePipeline.Actions;
Artifact artifact;
var codeDeployEcsContainerImageInput = new CodeDeployEcsContainerImageInput {
Input = artifact,
// the properties below are optional
TaskDefinitionPlaceholder = "taskDefinitionPlaceholder"
};
Synopsis
Constructors
CodeDeployEcsContainerImageInput() |
Properties
Input | The artifact that contains an |
TaskDefinitionPlaceholder | The placeholder string in the ECS task definition template file that will be replaced with the image URI. |
Constructors
CodeDeployEcsContainerImageInput()
public CodeDeployEcsContainerImageInput()
Properties
Input
The artifact that contains an imageDetails.json
file with the image URI.
public Artifact_ Input { get; set; }
Property Value
Remarks
The artifact's imageDetails.json
file must be a JSON file containing an
ImageURI
property. For example:
{ "ImageURI": "ACCOUNTID.dkr.ecr.us-west-2.amazonaws.com/dk-image-repo@sha256:example3" }
TaskDefinitionPlaceholder
The placeholder string in the ECS task definition template file that will be replaced with the image URI.
public string TaskDefinitionPlaceholder { get; set; }
Property Value
System.String
Remarks
The placeholder string must be surrounded by angle brackets in the template file.
For example, if the task definition template file contains a placeholder like
"image": "<PLACEHOLDER>"
, then the taskDefinitionPlaceholder
value should
be PLACEHOLDER
.
Default: IMAGE