DATASOURCE::VPC::CustomerGateways is used to query customer gateways.

Syntax

{
  "Type": "DATASOURCE::VPC::CustomerGateways",
  "Properties": {
    "CustomerGatewayId": String
  }
}

Properties

PropertyTypeRequiredEditableDescriptionConstraint
CustomerGatewayIdStringNoYesThe ID of the customer gateway. None.

Return values

Fn::GetAtt

  • CustomerGateways: details of the customer gateways.
  • CustomerGatewayIds: the IDs of the customer gateways.
PropertyTypeDescriptionConstraint
CustomerGatewayIdsListThe IDs of the customer gateways. None.
CustomerGatewaysListDetails of the customer gateways. None.
CustomerGatewayNameStringThe name of the customer gateway. None.
DescriptionStringThe description of the customer gateway. None.
AsnNumberThe autonomous system number (ASN) of the gateway device in the data center. None.
AuthKeyStringThe authentication key of the Border Gateway Protocol (BGP) routing protocol for the gateway device in the data center. None.
CustomerGatewayIdStringThe ID of the customer gateway. None.
IpAddressStringThe public IP address of the gateway device in the data center. None.
CreateTimeStringThe timestamp generated when the customer gateway was created. Unit: milliseconds.

This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      CustomerGatewayId:
        Description: The ID of the customer gateway.
        Type: String
    Resources:
      ExtensionDataSource:
        Properties:
          CustomerGatewayId:
            Ref: CustomerGatewayId
        Type: DATASOURCE::VPC::CustomerGateways
    Outputs:
      CustomerGatewayIds:
        Description: The list of customer gateway IDs.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - CustomerGatewayIds
      CustomerGateways:
        Description: The list of customer gateways.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - CustomerGateways
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "CustomerGatewayId": {
          "Type": "String",
          "Description": "The ID of the customer gateway."
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::VPC::CustomerGateways",
          "Properties": {
            "CustomerGatewayId": {
              "Ref": "CustomerGatewayId"
            }
          }
        }
      },
      "Outputs": {
        "CustomerGateways": {
          "Description": "The list of customer gateways.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "CustomerGateways"
            ]
          }
        },
        "CustomerGatewayIds": {
          "Description": "The list of customer gateway IDs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "CustomerGatewayIds"
            ]
          }
        }
      }
    }