Consulta informações sobre customer gateways.
Sintaxe
{
"Type": "DATASOURCE::VPC::CustomerGateways",
"Properties": {
"CustomerGatewayId": String,
"RefreshOptions": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
CustomerGatewayId |
String |
Não |
Sim |
ID do customer gateway. |
Nenhuma. |
|
RefreshOptions |
String |
Não |
Sim |
Política de atualização dos recursos da source ao atualizar a pilha. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
CustomerGateways: detalhes dos customer gateways.
CustomerGatewayIds: IDs dos customer gateways.
|
Propriedade |
Tipo |
Descrição |
Restrição |
|
CustomerGatewayIds |
List |
IDs dos customer gateways. |
Nenhuma. |
|
CustomerGateways |
List |
Detalhes dos customer gateways. |
Nenhuma. |
|
CustomerGatewayName |
String |
Nome do customer gateway. |
Nenhuma. |
|
Description |
String |
Descrição do customer gateway. |
Nenhuma. |
|
Asn |
Number |
Número do sistema autônomo (ASN) do dispositivo de gateway no data center. |
Nenhuma. |
|
AuthKey |
String |
Chave de autenticação BGP do dispositivo de gateway no data center. |
Nenhuma. |
|
CustomerGatewayId |
String |
ID do customer gateway. |
Nenhuma. |
|
IpAddress |
String |
Endereço IP público do dispositivo de gateway no data center. |
Nenhuma. |
|
CreateTime |
String |
Horário de criação do customer gateway. |
Unidade: milissegundos. O valor é um timestamp UNIX que representa o número de milissegundos decorridos desde 1º de janeiro de 1970, 00:00:00 UTC. |
Exemplos
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"
]
}
}
}
}