Skip to content

EndpointGroup

This class encapsulates and extends the ROS resource type ALIYUN::GA::EndpointGroup.

Initializers

import com.aliyun.ros.cdk.ga.EndpointGroup;
EndpointGroup.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
    .acceleratorId(java.lang.String)
    .acceleratorId(IResolvable)
    .endpointConfigurations(IResolvable)
    .endpointConfigurations(java.util.List<IResolvable)
    .endpointConfigurations(EndpointConfigurationsProperty>)
    .endpointGroupRegion(java.lang.String)
    .endpointGroupRegion(IResolvable)
    .listenerId(java.lang.String)
    .listenerId(IResolvable)
//  .description(java.lang.String)
//  .description(IResolvable)
//  .endpointGroupType(java.lang.String)
//  .endpointGroupType(IResolvable)
//  .endpointIpVersion(java.lang.String)
//  .endpointIpVersion(IResolvable)
//  .endpointProtocolVersion(java.lang.String)
//  .endpointProtocolVersion(IResolvable)
//  .endpointRequestProtocol(java.lang.String)
//  .endpointRequestProtocol(IResolvable)
//  .healthCheckEnabled(java.lang.Boolean)
//  .healthCheckEnabled(IResolvable)
//  .healthCheckHost(java.lang.String)
//  .healthCheckHost(IResolvable)
//  .healthCheckIntervalSeconds(java.lang.Number)
//  .healthCheckIntervalSeconds(IResolvable)
//  .healthCheckPath(java.lang.String)
//  .healthCheckPath(IResolvable)
//  .healthCheckPort(java.lang.Number)
//  .healthCheckPort(IResolvable)
//  .healthCheckProtocol(java.lang.String)
//  .healthCheckProtocol(IResolvable)
//  .name(java.lang.String)
//  .name(IResolvable)
//  .portOverrides(IResolvable)
//  .portOverrides(java.util.List<IResolvable)
//  .portOverrides(PortOverridesProperty>)
//  .tags(java.util.List<TagsProperty>)
//  .thresholdCount(java.lang.Number)
//  .thresholdCount(IResolvable)
//  .trafficPercentage(java.lang.Number)
//  .trafficPercentage(IResolvable)
    .build();
Name Type Description
scope com.aliyun.ros.cdk.core.Construct No description.
id java.lang.String No description.
enableResourcePropertyConstraint java.lang.Boolean No description.
acceleratorId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property acceleratorId: The ID of the Global Accelerator instance with which the endpoint group will be associated.
endpointConfigurations com.aliyun.ros.cdk.core.IResolvable OR java.util.ListEndpointConfigurationsProperty> Property endpointConfigurations:.
endpointGroupRegion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property endpointGroupRegion: The region ID of the endpoint group.
listenerId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property listenerId: The ID of the listener to be associated with the endpoint group.
description java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property description: The description of the endpoint group.
endpointGroupType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property endpointGroupType: The type of the endpoint group.
endpointIpVersion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property endpointIpVersion: The IP address protocol version of the backend service.
endpointProtocolVersion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property endpointProtocolVersion: The protocol version of the backend service.
endpointRequestProtocol java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property endpointRequestProtocol: The protocol used by the backend service.
healthCheckEnabled java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property healthCheckEnabled: Specifies whether to enable the health check feature.
healthCheckHost java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property healthCheckHost: The domain name that is used for health checks.
healthCheckIntervalSeconds java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property healthCheckIntervalSeconds: The interval between two consecutive health checks.
healthCheckPath java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property healthCheckPath: The path set as the destination on the targets for health checks.
healthCheckPort java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property healthCheckPort: The port that is used to connect with the targets for health checks.
healthCheckProtocol java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property healthCheckProtocol: The protocol that is used to connect with the targets for health checks.
name java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property name: The name of the endpoint group.
portOverrides com.aliyun.ros.cdk.core.IResolvable OR java.util.ListPortOverridesProperty> Property portOverrides: The port mapping relationship of the endpoint group.
tags java.util.List<TagsProperty> Property tags: Tags to attach to endpoint group.
thresholdCount java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property thresholdCount: The number of consecutive health check failures that must occur before a healthy endpoint is considered unhealthy, or the number of consecutive health check successes that must occur before an unhealthy endpoint is considered healthy.
trafficPercentage java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property trafficPercentage: The weight of the endpoint group when the corresponding listener is associated with multiple endpoint groups.

scopeRequired

  • Type: com.aliyun.ros.cdk.core.Construct

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

acceleratorIdRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property acceleratorId: The ID of the Global Accelerator instance with which the endpoint group will be associated.


endpointConfigurationsRequired

  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListEndpointConfigurationsProperty>

Property endpointConfigurations:.


endpointGroupRegionRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property endpointGroupRegion: The region ID of the endpoint group.


listenerIdRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property listenerId: The ID of the listener to be associated with the endpoint group.


descriptionOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property description: The description of the endpoint group.


endpointGroupTypeOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property endpointGroupType: The type of the endpoint group.

Valid values: default: The endpoint group is a default endpoint group. This is the default value. virtual: The endpoint group is a virtual endpoint group. Note Only HTTP and HTTPS listeners support virtual endpoint groups.


endpointIpVersionOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property endpointIpVersion: The IP address protocol version of the backend service.

Valid values: IPv4 IPv6 ProtocolAffinity


endpointProtocolVersionOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property endpointProtocolVersion: The protocol version of the backend service.

Valid values: HTTP1.1 HTTP2 Note This parameter is valid only when the listener uses HTTPS.


endpointRequestProtocolOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property endpointRequestProtocol: The protocol used by the backend service.

Valid values: HTTP: This is the default value. HTTPS Note: You can set this parameter only when the listener that is associated with the endpoint group uses HTTP or HTTPS. For an HTTP listener, the backend service protocol must be HTTP.


healthCheckEnabledOptional

  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property healthCheckEnabled: Specifies whether to enable the health check feature.


healthCheckHostOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property healthCheckHost: The domain name that is used for health checks.


healthCheckIntervalSecondsOptional

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property healthCheckIntervalSeconds: The interval between two consecutive health checks.

Unit: seconds.


healthCheckPathOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property healthCheckPath: The path set as the destination on the targets for health checks.


healthCheckPortOptional

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property healthCheckPort: The port that is used to connect with the targets for health checks.


healthCheckProtocolOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property healthCheckProtocol: The protocol that is used to connect with the targets for health checks.

tcp: TCP protocol http: HTTP protocol https: HTTPS protocol


nameOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property name: The name of the endpoint group.


portOverridesOptional

  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListPortOverridesProperty>

Property portOverrides: The port mapping relationship of the endpoint group.


tagsOptional

Property tags: Tags to attach to endpoint group.

Max support 20 tags to add during create endpoint group. Each tag with two properties Key and Value, and Key is required.


thresholdCountOptional

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property thresholdCount: The number of consecutive health check failures that must occur before a healthy endpoint is considered unhealthy, or the number of consecutive health check successes that must occur before an unhealthy endpoint is considered healthy.

Valid values: 2 to 10. Default value: 3.


trafficPercentageOptional

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property trafficPercentage: The weight of the endpoint group when the corresponding listener is associated with multiple endpoint groups.


Methods

Name Description
toString Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
addCondition No description.
addCount No description.
addDependency No description.
addResourceDesc No description.
applyRemovalPolicy No description.
fetchCondition No description.
fetchDependency No description.
fetchResourceDesc No description.
getAtt No description.
setMetadata No description.

toString

public java.lang.String toString()

Returns a string representation of this construct.

synthesize

public void synthesize(ISynthesisSession session)

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

sessionRequired

  • Type: com.aliyun.ros.cdk.core.ISynthesisSession

The synthesis session.


addCondition

public void addCondition(RosCondition condition)

conditionRequired

  • Type: com.aliyun.ros.cdk.core.RosCondition

addCount

public void addCount(java.lang.Number OR IResolvable count)

countRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

addDependency

public void addDependency(Resource resource)

resourceRequired

  • Type: com.aliyun.ros.cdk.core.Resource

addResourceDesc

public void addResourceDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy(RemovalPolicy policy)

policyRequired

  • Type: com.aliyun.ros.cdk.core.RemovalPolicy

fetchCondition

public RosCondition fetchCondition()

fetchDependency

public java.util.List<java.lang.String> fetchDependency()

fetchResourceDesc

public java.lang.String fetchResourceDesc()

getAtt

public IResolvable getAtt(java.lang.String name)

nameRequired

  • Type: java.lang.String

setMetadata

public void setMetadata(java.lang.String key, java.lang.Object value)

keyRequired

  • Type: java.lang.String

valueRequired

  • Type: java.lang.Object

Static Functions

Name Description
isConstruct Return whether the given object is a Construct.

isConstruct

import com.aliyun.ros.cdk.ga.EndpointGroup;
EndpointGroup.isConstruct(java.lang.Object x)

Return whether the given object is a Construct.

xRequired

  • Type: java.lang.Object

Properties

Name Type Description
node com.aliyun.ros.cdk.core.ConstructNode The construct tree node associated with this construct.
env com.aliyun.ros.cdk.core.IResourceEnvironment The environment this resource belongs to.
ref java.lang.String No description.
stack com.aliyun.ros.cdk.core.Stack The stack in which this resource is defined.
resource com.aliyun.ros.cdk.core.RosResource No description.
attrEndpointGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute EndpointGroupId: The ID of the endpoint group.
props EndpointGroupProps No description.

nodeRequired

public ConstructNode getNode();
  • Type: com.aliyun.ros.cdk.core.ConstructNode

The construct tree node associated with this construct.


envRequired

public IResourceEnvironment getEnv();
  • Type: com.aliyun.ros.cdk.core.IResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


refRequired

public java.lang.String getRef();
  • Type: java.lang.String

stackRequired

public Stack getStack();
  • Type: com.aliyun.ros.cdk.core.Stack

The stack in which this resource is defined.


resourceOptional

public RosResource getResource();
  • Type: com.aliyun.ros.cdk.core.RosResource

attrEndpointGroupIdRequired

public java.lang.Object getAttrEndpointGroupId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute EndpointGroupId: The ID of the endpoint group.


propsRequired

public EndpointGroupProps getProps();