get Nat Gateways
This data source provides a list of Nat Gateways owned by an Alibaba Cloud account.
NOTE: Available in 1.37.0+.
Example Usage
configuration:
name:
type: string
default: natGatewaysDatasource
resources:
fooNetwork:
type: alicloud:vpc:Network
name: foo
properties:
vpcName: ${name}
cidrBlock: 172.16.0.0/12
fooNatGateway:
type: alicloud:vpc:NatGateway
name: foo
properties:
vpcId: ${fooNetwork.id}
specification: Small
natGateName: ${name}
variables:
default:
fn::invoke:
Function: alicloud:getZones
Arguments:
availableResourceCreation: VSwitch
foo:
fn::invoke:
Function: alicloud:vpc:getNatGateways
Arguments:
vpcId: ${fooNetwork.id}
nameRegex: ${fooNatGateway.name}
ids:
- ${fooNatGateway.id}Return
A collection of values returned by getNatGateways.
Parameters
A collection of arguments for invoking getNatGateways.
Return
A collection of values returned by getNatGateways.
Parameters
Specifies whether to only precheck the request.
Default to false. Set it to true can output more details about resource attributes.
A list of NAT gateways IDs.
A regex string to filter nat gateways by name.
The name of NAT gateway.
The nat type of NAT gateway. Valid values Enhanced and Normal.
File name where to save data source results (after running pulumi preview).
The payment type of NAT gateway. Valid values PayAsYouGo and Subscription.
The resource group id of NAT gateway.
The specification of NAT gateway. Valid values Middle, Large, Small and XLarge.1. Default value is Small.
The status of NAT gateway. Valid values Available, Converting, Creating, Deleting and Modifying.
The tags of NAT gateway.
The ID of the VPC.
See also
Return
A collection of values returned by getNatGateways.
Parameters
Builder for com.pulumi.alicloud.vpc.kotlin.inputs.GetNatGatewaysPlainArgs.