LoadBalancerTCPListener
- Implements: github.com/alibabacloud-go/ros-cdk/alicloudroscdkslb.datasource.ILoadBalancerTCPListener
This class encapsulates and extends the ROS resource type DATASOURCE::SLB::LoadBalancerTCPListener, which is used to query the configurations of a TCP listener.
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkslb/datasource"
datasource.NewLoadBalancerTCPListener(scope Construct, id *string, props LoadBalancerTCPListenerProps, enableResourcePropertyConstraint *bool) LoadBalancerTCPListener
| Name | Type | Description |
|---|---|---|
scope | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct | No description. |
id | *string | No description. |
props | LoadBalancerTCPListenerProps | 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.
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession
The synthesis session.
AddCondition
func AddCondition(condition RosCondition)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition
AddCount
func AddCount(count interface{})
- Type: interface{}
AddDependency
func AddDependency(resource Resource)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource
AddResourceDesc
func AddResourceDesc(desc *string)
- Type: *string
ApplyRemovalPolicy
func ApplyRemovalPolicy(policy RemovalPolicy)
- 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
- Type: *string
SetMetadata
func SetMetadata(key *string, value interface{})
- Type: *string
- 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.LoadBalancerTCPListener_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
- 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. |
AttrAclId | interface{} | Attribute AclId: The ID of the network ACL that is associated with the listener. |
AttrAclIds | interface{} | Attribute AclIds: The ID list of the network ACL that is associated with the listener. |
AttrAclStatus | interface{} | Attribute AclStatus: Indicates whether access control is enabled. |
AttrAclType | interface{} | Attribute AclType: The type of the ACL. |
AttrBackendServerPort | interface{} | Attribute BackendServerPort: The backend port used by the CLB instance. |
AttrBandwidth | interface{} | Attribute Bandwidth: The maximum bandwidth of the listener. |
AttrConnectionDrain | interface{} | Attribute ConnectionDrain: Indicates whether connection draining is enabled. |
AttrConnectionDrainTimeout | interface{} | Attribute ConnectionDrainTimeout: The timeout period of connection draining. |
AttrDescription | interface{} | Attribute Description: The description of the listener. |
AttrEstablishedTimeout | interface{} | Attribute EstablishedTimeout: The timeout period of a connection. |
AttrHealthCheck | interface{} | Attribute HealthCheck: Indicates whether the health check feature is enabled. |
AttrHealthCheckConnectPort | interface{} | Attribute HealthCheckConnectPort: The port that is used for health checks. |
AttrHealthCheckConnectTimeout | interface{} | Attribute HealthCheckConnectTimeout: The timeout period. |
AttrHealthCheckDomain | interface{} | Attribute HealthCheckDomain: The domain name that is used for health checks. |
AttrHealthCheckHttpCode | interface{} | Attribute HealthCheckHttpCode: The HTTP status code for a successful health check. |
AttrHealthCheckInterval | interface{} | Attribute HealthCheckInterval: The interval between two consecutive health checks. |
AttrHealthCheckMethod | interface{} | Attribute HealthCheckMethod: The health check method. |
AttrHealthCheckType | interface{} | Attribute HealthCheckType: The health check method that is used by the TCP listener. |
AttrHealthCheckUri | interface{} | Attribute HealthCheckUri: The URL that is used for health checks. |
AttrHealthyThreshold | interface{} | Attribute HealthyThreshold: The healthy threshold. |
AttrListenerPort | interface{} | Attribute ListenerPort: The frontend port used by the CLB instance. |
AttrLoadBalancerId | interface{} | Attribute LoadBalancerId: The ID of the CLB instance. |
AttrMasterSlaveServerGroupId | interface{} | Attribute MasterSlaveServerGroupId: The ID of the primary/secondary server group that is associated with the listener. |
AttrPersistenceTimeout | interface{} | Attribute PersistenceTimeout: The timeout period of session persistence. |
AttrProxyProtocolV2Enabled | interface{} | Attribute ProxyProtocolV2Enabled: Indicates whether the Proxy protocol is used to pass client IP addresses to backend servers. |
AttrScheduler | interface{} | Attribute Scheduler: The scheduling algorithm. |
AttrSynProxy | interface{} | Attribute SynProxy: Indicates whether the SynProxy feature of CLB is enabled for protection. |
AttrUnhealthyThreshold | interface{} | Attribute UnhealthyThreshold: The unhealthy threshold. |
AttrVServerGroupId | interface{} | Attribute VServerGroupId: The ID of the associated server group. |
Props | LoadBalancerTCPListenerProps | 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
AttrAclIdRequired
func AttrAclId() interface{}
- Type: interface{}
Attribute AclId: The ID of the network ACL that is associated with the listener.
AttrAclIdsRequired
func AttrAclIds() interface{}
- Type: interface{}
Attribute AclIds: The ID list of the network ACL that is associated with the listener.
AttrAclStatusRequired
func AttrAclStatus() interface{}
- Type: interface{}
Attribute AclStatus: Indicates whether access control is enabled.
AttrAclTypeRequired
func AttrAclType() interface{}
- Type: interface{}
Attribute AclType: The type of the ACL.
AttrBackendServerPortRequired
func AttrBackendServerPort() interface{}
- Type: interface{}
Attribute BackendServerPort: The backend port used by the CLB instance.
AttrBandwidthRequired
func AttrBandwidth() interface{}
- Type: interface{}
Attribute Bandwidth: The maximum bandwidth of the listener.
Unit: Mbit/s.
AttrConnectionDrainRequired
func AttrConnectionDrain() interface{}
- Type: interface{}
Attribute ConnectionDrain: Indicates whether connection draining is enabled.
If ConnectionDrain is set to on, the parameter is returned.
AttrConnectionDrainTimeoutRequired
func AttrConnectionDrainTimeout() interface{}
- Type: interface{}
Attribute ConnectionDrainTimeout: The timeout period of connection draining.
If ConnectionDrain is set to on, the parameter is returned.
AttrDescriptionRequired
func AttrDescription() interface{}
- Type: interface{}
Attribute Description: The description of the listener.
AttrEstablishedTimeoutRequired
func AttrEstablishedTimeout() interface{}
- Type: interface{}
Attribute EstablishedTimeout: The timeout period of a connection.
AttrHealthCheckRequired
func AttrHealthCheck() interface{}
- Type: interface{}
Attribute HealthCheck: Indicates whether the health check feature is enabled.
AttrHealthCheckConnectPortRequired
func AttrHealthCheckConnectPort() interface{}
- Type: interface{}
Attribute HealthCheckConnectPort: The port that is used for health checks.
AttrHealthCheckConnectTimeoutRequired
func AttrHealthCheckConnectTimeout() interface{}
- Type: interface{}
Attribute HealthCheckConnectTimeout: The timeout period.
Unit: seconds.
AttrHealthCheckDomainRequired
func AttrHealthCheckDomain() interface{}
- Type: interface{}
Attribute HealthCheckDomain: The domain name that is used for health checks.
AttrHealthCheckHttpCodeRequired
func AttrHealthCheckHttpCode() interface{}
- Type: interface{}
Attribute HealthCheckHttpCode: The HTTP status code for a successful health check.
AttrHealthCheckIntervalRequired
func AttrHealthCheckInterval() interface{}
- Type: interface{}
Attribute HealthCheckInterval: The interval between two consecutive health checks.
Valid values: 1 to 50. Unit: seconds.
AttrHealthCheckMethodRequired
func AttrHealthCheckMethod() interface{}
- Type: interface{}
Attribute HealthCheckMethod: The health check method.
AttrHealthCheckTypeRequired
func AttrHealthCheckType() interface{}
- Type: interface{}
Attribute HealthCheckType: The health check method that is used by the TCP listener.
AttrHealthCheckUriRequired
func AttrHealthCheckUri() interface{}
- Type: interface{}
Attribute HealthCheckUri: The URL that is used for health checks.
AttrHealthyThresholdRequired
func AttrHealthyThreshold() interface{}
- Type: interface{}
Attribute HealthyThreshold: The healthy threshold.
The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. In this case, the health status is changed from fail to success. Valid values: 2 to 10.
AttrListenerPortRequired
func AttrListenerPort() interface{}
- Type: interface{}
Attribute ListenerPort: The frontend port used by the CLB instance.
AttrLoadBalancerIdRequired
func AttrLoadBalancerId() interface{}
- Type: interface{}
Attribute LoadBalancerId: The ID of the CLB instance.
AttrMasterSlaveServerGroupIdRequired
func AttrMasterSlaveServerGroupId() interface{}
- Type: interface{}
Attribute MasterSlaveServerGroupId: The ID of the primary/secondary server group that is associated with the listener.
AttrPersistenceTimeoutRequired
func AttrPersistenceTimeout() interface{}
- Type: interface{}
Attribute PersistenceTimeout: The timeout period of session persistence.
AttrProxyProtocolV2EnabledRequired
func AttrProxyProtocolV2Enabled() interface{}
- Type: interface{}
Attribute ProxyProtocolV2Enabled: Indicates whether the Proxy protocol is used to pass client IP addresses to backend servers.
AttrSchedulerRequired
func AttrScheduler() interface{}
- Type: interface{}
Attribute Scheduler: The scheduling algorithm.
AttrSynProxyRequired
func AttrSynProxy() interface{}
- Type: interface{}
Attribute SynProxy: Indicates whether the SynProxy feature of CLB is enabled for protection.
AttrUnhealthyThresholdRequired
func AttrUnhealthyThreshold() interface{}
- Type: interface{}
Attribute UnhealthyThreshold: The unhealthy threshold.
The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. In this case, the health status is changed from success to fail. Valid values: 2 to 10.
AttrVServerGroupIdRequired
func AttrVServerGroupId() interface{}
- Type: interface{}
Attribute VServerGroupId: The ID of the associated server group.
PropsRequired
func Props() LoadBalancerTCPListenerProps