Skip to content

LoadBalancer

This class encapsulates and extends the ROS resource type ALIYUN::SLB::LoadBalancer, which is used to create a Server Load Balancer (SLB) instance.

Initializers

using AlibabaCloud.SDK.ROS.CDK.Slb;
new LoadBalancer(Construct Scope, string Id, LoadBalancerProps Props = null, bool EnableResourcePropertyConstraint = null);
Name Type Description
Scope AlibabaCloud.SDK.ROS.CDK.Core.Construct No description.
Id string No description.
Props LoadBalancerProps No description.
EnableResourcePropertyConstraint bool No description.

ScopeRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Construct

IdRequired

  • Type: string

PropsOptional


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

private string ToString()

Returns a string representation of this construct.

Synthesize

private 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: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession

The synthesis session.


AddCondition

private void AddCondition(RosCondition Condition)

ConditionRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition

AddCount

private void AddCount(object Count)

CountRequired

  • Type: object

AddDependency

private void AddDependency(Resource Resource)

ResourceRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource

AddResourceDesc

private void AddResourceDesc(string Desc)

DescRequired

  • Type: string

ApplyRemovalPolicy

private void ApplyRemovalPolicy(RemovalPolicy Policy)

PolicyRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy

GetAtt

private IResolvable GetAtt(string Name)

NameRequired

  • Type: string

SetMetadata

private void SetMetadata(string Key, object Value)

KeyRequired

  • Type: string

ValueRequired

  • Type: object

Static Functions

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

IsConstruct

using AlibabaCloud.SDK.ROS.CDK.Slb;
LoadBalancer.IsConstruct(object X);

Return whether the given object is a Construct.

XRequired

  • Type: object

Properties

Name Type Description
Node AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode The construct tree node associated with this construct.
Ref string No description.
Stack AlibabaCloud.SDK.ROS.CDK.Core.Stack The stack in which this resource is defined.
Resource AlibabaCloud.SDK.ROS.CDK.Core.RosResource No description.
AttrAddressIpVersion AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute AddressIPVersion: IP version.
AttrAddressType AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute AddressType: The address type of the load balancer.
AttrBandwidth AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Bandwidth: The bandwidth for network.
AttrIpAddress AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute IpAddress: The ip address of the load balancer.
AttrLoadBalancerId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute LoadBalancerId: The id of load balance created.
AttrLoadBalancerName AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute LoadBalancerName: Name of created load balancer.
AttrLoadBalancerSpec AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute LoadBalancerSpec: The specification of the Server Load Balancer instance.
AttrMasterZoneId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute MasterZoneId: The master zone id to create load balancer instance.
AttrNetworkType AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute NetworkType: The network type of the load balancer.
AttrOrderId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute OrderId: The order ID.
AttrPayType AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute PayType: The billing method of the instance to be created.
AttrResourceGroupId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ResourceGroupId: Resource group id.
AttrSlaveZoneId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute SlaveZoneId: The slave zone id to create load balancer instance.
AttrVpcId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute VpcId: Vpc id.
AttrVSwitchId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute VSwitchId: VSwitch id.

NodeRequired

public ConstructNode Node { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode

The construct tree node associated with this construct.


RefRequired

public string Ref { get; }
  • Type: string

StackRequired

public Stack Stack { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack

The stack in which this resource is defined.


ResourceOptional

public RosResource Resource { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource

AttrAddressIpVersionRequired

public IResolvable AttrAddressIpVersion { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute AddressIPVersion: IP version.


AttrAddressTypeRequired

public IResolvable AttrAddressType { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute AddressType: The address type of the load balancer.

"intranet" or "internet".


AttrBandwidthRequired

public IResolvable AttrBandwidth { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Bandwidth: The bandwidth for network.


AttrIpAddressRequired

public IResolvable AttrIpAddress { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute IpAddress: The ip address of the load balancer.


AttrLoadBalancerIdRequired

public IResolvable AttrLoadBalancerId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute LoadBalancerId: The id of load balance created.


AttrLoadBalancerNameRequired

public IResolvable AttrLoadBalancerName { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute LoadBalancerName: Name of created load balancer.


AttrLoadBalancerSpecRequired

public IResolvable AttrLoadBalancerSpec { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute LoadBalancerSpec: The specification of the Server Load Balancer instance.


AttrMasterZoneIdRequired

public IResolvable AttrMasterZoneId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute MasterZoneId: The master zone id to create load balancer instance.


AttrNetworkTypeRequired

public IResolvable AttrNetworkType { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute NetworkType: The network type of the load balancer.

"vpc" or "classic" network.


AttrOrderIdRequired

public IResolvable AttrOrderId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute OrderId: The order ID.


AttrPayTypeRequired

public IResolvable AttrPayType { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute PayType: The billing method of the instance to be created.


AttrResourceGroupIdRequired

public IResolvable AttrResourceGroupId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ResourceGroupId: Resource group id.


AttrSlaveZoneIdRequired

public IResolvable AttrSlaveZoneId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute SlaveZoneId: The slave zone id to create load balancer instance.


AttrVpcIdRequired

public IResolvable AttrVpcId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute VpcId: Vpc id.


AttrVSwitchIdRequired

public IResolvable AttrVSwitchId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute VSwitchId: VSwitch id.