Skip to content

Rule

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

Initializers

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkslb/datasource"
datasource.NewRule(scope Construct, id *string, props RuleProps, enableResourcePropertyConstraint *bool) Rule
Name Type Description
scope github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct No description.
id *string No description.
props RuleProps 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.Rule_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.
AttrCookie github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Cookie: The cookie to be configured on the backend server.
AttrCookieTimeout github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute CookieTimeout: The timeout period of a cookie.
AttrDomain github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Domain: The domain name that is configured in the forwarding rule.
AttrHealthCheck github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute HealthCheck: Specifies whether to enable health checks.
AttrHealthCheckConnectPort github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute HealthCheckConnectPort: The port of the backend server that is used for health checks.
AttrHealthCheckDomain github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute HealthCheckDomain: The domain name that is used for health checks.
AttrHealthCheckHttpCode github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute HealthCheckHttpCode: The HTTP status code that indicates a successful health check.
AttrHealthCheckInterval github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute HealthCheckInterval: The time interval between two consecutive health checks.
AttrHealthCheckTimeout github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute HealthCheckTimeout: The timeout period of a health check response.
AttrHealthCheckUri github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute HealthCheckUri: The URI that is used for health checks.
AttrHealthyThreshold github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute HealthyThreshold: The number of consecutive successful health checks that must occur before an unhealthy backend server is declared healthy.
AttrListenerPort github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ListenerPort: The listener port that is used by the SLB instance.
AttrListenerSync github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ListenerSync: Indicates whether the forwarding rule uses the scheduling algorithm, session persistence, and health check configurations of the listener.
AttrLoadBalancerId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute LoadBalancerId: The ID of the SLB instance.
AttrRuleId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute RuleId: The ID of the forwarding rule.
AttrRuleName github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute RuleName: The name of the forwarding rule.
AttrScheduler github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Scheduler: The scheduling algorithm.
AttrStickySession github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute StickySession: Indicates whether session persistence is enabled.
AttrStickySessionType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute StickySessionType: The method that is used to handle a cookie.
AttrUnhealthyThreshold github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute UnhealthyThreshold: The number of consecutive failed health checks that must occur before a healthy backend server is declared unhealthy.
AttrUrl github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Url: The URL that is configured in the forwarding rule.
AttrVserverGroupId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute VserverGroupId: The ID of the vServer group that is associated with the forwarding rule.

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

AttrCookieRequired

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

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


AttrCookieTimeoutRequired

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

Attribute CookieTimeout: The timeout period of a cookie.


AttrDomainRequired

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

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


AttrHealthCheckRequired

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

Attribute HealthCheck: Specifies whether to enable health checks.


AttrHealthCheckConnectPortRequired

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

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

Valid values: 1 to 65535.


AttrHealthCheckDomainRequired

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

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

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

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


AttrHealthCheckTimeoutRequired

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

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

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


AttrHealthyThresholdRequired

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

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

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


AttrListenerSyncRequired

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

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


AttrLoadBalancerIdRequired

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

Attribute LoadBalancerId: The ID of the SLB instance.


AttrRuleIdRequired

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

Attribute RuleId: The ID of the forwarding rule.


AttrRuleNameRequired

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

Attribute RuleName: The name of the forwarding rule.


AttrSchedulerRequired

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

Attribute Scheduler: The scheduling algorithm.


AttrStickySessionRequired

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

Attribute StickySession: Indicates whether session persistence is enabled.

Valid values: on and off.


AttrStickySessionTypeRequired

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

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


AttrUnhealthyThresholdRequired

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

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

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


AttrVserverGroupIdRequired

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

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