ALIYUN::GA::EndpointGroup

更新时间:
复制 MD 格式

The ALIYUN::GA::EndpointGroup resource creates an endpoint group.

Syntax

{
  "Type": "ALIYUN::GA::EndpointGroup",
  "Properties": {
    "HealthCheckIntervalSeconds": Integer,
    "EndpointGroupRegion": String,
    "TrafficPercentage": Integer,
    "Description": String,
    "HealthCheckPath": String,
    "HealthCheckProtocol": String,
    "ThresholdCount": Integer,
    "HealthCheckPort": Integer,
    "AcceleratorId": String,
    "EndpointConfigurations": List,
    "Name": String,
    "ListenerId": String,
    "HealthCheckEnabled": Boolean,
    "EndpointGroupType": String,
    "EndpointRequestProtocol": String
  }
}

Properties

PropertyTypeRequiredUpdate AllowedDescriptionConstraints
HealthCheckIntervalSecondsIntegerNoYesThe interval between health checks.Unit: seconds.
EndpointGroupRegionStringYesNoThe region where the endpoint group is deployed.None
TrafficPercentageIntegerNoYesThe weight of the endpoint group when the listener is associated with multiple endpoint groups.None
DescriptionStringNoYesThe description of the endpoint group.None
HealthCheckPathStringNoYesThe path for the health check.None
HealthCheckProtocolStringNoYesThe protocol for the health check.Valid values:
  • tcp: TCP.
  • http: HTTP.
  • https: HTTPS.
ThresholdCountIntegerNoYesThe number of consecutive failed health checks that must occur before an endpoint is considered unhealthy.None
HealthCheckPortIntegerNoYesThe port used for the health check.None
AcceleratorIdStringYesNoThe ID of the Global Accelerator instance.None
EndpointConfigurationsListYesYesThe endpoints.A maximum of four endpoints can be specified.

For more information, see EndpointConfigurations properties.

NameStringNoYesThe name of the endpoint group.None
ListenerIdStringYesNoThe ID of the listener.None
HealthCheckEnabledBooleanNoYesSpecifies whether to enable the health check feature.Valid values:
  • true (default): Enables the health check feature.
  • false: Disables the health check feature.
EndpointGroupTypeStringNoNoThe type of the endpoint group.Valid values:
  • default (default): a default endpoint group.
  • virtual: a virtual endpoint group.
Note Only listeners that use HTTP or HTTPS support virtual endpoint groups.
EndpointRequestProtocolStringNoYesThe protocol of the backend service.Valid values:
  • HTTP (default)
  • HTTPS
Note
  • This parameter is available only when you create an endpoint group for a listener that uses HTTP or HTTPS.
  • For an HTTP listener, the backend service protocol must be HTTP.

EndpointConfigurations syntax

"EndpointConfigurations": [
  {
    "Type": String,
    "Endpoint": String,
    "Weight": Integer,
    "EnableClientIPPreservation": Boolean,
    "EnableProxyProtocol": Boolean
  }
]

EndpointConfigurations properties

Property NameTypeRequiredUpdate AllowedDescriptionConstraints
TypeStringYesYesThe type of the endpoint.Valid values:
  • Domain: a custom domain name.
  • Ip: a custom IP address.
EndpointStringYesYesThe IP address or domain name of the endpoint.None
WeightIntegerYesYesThe weight of the endpoint.None
EnableClientIPPreservationBooleanNoYesSpecifies whether to preserve client source IP addresses.Valid values:
  • true: Preserves client source IP addresses.
  • false (default): Does not preserve client source IP addresses.
EnableProxyProtocolBooleanNoYesSpecifies whether the TCP Option Address (TOA) module retrieves the IP address of the client that accesses the endpoint.None

Return values

Fn::GetAtt

EndpointGroupId: The ID of the endpoint group.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AcceleratorId:
        Type: String
        Description: The ID of the Global Accelerator instance with which the endpoint group will be associated.
      ListenerId:
        Type: String
        Description: The ID of the listener to be associated with the endpoint group.
    Resources:
      EndpointGroup:
        Type: ALIYUN::GA::EndpointGroup
        Properties:
          EndpointGroupRegion: cn-beijing
          AcceleratorId:
            Ref: AcceleratorId
          EndpointConfigurations:
            - Type: Ip
              Endpoint: 10.10.10.1
              Weight: 100
          Name: TestEndpointGroup
          ListenerId:
            Ref: ListenerId
    Outputs:
      EndpointGroupId:
        Description: The ID of the endpoint group.
        Value:
          Fn::GetAtt:
            - EndpointGroup
            - EndpointGroupId
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "AcceleratorId": {
          "Type": "String",
          "Description": "The ID of the Global Accelerator instance with which the endpoint group will be associated."
        },
        "ListenerId": {
          "Type": "String",
          "Description": "The ID of the listener to be associated with the endpoint group."
        }
      },
      "Resources": {
        "EndpointGroup": {
          "Type": "ALIYUN::GA::EndpointGroup",
          "Properties": {
            "EndpointGroupRegion": "cn-beijing",
            "AcceleratorId": {
              "Ref": "AcceleratorId"
            },
            "EndpointConfigurations": [
              {
                "Type": "Ip",
                "Endpoint": "10.10.10.1",
                "Weight": 100
              }
            ],
            "Name": "TestEndpointGroup",
            "ListenerId": {
              "Ref": "ListenerId"
            }
          }
        }
      },
      "Outputs": {
        "EndpointGroupId": {
          "Description": "The ID of the endpoint group.",
          "Value": {
            "Fn::GetAtt": [
              "EndpointGroup",
              "EndpointGroupId"
            ]
          }
        }
      }
    }