Skip to content

LoadBalancer

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

Initializers

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkslb/datasource"
datasource.NewLoadBalancer(scope Construct, id *string, props LoadBalancerProps, enableResourcePropertyConstraint *bool) LoadBalancer
Name Type Description
scope github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct No description.
id *string No description.
props LoadBalancerProps No description.
enableResourcePropertyConstraint *bool No description.

scopeRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct

idRequired

  • Type: *string

propsRequired


enableResourcePropertyConstraintOptional

  • Type: *bool

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

func ToString() *string

Returns a string representation of this construct.

Synthesize

func Synthesize(session ISynthesisSession)

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: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession

The synthesis session.


AddCondition

func AddCondition(condition RosCondition)

conditionRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition

AddCount

func AddCount(count interface{})

countRequired

  • Type: interface{}

AddDependency

func AddDependency(resource Resource)

resourceRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource

AddResourceDesc

func AddResourceDesc(desc *string)

descRequired

  • Type: *string

ApplyRemovalPolicy

func ApplyRemovalPolicy(policy RemovalPolicy)

policyRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy

GetAtt

func GetAtt(name *string) IResolvable

nameRequired

  • Type: *string

SetMetadata

func SetMetadata(key *string, value interface{})

keyRequired

  • Type: *string

valueRequired

  • Type: interface{}

Static Functions

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

IsConstruct

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkslb/datasource"
datasource.LoadBalancer_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

xRequired

  • Type: interface{}

Properties

Name Type Description
Node github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode The construct tree node associated with this construct.
Ref *string No description.
Stack github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack The stack in which this resource is defined.
Resource github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource No description.
AttrAddress github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Address: The service IP address of the CLB instance.
AttrAddressIpVersion github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute AddressIpVersion: The version of the IP address.
AttrAddressType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute AddressType: The address type of the CLB instance.
AttrAutoReleaseTime github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute AutoReleaseTime: The timestamp generated when the CLB instance is released.
AttrBackendServers github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute BackendServers: The backend servers of the CLB instance.
AttrBandwidth github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Bandwidth: The maximum bandwidth of the Internet-facing CLB instance that is billed on a pay-by-bandwidth basis.
AttrCreateTime github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute CreateTime: The time when the CLB instance was created.
AttrCreateTimeStamp github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute CreateTimeStamp: The timestamp generated when the CA certificate is uploaded.
AttrDeleteProtection github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute DeleteProtection: Indicates whether deletion protection is enabled for the CLB instance.
AttrEndTime github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute EndTime: The time when the CLB instance expires.
AttrEndTimeStamp github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute EndTimeStamp: The timestamp that indicates the expiration time of the CLB instance.
AttrInstanceChargeType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute InstanceChargeType: Instance billing method.
AttrInternetChargeType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute InternetChargeType: The metering method of the Internet-facing CLB instance.
AttrListenerPortsAndProtocal github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ListenerPortsAndProtocal: The ports or protocols of the listeners.
AttrListenerPortsAndProtocol github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ListenerPortsAndProtocol: The ports or protocols of the listeners.
AttrLoadBalancerId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute LoadBalancerId: The CLB instance ID.
AttrLoadBalancerName github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute LoadBalancerName: The name of the CLB instance.
AttrLoadBalancerSpec github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute LoadBalancerSpec: The specification of the CLB instance.
AttrMasterZoneId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute MasterZoneId: The ID of the primary zone to which the CLB instance belongs.
AttrModificationProtectionReason github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ModificationProtectionReason: The reason why the configuration read-only mode is enabled.
AttrModificationProtectionStatus github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ModificationProtectionStatus: Load balancing modifies the protection state.
AttrNetworkType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute NetworkType: The network type of the CLB instance.
AttrPaymentType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute PaymentType: Load balancing instance payment type.
AttrRegionIdAlias github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute RegionIdAlias: The alias of the region to which the CLB instance belongs.
AttrRenewalCycUnit github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute RenewalCycUnit: The auto-renewal cycle.
AttrRenewalDuration github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute RenewalDuration: The auto-renewal duration.
AttrRenewalStatus github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute RenewalStatus: Indicates whether auto-renewal is enabled.
AttrResourceGroupId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ResourceGroupId: The resource group ID.
AttrSlaveZoneId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute SlaveZoneId: The ID of the secondary zone to which the CLB instance belongs.
AttrTags github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Tags: The tags of the CLB instance.
AttrVpcId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute VpcId: The ID of the virtual private cloud (VPC) where the internal-facing CLB instance is deployed.
AttrVSwitchId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute VSwitchId: The ID of the vSwitch to which the internal-facing CLB instance belongs.

