Class EcsRunTaskBaseProps
(deprecated) Construction properties for the BaseRunTaskProps.
Inheritance
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public class EcsRunTaskBaseProps : Object, IEcsRunTaskBaseProps, ICommonEcsRunTaskProps
Syntax (vb)
Public Class EcsRunTaskBaseProps
Inherits Object
Implements IEcsRunTaskBaseProps, ICommonEcsRunTaskProps
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 ecsRunTaskBaseProps = 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
EcsRunTaskBaseProps() |
Properties
Cluster | The topic to run the task on. |
ContainerOverrides | Container setting overrides. |
IntegrationPattern | The service integration pattern indicates different ways to call RunTask in ECS. |
Parameters | (deprecated) Additional parameters to pass to the base task. |
TaskDefinition | Task Definition used for running tasks in the service. |
Constructors
EcsRunTaskBaseProps()
public EcsRunTaskBaseProps()
Properties
Cluster
ContainerOverrides
Container setting overrides.
public IContainerOverride[] ContainerOverrides { get; set; }
Property Value
Remarks
Key is the name of the container to override, value is the values you want to override.
Default: - No overrides
IntegrationPattern
The service integration pattern indicates different ways to call RunTask in ECS.
public Nullable<ServiceIntegrationPattern> IntegrationPattern { get; set; }
Property Value
System.Nullable<ServiceIntegrationPattern>
Remarks
The valid value for Lambda is FIRE_AND_FORGET, SYNC and WAIT_FOR_TASK_TOKEN.
Default: FIRE_AND_FORGET
Parameters
(deprecated) Additional parameters to pass to the base task.
public IDictionary<string, object> Parameters { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Remarks
Default: - No additional parameters passed
Stability: Deprecated
TaskDefinition
Task Definition used for running tasks in the service.
public TaskDefinition TaskDefinition { get; set; }
Property Value
Remarks
Note: this must be TaskDefinition, and not ITaskDefinition, as it requires properties that are not known for imported task definitions