SCP::Loadbalancer::LBHealthCheck
SCP::Loadbalancer::LBHealthCheck
SCP::Loadbalancer::LBHealthCheck
Description
A Health Check that monitors the health of the servers in a server group. A server that fails the configured number of consecutive checks is excluded from traffic distribution.
Version
1.4.0
Syntax
To declare this entity in your Infrastructure Builder template, use the following syntax:
JSON
{
"Type" : "SCP::Loadbalancer::LBHealthCheck",
"Properties" : {
"Name" : "String",
"Protocol" : "String",
"VpcId" : "String",
"SubnetId" : "String",
"Description" : "String",
"HealthCheckPort" : "Integer",
"HealthCheckInterval" : "Integer",
"HealthCheckTimeout" : "Integer",
"HealthCheckCount" : "Integer",
"HttpMethod" : "String",
"HealthCheckUrl" : "String",
"ResponseCode" : "String",
"RequestData" : "String"
}
}
YAML
Type: SCP::Loadbalancer::LBHealthCheck
Properties:
Name: String
Protocol: String
VpcId: String
SubnetId: String
Description: String
HealthCheckPort: Integer
HealthCheckInterval: Integer
HealthCheckTimeout: Integer
HealthCheckCount: Integer
HttpMethod: String
HealthCheckUrl: String
ResponseCode: String
RequestData: String
Properties
Name
The name of the LB Health Check. Used to identify the health check within the Loadbalancer service.
| Attribute | Value |
|---|---|
| Required | Yes |
| Type | String |
| Pattern | ^[a-zA-Z0-9][-a-zA-Z0-9_]*[a-zA-Z0-9]$ |
| Length constraints | 3–63 |
| Update requires | Replacement |
Protocol
The protocol used for the health check.
| Attribute | Value |
|---|---|
| Required | Yes |
| Type | String |
| Allowed values | TCP | HTTP | HTTPS |
| Update requires | No interruption |
VpcId
The identifier of the VPC where the resource is located.
| Attribute | Value |
|---|---|
| Required | Yes |
| Type | String |
| Update requires | Replacement |
SubnetId
The identifier of the subnet where the resource is located.
| Attribute | Value |
|---|---|
| Required | Yes |
| Type | String |
| Update requires | Replacement |
Description
A brief explanation or note about this resource that identifies the purpose or usage of the resource. - maxLength : 255
| Attribute | Value |
|---|---|
| Required | No |
| Type | String |
| Length constraints | Max: 255 |
| Update requires | No interruption |
HealthCheckPort
The port number used for health checks.
| Attribute | Value |
|---|---|
| Required | No |
| Type | Integer |
| Range | 1–65534 |
| Update requires | No interruption |
HealthCheckInterval
The interval between health checks in seconds.
| Attribute | Value |
|---|---|
| Required | No |
| Type | Integer |
| Range | 1–180 |
| Update requires | No interruption |
HealthCheckTimeout
The timeout for health check responses in seconds. Must be less than or equal to the interval.
| Attribute | Value |
|---|---|
| Required | No |
| Type | Integer |
| Range | 1–180 |
| Update requires | No interruption |
HealthCheckCount
The number of consecutive health check failures before marking as unhealthy.
| Attribute | Value |
|---|---|
| Required | No |
| Type | Integer |
| Range | 1–10 |
| Update requires | No interruption |
HttpMethod
The HTTP method used for health checks. Only applies when the protocol is HTTP or HTTPS.
| Attribute | Value |
|---|---|
| Required | No |
| Type | String |
| Allowed values | GET | POST |
| Update requires | No interruption |
HealthCheckUrl
The URL path for HTTP health checks.
| Attribute | Value |
|---|---|
| Required | No |
| Type | String |
| Pattern | ^/[A-Za-z0-9/._?&=-]*$ |
| Length constraints | 1–50 |
| Update requires | No interruption |
ResponseCode
The expected HTTP response code for health checks.
| Attribute | Value |
|---|---|
| Required | No |
| Type | String |
| Range | 200–599 |
| Update requires | No interruption |
RequestData
The request data sent during health checks.
| Attribute | Value |
|---|---|
| Required | No |
| Type | String |
| Pattern | ^[a-zA-Z0-9_\W]*$ |
| Length constraints | Max: 255 |
| Update requires | No interruption |
Return Values
Ref
When you pass the logical ID of this resource to the Ref function, Ref returns the value of the Id.
Fn::GetAtt
| Attribute | Description |
|---|---|
| Name | The name of the LB Health Check. Used to identify the health check within the Loadbalancer service. |
| Protocol | The protocol used for the health check. |
| VpcId | The identifier of the VPC where the resource is located. |
| SubnetId | The identifier of the subnet where the resource is located. |
| Description | A brief explanation or note about this resource that identifies the purpose or usage of the resource. - maxLength : 255 |
| HealthCheckPort | The port number used for health checks. |
| HealthCheckInterval | The interval between health checks in seconds. |
| HealthCheckTimeout | The timeout for health check responses in seconds. Must be less than or equal to the interval. |
| HealthCheckCount | The number of consecutive health check failures before marking as unhealthy. |
| HttpMethod | The HTTP method used for health checks. Only applies when the protocol is HTTP or HTTPS. |
| HealthCheckUrl | The URL path for HTTP health checks. |
| ResponseCode | The expected HTTP response code for health checks. |
| RequestData | The request data sent during health checks. |
| HealthCheckType | The type of health check. |
| State | The current state of the Health Check. |
| AccountId | The account ID associated with the health check. |