@Stability(value=Experimental) @Internal public static final class Ec2ServiceProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Ec2ServiceProps
Ec2ServiceProps
software.amazon.jsii.JsiiObject.InitializationMode
Ec2ServiceProps.Builder, Ec2ServiceProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(TaskDefinition taskDefinition,
Boolean assignPublicIp,
Boolean daemon,
List<? extends PlacementConstraint> placementConstraints,
List<? extends PlacementStrategy> placementStrategies,
List<? extends ISecurityGroup> securityGroups,
SubnetSelection vpcSubnets,
ICluster cluster,
List<? extends CapacityProviderStrategy> capacityProviderStrategies,
DeploymentCircuitBreaker circuitBreaker,
CloudMapOptions cloudMapOptions,
DeploymentController deploymentController,
Number desiredCount,
Boolean enableEcsManagedTags,
Boolean enableExecuteCommand,
Duration healthCheckGracePeriod,
Number maxHealthyPercent,
Number minHealthyPercent,
PropagatedTagSource propagateTags,
String serviceName)
Constructor that initializes the object based on literal property values passed by the
Ec2ServiceProps.Builder . |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Boolean |
getAssignPublicIp()
(experimental) Specifies whether the task's elastic network interface receives a public IP address.
|
List<CapacityProviderStrategy> |
getCapacityProviderStrategies()
(experimental) A list of Capacity Provider strategies used to place a service.
|
DeploymentCircuitBreaker |
getCircuitBreaker()
(experimental) Whether to enable the deployment circuit breaker.
|
CloudMapOptions |
getCloudMapOptions()
(experimental) The options for configuring an Amazon ECS service to use service discovery.
|
ICluster |
getCluster()
(experimental) The name of the cluster that hosts the service.
|
Boolean |
getDaemon()
(experimental) Specifies whether the service will use the daemon scheduling strategy.
|
DeploymentController |
getDeploymentController()
(experimental) Specifies which deployment controller to use for the service.
|
Number |
getDesiredCount()
(experimental) The desired number of instantiations of the task definition to keep running on the service.
|
Boolean |
getEnableECSManagedTags()
(experimental) Specifies whether to enable Amazon ECS managed tags for the tasks within the service.
|
Boolean |
getEnableExecuteCommand()
(experimental) Whether to enable the ability to execute into a container.
|
Duration |
getHealthCheckGracePeriod()
(experimental) The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started.
|
Number |
getMaxHealthyPercent()
(experimental) The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment.
|
Number |
getMinHealthyPercent()
(experimental) The minimum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that must continue to run and remain healthy during a deployment.
|
List<PlacementConstraint> |
getPlacementConstraints()
(experimental) The placement constraints to use for tasks in the service.
|
List<PlacementStrategy> |
getPlacementStrategies()
(experimental) The placement strategies to use for tasks in the service.
|
PropagatedTagSource |
getPropagateTags()
(experimental) Specifies whether to propagate the tags from the task definition or the service to the tasks in the service.
|
List<ISecurityGroup> |
getSecurityGroups()
(experimental) The security groups to associate with the service.
|
String |
getServiceName()
(experimental) The name of the service.
|
TaskDefinition |
getTaskDefinition()
(experimental) The task definition to use for tasks in the service.
|
SubnetSelection |
getVpcSubnets()
(experimental) The subnets to associate with the service.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.protected Jsii$Proxy(TaskDefinition taskDefinition, Boolean assignPublicIp, Boolean daemon, List<? extends PlacementConstraint> placementConstraints, List<? extends PlacementStrategy> placementStrategies, List<? extends ISecurityGroup> securityGroups, SubnetSelection vpcSubnets, ICluster cluster, List<? extends CapacityProviderStrategy> capacityProviderStrategies, DeploymentCircuitBreaker circuitBreaker, CloudMapOptions cloudMapOptions, DeploymentController deploymentController, Number desiredCount, Boolean enableEcsManagedTags, Boolean enableExecuteCommand, Duration healthCheckGracePeriod, Number maxHealthyPercent, Number minHealthyPercent, PropagatedTagSource propagateTags, String serviceName)
Ec2ServiceProps.Builder
.public final TaskDefinition getTaskDefinition()
Ec2ServiceProps
[disable-awslint:ref-via-interface]
getTaskDefinition
in interface Ec2ServiceProps
public final Boolean getAssignPublicIp()
Ec2ServiceProps
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
getAssignPublicIp
in interface Ec2ServiceProps
public final Boolean getDaemon()
Ec2ServiceProps
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
getDaemon
in interface Ec2ServiceProps
public final List<PlacementConstraint> getPlacementConstraints()
Ec2ServiceProps
For more information, see Amazon ECS Task Placement Constraints.
Default: - No constraints.
getPlacementConstraints
in interface Ec2ServiceProps
public final List<PlacementStrategy> getPlacementStrategies()
Ec2ServiceProps
For more information, see Amazon ECS Task Placement Strategies.
Default: - No strategies.
getPlacementStrategies
in interface Ec2ServiceProps
public final List<ISecurityGroup> getSecurityGroups()
Ec2ServiceProps
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.
getSecurityGroups
in interface Ec2ServiceProps
public final SubnetSelection getVpcSubnets()
Ec2ServiceProps
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.
getVpcSubnets
in interface Ec2ServiceProps
public final ICluster getCluster()
BaseServiceOptions
getCluster
in interface BaseServiceOptions
public final List<CapacityProviderStrategy> getCapacityProviderStrategies()
BaseServiceOptions
Default: - undefined
getCapacityProviderStrategies
in interface BaseServiceOptions
public final DeploymentCircuitBreaker getCircuitBreaker()
BaseServiceOptions
If this property is defined, circuit breaker will be implicitly enabled.
Default: - disabled
getCircuitBreaker
in interface BaseServiceOptions
public final CloudMapOptions getCloudMapOptions()
BaseServiceOptions
Default: - AWS Cloud Map service discovery is not enabled.
getCloudMapOptions
in interface BaseServiceOptions
public final DeploymentController getDeploymentController()
BaseServiceOptions
For more information, see Amazon ECS Deployment Types
Default: - Rolling update (ECS)
getDeploymentController
in interface BaseServiceOptions
public final Number getDesiredCount()
BaseServiceOptions
Default: - When creating the service, default is 1; when updating the service, default uses the current task number.
getDesiredCount
in interface BaseServiceOptions
public final Boolean getEnableECSManagedTags()
BaseServiceOptions
For more information, see Tagging Your Amazon ECS Resources
Default: false
getEnableECSManagedTags
in interface BaseServiceOptions
public final Boolean getEnableExecuteCommand()
BaseServiceOptions
Default: - undefined
getEnableExecuteCommand
in interface BaseServiceOptions
public final Duration getHealthCheckGracePeriod()
BaseServiceOptions
Default: - defaults to 60 seconds if at least one load balancer is in-use and it is not already set
getHealthCheckGracePeriod
in interface BaseServiceOptions
public final Number getMaxHealthyPercent()
BaseServiceOptions
Default: - 100 if daemon, otherwise 200
getMaxHealthyPercent
in interface BaseServiceOptions
public final Number getMinHealthyPercent()
BaseServiceOptions
Default: - 0 if daemon, otherwise 50
getMinHealthyPercent
in interface BaseServiceOptions
public final PropagatedTagSource getPropagateTags()
BaseServiceOptions
Valid values are: PropagatedTagSource.SERVICE, PropagatedTagSource.TASK_DEFINITION or PropagatedTagSource.NONE
Default: PropagatedTagSource.NONE
getPropagateTags
in interface BaseServiceOptions
public final String getServiceName()
BaseServiceOptions
Default: - CloudFormation-generated name.
getServiceName
in interface BaseServiceOptions
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson
in interface software.amazon.jsii.JsiiSerializable
Copyright © 2021. All rights reserved.