Skip to content

Gateway2

This class encapsulates and extends the ROS resource type ALIYUN::MSE::Gateway2.

Initializers

import ros_cdk_mse
ros_cdk_mse.Gateway2(
  scope: Construct,
  id: str,
  vpc_id: typing.Union[str, IResolvable],
  accept_language: typing.Union[str, IResolvable] = None,
  charge_type: typing.Union[str, IResolvable] = None,
  clb_network_type: typing.Union[str, IResolvable] = None,
  enable_hardware_acceleration: typing.Union[bool, IResolvable] = None,
  enable_sls: typing.Union[bool, IResolvable] = None,
  enable_xtrace: typing.Union[bool, IResolvable] = None,
  enterprise_security_group: typing.Union[bool, IResolvable] = None,
  internet_slb: typing.Union[str, IResolvable] = None,
  managed_entry_network_type: typing.Union[str, IResolvable] = None,
  mser_version: typing.Union[str, IResolvable] = None,
  name: typing.Union[str, IResolvable] = None,
  nlb_network_type: typing.Union[str, IResolvable] = None,
  period: typing.Union[typing.Union[int, float], IResolvable] = None,
  period_unit: typing.Union[str, IResolvable] = None,
  replica: typing.Union[typing.Union[int, float], IResolvable] = None,
  resource_group_id: typing.Union[str, IResolvable] = None,
  slb_spec: typing.Union[str, IResolvable] = None,
  spec: typing.Union[str, IResolvable] = None,
  tags: typing.List[TagsProperty] = None,
  v_switch_id: typing.Union[str, IResolvable] = None,
  v_switch_id2: typing.Union[str, IResolvable] = None,
  xtrace_ratio: typing.Union[typing.Union[int, float], IResolvable] = None,
  zone_info: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, ZoneInfoProperty]]] = None,
  enable_resource_property_constraint: bool = None
)
Name Type Description
scope ros_cdk_core.Construct No description.
id str No description.
vpc_id typing.Union[str, ros_cdk_core.IResolvable] Property vpcId: The ID of the vpc.
accept_language typing.Union[str, ros_cdk_core.IResolvable] Property acceptLanguage: The language of the response.
charge_type typing.Union[str, ros_cdk_core.IResolvable] Property chargeType: The billing method you specify when you purchase an normal instance.
clb_network_type typing.Union[str, ros_cdk_core.IResolvable] Property clbNetworkType: The network type of the purchased Classic Load Balancer (CLB) instance that is billed based on LCUs.
enable_hardware_acceleration typing.Union[bool, ros_cdk_core.IResolvable] Property enableHardwareAcceleration: Specifies whether to enable hardware acceleration.
enable_sls typing.Union[bool, ros_cdk_core.IResolvable] Property enableSls: Specifies whether to activate Log Service.
enable_xtrace typing.Union[bool, ros_cdk_core.IResolvable] Property enableXtrace: Whether to activate Tracing Analysis.
enterprise_security_group typing.Union[bool, ros_cdk_core.IResolvable] Property enterpriseSecurityGroup: Specifies whether to use an Enterprise Security Group.
internet_slb typing.Union[str, ros_cdk_core.IResolvable] Property internetSlb: Public network SLB specifications (for normal instances).
managed_entry_network_type typing.Union[str, ros_cdk_core.IResolvable] Property managedEntryNetworkType: Gateway entrance type (applicable to the mse_premium instance) pubnet: public network privatenet: privatenet privatepubnet: public + private network.
mser_version typing.Union[str, ros_cdk_core.IResolvable] Property mserVersion: The edition of the gateway.
name typing.Union[str, ros_cdk_core.IResolvable] Property name: The name of the created gateway.
nlb_network_type typing.Union[str, ros_cdk_core.IResolvable] Property nlbNetworkType: The network type of the Network Load Balancer (NLB) instance you specify when you purchase a serverless instance.
period typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property period: Prepaid time period.
period_unit typing.Union[str, ros_cdk_core.IResolvable] Property periodUnit: Charge period for created instances.
replica typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property replica: The number of nodes you specify when you purchase an normal instance.
resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Property resourceGroupId: The ID of the resource group.
slb_spec typing.Union[str, ros_cdk_core.IResolvable] Property slbSpec: Private network SLB specifications (for normal instances).
spec typing.Union[str, ros_cdk_core.IResolvable] Property spec: The node specifications you specify when you purchase an normal instance.
tags typing.List[TagsProperty] Property tags: The list of tags in the form of key\/value pairs.
v_switch_id typing.Union[str, ros_cdk_core.IResolvable] Property vSwitchId: The primary VSwitch ID.
v_switch_id2 typing.Union[str, ros_cdk_core.IResolvable] Property vSwitchId2: The secondary VSwitch ID.
xtrace_ratio typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property xtraceRatio: The sampling rate of Tracing Analysis.
zone_info typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ZoneInfoProperty]]] Property zoneInfo: The info details of the available zone.
enable_resource_property_constraint bool No description.

scopeRequired

  • Type: ros_cdk_core.Construct

idRequired

  • Type: str

vpc_idRequired

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property vpcId: The ID of the vpc.


accept_languageOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property acceptLanguage: The language of the response.

Valid values: zh: Chinese en: English


