Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

AWS Classic

v4.30.0 published on Tuesday, Nov 30, 2021 by Pulumi

ResolverEndpoint

Provides a Route 53 Resolver endpoint resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = new Aws.Route53.ResolverEndpoint("foo", new Aws.Route53.ResolverEndpointArgs
        {
            Direction = "INBOUND",
            SecurityGroupIds = 
            {
                aws_security_group.Sg1.Id,
                aws_security_group.Sg2.Id,
            },
            IpAddresses = 
            {
                new Aws.Route53.Inputs.ResolverEndpointIpAddressArgs
                {
                    SubnetId = aws_subnet.Sn1.Id,
                },
                new Aws.Route53.Inputs.ResolverEndpointIpAddressArgs
                {
                    SubnetId = aws_subnet.Sn2.Id,
                    Ip = "10.0.64.4",
                },
            },
            Tags = 
            {
                { "Environment", "Prod" },
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/route53"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := route53.NewResolverEndpoint(ctx, "foo", &route53.ResolverEndpointArgs{
			Direction: pulumi.String("INBOUND"),
			SecurityGroupIds: pulumi.StringArray{
				pulumi.Any(aws_security_group.Sg1.Id),
				pulumi.Any(aws_security_group.Sg2.Id),
			},
			IpAddresses: route53.ResolverEndpointIpAddressArray{
				&route53.ResolverEndpointIpAddressArgs{
					SubnetId: pulumi.Any(aws_subnet.Sn1.Id),
				},
				&route53.ResolverEndpointIpAddressArgs{
					SubnetId: pulumi.Any(aws_subnet.Sn2.Id),
					Ip:       pulumi.String("10.0.64.4"),
				},
			},
			Tags: pulumi.StringMap{
				"Environment": pulumi.String("Prod"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_aws as aws

foo = aws.route53.ResolverEndpoint("foo",
    direction="INBOUND",
    security_group_ids=[
        aws_security_group["sg1"]["id"],
        aws_security_group["sg2"]["id"],
    ],
    ip_addresses=[
        aws.route53.ResolverEndpointIpAddressArgs(
            subnet_id=aws_subnet["sn1"]["id"],
        ),
        aws.route53.ResolverEndpointIpAddressArgs(
            subnet_id=aws_subnet["sn2"]["id"],
            ip="10.0.64.4",
        ),
    ],
    tags={
        "Environment": "Prod",
    })
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const foo = new aws.route53.ResolverEndpoint("foo", {
    direction: "INBOUND",
    securityGroupIds: [
        aws_security_group.sg1.id,
        aws_security_group.sg2.id,
    ],
    ipAddresses: [
        {
            subnetId: aws_subnet.sn1.id,
        },
        {
            subnetId: aws_subnet.sn2.id,
            ip: "10.0.64.4",
        },
    ],
    tags: {
        Environment: "Prod",
    },
});

Create a ResolverEndpoint Resource

new ResolverEndpoint(name: string, args: ResolverEndpointArgs, opts?: CustomResourceOptions);
@overload
def ResolverEndpoint(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     direction: Optional[str] = None,
                     ip_addresses: Optional[Sequence[ResolverEndpointIpAddressArgs]] = None,
                     name: Optional[str] = None,
                     security_group_ids: Optional[Sequence[str]] = None,
                     tags: Optional[Mapping[str, str]] = None)
@overload
def ResolverEndpoint(resource_name: str,
                     args: ResolverEndpointArgs,
                     opts: Optional[ResourceOptions] = None)
func NewResolverEndpoint(ctx *Context, name string, args ResolverEndpointArgs, opts ...ResourceOption) (*ResolverEndpoint, error)
public ResolverEndpoint(string name, ResolverEndpointArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ResolverEndpointArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ResolverEndpointArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ResolverEndpointArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ResolverEndpointArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ResolverEndpoint Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ResolverEndpoint resource accepts the following input properties:

Direction string
The direction of DNS queries to or from the Route 53 Resolver endpoint. Valid values are INBOUND (resolver forwards DNS queries to the DNS service for a VPC from your network or another VPC) or OUTBOUND (resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC).
IpAddresses List<ResolverEndpointIpAddressArgs>
The subnets and IP addresses in your VPC that you want DNS queries to pass through on the way from your VPCs to your network (for outbound endpoints) or on the way from your network to your VPCs (for inbound endpoints). Described below.
SecurityGroupIds List<string>
The ID of one or more security groups that you want to use to control access to this VPC.
Name string
The friendly name of the Route 53 Resolver endpoint.
Tags Dictionary<string, string>
A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Direction string
The direction of DNS queries to or from the Route 53 Resolver endpoint. Valid values are INBOUND (resolver forwards DNS queries to the DNS service for a VPC from your network or another VPC) or OUTBOUND (resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC).
IpAddresses []ResolverEndpointIpAddressArgs
The subnets and IP addresses in your VPC that you want DNS queries to pass through on the way from your VPCs to your network (for outbound endpoints) or on the way from your network to your VPCs (for inbound endpoints). Described below.
SecurityGroupIds []string
The ID of one or more security groups that you want to use to control access to this VPC.
Name string
The friendly name of the Route 53 Resolver endpoint.
Tags map[string]string
A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
direction string
The direction of DNS queries to or from the Route 53 Resolver endpoint. Valid values are INBOUND (resolver forwards DNS queries to the DNS service for a VPC from your network or another VPC) or OUTBOUND (resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC).
ipAddresses ResolverEndpointIpAddressArgs[]
The subnets and IP addresses in your VPC that you want DNS queries to pass through on the way from your VPCs to your network (for outbound endpoints) or on the way from your network to your VPCs (for inbound endpoints). Described below.
securityGroupIds string[]
The ID of one or more security groups that you want to use to control access to this VPC.
name string
The friendly name of the Route 53 Resolver endpoint.
tags {[key: string]: string}
A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
direction str
The direction of DNS queries to or from the Route 53 Resolver endpoint. Valid values are INBOUND (resolver forwards DNS queries to the DNS service for a VPC from your network or another VPC) or OUTBOUND (resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC).
ip_addresses Sequence[ResolverEndpointIpAddressArgs]
The subnets and IP addresses in your VPC that you want DNS queries to pass through on the way from your VPCs to your network (for outbound endpoints) or on the way from your network to your VPCs (for inbound endpoints). Described below.
security_group_ids Sequence[str]
The ID of one or more security groups that you want to use to control access to this VPC.
name str
The friendly name of the Route 53 Resolver endpoint.
tags Mapping[str, str]
A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Outputs

All input properties are implicitly available as output properties. Additionally, the ResolverEndpoint resource produces the following output properties:

Arn string
The ARN of the Route 53 Resolver endpoint.
HostVpcId string
The ID of the VPC that you want to create the resolver endpoint in.
Id string
The provider-assigned unique ID for this managed resource.
TagsAll Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider .
Arn string
The ARN of the Route 53 Resolver endpoint.
HostVpcId string
The ID of the VPC that you want to create the resolver endpoint in.
Id string
The provider-assigned unique ID for this managed resource.
TagsAll map[string]string
A map of tags assigned to the resource, including those inherited from the provider .
arn string
The ARN of the Route 53 Resolver endpoint.
hostVpcId string
The ID of the VPC that you want to create the resolver endpoint in.
id string
The provider-assigned unique ID for this managed resource.
tagsAll {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider .
arn str
The ARN of the Route 53 Resolver endpoint.
host_vpc_id str
The ID of the VPC that you want to create the resolver endpoint in.
id str
The provider-assigned unique ID for this managed resource.
tags_all Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider .

Look up an Existing ResolverEndpoint Resource

Get an existing ResolverEndpoint resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ResolverEndpointState, opts?: CustomResourceOptions): ResolverEndpoint
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        direction: Optional[str] = None,
        host_vpc_id: Optional[str] = None,
        ip_addresses: Optional[Sequence[ResolverEndpointIpAddressArgs]] = None,
        name: Optional[str] = None,
        security_group_ids: Optional[Sequence[str]] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None) -> ResolverEndpoint
func GetResolverEndpoint(ctx *Context, name string, id IDInput, state *ResolverEndpointState, opts ...ResourceOption) (*ResolverEndpoint, error)
public static ResolverEndpoint Get(string name, Input<string> id, ResolverEndpointState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Arn string
The ARN of the Route 53 Resolver endpoint.
Direction string
The direction of DNS queries to or from the Route 53 Resolver endpoint. Valid values are INBOUND (resolver forwards DNS queries to the DNS service for a VPC from your network or another VPC) or OUTBOUND (resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC).
HostVpcId string
The ID of the VPC that you want to create the resolver endpoint in.
IpAddresses List<ResolverEndpointIpAddressArgs>
The subnets and IP addresses in your VPC that you want DNS queries to pass through on the way from your VPCs to your network (for outbound endpoints) or on the way from your network to your VPCs (for inbound endpoints). Described below.
Name string
The friendly name of the Route 53 Resolver endpoint.
SecurityGroupIds List<string>
The ID of one or more security groups that you want to use to control access to this VPC.
Tags Dictionary<string, string>
A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider .
Arn string
The ARN of the Route 53 Resolver endpoint.
Direction string
The direction of DNS queries to or from the Route 53 Resolver endpoint. Valid values are INBOUND (resolver forwards DNS queries to the DNS service for a VPC from your network or another VPC) or OUTBOUND (resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC).
HostVpcId string
The ID of the VPC that you want to create the resolver endpoint in.
IpAddresses []ResolverEndpointIpAddressArgs
The subnets and IP addresses in your VPC that you want DNS queries to pass through on the way from your VPCs to your network (for outbound endpoints) or on the way from your network to your VPCs (for inbound endpoints). Described below.
Name string
The friendly name of the Route 53 Resolver endpoint.
SecurityGroupIds []string
The ID of one or more security groups that you want to use to control access to this VPC.
Tags map[string]string
A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll map[string]string
A map of tags assigned to the resource, including those inherited from the provider .
arn string
The ARN of the Route 53 Resolver endpoint.
direction string
The direction of DNS queries to or from the Route 53 Resolver endpoint. Valid values are INBOUND (resolver forwards DNS queries to the DNS service for a VPC from your network or another VPC) or OUTBOUND (resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC).
hostVpcId string
The ID of the VPC that you want to create the resolver endpoint in.
ipAddresses ResolverEndpointIpAddressArgs[]
The subnets and IP addresses in your VPC that you want DNS queries to pass through on the way from your VPCs to your network (for outbound endpoints) or on the way from your network to your VPCs (for inbound endpoints). Described below.
name string
The friendly name of the Route 53 Resolver endpoint.
securityGroupIds string[]
The ID of one or more security groups that you want to use to control access to this VPC.
tags {[key: string]: string}
A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider .
arn str
The ARN of the Route 53 Resolver endpoint.
direction str
The direction of DNS queries to or from the Route 53 Resolver endpoint. Valid values are INBOUND (resolver forwards DNS queries to the DNS service for a VPC from your network or another VPC) or OUTBOUND (resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC).
host_vpc_id str
The ID of the VPC that you want to create the resolver endpoint in.
ip_addresses Sequence[ResolverEndpointIpAddressArgs]
The subnets and IP addresses in your VPC that you want DNS queries to pass through on the way from your VPCs to your network (for outbound endpoints) or on the way from your network to your VPCs (for inbound endpoints). Described below.
name str
The friendly name of the Route 53 Resolver endpoint.
security_group_ids Sequence[str]
The ID of one or more security groups that you want to use to control access to this VPC.
tags Mapping[str, str]
A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tags_all Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider .

Supporting Types

ResolverEndpointIpAddress

SubnetId string
The ID of the subnet that contains the IP address.
Ip string
The IP address in the subnet that you want to use for DNS queries.
IpId string
SubnetId string
The ID of the subnet that contains the IP address.
Ip string
The IP address in the subnet that you want to use for DNS queries.
IpId string
subnetId string
The ID of the subnet that contains the IP address.
ip string
The IP address in the subnet that you want to use for DNS queries.
ipId string
subnet_id str
The ID of the subnet that contains the IP address.
ip str
The IP address in the subnet that you want to use for DNS queries.
ip_id str

Import

Route 53 Resolver endpoints can be imported using the Route 53 Resolver endpoint ID, e.g.,

 $ pulumi import aws:route53/resolverEndpoint:ResolverEndpoint foo rslvr-in-abcdef01234567890

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.