LoadBalancer
- Implements: ros_cdk_nlb.datasource.ILoadBalancer
This class encapsulates and extends the ROS resource type DATASOURCE::NLB::LoadBalancer.
Initializers
from ros_cdk_nlb import datasource
datasource.LoadBalancer(
scope: Construct,
id: str,
load_balancer_id: typing.Union[str, IResolvable] = None,
refresh_options: typing.Union[str, IResolvable] = None,
enable_resource_property_constraint: bool = None
)
| Name | Type | Description |
|---|---|---|
scope | ros_cdk_core.Construct | No description. |
id | str | No description. |
load_balancer_id | typing.Union[str, ros_cdk_core.IResolvable] | Property loadBalancerId: ID of the LoadBalancer. |
refresh_options | typing.Union[str, ros_cdk_core.IResolvable] | Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. |
enable_resource_property_constraint | bool | No description. |
scopeRequired
- Type: ros_cdk_core.Construct
idRequired
- Type: str
load_balancer_idOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property loadBalancerId: ID of the LoadBalancer.
refresh_optionsOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
Valid values:
- Never: Never refresh the datasource resource when the stack is updated.
- Always: Always refresh the datasource resource when the stack is updated. Default is Never.
enable_resource_property_constraintOptional
- Type: bool
Methods
| Name | Description |
|---|---|
to_string | Returns a string representation of this construct. |
synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
add_condition | No description. |
add_count | No description. |
add_dependency | No description. |
add_resource_desc | No description. |
apply_removal_policy | No description. |
fetch_condition | No description. |
fetch_dependency | No description. |
fetch_resource_desc | No description. |
get_att | No description. |
set_metadata | No description. |
to_string
def to_string() -> str
Returns a string representation of this construct.
synthesize
def synthesize(
session: ISynthesisSession
) -> None
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: ros_cdk_core.ISynthesisSession
The synthesis session.
add_condition
def add_condition(
condition: RosCondition
) -> None
- Type: ros_cdk_core.RosCondition
add_count
def add_count(
count: typing.Union[typing.Union[int, float], IResolvable]
) -> None
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
add_dependency
def add_dependency(
resource: Resource
) -> None
- Type: ros_cdk_core.Resource
add_resource_desc
def add_resource_desc(
desc: str
) -> None
- Type: str
apply_removal_policy
def apply_removal_policy(
policy: RemovalPolicy
) -> None
- Type: ros_cdk_core.RemovalPolicy
fetch_condition
def fetch_condition() -> RosCondition
fetch_dependency
def fetch_dependency() -> typing.List[str]
fetch_resource_desc
def fetch_resource_desc() -> str
get_att
def get_att(
name: str
) -> IResolvable
- Type: str
set_metadata
def set_metadata(
key: str,
value: typing.Any
) -> None
- Type: str
- Type: typing.Any
Static Functions
| Name | Description |
|---|---|
is_construct | Return whether the given object is a Construct. |
is_construct
from ros_cdk_nlb import datasource
datasource.LoadBalancer.is_construct(
x: typing.Any
)
Return whether the given object is a Construct.
- Type: typing.Any
Properties
| Name | Type | Description |
|---|---|---|
node | ros_cdk_core.ConstructNode | The construct tree node associated with this construct. |
env | ros_cdk_core.IResourceEnvironment | The environment this resource belongs to. |
ref | str | No description. |
stack | ros_cdk_core.Stack | The stack in which this resource is defined. |
resource | ros_cdk_core.RosResource | No description. |
attr_address_ip_version | typing.Union[str, ros_cdk_core.IResolvable] | Attribute AddressIpVersion: The protocol version. |
attr_address_type | typing.Union[str, ros_cdk_core.IResolvable] | Attribute AddressType: The IPv4 network type of the NLB instance. |
attr_bandwidth_package_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute BandwidthPackageId: The ID of the EIP bandwidth plan. |
attr_cps | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Cps: The maximum number of new connections per second supported by the NLB instance in each zone (virtual IP address). |
attr_create_time | typing.Union[str, ros_cdk_core.IResolvable] | Attribute CreateTime: The time when the NLB instance was created. |
attr_cross_zone_enabled | typing.Union[str, ros_cdk_core.IResolvable] | Attribute CrossZoneEnabled: Indicates whether the NLB instance is accessible across zones. |
attr_deletion_protection_config | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DeletionProtectionConfig: The configuration of the deletion protection feature. |
attr_dns_name | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DNSName: The domain name of the NLB instance. |
attr_ipv6_address_type | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Ipv6AddressType: The IPv6 network type of the NLB instance. |
attr_load_balancer_billing_config | typing.Union[str, ros_cdk_core.IResolvable] | Attribute LoadBalancerBillingConfig: The billing information of the NLB instance. |
attr_load_balancer_business_status | typing.Union[str, ros_cdk_core.IResolvable] | Attribute LoadBalancerBusinessStatus: The status of workloads on the NLB instance. |
attr_load_balancer_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute LoadBalancerId: ID of the LoadBalancer. |
attr_load_balancer_name | typing.Union[str, ros_cdk_core.IResolvable] | Attribute LoadBalancerName: The NLB instance name. |
attr_load_balancer_status | typing.Union[str, ros_cdk_core.IResolvable] | Attribute LoadBalancerStatus: The NLB instance status. |
attr_load_balancer_type | typing.Union[str, ros_cdk_core.IResolvable] | Attribute LoadBalancerType: The type of the Server Load Balancer (SLB) instance. |
attr_modification_protection_config | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ModificationProtectionConfig: The configuration of the configuration read-only mode. |
attr_operation_locks | typing.Union[str, ros_cdk_core.IResolvable] | Attribute OperationLocks: The information about the locked NLB instance. |
attr_region_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute RegionId: The region ID of the NLB instance. |
attr_resource_group_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ResourceGroupId: The ID of the resource group. |
attr_security_group_ids | typing.Union[str, ros_cdk_core.IResolvable] | Attribute SecurityGroupIds: The ID of the security group associated with the NLB instance. |
attr_tags | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Tags: The tags of the resource. |
attr_vpc_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute VpcId: The VPC ID of the NLB instance. |
attr_zone_mappings | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ZoneMappings: The list of zones and vSwitches in the zones. |
props | LoadBalancerProps | No description. |
nodeRequired
node: ConstructNode
- Type: ros_cdk_core.ConstructNode
The construct tree node associated with this construct.
envRequired
env: IResourceEnvironment
- Type: ros_cdk_core.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
ref: str
- Type: str
stackRequired
stack: Stack
- Type: ros_cdk_core.Stack
The stack in which this resource is defined.
resourceOptional
resource: RosResource
- Type: ros_cdk_core.RosResource
attr_address_ip_versionRequired
attr_address_ip_version: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute AddressIpVersion: The protocol version.
attr_address_typeRequired
attr_address_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute AddressType: The IPv4 network type of the NLB instance.
attr_bandwidth_package_idRequired
attr_bandwidth_package_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute BandwidthPackageId: The ID of the EIP bandwidth plan.
attr_cpsRequired
attr_cps: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Cps: The maximum number of new connections per second supported by the NLB instance in each zone (virtual IP address).
attr_create_timeRequired
attr_create_time: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute CreateTime: The time when the NLB instance was created.
attr_cross_zone_enabledRequired
attr_cross_zone_enabled: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute CrossZoneEnabled: Indicates whether the NLB instance is accessible across zones.
attr_deletion_protection_configRequired
attr_deletion_protection_config: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DeletionProtectionConfig: The configuration of the deletion protection feature.
attr_dns_nameRequired
attr_dns_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DNSName: The domain name of the NLB instance.
attr_ipv6_address_typeRequired
attr_ipv6_address_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Ipv6AddressType: The IPv6 network type of the NLB instance.
attr_load_balancer_billing_configRequired
attr_load_balancer_billing_config: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute LoadBalancerBillingConfig: The billing information of the NLB instance.
attr_load_balancer_business_statusRequired
attr_load_balancer_business_status: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute LoadBalancerBusinessStatus: The status of workloads on the NLB instance.
attr_load_balancer_idRequired
attr_load_balancer_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute LoadBalancerId: ID of the LoadBalancer.
attr_load_balancer_nameRequired
attr_load_balancer_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute LoadBalancerName: The NLB instance name.
attr_load_balancer_statusRequired
attr_load_balancer_status: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute LoadBalancerStatus: The NLB instance status.
attr_load_balancer_typeRequired
attr_load_balancer_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute LoadBalancerType: The type of the Server Load Balancer (SLB) instance.
Set the value to network, which specifies NLB.
attr_modification_protection_configRequired
attr_modification_protection_config: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ModificationProtectionConfig: The configuration of the configuration read-only mode.
attr_operation_locksRequired
attr_operation_locks: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute OperationLocks: The information about the locked NLB instance.
attr_region_idRequired
attr_region_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute RegionId: The region ID of the NLB instance.
attr_resource_group_idRequired
attr_resource_group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ResourceGroupId: The ID of the resource group.
attr_security_group_idsRequired
attr_security_group_ids: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute SecurityGroupIds: The ID of the security group associated with the NLB instance.
attr_tagsRequired
attr_tags: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Tags: The tags of the resource.
attr_vpc_idRequired
attr_vpc_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute VpcId: The VPC ID of the NLB instance.
attr_zone_mappingsRequired
attr_zone_mappings: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ZoneMappings: The list of zones and vSwitches in the zones.
propsRequired
props: LoadBalancerProps
- Type: LoadBalancerProps