Show / Hide Table of Contents

Class EcsDeployAction

CodePipeline Action to deploy an ECS Service.

Inheritance
object
Action
Action
EcsDeployAction
Implements
IAction
Inherited Members
Action.ProvidedActionProperties
Action.Bind(Construct, IStage, IActionBindOptions)
Action.OnStateChange(string, IRuleTarget, IRuleProps)
Action.VariableExpression(string)
Action.ActionProperties
Namespace: Amazon.CDK.AWS.CodePipeline.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EcsDeployAction : Action, IAction
Syntax (vb)
Public Class EcsDeployAction Inherits Action Implements IAction
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.ECS;

            FargateService service;

            var pipeline = new Pipeline(this, "MyPipeline");
            var buildOutput = new Artifact();
            var deployStage = pipeline.AddStage(new StageOptions {
                StageName = "Deploy",
                Actions = new [] {
                    new EcsDeployAction(new EcsDeployActionProps {
                        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)
                    }) }
            });

Synopsis

Constructors

EcsDeployAction(IEcsDeployActionProps)

CodePipeline Action to deploy an ECS Service.

Methods

Bound(Construct, IStage, IActionBindOptions)

This is a renamed version of the IAction.bind method.

Constructors

EcsDeployAction(IEcsDeployActionProps)

CodePipeline Action to deploy an ECS Service.

public EcsDeployAction(IEcsDeployActionProps props)
Parameters
props IEcsDeployActionProps
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.ECS;

            FargateService service;

            var pipeline = new Pipeline(this, "MyPipeline");
            var buildOutput = new Artifact();
            var deployStage = pipeline.AddStage(new StageOptions {
                StageName = "Deploy",
                Actions = new [] {
                    new EcsDeployAction(new EcsDeployActionProps {
                        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)
                    }) }
            });

Methods

Bound(Construct, IStage, IActionBindOptions)

This is a renamed version of the IAction.bind method.

protected override IActionConfig Bound(Construct scope, IStage stage, IActionBindOptions options)
Parameters
scope Construct
stage IStage
options IActionBindOptions
Returns

IActionConfig

Overrides
Action.Bound(Construct, IStage, IActionBindOptions)
Remarks

ExampleMetadata: infused

Implements

IAction
Back to top Generated by DocFX