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. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
loadBalancerId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property loadBalancerId: The CLB instance ID.
refreshOptions
Optional
- 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.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- 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.
- 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. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public java.lang.String getRef();
- Type: java.lang.String
stack
Required
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resource
Optional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrAddress
Required
public IResolvable getAttrAddress();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Address: The service IP address of the CLB instance.
attrAddressIpVersion
Required
public IResolvable getAttrAddressIpVersion();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute AddressIpVersion: The version of the IP address.
Valid values: ipv4 and ipv6.
attrAddressType
Required
public IResolvable getAttrAddressType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute AddressType: The address type of the CLB instance.
attrAutoReleaseTime
Required
public IResolvable getAttrAutoReleaseTime();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute AutoReleaseTime: The timestamp generated when the CLB instance is released.
attrBackendServers
Required
public IResolvable getAttrBackendServers();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute BackendServers: The backend servers of the CLB instance.
attrBandwidth
Required
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.
attrCreateTime
Required
public IResolvable getAttrCreateTime();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute CreateTime: The time when the CLB instance was created.
attrCreateTimeStamp
Required
public IResolvable getAttrCreateTimeStamp();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute CreateTimeStamp: The timestamp generated when the CA certificate is uploaded.
attrDeleteProtection
Required
public IResolvable getAttrDeleteProtection();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DeleteProtection: Indicates whether deletion protection is enabled for the CLB instance.
attrEndTime
Required
public IResolvable getAttrEndTime();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute EndTime: The time when the CLB instance expires.
attrEndTimeStamp
Required
public IResolvable getAttrEndTimeStamp();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute EndTimeStamp: The timestamp that indicates the expiration time of the CLB instance.
attrInstanceChargeType
Required
public IResolvable getAttrInstanceChargeType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute InstanceChargeType: Instance billing method.
attrInternetChargeType
Required
public IResolvable getAttrInternetChargeType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute InternetChargeType: The metering method of the Internet-facing CLB instance.
attrListenerPortsAndProtocal
Required
public IResolvable getAttrListenerPortsAndProtocal();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ListenerPortsAndProtocal: The ports or protocols of the listeners.
attrListenerPortsAndProtocol
Required
public IResolvable getAttrListenerPortsAndProtocol();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ListenerPortsAndProtocol: The ports or protocols of the listeners.
attrLoadBalancerId
Required
public IResolvable getAttrLoadBalancerId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute LoadBalancerId: The CLB instance ID.
attrLoadBalancerName
Required
public IResolvable getAttrLoadBalancerName();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute LoadBalancerName: The name of the CLB instance.
attrLoadBalancerSpec
Required
public IResolvable getAttrLoadBalancerSpec();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute LoadBalancerSpec: The specification of the CLB instance.
attrMasterZoneId
Required
public IResolvable getAttrMasterZoneId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute MasterZoneId: The ID of the primary zone to which the CLB instance belongs.
attrModificationProtectionReason
Required
public IResolvable getAttrModificationProtectionReason();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ModificationProtectionReason: The reason why the configuration read-only mode is enabled.
attrModificationProtectionStatus
Required
public IResolvable getAttrModificationProtectionStatus();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ModificationProtectionStatus: Load balancing modifies the protection state.
attrNetworkType
Required
public IResolvable getAttrNetworkType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute NetworkType: The network type of the CLB instance.
attrPaymentType
Required
public IResolvable getAttrPaymentType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PaymentType: Load balancing instance payment type.
attrRegionIdAlias
Required
public IResolvable getAttrRegionIdAlias();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute RegionIdAlias: The alias of the region to which the CLB instance belongs.
attrRenewalCycUnit
Required
public IResolvable getAttrRenewalCycUnit();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute RenewalCycUnit: The auto-renewal cycle.
Valid values: Year and Month. Default value: Month.
attrRenewalDuration
Required
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.
attrRenewalStatus
Required
public IResolvable getAttrRenewalStatus();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute RenewalStatus: Indicates whether auto-renewal is enabled.
attrResourceGroupId
Required
public IResolvable getAttrResourceGroupId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ResourceGroupId: The resource group ID.
attrSlaveZoneId
Required
public IResolvable getAttrSlaveZoneId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute SlaveZoneId: The ID of the secondary zone to which the CLB instance belongs.
attrTags
Required
public IResolvable getAttrTags();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Tags: The tags of the CLB instance.
attrVpcId
Required
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.
attrVSwitchId
Required
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.