@Stability(value=Stable) public static final class ApplicationLoadBalancedFargateService.Builder extends Object
ApplicationLoadBalancedFargateService.| Modifier and Type | Method and Description |
|---|---|
ApplicationLoadBalancedFargateService.Builder |
assignPublicIp(Boolean assignPublicIp)
Determines whether the service will be assigned a public IP address.
|
ApplicationLoadBalancedFargateService |
build() |
ApplicationLoadBalancedFargateService.Builder |
certificate(ICertificate certificate)
Certificate Manager certificate to associate with the load balancer.
|
ApplicationLoadBalancedFargateService.Builder |
cloudMapOptions(CloudMapOptions cloudMapOptions)
The options for configuring an Amazon ECS service to use service discovery.
|
ApplicationLoadBalancedFargateService.Builder |
cluster(ICluster cluster)
The name of the cluster that hosts the service.
|
ApplicationLoadBalancedFargateService.Builder |
cpu(Number cpu)
The number of cpu units used by the task.
|
static ApplicationLoadBalancedFargateService.Builder |
create(Construct scope,
String id) |
ApplicationLoadBalancedFargateService.Builder |
desiredCount(Number desiredCount)
The desired number of instantiations of the task definition to keep running on the service.
|
ApplicationLoadBalancedFargateService.Builder |
domainName(String domainName)
The domain name for the service, e.g.
|
ApplicationLoadBalancedFargateService.Builder |
domainZone(IHostedZone domainZone)
The Route53 hosted zone for the domain, e.g.
|
ApplicationLoadBalancedFargateService.Builder |
enableEcsManagedTags(Boolean enableEcsManagedTags)
Specifies whether to enable Amazon ECS managed tags for the tasks within the service.
|
ApplicationLoadBalancedFargateService.Builder |
healthCheckGracePeriod(Duration healthCheckGracePeriod)
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.
|
ApplicationLoadBalancedFargateService.Builder |
listenerPort(Number listenerPort)
Listener port of the application load balancer that will serve traffic to the service.
|
ApplicationLoadBalancedFargateService.Builder |
loadBalancer(IApplicationLoadBalancer loadBalancer)
The application load balancer that will serve traffic to the service.
|
ApplicationLoadBalancedFargateService.Builder |
maxHealthyPercent(Number maxHealthyPercent)
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.
|
ApplicationLoadBalancedFargateService.Builder |
memoryLimitMiB(Number memoryLimitMiB)
The amount (in MiB) of memory used by the task.
|
ApplicationLoadBalancedFargateService.Builder |
minHealthyPercent(Number minHealthyPercent)
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.
|
ApplicationLoadBalancedFargateService.Builder |
propagateTags(PropagatedTagSource propagateTags)
Specifies whether to propagate the tags from the task definition or the service to the tasks in the service.
|
ApplicationLoadBalancedFargateService.Builder |
protocol(ApplicationProtocol protocol)
The protocol for connections from clients to the load balancer.
|
ApplicationLoadBalancedFargateService.Builder |
publicLoadBalancer(Boolean publicLoadBalancer)
Determines whether the Load Balancer will be internet-facing.
|
ApplicationLoadBalancedFargateService.Builder |
serviceName(String serviceName)
The name of the service.
|
ApplicationLoadBalancedFargateService.Builder |
taskDefinition(FargateTaskDefinition taskDefinition)
The task definition to use for tasks in the service.
|
ApplicationLoadBalancedFargateService.Builder |
taskImageOptions(ApplicationLoadBalancedTaskImageOptions taskImageOptions)
The properties required to create a new task definition.
|
ApplicationLoadBalancedFargateService.Builder |
vpc(IVpc vpc)
The VPC where the container instances will be launched or the elastic network interfaces (ENIs) will be deployed.
|
@Stability(value=Stable) public static ApplicationLoadBalancedFargateService.Builder create(Construct scope, String id)
scope - This parameter is required.id - This parameter is required.ApplicationLoadBalancedFargateService.Builder.@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder certificate(ICertificate certificate)
Setting this option will set the load balancer protocol to HTTPS.
Default: - No certificate associated with the load balancer, if using the HTTP protocol. For HTTPS, a DNS-validated certificate will be created for the load balancer's specified domain name.
certificate - Certificate Manager certificate to associate with the load balancer. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder cloudMapOptions(CloudMapOptions cloudMapOptions)
Default: - AWS Cloud Map service discovery is not enabled.
cloudMapOptions - The options for configuring an Amazon ECS service to use service discovery. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder cluster(ICluster cluster)
If a cluster is specified, the vpc construct should be omitted. Alternatively, you can omit both cluster and vpc.
Default: - create a new cluster; if both cluster and vpc are omitted, a new VPC will be created for you.
cluster - The name of the cluster that hosts the service. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder desiredCount(Number desiredCount)
The minimum value is 1
Default: 1
desiredCount - The desired number of instantiations of the task definition to keep running on the service. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder domainName(String domainName)
Default: - No domain name.
domainName - The domain name for the service, e.g. "api.example.com.". This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder domainZone(IHostedZone domainZone)
Default: - No Route53 hosted domain zone.
domainZone - The Route53 hosted zone for the domain, e.g. "example.com.". This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder enableEcsManagedTags(Boolean enableEcsManagedTags)
For more information, see Tagging Your Amazon ECS Resources
Default: false
enableEcsManagedTags - Specifies whether to enable Amazon ECS managed tags for the tasks within the service. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder healthCheckGracePeriod(Duration healthCheckGracePeriod)
Default: - defaults to 60 seconds if at least one load balancer is in-use and it is not already set
healthCheckGracePeriod - 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. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder listenerPort(Number listenerPort)
Default: - The default listener port is determined from the protocol (port 80 for HTTP, port 443 for HTTPS). A domain name and zone must be also be specified if using HTTPS.
listenerPort - Listener port of the application load balancer that will serve traffic to the service. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder loadBalancer(IApplicationLoadBalancer loadBalancer)
The VPC attribute of a load balancer must be specified for it to be used to create a new service with this pattern.
[disable-awslint:ref-via-interface]
Default: - a new load balancer will be created.
loadBalancer - The application load balancer that will serve traffic to the service. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder maxHealthyPercent(Number maxHealthyPercent)
Default: - 100 if daemon, otherwise 200
maxHealthyPercent - 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. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder minHealthyPercent(Number minHealthyPercent)
Default: - 0 if daemon, otherwise 50
minHealthyPercent - 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. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder propagateTags(PropagatedTagSource propagateTags)
Tags can only be propagated to the tasks within the service during service creation.
Default: - none
propagateTags - Specifies whether to propagate the tags from the task definition or the service to the tasks in the service. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder protocol(ApplicationProtocol protocol)
The load balancer port is determined from the protocol (port 80 for HTTP, port 443 for HTTPS). A domain name and zone must be also be specified if using HTTPS.
Default: HTTP. If a certificate is specified, the protocol will be set by default to HTTPS.
protocol - The protocol for connections from clients to the load balancer. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder publicLoadBalancer(Boolean publicLoadBalancer)
Default: true
publicLoadBalancer - Determines whether the Load Balancer will be internet-facing. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder serviceName(String serviceName)
Default: - CloudFormation-generated name.
serviceName - The name of the service. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder taskImageOptions(ApplicationLoadBalancedTaskImageOptions taskImageOptions)
TaskDefinition or TaskImageOptions must be specified, but not both.
Default: none
taskImageOptions - The properties required to create a new task definition. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder vpc(IVpc vpc)
If a vpc is specified, the cluster construct should be omitted. Alternatively, you can omit both vpc and cluster.
Default: - uses the VPC defined in the cluster or creates a new VPC.
vpc - The VPC where the container instances will be launched or the elastic network interfaces (ENIs) will be deployed. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder assignPublicIp(Boolean assignPublicIp)
Default: false
assignPublicIp - Determines whether the service will be assigned a public IP address. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder cpu(Number cpu)
Valid values, which determines your range of valid values for the memory parameter:
256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB
512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB
1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB
2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments
4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments
This default is set in the underlying FargateTaskDefinition construct.
Default: 256
cpu - The number of cpu units used by the task. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder memoryLimitMiB(Number memoryLimitMiB)
This field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter:
512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu values: 256 (.25 vCPU)
1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available cpu values: 512 (.5 vCPU)
2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available cpu values: 1024 (1 vCPU)
Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - Available cpu values: 2048 (2 vCPU)
Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU)
This default is set in the underlying FargateTaskDefinition construct.
Default: 512
memoryLimitMiB - The amount (in MiB) of memory used by the task. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService.Builder taskDefinition(FargateTaskDefinition taskDefinition)
[disable-awslint:ref-via-interface]
Default: - none
taskDefinition - The task definition to use for tasks in the service. TaskDefinition or TaskImageOptions must be specified, but not both. This parameter is required.this@Stability(value=Stable) public ApplicationLoadBalancedFargateService build()
Copyright © 2020. All rights reserved.