NatGateway
This class encapsulates and extends the ROS resource type DATASOURCE::VPC::NatGateway, which is used to query the information about a NAT gateway.
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkvpc/datasource"
datasource.NewNatGateway(scope Construct, id *string, props NatGatewayProps, enableResourcePropertyConstraint *bool) NatGateway
| Name | Type | Description |
|---|---|---|
scope |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct |
No description. |
id |
*string |
No description. |
props |
NatGatewayProps |
No description. |
enableResourcePropertyConstraint |
*bool |
No description. |
scopeRequired
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct
idRequired
- Type: *string
propsRequired
- Type: NatGatewayProps
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.
- 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
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/alicloudroscdkvpc/datasource"
datasource.NatGateway_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. |
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. |
AttrAutoPay |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute AutoPay: Indicates whether automatic payment is enabled. |
AttrBusinessStatus |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute BusinessStatus: The status of the NAT gateway. |
AttrCreateTime |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute CreateTime: The time when the NAT gateway was created. |
AttrDeletionProtection |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute DeletionProtection: Indicates whether the deletion protection feature is enabled. |
AttrDescription |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Description: The description of the NAT gateway. |
AttrEipBindMode |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute EipBindMode: The mode in which the NAT gateway is associated with an elastic IP address (EIP). |
AttrExpiredTime |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ExpiredTime: The time when the NAT gateway expires. |
AttrForwardTableIds |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ForwardTableIds: The ID of the Destination Network Address Translation (DNAT) table. |
AttrIcmpReplyEnabled |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute IcmpReplyEnabled: Indicates whether the ICMP non-retrieval feature is enabled. |
AttrInternetChargeType |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute InternetChargeType: The metering method of the NAT gateway. |
AttrIpLists |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute IpLists: The list of elastic IP addresses (EIPs) that are associated with the Internet NAT gateway. |
AttrNatGatewayId |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute NatGatewayId: The ID of the NAT gateway. |
AttrNatGatewayName |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute NatGatewayName: The name of the NAT gateway. |
AttrNatGatewayPrivateInfo |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute NatGatewayPrivateInfo: The private network information about the enhanced Internet NAT gateway. |
AttrNatType |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute NatType: The type of the NAT gateway. |
AttrNetworkType |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute NetworkType: The type of NAT gateway. |
AttrPaymentType |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute PaymentType: The billing method of the NAT gateway. |
AttrSecurityProtectionEnabled |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute SecurityProtectionEnabled: Indicates whether the firewall feature is enabled. |
AttrSnatTableIds |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute SnatTableIds: The ID of the SNAT table of the NAT gateway. |
AttrSpec |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Spec: The size of the NAT gateway. |
AttrVpcId |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute VpcId: The ID of the VPC where the NAT gateway is deployed. |
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
AttrAutoPayRequired
func AttrAutoPay() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute AutoPay: Indicates whether automatic payment is enabled.
Valid values: false: no true: yes
AttrBusinessStatusRequired
func AttrBusinessStatus() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute BusinessStatus: The status of the NAT gateway.
Valid values: Normal: normal FinancialLocked: locked due to overdue payments
AttrCreateTimeRequired
func AttrCreateTime() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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
func AttrDeletionProtection() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute DeletionProtection: Indicates whether the deletion protection feature is enabled.
Valid values: true: yes false: no
AttrDescriptionRequired
func AttrDescription() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Description: The description of the NAT gateway.
AttrEipBindModeRequired
func AttrEipBindMode() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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
func AttrExpiredTime() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ExpiredTime: The time when the NAT gateway expires.
AttrForwardTableIdsRequired
func AttrForwardTableIds() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ForwardTableIds: The ID of the Destination Network Address Translation (DNAT) table.
AttrIcmpReplyEnabledRequired
func AttrIcmpReplyEnabled() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute IcmpReplyEnabled: Indicates whether the ICMP non-retrieval feature is enabled.
Valid values: true: yes false: no
AttrInternetChargeTypeRequired
func AttrInternetChargeType() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute InternetChargeType: The metering method of the NAT gateway.
Valid values: PayBySpec: pay-by-specification PayByLcu: pay-by-CU
AttrIpListsRequired
func AttrIpLists() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute IpLists: The list of elastic IP addresses (EIPs) that are associated with the Internet NAT gateway.
AttrNatGatewayIdRequired
func AttrNatGatewayId() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute NatGatewayId: The ID of the NAT gateway.
AttrNatGatewayNameRequired
func AttrNatGatewayName() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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
func AttrNatGatewayPrivateInfo() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute NatGatewayPrivateInfo: The private network information about the enhanced Internet NAT gateway.
AttrNatTypeRequired
func AttrNatType() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute NatType: The type of the NAT gateway.
The value is set to Enhanced (enhanced NAT gateway).
AttrNetworkTypeRequired
func AttrNetworkType() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute NetworkType: The type of NAT gateway.
Valid values: internet: an Internet NAT gateway intranet: a VPC NAT gateway
AttrPaymentTypeRequired
func AttrPaymentType() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute PaymentType: The billing method of the NAT gateway.
Valid values: PrePaid: subscription PostPaid: pay-as-you-go.
AttrSecurityProtectionEnabledRequired
func AttrSecurityProtectionEnabled() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute SecurityProtectionEnabled: Indicates whether the firewall feature is enabled.
Valid values: false: no true: yes
AttrSnatTableIdsRequired
func AttrSnatTableIds() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute SnatTableIds: The ID of the SNAT table of the NAT gateway.
AttrSpecRequired
func AttrSpec() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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
func AttrVpcId() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute VpcId: The ID of the VPC where the NAT gateway is deployed.