Class EcsDeployAction
CodePipeline Action to deploy an ECS Service.
Implements
Inherited Members
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
Ecs |
|
Ecs |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Ecs |
Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bound(Construct, IStage, IAction |
This is a renamed version of the |
Constructors
EcsDeployAction(IEcsDeployActionProps)
EcsDeployAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected EcsDeployAction(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
EcsDeployAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected EcsDeployAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
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 Constructs.
Construct - stage IStage
- options IAction
Bind Options
Returns