NodeRequired

func Node() ConstructNode
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode

The construct tree node associated with this construct.


RefRequired

func Ref() *string
  • Type: *string

StackRequired

func Stack() Stack
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack

The stack in which this resource is defined.


ResourceOptional

func Resource() RosResource
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource

AttrAddressRequired

func AttrAddress() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrAddressIpVersionRequired

func AttrAddressIpVersion() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute AddressIpVersion: The version of the IP address.

Valid values: ipv4 and ipv6.


AttrAddressTypeRequired

func AttrAddressType() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute AddressType: The address type of the CLB instance.


AttrAutoReleaseTimeRequired

func AttrAutoReleaseTime() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrBackendServersRequired

func AttrBackendServers() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute BackendServers: The backend servers of the CLB instance.


AttrBandwidthRequired

func AttrBandwidth() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrCreateTimeRequired

func AttrCreateTime() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrCreateTimeStampRequired

func AttrCreateTimeStamp() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrDeleteProtectionRequired

func AttrDeleteProtection() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrEndTimeRequired

func AttrEndTime() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute EndTime: The time when the CLB instance expires.


AttrEndTimeStampRequired

func AttrEndTimeStamp() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrInstanceChargeTypeRequired

func AttrInstanceChargeType() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute InstanceChargeType: Instance billing method.


AttrInternetChargeTypeRequired

func AttrInternetChargeType() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrListenerPortsAndProtocalRequired

func AttrListenerPortsAndProtocal() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute ListenerPortsAndProtocal: The ports or protocols of the listeners.


AttrListenerPortsAndProtocolRequired

func AttrListenerPortsAndProtocol() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute ListenerPortsAndProtocol: The ports or protocols of the listeners.


AttrLoadBalancerIdRequired

func AttrLoadBalancerId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute LoadBalancerId: The CLB instance ID.


AttrLoadBalancerNameRequired

func AttrLoadBalancerName() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute LoadBalancerName: The name of the CLB instance.


AttrLoadBalancerSpecRequired

func AttrLoadBalancerSpec() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute LoadBalancerSpec: The specification of the CLB instance.


AttrMasterZoneIdRequired

func AttrMasterZoneId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrModificationProtectionReasonRequired

func AttrModificationProtectionReason() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrModificationProtectionStatusRequired

func AttrModificationProtectionStatus() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute ModificationProtectionStatus: Load balancing modifies the protection state.


AttrNetworkTypeRequired

func AttrNetworkType() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute NetworkType: The network type of the CLB instance.


AttrPaymentTypeRequired

func AttrPaymentType() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute PaymentType: Load balancing instance payment type.


AttrRegionIdAliasRequired

func AttrRegionIdAlias() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrRenewalCycUnitRequired

func AttrRenewalCycUnit() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute RenewalCycUnit: The auto-renewal cycle.

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


AttrRenewalDurationRequired

func AttrRenewalDuration() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute RenewalDuration: The auto-renewal duration.

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


AttrRenewalStatusRequired

func AttrRenewalStatus() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute RenewalStatus: Indicates whether auto-renewal is enabled.


AttrResourceGroupIdRequired

func AttrResourceGroupId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute ResourceGroupId: The resource group ID.


AttrSlaveZoneIdRequired

func AttrSlaveZoneId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrTagsRequired

func AttrTags() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute Tags: The tags of the CLB instance.


AttrVpcIdRequired

func AttrVpcId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrVSwitchIdRequired

func AttrVSwitchId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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