Skip to content

LoadBalancer

This class encapsulates and extends the ROS resource type DATASOURCE::SLB::LoadBalancer.

Initializers

import com.aliyun.ros.cdk.slb.datasource.LoadBalancer;
LoadBalancer.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
    .loadBalancerId(java.lang.String)
    .loadBalancerId(IResolvable)
//  .refreshOptions(java.lang.String)
//  .refreshOptions(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.
loadBalancerId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property loadBalancerId: The CLB instance ID.
refreshOptions java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

scopeRequired

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

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

loadBalancerIdRequired

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

Property loadBalancerId: The CLB instance ID.


refreshOptionsOptional

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

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values:

  • Never: Never refresh the datasource resource when the stack is updated.
  • Always: Always refresh the datasource resource when the stack is updated. Default is Never.

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.
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

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.slb.datasource.LoadBalancer;
LoadBalancer.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.
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.
attrAddress com.aliyun.ros.cdk.core.IResolvable Attribute Address: The service IP address of the CLB instance.
attrAddressIpVersion com.aliyun.ros.cdk.core.IResolvable Attribute AddressIpVersion: The version of the IP address.
attrAddressType com.aliyun.ros.cdk.core.IResolvable Attribute AddressType: The address type of the CLB instance.
attrAutoReleaseTime com.aliyun.ros.cdk.core.IResolvable Attribute AutoReleaseTime: The timestamp generated when the CLB instance is released.
attrBackendServers com.aliyun.ros.cdk.core.IResolvable Attribute BackendServers: The backend servers of the CLB instance.
attrBandwidth com.aliyun.ros.cdk.core.IResolvable Attribute Bandwidth: The maximum bandwidth of the Internet-facing CLB instance that is billed on a pay-by-bandwidth basis.
attrCreateTime com.aliyun.ros.cdk.core.IResolvable Attribute CreateTime: The time when the CLB instance was created.
attrCreateTimeStamp com.aliyun.ros.cdk.core.IResolvable Attribute CreateTimeStamp: The timestamp generated when the CA certificate is uploaded.
attrDeleteProtection com.aliyun.ros.cdk.core.IResolvable Attribute DeleteProtection: Indicates whether deletion protection is enabled for the CLB instance.
attrEndTime com.aliyun.ros.cdk.core.IResolvable Attribute EndTime: The time when the CLB instance expires.
attrEndTimeStamp com.aliyun.ros.cdk.core.IResolvable Attribute EndTimeStamp: The timestamp that indicates the expiration time of the CLB instance.
attrInstanceChargeType com.aliyun.ros.cdk.core.IResolvable Attribute InstanceChargeType: Instance billing method.
attrInternetChargeType com.aliyun.ros.cdk.core.IResolvable Attribute InternetChargeType: The metering method of the Internet-facing CLB instance.
attrListenerPortsAndProtocal com.aliyun.ros.cdk.core.IResolvable Attribute ListenerPortsAndProtocal: The ports or protocols of the listeners.
attrListenerPortsAndProtocol com.aliyun.ros.cdk.core.IResolvable Attribute ListenerPortsAndProtocol: The ports or protocols of the listeners.
attrLoadBalancerId com.aliyun.ros.cdk.core.IResolvable Attribute LoadBalancerId: The CLB instance ID.
attrLoadBalancerName com.aliyun.ros.cdk.core.IResolvable Attribute LoadBalancerName: The name of the CLB instance.
attrLoadBalancerSpec com.aliyun.ros.cdk.core.IResolvable Attribute LoadBalancerSpec: The specification of the CLB instance.
attrMasterZoneId com.aliyun.ros.cdk.core.IResolvable Attribute MasterZoneId: The ID of the primary zone to which the CLB instance belongs.
attrModificationProtectionReason com.aliyun.ros.cdk.core.IResolvable Attribute ModificationProtectionReason: The reason why the configuration read-only mode is enabled.
attrModificationProtectionStatus com.aliyun.ros.cdk.core.IResolvable Attribute ModificationProtectionStatus: Load balancing modifies the protection state.
attrNetworkType com.aliyun.ros.cdk.core.IResolvable Attribute NetworkType: The network type of the CLB instance.
attrPaymentType com.aliyun.ros.cdk.core.IResolvable Attribute PaymentType: Load balancing instance payment type.
attrRegionIdAlias com.aliyun.ros.cdk.core.IResolvable Attribute RegionIdAlias: The alias of the region to which the CLB instance belongs.
attrRenewalCycUnit com.aliyun.ros.cdk.core.IResolvable Attribute RenewalCycUnit: The auto-renewal cycle.
attrRenewalDuration com.aliyun.ros.cdk.core.IResolvable Attribute RenewalDuration: The auto-renewal duration.
attrRenewalStatus com.aliyun.ros.cdk.core.IResolvable Attribute RenewalStatus: Indicates whether auto-renewal is enabled.
attrResourceGroupId com.aliyun.ros.cdk.core.IResolvable Attribute ResourceGroupId: The resource group ID.
attrSlaveZoneId com.aliyun.ros.cdk.core.IResolvable Attribute SlaveZoneId: The ID of the secondary zone to which the CLB instance belongs.
attrTags com.aliyun.ros.cdk.core.IResolvable Attribute Tags: The tags of the CLB instance.
attrVpcId com.aliyun.ros.cdk.core.IResolvable Attribute VpcId: The ID of the virtual private cloud (VPC) where the internal-facing CLB instance is deployed.
attrVSwitchId com.aliyun.ros.cdk.core.IResolvable Attribute VSwitchId: The ID of the vSwitch to which the internal-facing CLB instance belongs.