charge_typeOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property chargeType: The billing method you specify when you purchase an normal instance.

Valid values: PREPAY: subscription POSTPAY: pay-as-you-go


clb_network_typeOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property clbNetworkType: The network type of the purchased Classic Load Balancer (CLB) instance that is billed based on LCUs.

pubnet: Internet privatenet: private network privatepubnet: Internet and private network


enable_hardware_accelerationOptional

  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property enableHardwareAcceleration: Specifies whether to enable hardware acceleration.


enable_slsOptional

  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property enableSls: Specifies whether to activate Log Service.


enable_xtraceOptional

  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property enableXtrace: Whether to activate Tracing Analysis.


enterprise_security_groupOptional

  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property enterpriseSecurityGroup: Specifies whether to use an Enterprise Security Group.


internet_slbOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property internetSlb: Public network SLB specifications (for normal instances).

Simple type (slb.s1.small) Standard type 1 (slb.s2.smal) Standard type I(slb.s2.medium) Advanced Type 1 (slb.s3.small) Advanced I(slb.s3.medium) Super strong type I (slb.s3.large) Description Traditional example: When creating, you can only choose one purchasing agent in NLB, CLB billed by LCU, and CLB specifications. Serverless example: When creating, you can only choose one purchasing agent in NLB, CLB billed by LCU


managed_entry_network_typeOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property managedEntryNetworkType: Gateway entrance type (applicable to the mse_premium instance) pubnet: public network privatenet: privatenet privatepubnet: public + private network.


mser_versionOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property mserVersion: The edition of the gateway.

  • mse_premium: Professional Edition
  • mse_pro: Standard Edition
  • mse_serverless: Serverless Edition

nameOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property name: The name of the created gateway.


nlb_network_typeOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property nlbNetworkType: The network type of the Network Load Balancer (NLB) instance you specify when you purchase a serverless instance.

pubnet: Internet privatenet: private network privatepubnet: Internet and private network


periodOptional

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property period: Prepaid time period.

While choose by pay by month, it could be from 1 to 9. While choose pay by year, it could be from 1 to 3. This parameter is Only valid when updating from postpaid instance to prepaid instance.


period_unitOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property periodUnit: Charge period for created instances.

This parameter is only valid when updating from postpaid instance to prepaid instance.


replicaOptional

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property replica: The number of nodes you specify when you purchase an normal instance.

For high availability, the value for this param is recommended to be greater than 2.


resource_group_idOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property resourceGroupId: The ID of the resource group.


slb_specOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property slbSpec: Private network SLB specifications (for normal instances).

Simple type (slb.s1.small) Standard type 1 (slb.s2.small) Standard type I(slb.s2.medium) Advanced Type 1 (slb.s3.small) Advanced I(slb.s3.medium) Super strong type I (slb.s3.large) Description Traditional example: When creating, you can only choose one purchasing agent in NLB, CLB billed by LCU, and CLB specifications. Serverless example: When creating, you can only choose one purchasing agent in NLB, CLB billed by LCU


specOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property spec: The node specifications you specify when you purchase an normal instance.

Valid values: MSE_GTW_16_32_200_c(16C32G) MSE_GTW_2_4_200_c(2C4G) MSE_GTW_4_8_200_c(4C8G) MSE_GTW_8_16_200_c(8C16G)


tagsOptional

Property tags: The list of tags in the form of key\/value pairs.

You can define a maximum of 20 tags.


v_switch_idOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property vSwitchId: The primary VSwitch ID.


v_switch_id2Optional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property vSwitchId2: The secondary VSwitch ID.


xtrace_ratioOptional

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property xtraceRatio: The sampling rate of Tracing Analysis.

Valid values: [1,100]


zone_infoOptional

  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ZoneInfoProperty]]]

Property zoneInfo: The info details of the available zone.


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.

sessionRequired

  • Type: ros_cdk_core.ISynthesisSession

The synthesis session.


add_condition

def add_condition(
  condition: RosCondition
) -> None

conditionRequired

  • Type: ros_cdk_core.RosCondition

add_count

def add_count(
  count: typing.Union[typing.Union[int, float], IResolvable]
) -> None

countRequired

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

add_dependency

def add_dependency(
  resource: Resource
) -> None

resourceRequired

  • Type: ros_cdk_core.Resource

add_resource_desc

def add_resource_desc(
  desc: str
) -> None

descRequired

  • Type: str

apply_removal_policy

def apply_removal_policy(
  policy: RemovalPolicy
) -> None

policyRequired

  • 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

nameRequired

  • Type: str

set_metadata

def set_metadata(
  key: str,
  value: typing.Any
) -> None

keyRequired

  • Type: str

valueRequired

  • Type: typing.Any

Static Functions

Name Description
is_construct Return whether the given object is a Construct.

is_construct

import ros_cdk_mse
ros_cdk_mse.Gateway2.is_construct(
  x: typing.Any
)

Return whether the given object is a Construct.

xRequired

  • 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_gateway_unique_id typing.Union[str, ros_cdk_core.IResolvable] Attribute GatewayUniqueId: The unique ID of the gateway.
props Gateway2Props 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_gateway_unique_idRequired

attr_gateway_unique_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute GatewayUniqueId: The unique ID of the gateway.


propsRequired

props: Gateway2Props