AWS v7.11.0 published on Wednesday, Nov 5, 2025 by Pulumi
aws.vpc.getEndpointAssociations
Start a Neo task
Explain and create an aws.vpc.getEndpointAssociations resource
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.getEndpointAssociations({
vpcEndpointId: exampleAwsVpcEndpoint.id,
});
import pulumi
import pulumi_aws as aws
example = aws.vpc.get_endpoint_associations(vpc_endpoint_id=example_aws_vpc_endpoint["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpc.GetEndpointAssociations(ctx, &vpc.GetEndpointAssociationsArgs{
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.GetEndpointAssociations.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.GetEndpointAssociationsArgs;
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.getEndpointAssociations(GetEndpointAssociationsArgs.builder()
.vpcEndpointId(exampleAwsVpcEndpoint.id())
.build());
}
}
variables:
example:
fn::invoke:
function: aws:vpc:getEndpointAssociations
arguments:
vpcEndpointId: ${exampleAwsVpcEndpoint.id}
Using getEndpointAssociations
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 getEndpointAssociations(args: GetEndpointAssociationsArgs, opts?: InvokeOptions): Promise<GetEndpointAssociationsResult>
function getEndpointAssociationsOutput(args: GetEndpointAssociationsOutputArgs, opts?: InvokeOptions): Output<GetEndpointAssociationsResult>def get_endpoint_associations(region: Optional[str] = None,
vpc_endpoint_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEndpointAssociationsResult
def get_endpoint_associations_output(region: Optional[pulumi.Input[str]] = None,
vpc_endpoint_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEndpointAssociationsResult]func GetEndpointAssociations(ctx *Context, args *GetEndpointAssociationsArgs, opts ...InvokeOption) (*GetEndpointAssociationsResult, error)
func GetEndpointAssociationsOutput(ctx *Context, args *GetEndpointAssociationsOutputArgs, opts ...InvokeOption) GetEndpointAssociationsResultOutput> Note: This function is named GetEndpointAssociations in the Go SDK.
public static class GetEndpointAssociations
{
public static Task<GetEndpointAssociationsResult> InvokeAsync(GetEndpointAssociationsArgs args, InvokeOptions? opts = null)
public static Output<GetEndpointAssociationsResult> Invoke(GetEndpointAssociationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEndpointAssociationsResult> getEndpointAssociations(GetEndpointAssociationsArgs args, InvokeOptions options)
public static Output<GetEndpointAssociationsResult> getEndpointAssociations(GetEndpointAssociationsArgs args, InvokeOptions options)
fn::invoke:
function: aws:vpc/getEndpointAssociations:getEndpointAssociations
arguments:
# arguments dictionaryThe following arguments are supported:
- Vpc
Endpoint stringId - ID of the specific VPC Endpoint to retrieve.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Vpc
Endpoint stringId - ID of the specific VPC Endpoint to retrieve.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- vpc
Endpoint StringId - ID of the specific VPC Endpoint to retrieve.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- vpc
Endpoint stringId - ID of the specific VPC Endpoint to retrieve.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- vpc_
endpoint_ strid - ID of the specific VPC Endpoint to retrieve.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- vpc
Endpoint StringId - ID of the specific VPC Endpoint to retrieve.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
getEndpointAssociations Result
The following output properties are available:
- Associations
List<Get
Endpoint Associations Association> - Associations for the VPC Endpoint. Association blocks are documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Vpc
Endpoint stringId
- Associations
[]Get
Endpoint Associations Association - Associations for the VPC Endpoint. Association blocks are documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Vpc
Endpoint stringId
- associations
List<Get
Endpoint Associations Association> - Associations for the VPC Endpoint. Association blocks are documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- vpc
Endpoint StringId
- associations
Get
Endpoint Associations Association[] - Associations for the VPC Endpoint. Association blocks are documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- vpc
Endpoint stringId
- associations
Sequence[Get
Endpoint Associations Association] - Associations for the VPC Endpoint. Association blocks are documented below.
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- 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.
- region String
- vpc
Endpoint StringId
Supporting Types
GetEndpointAssociationsAssociation
- Associated
Resource stringAccessibility - Accessibility of the resource.
- Associated
Resource stringArn - ARN of the resource for this association.
- Dns
Entries List<GetEndpoint Associations Association Dns Entry> - DNS entries for the Association. DNS entry blocks are documented below.
- Id string
- Private
Dns List<GetEntries 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 []GetEndpoint Associations Association Dns Entry - DNS entries for the Association. DNS entry blocks are documented below.
- Id string
- Private
Dns []GetEntries 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<GetEndpoint Associations Association Dns Entry> - DNS entries for the Association. DNS entry blocks are documented below.
- id String
- private
Dns List<GetEntries 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 GetEndpoint Associations Association Dns Entry[] - DNS entries for the Association. DNS entry blocks are documented below.
- id string
- private
Dns GetEntries 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[GetEndpoint Associations Association Dns Entry] - DNS entries for the Association. DNS entry blocks are documented below.
- id str
- private_
dns_ Sequence[Getentries 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.
GetEndpointAssociationsAssociationDnsEntry
- 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.
GetEndpointAssociationsAssociationPrivateDnsEntry
- 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
awsTerraform Provider.