nodeRequired

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

The construct tree node associated with this construct.


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

attrAddressRequired

public IResolvable getAttrAddress();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute Address: The service IP address of the CLB instance.


attrAddressIpVersionRequired

public IResolvable getAttrAddressIpVersion();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute AddressIpVersion: The version of the IP address.

Valid values: ipv4 and ipv6.


attrAddressTypeRequired

public IResolvable getAttrAddressType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute AddressType: The address type of the CLB instance.


attrAutoReleaseTimeRequired

public IResolvable getAttrAutoReleaseTime();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute AutoReleaseTime: The timestamp generated when the CLB instance is released.


attrBackendServersRequired

public IResolvable getAttrBackendServers();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute BackendServers: The backend servers of the CLB instance.


attrBandwidthRequired

public IResolvable getAttrBandwidth();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute Bandwidth: The maximum bandwidth of the Internet-facing CLB instance that is billed on a pay-by-bandwidth basis.


attrCreateTimeRequired

public IResolvable getAttrCreateTime();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute CreateTime: The time when the CLB instance was created.


attrCreateTimeStampRequired

public IResolvable getAttrCreateTimeStamp();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute CreateTimeStamp: The timestamp generated when the CA certificate is uploaded.


attrDeleteProtectionRequired

public IResolvable getAttrDeleteProtection();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute DeleteProtection: Indicates whether deletion protection is enabled for the CLB instance.


attrEndTimeRequired

public IResolvable getAttrEndTime();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute EndTime: The time when the CLB instance expires.


attrEndTimeStampRequired

public IResolvable getAttrEndTimeStamp();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute EndTimeStamp: The timestamp that indicates the expiration time of the CLB instance.


attrInstanceChargeTypeRequired

public IResolvable getAttrInstanceChargeType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute InstanceChargeType: Instance billing method.


attrInternetChargeTypeRequired

public IResolvable getAttrInternetChargeType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute InternetChargeType: The metering method of the Internet-facing CLB instance.


attrListenerPortsAndProtocalRequired

public IResolvable getAttrListenerPortsAndProtocal();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ListenerPortsAndProtocal: The ports or protocols of the listeners.


attrListenerPortsAndProtocolRequired

public IResolvable getAttrListenerPortsAndProtocol();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ListenerPortsAndProtocol: The ports or protocols of the listeners.


attrLoadBalancerIdRequired

public IResolvable getAttrLoadBalancerId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute LoadBalancerId: The CLB instance ID.


attrLoadBalancerNameRequired

public IResolvable getAttrLoadBalancerName();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute LoadBalancerName: The name of the CLB instance.


attrLoadBalancerSpecRequired

public IResolvable getAttrLoadBalancerSpec();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute LoadBalancerSpec: The specification of the CLB instance.


attrMasterZoneIdRequired

public IResolvable getAttrMasterZoneId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute MasterZoneId: The ID of the primary zone to which the CLB instance belongs.


attrModificationProtectionReasonRequired

public IResolvable getAttrModificationProtectionReason();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ModificationProtectionReason: The reason why the configuration read-only mode is enabled.


attrModificationProtectionStatusRequired

public IResolvable getAttrModificationProtectionStatus();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ModificationProtectionStatus: Load balancing modifies the protection state.


attrNetworkTypeRequired

public IResolvable getAttrNetworkType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute NetworkType: The network type of the CLB instance.


attrPaymentTypeRequired

public IResolvable getAttrPaymentType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute PaymentType: Load balancing instance payment type.


attrRegionIdAliasRequired

public IResolvable getAttrRegionIdAlias();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute RegionIdAlias: The alias of the region to which the CLB instance belongs.


attrRenewalCycUnitRequired

public IResolvable getAttrRenewalCycUnit();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute RenewalCycUnit: The auto-renewal cycle.

Valid values: Year and Month. Default value: Month.


attrRenewalDurationRequired

public IResolvable getAttrRenewalDuration();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute RenewalDuration: The auto-renewal duration.

This parameter is valid only if RenewalStatus is set to AutoRenewal.


attrRenewalStatusRequired

public IResolvable getAttrRenewalStatus();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute RenewalStatus: Indicates whether auto-renewal is enabled.


attrResourceGroupIdRequired

public IResolvable getAttrResourceGroupId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ResourceGroupId: The resource group ID.


attrSlaveZoneIdRequired

public IResolvable getAttrSlaveZoneId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute SlaveZoneId: The ID of the secondary zone to which the CLB instance belongs.


attrTagsRequired

public IResolvable getAttrTags();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute Tags: The tags of the CLB instance.


attrVpcIdRequired

public IResolvable getAttrVpcId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute VpcId: The ID of the virtual private cloud (VPC) where the internal-facing CLB instance is deployed.


attrVSwitchIdRequired

public IResolvable getAttrVSwitchId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute VSwitchId: The ID of the vSwitch to which the internal-facing CLB instance belongs.