@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:50.390Z") @Deprecated public interface RunEcsFargateTaskProps extends CommonEcsRunTaskProps
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();
Modifier and Type | Interface and Description |
---|---|
static class |
RunEcsFargateTaskProps.Builder
Deprecated.
|
static class |
RunEcsFargateTaskProps.Jsii$Proxy
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static RunEcsFargateTaskProps.Builder |
builder()
Deprecated.
|
default java.lang.Boolean |
getAssignPublicIp()
Deprecated.
|
default FargatePlatformVersion |
getPlatformVersion()
Deprecated.
|
default ISecurityGroup |
getSecurityGroup()
Deprecated.
|
default SubnetSelection |
getSubnets()
Deprecated.
|
getCluster, getContainerOverrides, getIntegrationPattern, getTaskDefinition
@Deprecated default java.lang.Boolean getAssignPublicIp()
Default: false
@Deprecated default FargatePlatformVersion getPlatformVersion()
Unless you have specific compatibility requirements, you don't need to specify this.
Default: Latest
@Deprecated default ISecurityGroup getSecurityGroup()
Default: A new security group is created
@Deprecated default SubnetSelection getSubnets()
Default: Private subnet if assignPublicIp, public subnets otherwise
@Deprecated static RunEcsFargateTaskProps.Builder builder()
builder
in interface CommonEcsRunTaskProps
RunEcsFargateTaskProps.Builder
of RunEcsFargateTaskProps