1. Packages
  2. AWS
  3. API Docs
  4. route53
  5. ResolverDnsSecConfig
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.route53.ResolverDnsSecConfig

Explore with Pulumi AI

Provides a Route 53 Resolver DNSSEC 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 exampleResolverDnsSecConfig = new aws.route53.ResolverDnsSecConfig("example", {resourceId: example.id});
Copy
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_dns_sec_config = aws.route53.ResolverDnsSecConfig("example", resource_id=example.id)
Copy
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.NewResolverDnsSecConfig(ctx, "example", &route53.ResolverDnsSecConfigArgs{
			ResourceId: example.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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 exampleResolverDnsSecConfig = new Aws.Route53.ResolverDnsSecConfig("example", new()
    {
        ResourceId = example.Id,
    });

});
Copy
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.ResolverDnsSecConfig;
import com.pulumi.aws.route53.ResolverDnsSecConfigArgs;
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 exampleResolverDnsSecConfig = new ResolverDnsSecConfig("exampleResolverDnsSecConfig", ResolverDnsSecConfigArgs.builder()
            .resourceId(example.id())
            .build());

    }
}
Copy
resources:
  example:
    type: aws:ec2:Vpc
    properties:
      cidrBlock: 10.0.0.0/16
      enableDnsSupport: true
      enableDnsHostnames: true
  exampleResolverDnsSecConfig:
    type: aws:route53:ResolverDnsSecConfig
    name: example
    properties:
      resourceId: ${example.id}
Copy

Create ResolverDnsSecConfig Resource

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

Constructor syntax

new ResolverDnsSecConfig(name: string, args: ResolverDnsSecConfigArgs, opts?: CustomResourceOptions);
@overload
def ResolverDnsSecConfig(resource_name: str,
                         args: ResolverDnsSecConfigArgs,
                         opts: Optional[ResourceOptions] = None)

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

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ResolverDnsSecConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ResolverDnsSecConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ResolverDnsSecConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ResolverDnsSecConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ResolverDnsSecConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

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

var resolverDnsSecConfigResource = new Aws.Route53.ResolverDnsSecConfig("resolverDnsSecConfigResource", new()
{
    ResourceId = "string",
});
Copy
example, err := route53.NewResolverDnsSecConfig(ctx, "resolverDnsSecConfigResource", &route53.ResolverDnsSecConfigArgs{
	ResourceId: pulumi.String("string"),
})
Copy
var resolverDnsSecConfigResource = new ResolverDnsSecConfig("resolverDnsSecConfigResource", ResolverDnsSecConfigArgs.builder()
    .resourceId("string")
    .build());
Copy
resolver_dns_sec_config_resource = aws.route53.ResolverDnsSecConfig("resolverDnsSecConfigResource", resource_id="string")
Copy
const resolverDnsSecConfigResource = new aws.route53.ResolverDnsSecConfig("resolverDnsSecConfigResource", {resourceId: "string"});
Copy
type: aws:route53:ResolverDnsSecConfig
properties:
    resourceId: string
Copy

ResolverDnsSecConfig Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ResolverDnsSecConfig resource accepts the following input properties:

ResourceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the virtual private cloud (VPC) that you're updating the DNSSEC validation status for.
ResourceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the virtual private cloud (VPC) that you're updating the DNSSEC validation status for.
resourceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the virtual private cloud (VPC) that you're updating the DNSSEC validation status for.
resourceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the virtual private cloud (VPC) that you're updating the DNSSEC validation status for.
resource_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the virtual private cloud (VPC) that you're updating the DNSSEC validation status for.
resourceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the virtual private cloud (VPC) that you're updating the DNSSEC validation status for.

Outputs

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

Arn string
The ARN for a configuration for DNSSEC validation.
Id string
The provider-assigned unique ID for this managed resource.
OwnerId string
The owner account ID of the virtual private cloud (VPC) for a configuration for DNSSEC validation.
ValidationStatus string
The validation status for a DNSSEC configuration. The status can be one of the following: ENABLING, ENABLED, DISABLING and DISABLED.
Arn string
The ARN for a configuration for DNSSEC validation.
Id string
The provider-assigned unique ID for this managed resource.
OwnerId string
The owner account ID of the virtual private cloud (VPC) for a configuration for DNSSEC validation.
ValidationStatus string
The validation status for a DNSSEC configuration. The status can be one of the following: ENABLING, ENABLED, DISABLING and DISABLED.
arn String
The ARN for a configuration for DNSSEC validation.
id String
The provider-assigned unique ID for this managed resource.
ownerId String
The owner account ID of the virtual private cloud (VPC) for a configuration for DNSSEC validation.
validationStatus String
The validation status for a DNSSEC configuration. The status can be one of the following: ENABLING, ENABLED, DISABLING and DISABLED.
arn string
The ARN for a configuration for DNSSEC validation.
id string
The provider-assigned unique ID for this managed resource.
ownerId string
The owner account ID of the virtual private cloud (VPC) for a configuration for DNSSEC validation.
validationStatus string
The validation status for a DNSSEC configuration. The status can be one of the following: ENABLING, ENABLED, DISABLING and DISABLED.
arn str
The ARN for a configuration for DNSSEC validation.
id str
The provider-assigned unique ID for this managed resource.
owner_id str
The owner account ID of the virtual private cloud (VPC) for a configuration for DNSSEC validation.
validation_status str
The validation status for a DNSSEC configuration. The status can be one of the following: ENABLING, ENABLED, DISABLING and DISABLED.
arn String
The ARN for a configuration for DNSSEC validation.
id String
The provider-assigned unique ID for this managed resource.
ownerId String
The owner account ID of the virtual private cloud (VPC) for a configuration for DNSSEC validation.
validationStatus String
The validation status for a DNSSEC configuration. The status can be one of the following: ENABLING, ENABLED, DISABLING and DISABLED.

