Skip to content

LoadBalancer

  • Implements: github.com/alibabacloud-go/ros-cdk/alicloudroscdkslb.datasource.ILoadBalancer

This class encapsulates and extends the ROS resource type DATASOURCE::SLB::LoadBalancer, which is used to query the information about a Classic Load Balancer (CLB) instance.

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.
FetchCondition No description.
FetchDependency No description.
FetchResourceDesc 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

FetchCondition

func FetchCondition() RosCondition

FetchDependency

func FetchDependency() *[]*string

FetchResourceDesc

func FetchResourceDesc() *string

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

NodeRequired

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

The construct tree node associated with this construct.


EnvRequired

func Env() IResourceEnvironment
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

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() interface{}
  • Type: interface{}

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


AttrAddressIpVersionRequired

func AttrAddressIpVersion() interface{}
  • Type: interface{}

Attribute AddressIpVersion: The version of the IP address.

Valid values: ipv4 and ipv6.


AttrAddressTypeRequired

func AttrAddressType() interface{}
  • Type: interface{}

Attribute AddressType: The address type of the CLB instance.


AttrAutoReleaseTimeRequired

func AttrAutoReleaseTime() interface{}
  • Type: interface{}

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


AttrBackendServersRequired

func AttrBackendServers() interface{}
  • Type: interface{}

Attribute BackendServers: The backend servers of the CLB instance.


AttrBandwidthRequired

func AttrBandwidth() interface{}
  • Type: interface{}

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


AttrCreateTimeRequired

func AttrCreateTime() interface{}
  • Type: interface{}

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


AttrCreateTimeStampRequired

func AttrCreateTimeStamp() interface{}
  • Type: interface{}

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


AttrDeleteProtectionRequired

func AttrDeleteProtection() interface{}
  • Type: interface{}

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


AttrEndTimeRequired

func AttrEndTime() interface{}
  • Type: interface{}

Attribute EndTime: The time when the CLB instance expires.


AttrEndTimeStampRequired

func AttrEndTimeStamp() interface{}
  • Type: interface{}

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


AttrInstanceChargeTypeRequired

func AttrInstanceChargeType() interface{}
  • Type: interface{}

Attribute InstanceChargeType: Instance billing method.


AttrInternetChargeTypeRequired

func AttrInternetChargeType() interface{}
  • Type: interface{}

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


AttrListenerPortsAndProtocalRequired

func AttrListenerPortsAndProtocal() interface{}
  • Type: interface{}

Attribute ListenerPortsAndProtocal: The ports or protocols of the listeners.


AttrListenerPortsAndProtocolRequired

func AttrListenerPortsAndProtocol() interface{}
  • Type: interface{}

Attribute ListenerPortsAndProtocol: The ports or protocols of the listeners.


AttrLoadBalancerIdRequired

func AttrLoadBalancerId() interface{}
  • Type: interface{}

Attribute LoadBalancerId: The CLB instance ID.


AttrLoadBalancerNameRequired

func AttrLoadBalancerName() interface{}
  • Type: interface{}

Attribute LoadBalancerName: The name of the CLB instance.


AttrLoadBalancerSpecRequired

func AttrLoadBalancerSpec() interface{}
  • Type: interface{}

Attribute LoadBalancerSpec: The specification of the CLB instance.


AttrMasterZoneIdRequired

func AttrMasterZoneId() interface{}
  • Type: interface{}

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


AttrModificationProtectionReasonRequired

func AttrModificationProtectionReason() interface{}
  • Type: interface{}

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


AttrModificationProtectionStatusRequired

func AttrModificationProtectionStatus() interface{}
  • Type: interface{}

Attribute ModificationProtectionStatus: Load balancing modifies the protection state.


AttrNetworkTypeRequired

func AttrNetworkType() interface{}
  • Type: interface{}

Attribute NetworkType: The network type of the CLB instance.


AttrPaymentTypeRequired

func AttrPaymentType() interface{}
  • Type: interface{}

Attribute PaymentType: Load balancing instance payment type.


AttrRegionIdAliasRequired

func AttrRegionIdAlias() interface{}
  • Type: interface{}

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


AttrRenewalCycUnitRequired

func AttrRenewalCycUnit() interface{}
  • Type: interface{}

Attribute RenewalCycUnit: The auto-renewal cycle.

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


AttrRenewalDurationRequired

func AttrRenewalDuration() interface{}
  • Type: interface{}

Attribute RenewalDuration: The auto-renewal duration.

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


AttrRenewalStatusRequired

func AttrRenewalStatus() interface{}
  • Type: interface{}

Attribute RenewalStatus: Indicates whether auto-renewal is enabled.


AttrResourceGroupIdRequired

func AttrResourceGroupId() interface{}
  • Type: interface{}

Attribute ResourceGroupId: The resource group ID.


AttrSlaveZoneIdRequired

func AttrSlaveZoneId() interface{}
  • Type: interface{}

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


AttrTagsRequired

func AttrTags() interface{}
  • Type: interface{}

Attribute Tags: The tags of the CLB instance.


AttrVpcIdRequired

func AttrVpcId() interface{}
  • Type: interface{}

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


AttrVSwitchIdRequired

func AttrVSwitchId() interface{}
  • Type: interface{}

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


PropsRequired

func Props() LoadBalancerProps