edit-icon download-icon

ALIYUN::ECS::SNatEntry

Last Updated: Jun 13, 2018

The ALIYUN::ECS::SNatEntry type is used to configure the SNAT table of the NAT gateway.

Syntax

  1. {
  2. "Type" : "ALIYUN::ECS::SNatEntry",
  3. "Properties" : {
  4. "SNatTableId" : String,
  5. "SNatIp" : String,
  6. "SourceVSwitchId" : String
  7. }
  8. }

Attributes

Attribute name Type Required Description Constraint
SNatTableId string Yes ID of the SNAT table. N/A
SNatIp string Yes Public IP address used by SNAT. The public IP address must be included in the bandwidth package of the NAT gateway. It cannot exist in both the port forwarding table and the SNAT table.
SourceVSwitchId string Yes ID of the VSwitch whose ECS instances can access the Internet over the SNAT function of the NAT gateway. N/A

Return values

Fn::GetAtt

SNatEntryId: entry IDs in the SNAT table.

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "SNatEntry": {
  5. "Type": "ALIYUN::ECS::SNatEntry",
  6. "Properties": {
  7. "SNatTableId": "stb-3er41e05p",
  8. "SourceVSwitchId": "vsw-25rc1y5t9",
  9. "SNatIp": "101.201.34.162"
  10. }
  11. }
  12. },
  13. "Outputs": {
  14. "SNatEntryId": {
  15. "Value" : {"Fn::GetAttr": ["SNatEntry","SNatEntryId"]}
  16. }
  17. }
Thank you! We've received your feedback.