Look up Existing ResolverDnsSecConfig Resource

Get an existing ResolverDnsSecConfig 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?: ResolverDnsSecConfigState, opts?: CustomResourceOptions): ResolverDnsSecConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        owner_id: Optional[str] = None,
        resource_id: Optional[str] = None,
        validation_status: Optional[str] = None) -> ResolverDnsSecConfig
func GetResolverDnsSecConfig(ctx *Context, name string, id IDInput, state *ResolverDnsSecConfigState, opts ...ResourceOption) (*ResolverDnsSecConfig, error)
public static ResolverDnsSecConfig Get(string name, Input<string> id, ResolverDnsSecConfigState? state, CustomResourceOptions? opts = null)
public static ResolverDnsSecConfig get(String name, Output<String> id, ResolverDnsSecConfigState state, CustomResourceOptions options)
resources:  _:    type: aws:route53:ResolverDnsSecConfig    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 for a configuration for DNSSEC validation.
OwnerId string
The owner account ID of the virtual private cloud (VPC) for a configuration for DNSSEC validation.
ResourceId Changes to this property will trigger replacement. string
The ID of the virtual private cloud (VPC) that you're updating the DNSSEC validation status for.
ValidationStatus string
The validation status for a DNSSEC configuration. The status can be one of the following: ENABLING, ENABLED, DISABLING and DISABLED.
Arn string
The ARN for a configuration for DNSSEC validation.
OwnerId string
The owner account ID of the virtual private cloud (VPC) for a configuration for DNSSEC validation.
ResourceId Changes to this property will trigger replacement. string
The ID of the virtual private cloud (VPC) that you're updating the DNSSEC validation status for.
ValidationStatus string
The validation status for a DNSSEC configuration. The status can be one of the following: ENABLING, ENABLED, DISABLING and DISABLED.
arn String
The ARN for a configuration for DNSSEC validation.
ownerId String
The owner account ID of the virtual private cloud (VPC) for a configuration for DNSSEC validation.
resourceId Changes to this property will trigger replacement. String
The ID of the virtual private cloud (VPC) that you're updating the DNSSEC validation status for.
validationStatus String
The validation status for a DNSSEC configuration. The status can be one of the following: ENABLING, ENABLED, DISABLING and DISABLED.
arn string
The ARN for a configuration for DNSSEC validation.
ownerId string
The owner account ID of the virtual private cloud (VPC) for a configuration for DNSSEC validation.
resourceId Changes to this property will trigger replacement. string
The ID of the virtual private cloud (VPC) that you're updating the DNSSEC validation status for.
validationStatus string
The validation status for a DNSSEC configuration. The status can be one of the following: ENABLING, ENABLED, DISABLING and DISABLED.
arn str
The ARN for a configuration for DNSSEC validation.
owner_id str
The owner account ID of the virtual private cloud (VPC) for a configuration for DNSSEC validation.
resource_id Changes to this property will trigger replacement. str
The ID of the virtual private cloud (VPC) that you're updating the DNSSEC validation status for.
validation_status str
The validation status for a DNSSEC configuration. The status can be one of the following: ENABLING, ENABLED, DISABLING and DISABLED.
arn String
The ARN for a configuration for DNSSEC validation.
ownerId String
The owner account ID of the virtual private cloud (VPC) for a configuration for DNSSEC validation.
resourceId Changes to this property will trigger replacement. String
The ID of the virtual private cloud (VPC) that you're updating the DNSSEC validation status for.
validationStatus String
The validation status for a DNSSEC configuration. The status can be one of the following: ENABLING, ENABLED, DISABLING and DISABLED.

Import

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

$ pulumi import aws:route53/resolverDnsSecConfig:ResolverDnsSecConfig example rdsc-be1866ecc1683e95
Copy

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.