@Stability(value=Experimental) @Internal public static final class Ec2ServiceProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Ec2ServiceProps
Ec2ServicePropssoftware.amazon.jsii.JsiiObject.InitializationModeEc2ServiceProps.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,
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.
|
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, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected 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, 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 Ec2ServicePropspublic final Boolean getAssignPublicIp()
Ec2ServicePropsIf 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 Ec2ServicePropspublic final Boolean getDaemon()
Ec2ServicePropsIf 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 Ec2ServicePropspublic final List<PlacementConstraint> getPlacementConstraints()
Ec2ServicePropsFor more information, see Amazon ECS Task Placement Constraints.
Default: - No constraints.
getPlacementConstraints in interface Ec2ServicePropspublic final List<PlacementStrategy> getPlacementStrategies()
Ec2ServicePropsFor more information, see Amazon ECS Task Placement Strategies.
Default: - No strategies.
getPlacementStrategies in interface Ec2ServicePropspublic final List<ISecurityGroup> getSecurityGroups()
Ec2ServicePropsIf 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 Ec2ServicePropspublic final SubnetSelection getVpcSubnets()
Ec2ServicePropsThis 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 Ec2ServicePropspublic final ICluster getCluster()
BaseServiceOptionsgetCluster in interface BaseServiceOptionspublic final List<CapacityProviderStrategy> getCapacityProviderStrategies()
BaseServiceOptionsDefault: - undefined
getCapacityProviderStrategies in interface BaseServiceOptionspublic final DeploymentCircuitBreaker getCircuitBreaker()
BaseServiceOptionsIf this property is defined, circuit breaker will be implicitly enabled.
Default: - disabled
getCircuitBreaker in interface BaseServiceOptionspublic final CloudMapOptions getCloudMapOptions()
BaseServiceOptionsDefault: - AWS Cloud Map service discovery is not enabled.
getCloudMapOptions in interface BaseServiceOptionspublic final DeploymentController getDeploymentController()
BaseServiceOptionsFor more information, see Amazon ECS Deployment Types
Default: - Rolling update (ECS)
getDeploymentController in interface BaseServiceOptionspublic final Number getDesiredCount()
BaseServiceOptionsDefault: - When creating the service, default is 1; when updating the service, default uses the current task number.
getDesiredCount in interface BaseServiceOptionspublic final Boolean getEnableECSManagedTags()
BaseServiceOptionsFor more information, see Tagging Your Amazon ECS Resources
Default: false
getEnableECSManagedTags in interface BaseServiceOptionspublic final Duration getHealthCheckGracePeriod()
BaseServiceOptionsDefault: - defaults to 60 seconds if at least one load balancer is in-use and it is not already set
getHealthCheckGracePeriod in interface BaseServiceOptionspublic final Number getMaxHealthyPercent()
BaseServiceOptionsDefault: - 100 if daemon, otherwise 200
getMaxHealthyPercent in interface BaseServiceOptionspublic final Number getMinHealthyPercent()
BaseServiceOptionsDefault: - 0 if daemon, otherwise 50
getMinHealthyPercent in interface BaseServiceOptionspublic final PropagatedTagSource getPropagateTags()
BaseServiceOptionsValid values are: PropagatedTagSource.SERVICE, PropagatedTagSource.TASK_DEFINITION or PropagatedTagSource.NONE
Default: PropagatedTagSource.NONE
getPropagateTags in interface BaseServiceOptionspublic final String getServiceName()
BaseServiceOptionsDefault: - CloudFormation-generated name.
getServiceName in interface BaseServiceOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.