NatGateway
- Implements: @alicloud/ros-cdk-vpc.datasource.INatGateway
This class encapsulates and extends the ROS resource type DATASOURCE::VPC::NatGateway.
Initializers
import { datasource } from '@alicloud/ros-cdk-vpc'
new datasource.NatGateway(scope: Construct, id: string, props: NatGatewayProps, enableResourcePropertyConstraint?: boolean)
| Name | Type | Description |
|---|---|---|
scope | @alicloud/ros-cdk-core.Construct | No description. |
id | string | No description. |
props | NatGatewayProps | No description. |
enableResourcePropertyConstraint | boolean | No description. |
scopeRequired
- Type: @alicloud/ros-cdk-core.Construct
idRequired
- Type: string
propsRequired
- Type: NatGatewayProps
enableResourcePropertyConstraintOptional
- Type: boolean
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
public toString(): string
Returns a string representation of this construct.
synthesize
public synthesize(session: ISynthesisSession): void
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: @alicloud/ros-cdk-core.ISynthesisSession
The synthesis session.
addCondition
public addCondition(condition: RosCondition): void
- Type: @alicloud/ros-cdk-core.RosCondition
addCount
public addCount(count: number | IResolvable): void
- Type: number | @alicloud/ros-cdk-core.IResolvable
addDependency
public addDependency(resource: Resource): void
- Type: @alicloud/ros-cdk-core.Resource
addResourceDesc
public addResourceDesc(desc: string): void
- Type: string
applyRemovalPolicy
public applyRemovalPolicy(policy: RemovalPolicy): void
- Type: @alicloud/ros-cdk-core.RemovalPolicy
fetchCondition
public fetchCondition(): RosCondition
fetchDependency
public fetchDependency(): string[]
fetchResourceDesc
public fetchResourceDesc(): string
getAtt
public getAtt(name: string): IResolvable
- Type: string
setMetadata
public setMetadata(key: string, value: any): void
- Type: string
- Type: any
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import { datasource } from '@alicloud/ros-cdk-vpc'
datasource.NatGateway.isConstruct(x: any)
Return whether the given object is a Construct.
- Type: any
Properties
| Name | Type | Description |
|---|---|---|
node | @alicloud/ros-cdk-core.ConstructNode | The construct tree node associated with this construct. |
env | @alicloud/ros-cdk-core.IResourceEnvironment | The environment this resource belongs to. |
ref | string | No description. |
stack | @alicloud/ros-cdk-core.Stack | The stack in which this resource is defined. |
resource | @alicloud/ros-cdk-core.RosResource | No description. |
attrAutoPay | string | @alicloud/ros-cdk-core.IResolvable | Attribute AutoPay: Indicates whether automatic payment is enabled. |
attrBusinessStatus | string | @alicloud/ros-cdk-core.IResolvable | Attribute BusinessStatus: The status of the NAT gateway. |
attrCreateTime | string | @alicloud/ros-cdk-core.IResolvable | Attribute CreateTime: The time when the NAT gateway was created. |
attrDeletionProtection | string | @alicloud/ros-cdk-core.IResolvable | Attribute DeletionProtection: Indicates whether the deletion protection feature is enabled. |
attrDescription | string | @alicloud/ros-cdk-core.IResolvable | Attribute Description: The description of the NAT gateway. |
attrEipBindMode | string | @alicloud/ros-cdk-core.IResolvable | Attribute EipBindMode: The mode in which the NAT gateway is associated with an elastic IP address (EIP). |
attrExpiredTime | string | @alicloud/ros-cdk-core.IResolvable | Attribute ExpiredTime: The time when the NAT gateway expires. |
attrForwardTableIds | string | @alicloud/ros-cdk-core.IResolvable | Attribute ForwardTableIds: The ID of the Destination Network Address Translation (DNAT) table. |
attrIcmpReplyEnabled | string | @alicloud/ros-cdk-core.IResolvable | Attribute IcmpReplyEnabled: Indicates whether the ICMP non-retrieval feature is enabled. |
attrInternetChargeType | string | @alicloud/ros-cdk-core.IResolvable | Attribute InternetChargeType: The metering method of the NAT gateway. |
attrIpLists | string | @alicloud/ros-cdk-core.IResolvable | Attribute IpLists: The list of elastic IP addresses (EIPs) that are associated with the Internet NAT gateway. |
attrNatGatewayId | string | @alicloud/ros-cdk-core.IResolvable | Attribute NatGatewayId: The ID of the NAT gateway. |
attrNatGatewayName | string | @alicloud/ros-cdk-core.IResolvable | Attribute NatGatewayName: The name of the NAT gateway. |
attrNatGatewayPrivateInfo | string | @alicloud/ros-cdk-core.IResolvable | Attribute NatGatewayPrivateInfo: The private network information about the enhanced Internet NAT gateway. |
attrNatType | string | @alicloud/ros-cdk-core.IResolvable | Attribute NatType: The type of the NAT gateway. |
attrNetworkType | string | @alicloud/ros-cdk-core.IResolvable | Attribute NetworkType: The type of NAT gateway. |
attrPaymentType | string | @alicloud/ros-cdk-core.IResolvable | Attribute PaymentType: The billing method of the NAT gateway. |
attrSecurityProtectionEnabled | string | @alicloud/ros-cdk-core.IResolvable | Attribute SecurityProtectionEnabled: Indicates whether the firewall feature is enabled. |
attrSnatTableIds | string | @alicloud/ros-cdk-core.IResolvable | Attribute SnatTableIds: The ID of the SNAT table of the NAT gateway. |
attrSpec | string | @alicloud/ros-cdk-core.IResolvable | Attribute Spec: The size of the NAT gateway. |
attrVpcId | string | @alicloud/ros-cdk-core.IResolvable | Attribute VpcId: The ID of the VPC where the NAT gateway is deployed. |
props | NatGatewayProps | No description. |
nodeRequired
public readonly node: ConstructNode;
- Type: @alicloud/ros-cdk-core.ConstructNode
The construct tree node associated with this construct.
envRequired
public readonly env: IResourceEnvironment;
- Type: @alicloud/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
public readonly ref: string;
- Type: string
stackRequired
public readonly stack: Stack;
- Type: @alicloud/ros-cdk-core.Stack
The stack in which this resource is defined.
resourceOptional
public readonly resource: RosResource;
- Type: @alicloud/ros-cdk-core.RosResource
attrAutoPayRequired
public readonly attrAutoPay: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute AutoPay: Indicates whether automatic payment is enabled.
Valid values: false: no true: yes
attrBusinessStatusRequired
public readonly attrBusinessStatus: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute BusinessStatus: The status of the NAT gateway.
Valid values: Normal: normal FinancialLocked: locked due to overdue payments
attrCreateTimeRequired
public readonly attrCreateTime: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute CreateTime: The time when the NAT gateway was created.
The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
attrDeletionProtectionRequired
public readonly attrDeletionProtection: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute DeletionProtection: Indicates whether the deletion protection feature is enabled.
Valid values: true: yes false: no
attrDescriptionRequired
public readonly attrDescription: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Description: The description of the NAT gateway.
attrEipBindModeRequired
public readonly attrEipBindMode: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute EipBindMode: The mode in which the NAT gateway is associated with an elastic IP address (EIP).
Valid values: MULTI_BINDED: multi-EIP-to-ENI mode* NAT: NAT mode, which is compatible with IPv4 addresses.
attrExpiredTimeRequired
public readonly attrExpiredTime: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ExpiredTime: The time when the NAT gateway expires.
attrForwardTableIdsRequired
public readonly attrForwardTableIds: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ForwardTableIds: The ID of the Destination Network Address Translation (DNAT) table.
attrIcmpReplyEnabledRequired
public readonly attrIcmpReplyEnabled: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute IcmpReplyEnabled: Indicates whether the ICMP non-retrieval feature is enabled.
Valid values: true: yes false: no
attrInternetChargeTypeRequired
public readonly attrInternetChargeType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute InternetChargeType: The metering method of the NAT gateway.
Valid values: PayBySpec: pay-by-specification PayByLcu: pay-by-CU
attrIpListsRequired
public readonly attrIpLists: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute IpLists: The list of elastic IP addresses (EIPs) that are associated with the Internet NAT gateway.
attrNatGatewayIdRequired
public readonly attrNatGatewayId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute NatGatewayId: The ID of the NAT gateway.
attrNatGatewayNameRequired
public readonly attrNatGatewayName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute NatGatewayName: The name of the NAT gateway.
The name must be 1 to 128 characters in length, and cannot start with http:// or https://. If this parameter is not set, the system automatically assigns a name to the NAT gateway.
attrNatGatewayPrivateInfoRequired
public readonly attrNatGatewayPrivateInfo: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute NatGatewayPrivateInfo: The private network information about the enhanced Internet NAT gateway.
attrNatTypeRequired
public readonly attrNatType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute NatType: The type of the NAT gateway.
The value is set to Enhanced (enhanced NAT gateway).
attrNetworkTypeRequired
public readonly attrNetworkType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute NetworkType: The type of NAT gateway.
Valid values: internet: an Internet NAT gateway intranet: a VPC NAT gateway
attrPaymentTypeRequired
public readonly attrPaymentType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute PaymentType: The billing method of the NAT gateway.
Valid values: PrePaid: subscription PostPaid: pay-as-you-go.
attrSecurityProtectionEnabledRequired
public readonly attrSecurityProtectionEnabled: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute SecurityProtectionEnabled: Indicates whether the firewall feature is enabled.
Valid values: false: no true: yes
attrSnatTableIdsRequired
public readonly attrSnatTableIds: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute SnatTableIds: The ID of the SNAT table of the NAT gateway.
attrSpecRequired
public readonly attrSpec: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Spec: The size of the NAT gateway.
An empty value is returned for the parameter. If InternetChargeType is set to PayByLcu, an empty value is returned.
attrVpcIdRequired
public readonly attrVpcId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute VpcId: The ID of the VPC where the NAT gateway is deployed.
propsRequired
public readonly props: NatGatewayProps;
- Type: NatGatewayProps