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.

AttributeValue
RequiredYes
TypeString
Pattern^[a-zA-Z0-9][-a-zA-Z0-9_]*[a-zA-Z0-9]$
Length constraints3–63
Update requiresReplacement

Protocol

The protocol used for the health check.

AttributeValue
RequiredYes
TypeString
Allowed valuesTCP | HTTP | HTTPS
Update requiresNo interruption

VpcId

The identifier of the VPC where the resource is located.

AttributeValue
RequiredYes
TypeString
Update requiresReplacement

SubnetId

The identifier of the subnet where the resource is located.

AttributeValue
RequiredYes
TypeString
Update requiresReplacement

Description

A brief explanation or note about this resource that identifies the purpose or usage of the resource. - maxLength : 255

AttributeValue
RequiredNo
TypeString
Length constraintsMax: 255
Update requiresNo interruption

HealthCheckPort

The port number used for health checks.

AttributeValue
RequiredNo
TypeInteger
Range1–65534
Update requiresNo interruption

HealthCheckInterval

The interval between health checks in seconds.

AttributeValue
RequiredNo
TypeInteger
Range1–180
Update requiresNo interruption

HealthCheckTimeout

The timeout for health check responses in seconds. Must be less than or equal to the interval.

AttributeValue
RequiredNo
TypeInteger
Range1–180
Update requiresNo interruption

HealthCheckCount

The number of consecutive health check failures before marking as unhealthy.

AttributeValue
RequiredNo
TypeInteger
Range1–10
Update requiresNo interruption

HttpMethod

The HTTP method used for health checks. Only applies when the protocol is HTTP or HTTPS.

AttributeValue
RequiredNo
TypeString
Allowed valuesGET | POST
Update requiresNo interruption

HealthCheckUrl

The URL path for HTTP health checks.

AttributeValue
RequiredNo
TypeString
Pattern^/[A-Za-z0-9/._?&=-]*$
Length constraints1–50
Update requiresNo interruption

ResponseCode

The expected HTTP response code for health checks.

AttributeValue
RequiredNo
TypeString
Range200–599
Update requiresNo interruption

RequestData

The request data sent during health checks.

AttributeValue
RequiredNo
TypeString
Pattern^[a-zA-Z0-9_\W]*$
Length constraintsMax: 255
Update requiresNo 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

AttributeDescription
NameThe name of the LB Health Check. Used to identify the health check within the Loadbalancer service.
ProtocolThe protocol used for the health check.
VpcIdThe identifier of the VPC where the resource is located.
SubnetIdThe identifier of the subnet where the resource is located.
DescriptionA brief explanation or note about this resource that identifies the purpose or usage of the resource. - maxLength : 255
HealthCheckPortThe port number used for health checks.
HealthCheckIntervalThe interval between health checks in seconds.
HealthCheckTimeoutThe timeout for health check responses in seconds. Must be less than or equal to the interval.
HealthCheckCountThe number of consecutive health check failures before marking as unhealthy.
HttpMethodThe HTTP method used for health checks. Only applies when the protocol is HTTP or HTTPS.
HealthCheckUrlThe URL path for HTTP health checks.
ResponseCodeThe expected HTTP response code for health checks.
RequestDataThe request data sent during health checks.
HealthCheckTypeThe type of health check.
StateThe current state of the Health Check.
AccountIdThe account ID associated with the health check.