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
new ResolverEndpoint(name: string, args: ResolverEndpointArgs, opts?: CustomResourceOptions);def ResolverEndpoint(resource_name, opts=None, direction=None, ip_addresses=None, name=None, security_group_ids=None, tags=None, __props__=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.
- 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) orOUTBOUND(resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC).- Ip
Addresses List<ResolverEndpoint Ip Address Args> 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 List<string>Ids 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.
- 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) orOUTBOUND(resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC).- Ip
Addresses []ResolverEndpoint Ip Address 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 []stringIds 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.
- 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) orOUTBOUND(resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC).- ip
Addresses ResolverEndpoint Ip Address[] 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 string[]Ids 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.
- {[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) orOUTBOUND(resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC).- ip_
addresses List[ResolverEndpoint Ip Address] 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_ List[str]ids 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.
- 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:
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): ResolverEndpointstatic 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) orOUTBOUND(resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC).- Host
Vpc stringId The ID of the VPC that you want to create the resolver endpoint in.
- Ip
Addresses List<ResolverEndpoint Ip Address Args> 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.
- Security
Group List<string>Ids The ID of one or more security groups that you want to use to control access to this VPC.
- 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) orOUTBOUND(resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC).- Host
Vpc stringId The ID of the VPC that you want to create the resolver endpoint in.
- Ip
Addresses []ResolverEndpoint Ip Address 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.
- Security
Group []stringIds The ID of one or more security groups that you want to use to control access to this VPC.
- 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) orOUTBOUND(resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC).- host
Vpc stringId The ID of the VPC that you want to create the resolver endpoint in.
- ip
Addresses ResolverEndpoint Ip Address[] 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.
- security
Group string[]Ids The ID of one or more security groups that you want to use to control access to this VPC.
- {[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) orOUTBOUND(resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC).- host_
vpc_ strid The ID of the VPC that you want to create the resolver endpoint in.
- ip_
addresses List[ResolverEndpoint Ip Address] 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_ List[str]ids The ID of one or more security groups that you want to use to control access to this VPC.
- Dict[str, str]
A map of tags to assign to the resource.
Supporting Types
ResolverEndpointIpAddress
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.