get Local Gateway
Provides details about an EC2 Local Gateway.
Example Usage
The following example shows how one might accept a local gateway id as a variable.
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.GetLocalGatewayArgs;
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 config = ctx.config();
final var localGatewayId = config.get("localGatewayId");
final var selected = Ec2Functions.getLocalGateway(GetLocalGatewayArgs.builder()
.id(localGatewayId)
.build());
}
}
Return
A collection of values returned by getLocalGateway.
Parameters
A collection of arguments for invoking getLocalGateway.
Return
A collection of values returned by getLocalGateway.
Parameters
Custom filter block as described below.
Id of the specific Local Gateway to retrieve.
Current state of the desired Local Gateway. Can be either "pending"
or "available"
.
Mapping of tags, each pair of which must exactly match a pair on the desired Local Gateway. More complex filters can be expressed using one or more filter
sub-blocks, which take the following arguments:
See also
Return
A collection of values returned by getLocalGateway.
Parameters
Builder for com.pulumi.aws.ec2.kotlin.inputs.GetLocalGatewayPlainArgs.