Todos os produtos
Search
Central de documentação

Resource Orchestration Service:DATASOURCE::VPC::NatGateway

Última atualização: Jun 27, 2026

O recurso DATASOURCE::VPC::NatGateway consulta informações de um NAT gateway.

Sintaxe

{
  "Type": "DATASOURCE::VPC::NatGateway",
  "Properties": {
    "NatGatewayId": String,
    "RefreshOptions": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatório

Editável

Descrição

Restrição

NatGatewayId

String

Sim

Sim

ID do NAT gateway.

Nenhuma.

RefreshOptions

String

Não

Sim

Política de atualização dos recursos da fonte de dados durante a atualização da pilha.

Valores válidos:

  • Never (padrão): não atualiza os recursos da fonte de dados ao atualizar a pilha.

  • Always: atualiza os recursos da fonte de dados ao atualizar a pilha.

Valores de retorno

Fn::GetAtt

  • Description: descrição do NAT gateway.

  • NatGatewayName: nome do NAT gateway.

  • EipBindMode: modo de associação entre o NAT gateway e um elastic IP address (EIP).

  • ForwardTableIds: ID da tabela DNAT.

  • CreateTime: hora de criação do NAT gateway.

  • IpLists: endereços IP do NAT gateway.

  • SecurityProtectionEnabled: indica se o recurso de firewall está ativado.

  • DeletionProtection: indica se a proteção contra exclusão está ativada.

  • AutoPay: indica se o pagamento automático está ativado.

  • BusinessStatus: status do serviço do NAT gateway.

  • NatType: tipo do NAT gateway.

  • InternetChargeType: método de faturamento do NAT gateway.

  • NatGatewayPrivateInfo: informações de rede privada do NAT gateway de Internet aprimorado.

  • VpcId: ID da virtual private cloud (VPC) onde o NAT gateway está implantado.

  • SnatTableIds: ID da tabela SNAT.

  • NetworkType: tipo do NAT gateway.

  • ExpiredTime: hora de expiração do NAT gateway.

  • IcmpReplyEnabled: indica se o recurso de não recuperação do Internet Control Message Protocol (ICMP) está ativado.

  • PaymentType: método de faturamento do NAT gateway.

  • Spec: especificações do NAT gateway de Internet.

  • NatGatewayId: ID do NAT gateway.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  NatGatewayId:
    Type: String
    Description:
      en: The ID of the NAT gateway.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::VPC::NatGateway
    Properties:
      NatGatewayId:
        Ref: NatGatewayId
Outputs:
  Description:
    Description: The description of the NAT gateway.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Description
  NatGatewayName:
    Description: 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.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - NatGatewayName
  EipBindMode:
    Description: |-
      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.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - EipBindMode
  ForwardTableIds:
    Description: The ID of the Destination Network Address Translation (DNAT) table.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ForwardTableIds
  CreateTime:
    Description: 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.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTime
  IpLists:
    Description: The list of elastic IP addresses (EIPs) that are associated with the Internet NAT gateway.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - IpLists
  SecurityProtectionEnabled:
    Description: |-
      Indicates whether the firewall feature is enabled. Valid values:
      false: no
      true: yes
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - SecurityProtectionEnabled
  DeletionProtection:
    Description: |-
      Indicates whether the deletion protection feature is enabled. Valid values:
      * true: yes
      * false: no
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DeletionProtection
  AutoPay:
    Description: |-
      Indicates whether automatic payment is enabled. Valid values:
      * false: no
      true: yes
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AutoPay
  BusinessStatus:
    Description: |-
      The status of the NAT gateway. Valid values:
      * Normal: normal
      * FinancialLocked: locked due to overdue payments
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - BusinessStatus
  NatType:
    Description: The type of the NAT gateway. The value is set to Enhanced (enhanced NAT gateway).
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - NatType
  InternetChargeType:
    Description: |-
      The metering method of the NAT gateway. Valid values:
      * PayBySpec: pay-by-specification
      * PayByLcu: pay-by-CU
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - InternetChargeType
  NatGatewayPrivateInfo:
    Description: The private network information about the enhanced Internet NAT gateway.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - NatGatewayPrivateInfo
  VpcId:
    Description: The ID of the VPC where the NAT gateway is deployed.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - VpcId
  SnatTableIds:
    Description: The ID of the SNAT table of the NAT gateway.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - SnatTableIds
  NetworkType:
    Description: |-
      The type of NAT gateway. Valid values:
      * internet: an Internet NAT gateway
      * intranet: a VPC NAT gateway
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - NetworkType
  ExpiredTime:
    Description: The time when the NAT gateway expires.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ExpiredTime
  IcmpReplyEnabled:
    Description: |-
      Indicates whether the ICMP non-retrieval feature is enabled. Valid values:
      * true: yes
      * false: no
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - IcmpReplyEnabled
  PaymentType:
    Description: 'The billing method of the NAT gateway. Valid values:  PrePaid: subscription PostPaid: pay-as-you-go.'
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - PaymentType
  Spec:
    Description: 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.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Spec
  NatGatewayId:
    Description: The ID of the NAT gateway.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - NatGatewayId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "NatGatewayId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the NAT gateway."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::VPC::NatGateway",
      "Properties": {
        "NatGatewayId": {
          "Ref": "NatGatewayId"
        }
      }
    }
  },
  "Outputs": {
    "Description": {
      "Description": "The description of the NAT gateway.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "NatGatewayName": {
      "Description": "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.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "NatGatewayName"
        ]
      }
    },
    "EipBindMode": {
      "Description": "The mode in which the NAT gateway is associated with an elastic IP address (EIP). Valid values:\n* MULTI_BINDED: multi-EIP-to-ENI mode* NAT: NAT mode, which is compatible with IPv4 addresses.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "EipBindMode"
        ]
      }
    },
    "ForwardTableIds": {
      "Description": "The ID of the Destination Network Address Translation (DNAT) table.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ForwardTableIds"
        ]
      }
    },
    "CreateTime": {
      "Description": "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.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "IpLists": {
      "Description": "The list of elastic IP addresses (EIPs) that are associated with the Internet NAT gateway.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "IpLists"
        ]
      }
    },
    "SecurityProtectionEnabled": {
      "Description": "Indicates whether the firewall feature is enabled. Valid values:\nfalse: no\ntrue: yes",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SecurityProtectionEnabled"
        ]
      }
    },
    "DeletionProtection": {
      "Description": "Indicates whether the deletion protection feature is enabled. Valid values:\n* true: yes\n* false: no",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DeletionProtection"
        ]
      }
    },
    "AutoPay": {
      "Description": "Indicates whether automatic payment is enabled. Valid values:\n* false: no\ntrue: yes",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AutoPay"
        ]
      }
    },
    "BusinessStatus": {
      "Description": "The status of the NAT gateway. Valid values:\n* Normal: normal\n* FinancialLocked: locked due to overdue payments",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "BusinessStatus"
        ]
      }
    },
    "NatType": {
      "Description": "The type of the NAT gateway. The value is set to Enhanced (enhanced NAT gateway).",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "NatType"
        ]
      }
    },
    "InternetChargeType": {
      "Description": "The metering method of the NAT gateway. Valid values:\n* PayBySpec: pay-by-specification\n* PayByLcu: pay-by-CU",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "InternetChargeType"
        ]
      }
    },
    "NatGatewayPrivateInfo": {
      "Description": "The private network information about the enhanced Internet NAT gateway.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "NatGatewayPrivateInfo"
        ]
      }
    },
    "VpcId": {
      "Description": "The ID of the VPC where the NAT gateway is deployed.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VpcId"
        ]
      }
    },
    "SnatTableIds": {
      "Description": "The ID of the SNAT table of the NAT gateway.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SnatTableIds"
        ]
      }
    },
    "NetworkType": {
      "Description": "The type of NAT gateway. Valid values:\n* internet: an Internet NAT gateway\n* intranet: a VPC NAT gateway",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "NetworkType"
        ]
      }
    },
    "ExpiredTime": {
      "Description": "The time when the NAT gateway expires.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ExpiredTime"
        ]
      }
    },
    "IcmpReplyEnabled": {
      "Description": "Indicates whether the ICMP non-retrieval feature is enabled. Valid values:\n* true: yes\n* false: no",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "IcmpReplyEnabled"
        ]
      }
    },
    "PaymentType": {
      "Description": "The billing method of the NAT gateway. Valid values:  PrePaid: subscription PostPaid: pay-as-you-go.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PaymentType"
        ]
      }
    },
    "Spec": {
      "Description": "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.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Spec"
        ]
      }
    },
    "NatGatewayId": {
      "Description": "The ID of the NAT gateway.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "NatGatewayId"
        ]
      }
    }
  }
}