@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:17.223Z") @Stability(value=Experimental) public interface Ec2ServiceProps extends software.amazon.jsii.JsiiSerializable, BaseServiceOptions
| Modifier and Type | Interface and Description |
|---|---|
static class |
Ec2ServiceProps.Builder
A builder for
Ec2ServiceProps |
static class |
Ec2ServiceProps.Jsii$Proxy
An implementation for
Ec2ServiceProps |
| Modifier and Type | Method and Description |
|---|---|
static Ec2ServiceProps.Builder |
builder() |
default Boolean |
getAssignPublicIp()
(experimental) Specifies whether the task's elastic network interface receives a public IP address.
|
default Boolean |
getDaemon()
(experimental) Specifies whether the service will use the daemon scheduling strategy.
|
default List<PlacementConstraint> |
getPlacementConstraints()
(experimental) The placement constraints to use for tasks in the service.
|
default List<PlacementStrategy> |
getPlacementStrategies()
(experimental) The placement strategies to use for tasks in the service.
|
default List<ISecurityGroup> |
getSecurityGroups()
(experimental) The security groups to associate with the service.
|
TaskDefinition |
getTaskDefinition()
(experimental) The task definition to use for tasks in the service.
|
default SubnetSelection |
getVpcSubnets()
(experimental) The subnets to associate with the service.
|
getCapacityProviderStrategies, getCircuitBreaker, getCloudMapOptions, getCluster, getDeploymentController, getDesiredCount, getEnableECSManagedTags, getHealthCheckGracePeriod, getMaxHealthyPercent, getMinHealthyPercent, getPropagateTags, getServiceName@Stability(value=Experimental) @NotNull TaskDefinition getTaskDefinition()
[disable-awslint:ref-via-interface]
@Stability(value=Experimental) @Nullable default Boolean getAssignPublicIp()
If true, each task will receive a public IP address.
This property is only used for tasks that use the awsvpc network mode.
Default: false
@Stability(value=Experimental) @Nullable default Boolean getDaemon()
If true, the service scheduler deploys exactly one task on each container instance in your cluster.
When you are using this strategy, do not specify a desired number of tasks orany task placement strategies.
Default: false
@Stability(value=Experimental) @Nullable default List<PlacementConstraint> getPlacementConstraints()
For more information, see Amazon ECS Task Placement Constraints.
Default: - No constraints.
@Stability(value=Experimental) @Nullable default List<PlacementStrategy> getPlacementStrategies()
For more information, see Amazon ECS Task Placement Strategies.
Default: - No strategies.
@Stability(value=Experimental) @Nullable default List<ISecurityGroup> getSecurityGroups()
If you do not specify a security group, the default security group for the VPC is used.
This property is only used for tasks that use the awsvpc network mode.
Default: - A new security group is created.
@Stability(value=Experimental) @Nullable default SubnetSelection getVpcSubnets()
This property is only used for tasks that use the awsvpc network mode.
Default: - Public subnets if `assignPublicIp` is set, otherwise the first available one of Private, Isolated, Public, in that order.
@Stability(value=Experimental) static Ec2ServiceProps.Builder builder()
builder in interface BaseServiceOptionsEc2ServiceProps.Builder of Ec2ServicePropsCopyright © 2021. All rights reserved.