Class EcsRunTaskBase
(deprecated) A StepFunctions Task to run a Task on ECS or Fargate.
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public class EcsRunTaskBase : DeputyBase, IConnectable, IStepFunctionsTask
Syntax (vb)
Public Class EcsRunTaskBase
Inherits DeputyBase
Implements IConnectable, IStepFunctionsTask
Remarks
Stability: Deprecated
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.ECS;
using Amazon.CDK.AWS.StepFunctions;
using Amazon.CDK.AWS.StepFunctions.Tasks;
Cluster cluster;
ContainerDefinition containerDefinition;
var parameters;
TaskDefinition taskDefinition;
var ecsRunTaskBase = new EcsRunTaskBase(new EcsRunTaskBaseProps {
Cluster = cluster,
TaskDefinition = taskDefinition,
// the properties below are optional
ContainerOverrides = new [] { new ContainerOverride {
ContainerDefinition = containerDefinition,
// the properties below are optional
Command = new [] { "command" },
Cpu = 123,
Environment = new [] { new TaskEnvironmentVariable {
Name = "name",
Value = "value"
} },
MemoryLimit = 123,
MemoryReservation = 123
} },
IntegrationPattern = ServiceIntegrationPattern.FIRE_AND_FORGET,
Parameters = new Dictionary<string, object> {
{ "parametersKey", parameters }
}
});
Synopsis
Constructors
EcsRunTaskBase(IEcsRunTaskBaseProps) | |
EcsRunTaskBase(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
EcsRunTaskBase(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Connections | (deprecated) Manage allowed network traffic for this service. |
Methods
Bind(Task) | (deprecated) Called when the task object is used in a workflow. |
ConfigureAwsVpcNetworking(IVpc, Nullable<Boolean>, ISubnetSelection, ISecurityGroup) |
Constructors
EcsRunTaskBase(IEcsRunTaskBaseProps)
public EcsRunTaskBase(IEcsRunTaskBaseProps props)
Parameters
- props IEcsRunTaskBaseProps
Remarks
Stability: Deprecated
EcsRunTaskBase(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected EcsRunTaskBase(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
EcsRunTaskBase(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected EcsRunTaskBase(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Connections
(deprecated) Manage allowed network traffic for this service.
public virtual Connections_ Connections { get; }
Property Value
Remarks
Stability: Deprecated
Methods
Bind(Task)
(deprecated) Called when the task object is used in a workflow.
public virtual IStepFunctionsTaskConfig Bind(Task task)
Parameters
- task Task
Returns
Remarks
Stability: Deprecated
ConfigureAwsVpcNetworking(IVpc, Nullable<Boolean>, ISubnetSelection, ISecurityGroup)
protected virtual void ConfigureAwsVpcNetworking(IVpc vpc, Nullable<bool> assignPublicIp = null, ISubnetSelection subnetSelection = null, ISecurityGroup securityGroup = null)
Parameters
- vpc IVpc
- assignPublicIp System.Nullable<System.Boolean>
- subnetSelection ISubnetSelection
- securityGroup ISecurityGroup
Remarks
Stability: Deprecated