get Vpn Gateway
The VPN Gateway data source provides details about a specific VPN gateway.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Ec2Functions;
import com.pulumi.aws.ec2.inputs.GetVpnGatewayArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var selected = Ec2Functions.getVpnGateway(GetVpnGatewayArgs.builder()
.filters(GetVpnGatewayFilterArgs.builder()
.name("tag:Name")
.values("vpn-gw")
.build())
.build());
ctx.export("vpnGatewayId", selected.applyValue(getVpnGatewayResult -> getVpnGatewayResult.id()));
}
}
Return
A collection of values returned by getVpnGateway.
Parameters
A collection of arguments for invoking getVpnGateway.
Return
A collection of values returned by getVpnGateway.
Parameters
Autonomous System Number (ASN) for the Amazon side of the specific VPN Gateway to retrieve. More complex filters can be expressed using one or more filter
sub-blocks, which take the following arguments:
ID of a VPC attached to the specific VPN Gateway to retrieve.
Availability Zone of the specific VPN Gateway to retrieve.
Custom filter block as described below.
ID of the specific VPN Gateway to retrieve.
State of the specific VPN Gateway to retrieve.
Map of tags, each pair of which must exactly match a pair on the desired VPN Gateway.
See also
Return
A collection of values returned by getVpnGateway.
Parameters
Builder for com.pulumi.aws.ec2.kotlin.inputs.GetVpnGatewayPlainArgs.