get Vpc Endpoint
The VPC Endpoint data source provides details about a specific VPC endpoint.
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.GetVpcEndpointArgs;
import com.pulumi.aws.ec2.VpcEndpointRouteTableAssociation;
import com.pulumi.aws.ec2.VpcEndpointRouteTableAssociationArgs;
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 s3 = Ec2Functions.getVpcEndpoint(GetVpcEndpointArgs.builder()
.vpcId(aws_vpc.foo().id())
.serviceName("com.amazonaws.us-west-2.s3")
.build());
var privateS3 = new VpcEndpointRouteTableAssociation("privateS3", VpcEndpointRouteTableAssociationArgs.builder()
.vpcEndpointId(s3.applyValue(getVpcEndpointResult -> getVpcEndpointResult.id()))
.routeTableId(aws_route_table.private().id())
.build());
}
}
Return
A collection of values returned by getVpcEndpoint.
Parameters
A collection of arguments for invoking getVpcEndpoint.
Return
A collection of values returned by getVpcEndpoint.
Parameters
Custom filter block as described below.
ID of the specific VPC Endpoint to retrieve.
Service name of the specific VPC Endpoint to retrieve. For AWS services the service name is usually in the form com.amazonaws.<region>.<service>
(the SageMaker Notebook service is an exception to this rule, the service name is in the form aws.sagemaker.<region>.notebook
).
State of the specific VPC Endpoint to retrieve.
Map of tags, each pair of which must exactly match a pair on the specific VPC Endpoint to retrieve.
ID of the VPC in which the specific VPC Endpoint is used. 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 getVpcEndpoint.
Parameters
Builder for com.pulumi.aws.ec2.kotlin.inputs.GetVpcEndpointPlainArgs.