1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. vpclattice
  6. getServiceNetworkVpcAssociation

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.80.0
published on Monday, Sep 21, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.80.0
published on Monday, Sep 21, 2026 by Pulumi

    Associates a VPC with a service network.

    Using getServiceNetworkVpcAssociation

    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 getServiceNetworkVpcAssociation(args: GetServiceNetworkVpcAssociationArgs, opts?: InvokeOptions): Promise<GetServiceNetworkVpcAssociationResult>
    function getServiceNetworkVpcAssociationOutput(args: GetServiceNetworkVpcAssociationOutputArgs, opts?: InvokeOutputOptions): Output<GetServiceNetworkVpcAssociationResult>
    def get_service_network_vpc_association(arn: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetServiceNetworkVpcAssociationResult
    def get_service_network_vpc_association_output(arn: pulumi.Input[Optional[str]] = None,
                                            opts: Optional[InvokeOutputOptions] = None) -> Output[GetServiceNetworkVpcAssociationResult]
    func LookupServiceNetworkVpcAssociation(ctx *Context, args *LookupServiceNetworkVpcAssociationArgs, opts ...InvokeOption) (*LookupServiceNetworkVpcAssociationResult, error)
    func LookupServiceNetworkVpcAssociationOutput(ctx *Context, args *LookupServiceNetworkVpcAssociationOutputArgs, opts ...InvokeOption) LookupServiceNetworkVpcAssociationResultOutput

    > Note: This function is named LookupServiceNetworkVpcAssociation in the Go SDK.

    public static class GetServiceNetworkVpcAssociation 
    {
        public static Task<GetServiceNetworkVpcAssociationResult> InvokeAsync(GetServiceNetworkVpcAssociationArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceNetworkVpcAssociationResult> Invoke(GetServiceNetworkVpcAssociationInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceNetworkVpcAssociationResult> Invoke(GetServiceNetworkVpcAssociationInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetServiceNetworkVpcAssociationResult> getServiceNetworkVpcAssociation(GetServiceNetworkVpcAssociationArgs args, InvokeOptions options)
    public static Output<GetServiceNetworkVpcAssociationResult> getServiceNetworkVpcAssociation(GetServiceNetworkVpcAssociationArgs args, InvokeOptions options)
    public static Output<GetServiceNetworkVpcAssociationResult> getServiceNetworkVpcAssociation(GetServiceNetworkVpcAssociationArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:vpclattice:getServiceNetworkVpcAssociation
      arguments:
        # arguments dictionary
    data "aws-native_vpclattice_get_service_network_vpc_association" "name" {
        # arguments
    }

    The following arguments are supported:

    Arn string
    The Amazon Resource Name (ARN) of the association between the service network and the VPC.
    Arn string
    The Amazon Resource Name (ARN) of the association between the service network and the VPC.
    arn string
    The Amazon Resource Name (ARN) of the association between the service network and the VPC.
    arn String
    The Amazon Resource Name (ARN) of the association between the service network and the VPC.
    arn string
    The Amazon Resource Name (ARN) of the association between the service network and the VPC.
    arn str
    The Amazon Resource Name (ARN) of the association between the service network and the VPC.
    arn String
    The Amazon Resource Name (ARN) of the association between the service network and the VPC.

    getServiceNetworkVpcAssociation Result

    The following output properties are available:

    Arn string
    The Amazon Resource Name (ARN) of the association between the service network and the VPC.
    CreatedAt string
    The date and time that the association was created, specified in ISO-8601 format.
    DnsOptions Pulumi.AwsNative.VpcLattice.Outputs.ServiceNetworkVpcAssociationDnsOptions
    The DNS options for the service network VPC association.
    Id string
    The ID of the specified association between the service network and the VPC.
    PrivateDnsEnabled bool
    Indicates if private DNS is enabled for the service network VPC association.
    SecurityGroupIds List<string>
    The IDs of the security groups. Security groups aren't added by default. You can add a security group to apply network level controls to control which resources in a VPC are allowed to access the service network and its services. For more information, see Control traffic to resources using security groups in the Amazon VPC User Guide .
    ServiceNetworkArn string
    The Amazon Resource Name (ARN) of the service network.
    ServiceNetworkId string
    The ID of the service network.
    ServiceNetworkName string
    The name of the service network.
    Status Pulumi.AwsNative.VpcLattice.ServiceNetworkVpcAssociationStatus
    The status of the association.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    The tags for the association.
    VpcId string
    The ID of the VPC.
    Arn string
    The Amazon Resource Name (ARN) of the association between the service network and the VPC.
    CreatedAt string
    The date and time that the association was created, specified in ISO-8601 format.
    DnsOptions ServiceNetworkVpcAssociationDnsOptions
    The DNS options for the service network VPC association.
    Id string
    The ID of the specified association between the service network and the VPC.
    PrivateDnsEnabled bool
    Indicates if private DNS is enabled for the service network VPC association.
    SecurityGroupIds []string
    The IDs of the security groups. Security groups aren't added by default. You can add a security group to apply network level controls to control which resources in a VPC are allowed to access the service network and its services. For more information, see Control traffic to resources using security groups in the Amazon VPC User Guide .
    ServiceNetworkArn string
    The Amazon Resource Name (ARN) of the service network.
    ServiceNetworkId string
    The ID of the service network.
    ServiceNetworkName string
    The name of the service network.
    Status ServiceNetworkVpcAssociationStatus
    The status of the association.
    Tags Tag
    The tags for the association.
    VpcId string
    The ID of the VPC.
    arn string
    The Amazon Resource Name (ARN) of the association between the service network and the VPC.
    created_at string
    The date and time that the association was created, specified in ISO-8601 format.
    dns_options object
    The DNS options for the service network VPC association.
    id string
    The ID of the specified association between the service network and the VPC.
    private_dns_enabled bool
    Indicates if private DNS is enabled for the service network VPC association.
    security_group_ids list(string)
    The IDs of the security groups. Security groups aren't added by default. You can add a security group to apply network level controls to control which resources in a VPC are allowed to access the service network and its services. For more information, see Control traffic to resources using security groups in the Amazon VPC User Guide .
    service_network_arn string
    The Amazon Resource Name (ARN) of the service network.
    service_network_id string
    The ID of the service network.
    service_network_name string
    The name of the service network.
    status "CREATE_IN_PROGRESS" | "ACTIVE" | "UPDATE_IN_PROGRESS" | "DELETE_IN_PROGRESS" | "CREATE_FAILED" | "DELETE_FAILED"
    The status of the association.
    tags list(object)
    The tags for the association.
    vpc_id string
    The ID of the VPC.
    arn String
    The Amazon Resource Name (ARN) of the association between the service network and the VPC.
    createdAt String
    The date and time that the association was created, specified in ISO-8601 format.
    dnsOptions ServiceNetworkVpcAssociationDnsOptions
    The DNS options for the service network VPC association.
    id String
    The ID of the specified association between the service network and the VPC.
    privateDnsEnabled Boolean
    Indicates if private DNS is enabled for the service network VPC association.
    securityGroupIds List<String>
    The IDs of the security groups. Security groups aren't added by default. You can add a security group to apply network level controls to control which resources in a VPC are allowed to access the service network and its services. For more information, see Control traffic to resources using security groups in the Amazon VPC User Guide .
    serviceNetworkArn String
    The Amazon Resource Name (ARN) of the service network.
    serviceNetworkId String
    The ID of the service network.
    serviceNetworkName String
    The name of the service network.
    status ServiceNetworkVpcAssociationStatus
    The status of the association.
    tags List<Tag>
    The tags for the association.
    vpcId String
    The ID of the VPC.
    arn string
    The Amazon Resource Name (ARN) of the association between the service network and the VPC.
    createdAt string
    The date and time that the association was created, specified in ISO-8601 format.
    dnsOptions ServiceNetworkVpcAssociationDnsOptions
    The DNS options for the service network VPC association.
    id string
    The ID of the specified association between the service network and the VPC.
    privateDnsEnabled boolean
    Indicates if private DNS is enabled for the service network VPC association.
    securityGroupIds string[]
    The IDs of the security groups. Security groups aren't added by default. You can add a security group to apply network level controls to control which resources in a VPC are allowed to access the service network and its services. For more information, see Control traffic to resources using security groups in the Amazon VPC User Guide .
    serviceNetworkArn string
    The Amazon Resource Name (ARN) of the service network.
    serviceNetworkId string
    The ID of the service network.
    serviceNetworkName string
    The name of the service network.
    status ServiceNetworkVpcAssociationStatus
    The status of the association.
    tags Tag[]
    The tags for the association.
    vpcId string
    The ID of the VPC.
    arn str
    The Amazon Resource Name (ARN) of the association between the service network and the VPC.
    created_at str
    The date and time that the association was created, specified in ISO-8601 format.
    dns_options ServiceNetworkVpcAssociationDnsOptions
    The DNS options for the service network VPC association.
    id str
    The ID of the specified association between the service network and the VPC.
    private_dns_enabled bool
    Indicates if private DNS is enabled for the service network VPC association.
    security_group_ids Sequence[str]
    The IDs of the security groups. Security groups aren't added by default. You can add a security group to apply network level controls to control which resources in a VPC are allowed to access the service network and its services. For more information, see Control traffic to resources using security groups in the Amazon VPC User Guide .
    service_network_arn str
    The Amazon Resource Name (ARN) of the service network.
    service_network_id str
    The ID of the service network.
    service_network_name str
    The name of the service network.
    status ServiceNetworkVpcAssociationStatus
    The status of the association.
    tags Sequence[root_Tag]
    The tags for the association.
    vpc_id str
    The ID of the VPC.
    arn String
    The Amazon Resource Name (ARN) of the association between the service network and the VPC.
    createdAt String
    The date and time that the association was created, specified in ISO-8601 format.
    dnsOptions Property Map
    The DNS options for the service network VPC association.
    id String
    The ID of the specified association between the service network and the VPC.
    privateDnsEnabled Boolean
    Indicates if private DNS is enabled for the service network VPC association.
    securityGroupIds List<String>
    The IDs of the security groups. Security groups aren't added by default. You can add a security group to apply network level controls to control which resources in a VPC are allowed to access the service network and its services. For more information, see Control traffic to resources using security groups in the Amazon VPC User Guide .
    serviceNetworkArn String
    The Amazon Resource Name (ARN) of the service network.
    serviceNetworkId String
    The ID of the service network.
    serviceNetworkName String
    The name of the service network.
    status "CREATE_IN_PROGRESS" | "ACTIVE" | "UPDATE_IN_PROGRESS" | "DELETE_IN_PROGRESS" | "CREATE_FAILED" | "DELETE_FAILED"
    The status of the association.
    tags List<Property Map>
    The tags for the association.
    vpcId String
    The ID of the VPC.

    Supporting Types

    ServiceNetworkVpcAssociationDnsOptions

    PrivateDnsPreference Pulumi.AwsNative.VpcLattice.ServiceNetworkVpcAssociationDnsOptionsPrivateDnsPreference
    The preference for which private domains have a private hosted zone created for and associated with the specified VPC. Only supported when private DNS is enabled and when the VPC endpoint type is ServiceNetwork or Resource.
    PrivateDnsSpecifiedDomains List<string>
    Indicates which of the private domains to create private hosted zones for and associate with the specified VPC. Only supported when private DNS is enabled and the private DNS preference is VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS or SPECIFIED_DOMAINS_ONLY .
    PrivateDnsPreference ServiceNetworkVpcAssociationDnsOptionsPrivateDnsPreference
    The preference for which private domains have a private hosted zone created for and associated with the specified VPC. Only supported when private DNS is enabled and when the VPC endpoint type is ServiceNetwork or Resource.
    PrivateDnsSpecifiedDomains []string
    Indicates which of the private domains to create private hosted zones for and associate with the specified VPC. Only supported when private DNS is enabled and the private DNS preference is VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS or SPECIFIED_DOMAINS_ONLY .
    private_dns_preference "VERIFIED_DOMAINS_ONLY" | "ALL_DOMAINS" | "VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS" | "SPECIFIED_DOMAINS_ONLY"
    The preference for which private domains have a private hosted zone created for and associated with the specified VPC. Only supported when private DNS is enabled and when the VPC endpoint type is ServiceNetwork or Resource.
    private_dns_specified_domains list(string)
    Indicates which of the private domains to create private hosted zones for and associate with the specified VPC. Only supported when private DNS is enabled and the private DNS preference is VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS or SPECIFIED_DOMAINS_ONLY .
    privateDnsPreference ServiceNetworkVpcAssociationDnsOptionsPrivateDnsPreference
    The preference for which private domains have a private hosted zone created for and associated with the specified VPC. Only supported when private DNS is enabled and when the VPC endpoint type is ServiceNetwork or Resource.
    privateDnsSpecifiedDomains List<String>
    Indicates which of the private domains to create private hosted zones for and associate with the specified VPC. Only supported when private DNS is enabled and the private DNS preference is VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS or SPECIFIED_DOMAINS_ONLY .
    privateDnsPreference ServiceNetworkVpcAssociationDnsOptionsPrivateDnsPreference
    The preference for which private domains have a private hosted zone created for and associated with the specified VPC. Only supported when private DNS is enabled and when the VPC endpoint type is ServiceNetwork or Resource.
    privateDnsSpecifiedDomains string[]
    Indicates which of the private domains to create private hosted zones for and associate with the specified VPC. Only supported when private DNS is enabled and the private DNS preference is VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS or SPECIFIED_DOMAINS_ONLY .
    private_dns_preference ServiceNetworkVpcAssociationDnsOptionsPrivateDnsPreference
    The preference for which private domains have a private hosted zone created for and associated with the specified VPC. Only supported when private DNS is enabled and when the VPC endpoint type is ServiceNetwork or Resource.
    private_dns_specified_domains Sequence[str]
    Indicates which of the private domains to create private hosted zones for and associate with the specified VPC. Only supported when private DNS is enabled and the private DNS preference is VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS or SPECIFIED_DOMAINS_ONLY .
    privateDnsPreference "VERIFIED_DOMAINS_ONLY" | "ALL_DOMAINS" | "VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS" | "SPECIFIED_DOMAINS_ONLY"
    The preference for which private domains have a private hosted zone created for and associated with the specified VPC. Only supported when private DNS is enabled and when the VPC endpoint type is ServiceNetwork or Resource.
    privateDnsSpecifiedDomains List<String>
    Indicates which of the private domains to create private hosted zones for and associate with the specified VPC. Only supported when private DNS is enabled and the private DNS preference is VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS or SPECIFIED_DOMAINS_ONLY .

    ServiceNetworkVpcAssociationDnsOptionsPrivateDnsPreference

    ServiceNetworkVpcAssociationStatus

    Tag

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.80.0
    published on Monday, Sep 21, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial