Interface IRunEcsFargateTaskProps
(deprecated) Properties to define an ECS service.
Inherited Members
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public interface IRunEcsFargateTaskProps : ICommonEcsRunTaskProps
Syntax (vb)
Public Interface IRunEcsFargateTaskProps
Inherits 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.EC2;
using Amazon.CDK.AWS.ECS;
using Amazon.CDK.AWS.StepFunctions;
using Amazon.CDK.AWS.StepFunctions.Tasks;
Cluster cluster;
ContainerDefinition containerDefinition;
SecurityGroup securityGroup;
Subnet subnet;
SubnetFilter subnetFilter;
TaskDefinition taskDefinition;
var runEcsFargateTaskProps = new RunEcsFargateTaskProps {
Cluster = cluster,
TaskDefinition = taskDefinition,
// the properties below are optional
AssignPublicIp = false,
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,
PlatformVersion = FargatePlatformVersion.LATEST,
SecurityGroup = securityGroup,
Subnets = new SubnetSelection {
AvailabilityZones = new [] { "availabilityZones" },
OnePerAz = false,
SubnetFilters = new [] { subnetFilter },
SubnetGroupName = "subnetGroupName",
SubnetName = "subnetName",
Subnets = new [] { subnet },
SubnetType = SubnetType.ISOLATED
}
};
Synopsis
Properties
AssignPublicIp | (deprecated) Assign public IP addresses to each task. |
PlatformVersion | (deprecated) Fargate platform version to run this service on. |
SecurityGroup | (deprecated) Existing security group to use for the tasks. |
Subnets | (deprecated) In what subnets to place the task's ENIs. |
Properties
AssignPublicIp
(deprecated) Assign public IP addresses to each task.
virtual Nullable<bool> AssignPublicIp { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
Stability: Deprecated
PlatformVersion
(deprecated) Fargate platform version to run this service on.
virtual Nullable<FargatePlatformVersion> PlatformVersion { get; }
Property Value
System.Nullable<FargatePlatformVersion>
Remarks
Unless you have specific compatibility requirements, you don't need to specify this.
Default: Latest
Stability: Deprecated
SecurityGroup
(deprecated) Existing security group to use for the tasks.
virtual ISecurityGroup SecurityGroup { get; }
Property Value
Remarks
Default: A new security group is created
Stability: Deprecated
Subnets
(deprecated) In what subnets to place the task's ENIs.
virtual ISubnetSelection Subnets { get; }
Property Value
Remarks
Default: Private subnet if assignPublicIp, public subnets otherwise
Stability: Deprecated