Class GetVpcEndpoint
Inheritance
System.Object
GetVpcEndpoint
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public static class GetVpcEndpoint
Methods
View SourceInvokeAsync(GetVpcEndpointArgs, InvokeOptions)
The VPC Endpoint data source provides details about a specific VPC endpoint.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var s3 = Output.Create(Aws.Ec2.GetVpcEndpoint.InvokeAsync(new Aws.Ec2.GetVpcEndpointArgs
{
ServiceName = "com.amazonaws.us-west-2.s3",
VpcId = aws_vpc.Foo.Id,
}));
var privateS3 = new Aws.Ec2.VpcEndpointRouteTableAssociation("privateS3", new Aws.Ec2.VpcEndpointRouteTableAssociationArgs
{
RouteTableId = aws_route_table.Private.Id,
VpcEndpointId = s3.Apply(s3 => s3.Id),
});
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetVpcEndpointResult> InvokeAsync(GetVpcEndpointArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetVpcEndpointArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetVpcEndpointResult> |