@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.672Z") @Stability(value=Stable) public interface CfnTaskSetProps extends software.amazon.jsii.JsiiSerializable
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.ecs.*;
CfnTaskSetProps cfnTaskSetProps = CfnTaskSetProps.builder()
.cluster("cluster")
.service("service")
.taskDefinition("taskDefinition")
// the properties below are optional
.externalId("externalId")
.launchType("launchType")
.loadBalancers(List.of(LoadBalancerProperty.builder()
.containerName("containerName")
.containerPort(123)
.loadBalancerName("loadBalancerName")
.targetGroupArn("targetGroupArn")
.build()))
.networkConfiguration(NetworkConfigurationProperty.builder()
.awsVpcConfiguration(AwsVpcConfigurationProperty.builder()
.subnets(List.of("subnets"))
// the properties below are optional
.assignPublicIp("assignPublicIp")
.securityGroups(List.of("securityGroups"))
.build())
.build())
.platformVersion("platformVersion")
.scale(ScaleProperty.builder()
.unit("unit")
.value(123)
.build())
.serviceRegistries(List.of(ServiceRegistryProperty.builder()
.containerName("containerName")
.containerPort(123)
.port(123)
.registryArn("registryArn")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnTaskSetProps.Builder
A builder for
CfnTaskSetProps |
static class |
CfnTaskSetProps.Jsii$Proxy
An implementation for
CfnTaskSetProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnTaskSetProps.Builder |
builder() |
String |
getCluster()
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.
|
default String |
getExternalId()
An optional non-unique tag that identifies this task set in external systems.
|
default String |
getLaunchType()
The launch type that new tasks in the task set uses.
|
default Object |
getLoadBalancers()
A load balancer object representing the load balancer to use with the task set.
|
default Object |
getNetworkConfiguration()
The network configuration for the task set.
|
default String |
getPlatformVersion()
The platform version that the tasks in the task set uses.
|
default Object |
getScale()
A floating-point percentage of your desired number of tasks to place and keep running in the task set.
|
String |
getService()
The short name or full Amazon Resource Name (ARN) of the service to create the task set in.
|
default Object |
getServiceRegistries()
The details of the service discovery registries to assign to this task set.
|
String |
getTaskDefinition()
The task definition for the tasks in the task set to use.
|
@Stability(value=Stable) @NotNull String getCluster()
@Stability(value=Stable) @NotNull String getService()
@Stability(value=Stable) @NotNull String getTaskDefinition()
@Stability(value=Stable) @Nullable default String getExternalId()
If the task set is associated with a service discovery registry, the tasks in this task set will have the ECS_TASK_SET_EXTERNAL_ID AWS Cloud Map attribute set to the provided value.
@Stability(value=Stable) @Nullable default String getLaunchType()
For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide .
If a launchType is specified, the capacityProviderStrategy parameter must be omitted.
@Stability(value=Stable) @Nullable default Object getLoadBalancers()
The supported load balancer types are either an Application Load Balancer or a Network Load Balancer.
@Stability(value=Stable) @Nullable default Object getNetworkConfiguration()
@Stability(value=Stable) @Nullable default String getPlatformVersion()
A platform version is specified only for tasks using the Fargate launch type. If one isn't specified, the LATEST platform version is used.
@Stability(value=Stable) @Nullable default Object getScale()
@Stability(value=Stable) @Nullable default Object getServiceRegistries()
For more information, see Service discovery .
@Stability(value=Stable) static CfnTaskSetProps.Builder builder()
CfnTaskSetProps.Builder of CfnTaskSetPropsCopyright © 2022. All rights reserved.