Skip to content

Rule

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

Initializers

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

ScopeRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.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

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;
Rule.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.
AttrCookie AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Cookie: The cookie to be configured on the backend server.
AttrCookieTimeout AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute CookieTimeout: The timeout period of a cookie.
AttrDomain AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Domain: The domain name that is configured in the forwarding rule.
AttrHealthCheck AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute HealthCheck: Specifies whether to enable health checks.
AttrHealthCheckConnectPort AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute HealthCheckConnectPort: The port of the backend server that is used for health checks.
AttrHealthCheckDomain AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute HealthCheckDomain: The domain name that is used for health checks.
AttrHealthCheckHttpCode AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute HealthCheckHttpCode: The HTTP status code that indicates a successful health check.
AttrHealthCheckInterval AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute HealthCheckInterval: The time interval between two consecutive health checks.
AttrHealthCheckTimeout AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute HealthCheckTimeout: The timeout period of a health check response.
AttrHealthCheckUri AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute HealthCheckUri: The URI that is used for health checks.
AttrHealthyThreshold AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute HealthyThreshold: The number of consecutive successful health checks that must occur before an unhealthy backend server is declared healthy.
AttrListenerPort AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ListenerPort: The listener port that is used by the SLB instance.
AttrListenerSync AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ListenerSync: Indicates whether the forwarding rule uses the scheduling algorithm, session persistence, and health check configurations of the listener.
AttrLoadBalancerId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute LoadBalancerId: The ID of the SLB instance.
AttrRuleId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute RuleId: The ID of the forwarding rule.
AttrRuleName AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute RuleName: The name of the forwarding rule.
AttrScheduler AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Scheduler: The scheduling algorithm.
AttrStickySession AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute StickySession: Indicates whether session persistence is enabled.
AttrStickySessionType AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute StickySessionType: The method that is used to handle a cookie.
AttrUnhealthyThreshold AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute UnhealthyThreshold: The number of consecutive failed health checks that must occur before a healthy backend server is declared unhealthy.
AttrUrl AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Url: The URL that is configured in the forwarding rule.
AttrVserverGroupId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute VserverGroupId: The ID of the vServer group that is associated with the forwarding rule.

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

AttrCookieRequired

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

Attribute Cookie: The cookie to be configured on the backend server.


AttrCookieTimeoutRequired

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

Attribute CookieTimeout: The timeout period of a cookie.


AttrDomainRequired

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

Attribute Domain: The domain name that is configured in the forwarding rule.


AttrHealthCheckRequired

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

Attribute HealthCheck: Specifies whether to enable health checks.


AttrHealthCheckConnectPortRequired

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

Attribute HealthCheckConnectPort: The port of the backend server that is used for health checks.

Valid values: 1 to 65535.


AttrHealthCheckDomainRequired

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

Attribute HealthCheckDomain: The domain name that is used for health checks.

Valid values: $_ip: The private IP address of the backend server. If the $_ip parameter is set or the HealthCheckDomain parameter is not set, SLB uses the private IP addresses of backend servers as the domain names for health checks. domain: The domain name must be 1 to 80 characters in length. It can contain only letters, digits, periods (.),and hyphens (-).


AttrHealthCheckHttpCodeRequired

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

Attribute HealthCheckHttpCode: The HTTP status code that indicates a successful health check.

Separate multiple HTTP status codes with commas (,). Default value: http_2xx.


AttrHealthCheckIntervalRequired

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

Attribute HealthCheckInterval: The time interval between two consecutive health checks.


AttrHealthCheckTimeoutRequired

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

Attribute HealthCheckTimeout: The timeout period of a health check response.

If a backend ECS instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy.


AttrHealthCheckUriRequired

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

Attribute HealthCheckUri: The URI that is used for health checks.


AttrHealthyThresholdRequired

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

Attribute HealthyThreshold: The number of consecutive successful health checks that must occur before an unhealthy backend server is declared healthy.

In this case, the health check state is changed from fail to success.


AttrListenerPortRequired

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

Attribute ListenerPort: The listener port that is used by the SLB instance.


AttrListenerSyncRequired

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

Attribute ListenerSync: Indicates whether the forwarding rule uses the scheduling algorithm, session persistence, and health check configurations of the listener.


AttrLoadBalancerIdRequired

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

Attribute LoadBalancerId: The ID of the SLB instance.


AttrRuleIdRequired

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

Attribute RuleId: The ID of the forwarding rule.


AttrRuleNameRequired

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

Attribute RuleName: The name of the forwarding rule.


AttrSchedulerRequired

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

Attribute Scheduler: The scheduling algorithm.


AttrStickySessionRequired

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

Attribute StickySession: Indicates whether session persistence is enabled.

Valid values: on and off.


AttrStickySessionTypeRequired

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

Attribute StickySessionType: The method that is used to handle a cookie.


AttrUnhealthyThresholdRequired

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

Attribute UnhealthyThreshold: The number of consecutive failed health checks that must occur before a healthy backend server is declared unhealthy.

In this case, the health check state is changed from success to fail.


AttrUrlRequired

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

Attribute Url: The URL that is configured in the forwarding rule.


AttrVserverGroupIdRequired

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

Attribute VserverGroupId: The ID of the vServer group that is associated with the forwarding rule.