AWS v6.80.0 published on Tuesday, May 6, 2025 by Pulumi
aws.vpc.getVpcEndpointAssociations
Explore with Pulumi AI
Data source for managing an AWS EC2 (Elastic Compute Cloud) Vpc Endpoint Associations.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.vpc.getVpcEndpointAssociations({
vpcEndpointId: exampleAwsVpcEndpoint.id,
});
import pulumi
import pulumi_aws as aws
example = aws.vpc.get_vpc_endpoint_associations(vpc_endpoint_id=example_aws_vpc_endpoint["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpc.GetVpcEndpointAssociations(ctx, &vpc.GetVpcEndpointAssociationsArgs{
VpcEndpointId: exampleAwsVpcEndpoint.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Vpc.GetVpcEndpointAssociations.Invoke(new()
{
VpcEndpointId = exampleAwsVpcEndpoint.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.vpc.VpcFunctions;
import com.pulumi.aws.vpc.inputs.GetVpcEndpointAssociationsArgs;
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 example = VpcFunctions.getVpcEndpointAssociations(GetVpcEndpointAssociationsArgs.builder()
.vpcEndpointId(exampleAwsVpcEndpoint.id())
.build());
}
}
variables:
example:
fn::invoke:
function: aws:vpc:getVpcEndpointAssociations
arguments:
vpcEndpointId: ${exampleAwsVpcEndpoint.id}
Using getVpcEndpointAssociations
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVpcEndpointAssociations(args: GetVpcEndpointAssociationsArgs, opts?: InvokeOptions): Promise<GetVpcEndpointAssociationsResult>
function getVpcEndpointAssociationsOutput(args: GetVpcEndpointAssociationsOutputArgs, opts?: InvokeOptions): Output<GetVpcEndpointAssociationsResult>
def get_vpc_endpoint_associations(vpc_endpoint_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcEndpointAssociationsResult
def get_vpc_endpoint_associations_output(vpc_endpoint_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpcEndpointAssociationsResult]
func GetVpcEndpointAssociations(ctx *Context, args *GetVpcEndpointAssociationsArgs, opts ...InvokeOption) (*GetVpcEndpointAssociationsResult, error)
func GetVpcEndpointAssociationsOutput(ctx *Context, args *GetVpcEndpointAssociationsOutputArgs, opts ...InvokeOption) GetVpcEndpointAssociationsResultOutput
> Note: This function is named GetVpcEndpointAssociations
in the Go SDK.
public static class GetVpcEndpointAssociations
{
public static Task<GetVpcEndpointAssociationsResult> InvokeAsync(GetVpcEndpointAssociationsArgs args, InvokeOptions? opts = null)
public static Output<GetVpcEndpointAssociationsResult> Invoke(GetVpcEndpointAssociationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVpcEndpointAssociationsResult> getVpcEndpointAssociations(GetVpcEndpointAssociationsArgs args, InvokeOptions options)
public static Output<GetVpcEndpointAssociationsResult> getVpcEndpointAssociations(GetVpcEndpointAssociationsArgs args, InvokeOptions options)
fn::invoke:
function: aws:vpc/getVpcEndpointAssociations:getVpcEndpointAssociations
arguments:
# arguments dictionary
The following arguments are supported:
- Vpc
Endpoint stringId - ID of the specific VPC Endpoint to retrieve.
- Vpc
Endpoint stringId - ID of the specific VPC Endpoint to retrieve.
- vpc
Endpoint StringId - ID of the specific VPC Endpoint to retrieve.
- vpc
Endpoint stringId - ID of the specific VPC Endpoint to retrieve.
- vpc_
endpoint_ strid - ID of the specific VPC Endpoint to retrieve.
- vpc
Endpoint StringId - ID of the specific VPC Endpoint to retrieve.
getVpcEndpointAssociations Result
The following output properties are available:
- Associations
List<Get
Vpc Endpoint Associations Association> - Associations for the VPC Endpoint. Association blocks are documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Vpc
Endpoint stringId
- Associations
[]Get
Vpc Endpoint Associations Association - Associations for the VPC Endpoint. Association blocks are documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Vpc
Endpoint stringId
- associations
List<Get
Vpc Endpoint Associations Association> - Associations for the VPC Endpoint. Association blocks are documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- vpc
Endpoint StringId
- associations
Get
Vpc Endpoint Associations Association[] - Associations for the VPC Endpoint. Association blocks are documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- vpc
Endpoint stringId
- associations
Sequence[Get
Vpc Endpoint Associations Association] - Associations for the VPC Endpoint. Association blocks are documented below.
- id str
- The provider-assigned unique ID for this managed resource.
- vpc_
endpoint_ strid
- associations List<Property Map>
- Associations for the VPC Endpoint. Association blocks are documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- vpc
Endpoint StringId
Supporting Types
GetVpcEndpointAssociationsAssociation
- Associated
Resource stringAccessibility - Accessibility of the resource.
- Associated
Resource stringArn - ARN of the resource for this association.
- Dns
Entries List<GetVpc Endpoint Associations Association Dns Entry> - DNS entries for the Association. DNS entry blocks are documented below.
- Id string
- Private
Dns List<GetEntries Vpc Endpoint Associations Association Private Dns Entry> - DNS entries for the Association. Private DNS entry blocks are documented below.
- Resource
Configuration stringGroup Arn - ARN of the Resource Group if the Resource is a member of a group.
- Service
Network stringArn - Service Network ARN. Applicable for endpoints of type
ServiceNetwork
. - Service
Network stringName - Service Network Name. Applicable for endpoints of type
ServiceNetwork
. - Dictionary<string, string>
- Tags of the association.
- Associated
Resource stringAccessibility - Accessibility of the resource.
- Associated
Resource stringArn - ARN of the resource for this association.
- Dns
Entries []GetVpc Endpoint Associations Association Dns Entry - DNS entries for the Association. DNS entry blocks are documented below.
- Id string
- Private
Dns []GetEntries Vpc Endpoint Associations Association Private Dns Entry - DNS entries for the Association. Private DNS entry blocks are documented below.
- Resource
Configuration stringGroup Arn - ARN of the Resource Group if the Resource is a member of a group.
- Service
Network stringArn - Service Network ARN. Applicable for endpoints of type
ServiceNetwork
. - Service
Network stringName - Service Network Name. Applicable for endpoints of type
ServiceNetwork
. - map[string]string
- Tags of the association.
- associated
Resource StringAccessibility - Accessibility of the resource.
- associated
Resource StringArn - ARN of the resource for this association.
- dns
Entries List<GetVpc Endpoint Associations Association Dns Entry> - DNS entries for the Association. DNS entry blocks are documented below.
- id String
- private
Dns List<GetEntries Vpc Endpoint Associations Association Private Dns Entry> - DNS entries for the Association. Private DNS entry blocks are documented below.
- resource
Configuration StringGroup Arn - ARN of the Resource Group if the Resource is a member of a group.
- service
Network StringArn - Service Network ARN. Applicable for endpoints of type
ServiceNetwork
. - service
Network StringName - Service Network Name. Applicable for endpoints of type
ServiceNetwork
. - Map<String,String>
- Tags of the association.
- associated
Resource stringAccessibility - Accessibility of the resource.
- associated
Resource stringArn - ARN of the resource for this association.
- dns
Entries GetVpc Endpoint Associations Association Dns Entry[] - DNS entries for the Association. DNS entry blocks are documented below.
- id string
- private
Dns GetEntries Vpc Endpoint Associations Association Private Dns Entry[] - DNS entries for the Association. Private DNS entry blocks are documented below.
- resource
Configuration stringGroup Arn - ARN of the Resource Group if the Resource is a member of a group.
- service
Network stringArn - Service Network ARN. Applicable for endpoints of type
ServiceNetwork
. - service
Network stringName - Service Network Name. Applicable for endpoints of type
ServiceNetwork
. - {[key: string]: string}
- Tags of the association.
- associated_
resource_ straccessibility - Accessibility of the resource.
- associated_
resource_ strarn - ARN of the resource for this association.
- dns_
entries Sequence[GetVpc Endpoint Associations Association Dns Entry] - DNS entries for the Association. DNS entry blocks are documented below.
- id str
- private_
dns_ Sequence[Getentries Vpc Endpoint Associations Association Private Dns Entry] - DNS entries for the Association. Private DNS entry blocks are documented below.
- resource_
configuration_ strgroup_ arn - ARN of the Resource Group if the Resource is a member of a group.
- service_
network_ strarn - Service Network ARN. Applicable for endpoints of type
ServiceNetwork
. - service_
network_ strname - Service Network Name. Applicable for endpoints of type
ServiceNetwork
. - Mapping[str, str]
- Tags of the association.
- associated
Resource StringAccessibility - Accessibility of the resource.
- associated
Resource StringArn - ARN of the resource for this association.
- dns
Entries List<Property Map> - DNS entries for the Association. DNS entry blocks are documented below.
- id String
- private
Dns List<Property Map>Entries - DNS entries for the Association. Private DNS entry blocks are documented below.
- resource
Configuration StringGroup Arn - ARN of the Resource Group if the Resource is a member of a group.
- service
Network StringArn - Service Network ARN. Applicable for endpoints of type
ServiceNetwork
. - service
Network StringName - Service Network Name. Applicable for endpoints of type
ServiceNetwork
. - Map<String>
- Tags of the association.
GetVpcEndpointAssociationsAssociationDnsEntry
- Dns
Name string - DNS name.
- Hosted
Zone stringId - ID of the private hosted zone.
- Dns
Name string - DNS name.
- Hosted
Zone stringId - ID of the private hosted zone.
- dns
Name String - DNS name.
- hosted
Zone StringId - ID of the private hosted zone.
- dns
Name string - DNS name.
- hosted
Zone stringId - ID of the private hosted zone.
- dns_
name str - DNS name.
- hosted_
zone_ strid - ID of the private hosted zone.
- dns
Name String - DNS name.
- hosted
Zone StringId - ID of the private hosted zone.
GetVpcEndpointAssociationsAssociationPrivateDnsEntry
- Dns
Name string - DNS name.
- Hosted
Zone stringId - ID of the private hosted zone.
- Dns
Name string - DNS name.
- Hosted
Zone stringId - ID of the private hosted zone.
- dns
Name String - DNS name.
- hosted
Zone StringId - ID of the private hosted zone.
- dns
Name string - DNS name.
- hosted
Zone stringId - ID of the private hosted zone.
- dns_
name str - DNS name.
- hosted_
zone_ strid - ID of the private hosted zone.
- dns
Name String - DNS name.
- hosted
Zone StringId - ID of the private hosted zone.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.