1. Packages
  2. AWS Classic
  3. API Docs
  4. route53
  5. getResolverEndpoint

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.route53.getResolverEndpoint

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    aws.route53.ResolverEndpoint provides details about a specific Route53 Resolver Endpoint.

    This data source allows to find a list of IPaddresses associated with a specific Route53 Resolver Endpoint.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.route53.getResolverEndpoint({
        resolverEndpointId: "rslvr-in-1abc2345ef678g91h",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.route53.get_resolver_endpoint(resolver_endpoint_id="rslvr-in-1abc2345ef678g91h")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := route53.LookupResolverEndpoint(ctx, &route53.LookupResolverEndpointArgs{
    			ResolverEndpointId: pulumi.StringRef("rslvr-in-1abc2345ef678g91h"),
    		}, 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.Route53.GetResolverEndpoint.Invoke(new()
        {
            ResolverEndpointId = "rslvr-in-1abc2345ef678g91h",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.route53.Route53Functions;
    import com.pulumi.aws.route53.inputs.GetResolverEndpointArgs;
    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 = Route53Functions.getResolverEndpoint(GetResolverEndpointArgs.builder()
                .resolverEndpointId("rslvr-in-1abc2345ef678g91h")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:route53:getResolverEndpoint
          Arguments:
            resolverEndpointId: rslvr-in-1abc2345ef678g91h
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.route53.getResolverEndpoint({
        filters: [{
            name: "NAME",
            values: ["MyResolverExampleName"],
        }],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.route53.get_resolver_endpoint(filters=[{
        "name": "NAME",
        "values": ["MyResolverExampleName"],
    }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := route53.LookupResolverEndpoint(ctx, &route53.LookupResolverEndpointArgs{
    			Filters: []route53.GetResolverEndpointFilter{
    				{
    					Name: "NAME",
    					Values: []string{
    						"MyResolverExampleName",
    					},
    				},
    			},
    		}, 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.Route53.GetResolverEndpoint.Invoke(new()
        {
            Filters = new[]
            {
                new Aws.Route53.Inputs.GetResolverEndpointFilterInputArgs
                {
                    Name = "NAME",
                    Values = new[]
                    {
                        "MyResolverExampleName",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.route53.Route53Functions;
    import com.pulumi.aws.route53.inputs.GetResolverEndpointArgs;
    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 = Route53Functions.getResolverEndpoint(GetResolverEndpointArgs.builder()
                .filters(GetResolverEndpointFilterArgs.builder()
                    .name("NAME")
                    .values("MyResolverExampleName")
                    .build())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:route53:getResolverEndpoint
          Arguments:
            filters:
              - name: NAME
                values:
                  - MyResolverExampleName
    

    Using getResolverEndpoint

    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 getResolverEndpoint(args: GetResolverEndpointArgs, opts?: InvokeOptions): Promise<GetResolverEndpointResult>
    function getResolverEndpointOutput(args: GetResolverEndpointOutputArgs, opts?: InvokeOptions): Output<GetResolverEndpointResult>
    def get_resolver_endpoint(filters: Optional[Sequence[GetResolverEndpointFilter]] = None,
                              resolver_endpoint_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetResolverEndpointResult
    def get_resolver_endpoint_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetResolverEndpointFilterArgs]]]] = None,
                              resolver_endpoint_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetResolverEndpointResult]
    func LookupResolverEndpoint(ctx *Context, args *LookupResolverEndpointArgs, opts ...InvokeOption) (*LookupResolverEndpointResult, error)
    func LookupResolverEndpointOutput(ctx *Context, args *LookupResolverEndpointOutputArgs, opts ...InvokeOption) LookupResolverEndpointResultOutput

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

    public static class GetResolverEndpoint 
    {
        public static Task<GetResolverEndpointResult> InvokeAsync(GetResolverEndpointArgs args, InvokeOptions? opts = null)
        public static Output<GetResolverEndpointResult> Invoke(GetResolverEndpointInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResolverEndpointResult> getResolverEndpoint(GetResolverEndpointArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:route53/getResolverEndpoint:getResolverEndpoint
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<GetResolverEndpointFilter>

    One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [Route53resolver Filter value in the AWS API reference][1].

    In addition to all arguments above, the following attributes are exported:

    ResolverEndpointId string
    ID of the Route53 Resolver Endpoint.
    Filters []GetResolverEndpointFilter

    One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [Route53resolver Filter value in the AWS API reference][1].

    In addition to all arguments above, the following attributes are exported:

    ResolverEndpointId string
    ID of the Route53 Resolver Endpoint.
    filters List<GetResolverEndpointFilter>

    One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [Route53resolver Filter value in the AWS API reference][1].

    In addition to all arguments above, the following attributes are exported:

    resolverEndpointId String
    ID of the Route53 Resolver Endpoint.
    filters GetResolverEndpointFilter[]

    One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [Route53resolver Filter value in the AWS API reference][1].

    In addition to all arguments above, the following attributes are exported:

    resolverEndpointId string
    ID of the Route53 Resolver Endpoint.
    filters Sequence[GetResolverEndpointFilter]

    One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [Route53resolver Filter value in the AWS API reference][1].

    In addition to all arguments above, the following attributes are exported:

    resolver_endpoint_id str
    ID of the Route53 Resolver Endpoint.
    filters List<Property Map>

    One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [Route53resolver Filter value in the AWS API reference][1].

    In addition to all arguments above, the following attributes are exported:

    resolverEndpointId String
    ID of the Route53 Resolver Endpoint.

    getResolverEndpoint Result

    The following output properties are available:

    Arn string
    Direction string
    Id string
    The provider-assigned unique ID for this managed resource.
    IpAddresses List<string>
    Name string
    Protocols List<string>
    ResolverEndpointType string
    Status string
    VpcId string
    Filters List<GetResolverEndpointFilter>
    ResolverEndpointId string
    Arn string
    Direction string
    Id string
    The provider-assigned unique ID for this managed resource.
    IpAddresses []string
    Name string
    Protocols []string
    ResolverEndpointType string
    Status string
    VpcId string
    Filters []GetResolverEndpointFilter
    ResolverEndpointId string
    arn String
    direction String
    id String
    The provider-assigned unique ID for this managed resource.
    ipAddresses List<String>
    name String
    protocols List<String>
    resolverEndpointType String
    status String
    vpcId String
    filters List<GetResolverEndpointFilter>
    resolverEndpointId String
    arn string
    direction string
    id string
    The provider-assigned unique ID for this managed resource.
    ipAddresses string[]
    name string
    protocols string[]
    resolverEndpointType string
    status string
    vpcId string
    filters GetResolverEndpointFilter[]
    resolverEndpointId string
    arn str
    direction str
    id str
    The provider-assigned unique ID for this managed resource.
    ip_addresses Sequence[str]
    name str
    protocols Sequence[str]
    resolver_endpoint_type str
    status str
    vpc_id str
    filters Sequence[GetResolverEndpointFilter]
    resolver_endpoint_id str
    arn String
    direction String
    id String
    The provider-assigned unique ID for this managed resource.
    ipAddresses List<String>
    name String
    protocols List<String>
    resolverEndpointType String
    status String
    vpcId String
    filters List<Property Map>
    resolverEndpointId String

    Supporting Types

    GetResolverEndpointFilter

    Name string
    Values List<string>
    Name string
    Values []string
    name String
    values List<String>
    name string
    values string[]
    name str
    values Sequence[str]
    name String
    values List<String>

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi