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",
            IpAddresses = 
            {
                new Aws.Route53.Inputs.ResolverEndpointIpAddressArgs
                {
                    SubnetId = aws_subnet.Sn1.Id,
                },
                new Aws.Route53.Inputs.ResolverEndpointIpAddressArgs
                {
                    Ip = "10.0.64.4",
                    SubnetId = aws_subnet.Sn2.Id,
                },
            },
            SecurityGroupIds = 
            {
                aws_security_group.Sg1.Id,
                aws_security_group.Sg2.Id,
            },
            Tags = 
            {
                { "Environment", "Prod" },
            },
        });
    }

}
package main

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

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := route53.NewResolverEndpoint(ctx, "foo", &route53.ResolverEndpointArgs{
            Direction: pulumi.String("INBOUND"),
            IpAddresses: route53.ResolverEndpointIpAddressArray{
                &route53.ResolverEndpointIpAddressArgs{
                    SubnetId: pulumi.String(aws_subnet.Sn1.Id),
                },
                &route53.ResolverEndpointIpAddressArgs{
                    Ip:       pulumi.String("10.0.64.4"),
                    SubnetId: pulumi.String(aws_subnet.Sn2.Id),
                },
            },
            SecurityGroupIds: pulumi.StringArray{
                pulumi.String(aws_security_group.Sg1.Id),
                pulumi.String(aws_security_group.Sg2.Id),
            },
            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",
    ip_addresses=[
        {
            "subnet_id": aws_subnet["sn1"]["id"],
        },
        {
            "ip": "10.0.64.4",
            "subnet_id": aws_subnet["sn2"]["id"],
        },
    ],
    security_group_ids=[
        aws_security_group["sg1"]["id"],
        aws_security_group["sg2"]["id"],
    ],
    tags={
        "Environment": "Prod",
    })
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const foo = new aws.route53.ResolverEndpoint("foo", {
    direction: "INBOUND",
    ipAddresses: [
        {
            subnetId: aws_subnet_sn1.id,
        },
        {
            ip: "10.0.64.4",
            subnetId: aws_subnet_sn2.id,
        },
    ],
    securityGroupIds: [
        aws_security_group_sg1.id,
        aws_security_group_sg2.id,
    ],
    tags: {
        Environment: "Prod",
    },
});

Create a ResolverEndpoint Resource

def ResolverEndpoint(resource_name, opts=None, direction=None, ip_addresses=None, name=None, security_group_ids=None, tags=None, __props__=None);
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.
opts ResourceOptions
A bag of options that control this 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 Programming Model 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.

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 []ResolverEndpointIpAddress

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.

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 ResolverEndpointIpAddress[]

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.

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 List[ResolverEndpointIpAddress]

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 List[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 Dict[str, str]

A map of tags to assign to the resource.

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.
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.
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.
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.

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
static get(resource_name, id, opts=None, arn=None, direction=None, host_vpc_id=None, ip_addresses=None, name=None, security_group_ids=None, tags=None, __props__=None);
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.

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 []ResolverEndpointIpAddress

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.

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 ResolverEndpointIpAddress[]

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.

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 List[ResolverEndpointIpAddress]

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 List[str]

The ID of one or more security groups that you want to use to control access to this VPC.

tags Dict[str, str]

A map of tags to assign to the resource.

Supporting Types

ResolverEndpointIpAddress

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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.

ipId str

Package Details

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