Skip to content

LoadBalancer

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

Initializers

import { datasource } from '@alicloud/ros-cdk-slb'
new datasource.LoadBalancer(scope: Construct, id: string, props: LoadBalancerProps, enableResourcePropertyConstraint?: boolean)
Name Type Description
scope @alicloud/ros-cdk-core.Construct No description.
id string No description.
props LoadBalancerProps No description.
enableResourcePropertyConstraint boolean No description.

scopeRequired

  • Type: @alicloud/ros-cdk-core.Construct

idRequired

  • Type: string

propsRequired


enableResourcePropertyConstraintOptional

  • Type: boolean

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 toString(): string

Returns a string representation of this construct.

synthesize

public synthesize(session: ISynthesisSession): void

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: @alicloud/ros-cdk-core.ISynthesisSession

The synthesis session.


addCondition

public addCondition(condition: RosCondition): void

conditionRequired

  • Type: @alicloud/ros-cdk-core.RosCondition

addCount

public addCount(count: number | IResolvable): void

countRequired

  • Type: number | @alicloud/ros-cdk-core.IResolvable

addDependency

public addDependency(resource: Resource): void

resourceRequired

  • Type: @alicloud/ros-cdk-core.Resource

addResourceDesc

public addResourceDesc(desc: string): void

descRequired

  • Type: string

applyRemovalPolicy

public applyRemovalPolicy(policy: RemovalPolicy): void

policyRequired

  • Type: @alicloud/ros-cdk-core.RemovalPolicy

getAtt

public getAtt(name: string): IResolvable

nameRequired

  • Type: string

setMetadata

public setMetadata(key: string, value: any): void

keyRequired

  • Type: string

valueRequired

  • Type: any

Static Functions

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

isConstruct

import { datasource } from '@alicloud/ros-cdk-slb'
datasource.LoadBalancer.isConstruct(x: any)

Return whether the given object is a Construct.

xRequired

  • Type: any

Properties

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

nodeRequired

public readonly node: ConstructNode;
  • Type: @alicloud/ros-cdk-core.ConstructNode

The construct tree node associated with this construct.


refRequired

public readonly ref: string;
  • Type: string

stackRequired

public readonly stack: Stack;
  • Type: @alicloud/ros-cdk-core.Stack

The stack in which this resource is defined.


resourceOptional

public readonly resource: RosResource;
  • Type: @alicloud/ros-cdk-core.RosResource

attrAddressRequired

public readonly attrAddress: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

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


attrAddressIpVersionRequired

public readonly attrAddressIpVersion: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute AddressIpVersion: The version of the IP address.

Valid values: ipv4 and ipv6.


attrAddressTypeRequired

public readonly attrAddressType: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute AddressType: The address type of the CLB instance.


attrAutoReleaseTimeRequired

public readonly attrAutoReleaseTime: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

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


attrBackendServersRequired

public readonly attrBackendServers: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute BackendServers: The backend servers of the CLB instance.


attrBandwidthRequired

public readonly attrBandwidth: IResolvable;
  • Type: @alicloud/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 readonly attrCreateTime: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

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


attrCreateTimeStampRequired

public readonly attrCreateTimeStamp: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

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


attrDeleteProtectionRequired

public readonly attrDeleteProtection: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

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


attrEndTimeRequired

public readonly attrEndTime: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute EndTime: The time when the CLB instance expires.


attrEndTimeStampRequired

public readonly attrEndTimeStamp: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

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


attrInstanceChargeTypeRequired

public readonly attrInstanceChargeType: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute InstanceChargeType: Instance billing method.


attrInternetChargeTypeRequired

public readonly attrInternetChargeType: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

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


attrListenerPortsAndProtocalRequired

public readonly attrListenerPortsAndProtocal: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute ListenerPortsAndProtocal: The ports or protocols of the listeners.


attrListenerPortsAndProtocolRequired

public readonly attrListenerPortsAndProtocol: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute ListenerPortsAndProtocol: The ports or protocols of the listeners.


attrLoadBalancerIdRequired

public readonly attrLoadBalancerId: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute LoadBalancerId: The CLB instance ID.


attrLoadBalancerNameRequired

public readonly attrLoadBalancerName: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute LoadBalancerName: The name of the CLB instance.


attrLoadBalancerSpecRequired

public readonly attrLoadBalancerSpec: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute LoadBalancerSpec: The specification of the CLB instance.


attrMasterZoneIdRequired

public readonly attrMasterZoneId: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

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


attrModificationProtectionReasonRequired

public readonly attrModificationProtectionReason: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

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


attrModificationProtectionStatusRequired

public readonly attrModificationProtectionStatus: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute ModificationProtectionStatus: Load balancing modifies the protection state.


attrNetworkTypeRequired

public readonly attrNetworkType: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute NetworkType: The network type of the CLB instance.


attrPaymentTypeRequired

public readonly attrPaymentType: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute PaymentType: Load balancing instance payment type.


attrRegionIdAliasRequired

public readonly attrRegionIdAlias: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

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


attrRenewalCycUnitRequired

public readonly attrRenewalCycUnit: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute RenewalCycUnit: The auto-renewal cycle.

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


attrRenewalDurationRequired

public readonly attrRenewalDuration: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute RenewalDuration: The auto-renewal duration.

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


attrRenewalStatusRequired

public readonly attrRenewalStatus: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute RenewalStatus: Indicates whether auto-renewal is enabled.


attrResourceGroupIdRequired

public readonly attrResourceGroupId: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute ResourceGroupId: The resource group ID.


attrSlaveZoneIdRequired

public readonly attrSlaveZoneId: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

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


attrTagsRequired

public readonly attrTags: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute Tags: The tags of the CLB instance.


attrVpcIdRequired

public readonly attrVpcId: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

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


attrVSwitchIdRequired

public readonly attrVSwitchId: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

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