Show / Hide Table of Contents

Class GetVpcEndpointService

Inheritance
System.Object
GetVpcEndpointService
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 GetVpcEndpointService

Methods

View Source

InvokeAsync(GetVpcEndpointServiceArgs, InvokeOptions)

The VPC Endpoint Service data source details about a specific service that can be specified when creating a VPC endpoint within the region configured in the provider.

{{% examples %}}

Example Usage

{{% example %}}

AWS Service

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var s3 = Output.Create(Aws.Ec2.GetVpcEndpointService.InvokeAsync(new Aws.Ec2.GetVpcEndpointServiceArgs
    {
        Service = "s3",
    }));
    // Create a VPC
    var foo = new Aws.Ec2.Vpc("foo", new Aws.Ec2.VpcArgs
    {
        CidrBlock = "10.0.0.0/16",
    });
    // Create a VPC endpoint
    var ep = new Aws.Ec2.VpcEndpoint("ep", new Aws.Ec2.VpcEndpointArgs
    {
        ServiceName = s3.Apply(s3 => s3.ServiceName),
        VpcId = foo.Id,
    });
}

}

{{% /example %}} {{% example %}}

Non-AWS Service

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var custome = Output.Create(Aws.Ec2.GetVpcEndpointService.InvokeAsync(new Aws.Ec2.GetVpcEndpointServiceArgs
    {
        ServiceName = "com.amazonaws.vpce.us-west-2.vpce-svc-0e87519c997c63cd8",
    }));
}

}

{{% /example %}} {{% example %}}

Filter

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var test = Output.Create(Aws.Ec2.GetVpcEndpointService.InvokeAsync(new Aws.Ec2.GetVpcEndpointServiceArgs
    {
        Filters = 
        {
            new Aws.Ec2.Inputs.GetVpcEndpointServiceFilterArgs
            {
                Name = "service-name",
                Values = 
                {
                    "some-service",
                },
            },
        },
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetVpcEndpointServiceResult> InvokeAsync(GetVpcEndpointServiceArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetVpcEndpointServiceArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetVpcEndpointServiceResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.