aws.route53.getResolverEndpoint
Explore with Pulumi AI
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<Get
Resolver Endpoint Filter> 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 stringId - ID of the Route53 Resolver Endpoint.
- Filters
[]Get
Resolver Endpoint Filter 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 stringId - ID of the Route53 Resolver Endpoint.
- filters
List<Get
Resolver Endpoint Filter> 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 StringId - ID of the Route53 Resolver Endpoint.
- filters
Get
Resolver Endpoint Filter[] 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 stringId - ID of the Route53 Resolver Endpoint.
- filters
Sequence[Get
Resolver Endpoint Filter] 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_ strid - 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:
- resolver
Endpoint StringId - 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.
- Ip
Addresses List<string> - Name string
- Protocols List<string>
- Resolver
Endpoint stringType - Status string
- Vpc
Id string - Filters
List<Get
Resolver Endpoint Filter> - Resolver
Endpoint stringId
- Arn string
- Direction string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Addresses []string - Name string
- Protocols []string
- Resolver
Endpoint stringType - Status string
- Vpc
Id string - Filters
[]Get
Resolver Endpoint Filter - Resolver
Endpoint stringId
- arn String
- direction String
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Addresses List<String> - name String
- protocols List<String>
- resolver
Endpoint StringType - status String
- vpc
Id String - filters
List<Get
Resolver Endpoint Filter> - resolver
Endpoint StringId
- arn string
- direction string
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Addresses string[] - name string
- protocols string[]
- resolver
Endpoint stringType - status string
- vpc
Id string - filters
Get
Resolver Endpoint Filter[] - resolver
Endpoint stringId
- 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_ strtype - status str
- vpc_
id str - filters
Sequence[Get
Resolver Endpoint Filter] - resolver_
endpoint_ strid
- arn String
- direction String
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Addresses List<String> - name String
- protocols List<String>
- resolver
Endpoint StringType - status String
- vpc
Id String - filters List<Property Map>
- resolver
Endpoint StringId
Supporting Types
GetResolverEndpointFilter
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.