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. |
Scope
Required
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Construct
Id
Required
- Type: string
Props
Required
- Type: RuleProps
EnableResourcePropertyConstraint
Optional
- 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.
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession
The synthesis session.
AddCondition
private void AddCondition(RosCondition Condition)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition
AddCount
private void AddCount(object Count)
- Type: object
AddDependency
private void AddDependency(Resource Resource)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource
AddResourceDesc
private void AddResourceDesc(string Desc)
- Type: string
ApplyRemovalPolicy
private void ApplyRemovalPolicy(RemovalPolicy Policy)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy
GetAtt
private IResolvable GetAtt(string Name)
- Type: string
SetMetadata
private void SetMetadata(string Key, object Value)
- Type: string
- 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.
- 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. |
Node
Required
public ConstructNode Node { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode
The construct tree node associated with this construct.
Ref
Required
public string Ref { get; }
- Type: string
Stack
Required
public Stack Stack { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack
The stack in which this resource is defined.
Resource
Optional
public RosResource Resource { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource
AttrCookie
Required
public IResolvable AttrCookie { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Cookie: The cookie to be configured on the backend server.
AttrCookieTimeout
Required
public IResolvable AttrCookieTimeout { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute CookieTimeout: The timeout period of a cookie.
AttrDomain
Required
public IResolvable AttrDomain { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Domain: The domain name that is configured in the forwarding rule.
AttrHealthCheck
Required
public IResolvable AttrHealthCheck { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute HealthCheck: Specifies whether to enable health checks.
AttrHealthCheckConnectPort
Required
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.
AttrHealthCheckDomain
Required
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 (-).
AttrHealthCheckHttpCode
Required
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.
AttrHealthCheckInterval
Required
public IResolvable AttrHealthCheckInterval { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute HealthCheckInterval: The time interval between two consecutive health checks.
AttrHealthCheckTimeout
Required
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.
AttrHealthCheckUri
Required
public IResolvable AttrHealthCheckUri { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute HealthCheckUri: The URI that is used for health checks.
AttrHealthyThreshold
Required
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.
AttrListenerPort
Required
public IResolvable AttrListenerPort { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ListenerPort: The listener port that is used by the SLB instance.
AttrListenerSync
Required
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.
AttrLoadBalancerId
Required
public IResolvable AttrLoadBalancerId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute LoadBalancerId: The ID of the SLB instance.
AttrRuleId
Required
public IResolvable AttrRuleId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute RuleId: The ID of the forwarding rule.
AttrRuleName
Required
public IResolvable AttrRuleName { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute RuleName: The name of the forwarding rule.
AttrScheduler
Required
public IResolvable AttrScheduler { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Scheduler: The scheduling algorithm.
AttrStickySession
Required
public IResolvable AttrStickySession { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute StickySession: Indicates whether session persistence is enabled.
Valid values: on and off.
AttrStickySessionType
Required
public IResolvable AttrStickySessionType { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute StickySessionType: The method that is used to handle a cookie.
AttrUnhealthyThreshold
Required
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.
AttrUrl
Required
public IResolvable AttrUrl { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Url: The URL that is configured in the forwarding rule.
AttrVserverGroupId
Required
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.