-
Notifications
You must be signed in to change notification settings - Fork 35
/
nat-gateway.yml
136 lines (136 loc) · 3.58 KB
/
nat-gateway.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建VPC Nat Gateway,支持付费方式、计费周期、网络计费类型、保护设置及自定义标签等功能。
en: Create a VPC NAT Gateway, supporting features such as payment options, billing
cycles, network billing types, security settings, and custom tags.
Parameters:
VSwitchId:
Type: String
Description: The VSwitch id to create NAT gateway.
VpcId:
Type: String
Description: The VPC id to create NAT gateway.
Description:
Type: String
Description: Description of the NAT gateway, [2, 256] characters. Do not fill
or empty, the default is empty.
Default: null
NatGatewayName:
Type: String
Description: Display name of the NAT gateway, [2, 128] English or Chinese characters,
must start with a letter or Chinese in size, can contain numbers, '_' or '.',
'-'
Default: null
InstanceChargeType:
Type: String
Description: The billing method. The default value is PostPaid (which means pay-as-you-go).
Default: PostPaid
AllowedValues:
- null
- PrePaid
- PostPaid
PricingCycle:
Type: String
Description: Price cycle of the resource. This property has no default value.
Default: null
AllowedValues:
- null
- Month
- Year
InternetChargeType:
Type: String
Description: |-
The billing method for the NAT gateway. Valid values:
PayBySpec: billed on a pay-by-specification basis.
PayByLcu: billed on a pay-by-LCU basis.
Default: null
AllowedValues:
- null
- PayBySpec
- PayByLcu
DeletionProtection:
Type: Boolean
Description: |-
Whether to enable deletion protection.
Default to False.
Default: false
AllowedValues:
- true
- false
AutoPay:
Type: Boolean
Description: Specifies whether to enable automatic payment. Default is false.
Default: false
AllowedValues:
- true
- false
NatType:
Type: String
Description: |-
The type of the NAT gateway. Valid values:
- Enhanced: enhanced NAT gateway.
Default: null
AllowedValues:
- null
- Enhanced
DeletionForce:
Type: Boolean
Description: Whether force delete the relative snat and dnat entries in the net
gateway and unbind eips. Default value is false.
Default: false
AllowedValues:
- true
- false
Tags:
Type: Json
Description: Tags to attach to natgateway. Max support 20 tags to add during create
natgateway. Each tag with two properties Key and Value, and Key is required.
Default: null
MaxLength: 20
Resources:
VpcNatGateway:
Type: ALIYUN::VPC::NatGateway
Properties:
VpcId:
Ref: VpcId
VSwitchId:
Ref: VSwitchId
Description:
Ref: Description
NatGatewayName:
Ref: NatGatewayName
InstanceChargeType:
Ref: InstanceChargeType
PricingCycle:
Ref: PricingCycle
InternetChargeType:
Ref: InternetChargeType
DeletionProtection:
Ref: DeletionProtection
AutoPay:
Ref: AutoPay
NatType:
Ref: NatType
DeletionForce:
Ref: DeletionForce
Tags:
Ref: Tags
Outputs:
NatGatewayId:
Description: The Id of created NAT gateway.
Value:
Fn::GetAtt:
- VpcNatGateway
- NatGatewayId
SNatTableId:
Description: The SNAT table id.
Value:
Fn::GetAtt:
- VpcNatGateway
- SNatTableId
ForwardTableId:
Description: The forward table id.
Value:
Fn::GetAtt:
- VpcNatGateway
- ForwardTableId