Interface RunEcsFargateTaskProps
- All Superinterfaces:
CommonEcsRunTaskProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RunEcsFargateTaskProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:48.165Z")
@Stability(Deprecated)
@Deprecated
public interface RunEcsFargateTaskProps
extends software.amazon.jsii.JsiiSerializable, CommonEcsRunTaskProps
Deprecated.
(deprecated) Properties to define an ECS service.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ec2.*; import software.amazon.awscdk.services.ecs.*; import software.amazon.awscdk.services.stepfunctions.*; import software.amazon.awscdk.services.stepfunctions.tasks.*; Cluster cluster; ContainerDefinition containerDefinition; SecurityGroup securityGroup; Subnet subnet; SubnetFilter subnetFilter; TaskDefinition taskDefinition; RunEcsFargateTaskProps runEcsFargateTaskProps = RunEcsFargateTaskProps.builder() .cluster(cluster) .taskDefinition(taskDefinition) // the properties below are optional .assignPublicIp(false) .containerOverrides(List.of(ContainerOverride.builder() .containerDefinition(containerDefinition) // the properties below are optional .command(List.of("command")) .cpu(123) .environment(List.of(TaskEnvironmentVariable.builder() .name("name") .value("value") .build())) .memoryLimit(123) .memoryReservation(123) .build())) .integrationPattern(ServiceIntegrationPattern.FIRE_AND_FORGET) .platformVersion(FargatePlatformVersion.LATEST) .securityGroup(securityGroup) .subnets(SubnetSelection.builder() .availabilityZones(List.of("availabilityZones")) .onePerAz(false) .subnetFilters(List.of(subnetFilter)) .subnetGroupName("subnetGroupName") .subnetName("subnetName") .subnets(List.of(subnet)) .subnetType(SubnetType.ISOLATED) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Deprecated.static final class
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Deprecated.default Boolean
Deprecated.default FargatePlatformVersion
Deprecated.default ISecurityGroup
Deprecated.default SubnetSelection
Deprecated.Methods inherited from interface software.amazon.awscdk.services.stepfunctions.tasks.CommonEcsRunTaskProps
getCluster, getContainerOverrides, getIntegrationPattern, getTaskDefinition
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAssignPublicIp
Deprecated.(deprecated) Assign public IP addresses to each task.Default: false
-
getPlatformVersion
Deprecated.(deprecated) Fargate platform version to run this service on.Unless you have specific compatibility requirements, you don't need to specify this.
Default: Latest
-
getSecurityGroup
Deprecated.(deprecated) Existing security group to use for the tasks.Default: A new security group is created
-
getSubnets
Deprecated.(deprecated) In what subnets to place the task's ENIs.Default: Private subnet if assignPublicIp, public subnets otherwise
-
builder
Deprecated.- Returns:
- a
RunEcsFargateTaskProps.Builder
ofRunEcsFargateTaskProps
-
EcsRunTask
andEcsRunTaskProps