1. Packages
  2. AWS Classic
  3. API Docs
  4. route53
  5. ResolverConfig

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

aws.route53.ResolverConfig

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

    Provides a Route 53 Resolver config resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.ec2.Vpc("example", {
        cidrBlock: "10.0.0.0/16",
        enableDnsSupport: true,
        enableDnsHostnames: true,
    });
    const exampleResolverConfig = new aws.route53.ResolverConfig("example", {
        resourceId: example.id,
        autodefinedReverseFlag: "DISABLE",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ec2.Vpc("example",
        cidr_block="10.0.0.0/16",
        enable_dns_support=True,
        enable_dns_hostnames=True)
    example_resolver_config = aws.route53.ResolverConfig("example",
        resource_id=example.id,
        autodefined_reverse_flag="DISABLE")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
    	"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 {
    		example, err := ec2.NewVpc(ctx, "example", &ec2.VpcArgs{
    			CidrBlock:          pulumi.String("10.0.0.0/16"),
    			EnableDnsSupport:   pulumi.Bool(true),
    			EnableDnsHostnames: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = route53.NewResolverConfig(ctx, "example", &route53.ResolverConfigArgs{
    			ResourceId:             example.ID(),
    			AutodefinedReverseFlag: pulumi.String("DISABLE"),
    		})
    		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 = new Aws.Ec2.Vpc("example", new()
        {
            CidrBlock = "10.0.0.0/16",
            EnableDnsSupport = true,
            EnableDnsHostnames = true,
        });
    
        var exampleResolverConfig = new Aws.Route53.ResolverConfig("example", new()
        {
            ResourceId = example.Id,
            AutodefinedReverseFlag = "DISABLE",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ec2.Vpc;
    import com.pulumi.aws.ec2.VpcArgs;
    import com.pulumi.aws.route53.ResolverConfig;
    import com.pulumi.aws.route53.ResolverConfigArgs;
    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 example = new Vpc("example", VpcArgs.builder()        
                .cidrBlock("10.0.0.0/16")
                .enableDnsSupport(true)
                .enableDnsHostnames(true)
                .build());
    
            var exampleResolverConfig = new ResolverConfig("exampleResolverConfig", ResolverConfigArgs.builder()        
                .resourceId(example.id())
                .autodefinedReverseFlag("DISABLE")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:ec2:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
          enableDnsSupport: true
          enableDnsHostnames: true
      exampleResolverConfig:
        type: aws:route53:ResolverConfig
        name: example
        properties:
          resourceId: ${example.id}
          autodefinedReverseFlag: DISABLE
    

    Create ResolverConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ResolverConfig(name: string, args: ResolverConfigArgs, opts?: CustomResourceOptions);
    @overload
    def ResolverConfig(resource_name: str,
                       args: ResolverConfigArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ResolverConfig(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       autodefined_reverse_flag: Optional[str] = None,
                       resource_id: Optional[str] = None)
    func NewResolverConfig(ctx *Context, name string, args ResolverConfigArgs, opts ...ResourceOption) (*ResolverConfig, error)
    public ResolverConfig(string name, ResolverConfigArgs args, CustomResourceOptions? opts = null)
    public ResolverConfig(String name, ResolverConfigArgs args)
    public ResolverConfig(String name, ResolverConfigArgs args, CustomResourceOptions options)
    
    type: aws:route53:ResolverConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ResolverConfigArgs
    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 ResolverConfigArgs
    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 ResolverConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ResolverConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ResolverConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var resolverConfigResource = new Aws.Route53.ResolverConfig("resolverConfigResource", new()
    {
        AutodefinedReverseFlag = "string",
        ResourceId = "string",
    });
    
    example, err := route53.NewResolverConfig(ctx, "resolverConfigResource", &route53.ResolverConfigArgs{
    	AutodefinedReverseFlag: pulumi.String("string"),
    	ResourceId:             pulumi.String("string"),
    })
    
    var resolverConfigResource = new ResolverConfig("resolverConfigResource", ResolverConfigArgs.builder()        
        .autodefinedReverseFlag("string")
        .resourceId("string")
        .build());
    
    resolver_config_resource = aws.route53.ResolverConfig("resolverConfigResource",
        autodefined_reverse_flag="string",
        resource_id="string")
    
    const resolverConfigResource = new aws.route53.ResolverConfig("resolverConfigResource", {
        autodefinedReverseFlag: "string",
        resourceId: "string",
    });
    
    type: aws:route53:ResolverConfig
    properties:
        autodefinedReverseFlag: string
        resourceId: string
    

    ResolverConfig 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 ResolverConfig resource accepts the following input properties:

    AutodefinedReverseFlag string
    Indicates whether or not the Resolver will create autodefined rules for reverse DNS lookups. Valid values: ENABLE, DISABLE.
    ResourceId string
    The ID of the VPC that the configuration is for.
    AutodefinedReverseFlag string
    Indicates whether or not the Resolver will create autodefined rules for reverse DNS lookups. Valid values: ENABLE, DISABLE.
    ResourceId string
    The ID of the VPC that the configuration is for.
    autodefinedReverseFlag String
    Indicates whether or not the Resolver will create autodefined rules for reverse DNS lookups. Valid values: ENABLE, DISABLE.
    resourceId String
    The ID of the VPC that the configuration is for.
    autodefinedReverseFlag string
    Indicates whether or not the Resolver will create autodefined rules for reverse DNS lookups. Valid values: ENABLE, DISABLE.
    resourceId string
    The ID of the VPC that the configuration is for.
    autodefined_reverse_flag str
    Indicates whether or not the Resolver will create autodefined rules for reverse DNS lookups. Valid values: ENABLE, DISABLE.
    resource_id str
    The ID of the VPC that the configuration is for.
    autodefinedReverseFlag String
    Indicates whether or not the Resolver will create autodefined rules for reverse DNS lookups. Valid values: ENABLE, DISABLE.
    resourceId String
    The ID of the VPC that the configuration is for.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerId string
    The AWS account ID of the owner of the VPC that this resolver configuration applies to.
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerId string
    The AWS account ID of the owner of the VPC that this resolver configuration applies to.
    id String
    The provider-assigned unique ID for this managed resource.
    ownerId String
    The AWS account ID of the owner of the VPC that this resolver configuration applies to.
    id string
    The provider-assigned unique ID for this managed resource.
    ownerId string
    The AWS account ID of the owner of the VPC that this resolver configuration applies to.
    id str
    The provider-assigned unique ID for this managed resource.
    owner_id str
    The AWS account ID of the owner of the VPC that this resolver configuration applies to.
    id String
    The provider-assigned unique ID for this managed resource.
    ownerId String
    The AWS account ID of the owner of the VPC that this resolver configuration applies to.

    Look up Existing ResolverConfig Resource

    Get an existing ResolverConfig 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?: ResolverConfigState, opts?: CustomResourceOptions): ResolverConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            autodefined_reverse_flag: Optional[str] = None,
            owner_id: Optional[str] = None,
            resource_id: Optional[str] = None) -> ResolverConfig
    func GetResolverConfig(ctx *Context, name string, id IDInput, state *ResolverConfigState, opts ...ResourceOption) (*ResolverConfig, error)
    public static ResolverConfig Get(string name, Input<string> id, ResolverConfigState? state, CustomResourceOptions? opts = null)
    public static ResolverConfig get(String name, Output<String> id, ResolverConfigState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    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:
    AutodefinedReverseFlag string
    Indicates whether or not the Resolver will create autodefined rules for reverse DNS lookups. Valid values: ENABLE, DISABLE.
    OwnerId string
    The AWS account ID of the owner of the VPC that this resolver configuration applies to.
    ResourceId string
    The ID of the VPC that the configuration is for.
    AutodefinedReverseFlag string
    Indicates whether or not the Resolver will create autodefined rules for reverse DNS lookups. Valid values: ENABLE, DISABLE.
    OwnerId string
    The AWS account ID of the owner of the VPC that this resolver configuration applies to.
    ResourceId string
    The ID of the VPC that the configuration is for.
    autodefinedReverseFlag String
    Indicates whether or not the Resolver will create autodefined rules for reverse DNS lookups. Valid values: ENABLE, DISABLE.
    ownerId String
    The AWS account ID of the owner of the VPC that this resolver configuration applies to.
    resourceId String
    The ID of the VPC that the configuration is for.
    autodefinedReverseFlag string
    Indicates whether or not the Resolver will create autodefined rules for reverse DNS lookups. Valid values: ENABLE, DISABLE.
    ownerId string
    The AWS account ID of the owner of the VPC that this resolver configuration applies to.
    resourceId string
    The ID of the VPC that the configuration is for.
    autodefined_reverse_flag str
    Indicates whether or not the Resolver will create autodefined rules for reverse DNS lookups. Valid values: ENABLE, DISABLE.
    owner_id str
    The AWS account ID of the owner of the VPC that this resolver configuration applies to.
    resource_id str
    The ID of the VPC that the configuration is for.
    autodefinedReverseFlag String
    Indicates whether or not the Resolver will create autodefined rules for reverse DNS lookups. Valid values: ENABLE, DISABLE.
    ownerId String
    The AWS account ID of the owner of the VPC that this resolver configuration applies to.
    resourceId String
    The ID of the VPC that the configuration is for.

    Import

    Using pulumi import, import Route 53 Resolver configs using the Route 53 Resolver config ID. For example:

    $ pulumi import aws:route53/resolverConfig:ResolverConfig example rslvr-rc-715aa20c73a23da7
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi