Resolver Endpoint Args
Provides a Route 53 Resolver endpoint resource.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.route53.ResolverEndpoint;
import com.pulumi.aws.route53.ResolverEndpointArgs;
import com.pulumi.aws.route53.inputs.ResolverEndpointIpAddressArgs;
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) {
var foo = new ResolverEndpoint("foo", ResolverEndpointArgs.builder()
.direction("INBOUND")
.securityGroupIds(
aws_security_group.sg1().id(),
aws_security_group.sg2().id())
.ipAddresses(
ResolverEndpointIpAddressArgs.builder()
.subnetId(aws_subnet.sn1().id())
.build(),
ResolverEndpointIpAddressArgs.builder()
.subnetId(aws_subnet.sn2().id())
.ip("10.0.64.4")
.build())
.tags(Map.of("Environment", "Prod"))
.build());
}
}
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
Properties
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).
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.
The ID of one or more security groups that you want to use to control access to this VPC.