Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

AWS Classic

v4.30.0 published on Tuesday, Nov 30, 2021 by Pulumi

ResolverQueryLogConfigAssociation

Provides a Route 53 Resolver query logging configuration association resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.Route53.ResolverQueryLogConfigAssociation("example", new Aws.Route53.ResolverQueryLogConfigAssociationArgs
        {
            ResolverQueryLogConfigId = aws_route53_resolver_query_log_config.Example.Id,
            ResourceId = aws_vpc.Example.Id,
        });
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := route53.NewResolverQueryLogConfigAssociation(ctx, "example", &route53.ResolverQueryLogConfigAssociationArgs{
			ResolverQueryLogConfigId: pulumi.Any(aws_route53_resolver_query_log_config.Example.Id),
			ResourceId:               pulumi.Any(aws_vpc.Example.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_aws as aws

example = aws.route53.ResolverQueryLogConfigAssociation("example",
    resolver_query_log_config_id=aws_route53_resolver_query_log_config["example"]["id"],
    resource_id=aws_vpc["example"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.route53.ResolverQueryLogConfigAssociation("example", {
    resolverQueryLogConfigId: aws_route53_resolver_query_log_config.example.id,
    resourceId: aws_vpc.example.id,
});

Create a ResolverQueryLogConfigAssociation Resource

new ResolverQueryLogConfigAssociation(name: string, args: ResolverQueryLogConfigAssociationArgs, opts?: CustomResourceOptions);
@overload
def ResolverQueryLogConfigAssociation(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      resolver_query_log_config_id: Optional[str] = None,
                                      resource_id: Optional[str] = None)
@overload
def ResolverQueryLogConfigAssociation(resource_name: str,
                                      args: ResolverQueryLogConfigAssociationArgs,
                                      opts: Optional[ResourceOptions] = None)
func NewResolverQueryLogConfigAssociation(ctx *Context, name string, args ResolverQueryLogConfigAssociationArgs, opts ...ResourceOption) (*ResolverQueryLogConfigAssociation, error)
public ResolverQueryLogConfigAssociation(string name, ResolverQueryLogConfigAssociationArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ResolverQueryLogConfigAssociationArgs
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 ResolverQueryLogConfigAssociationArgs
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 ResolverQueryLogConfigAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ResolverQueryLogConfigAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

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

ResolverQueryLogConfigId string
The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
ResourceId string
The ID of a VPC that you want this query logging configuration to log queries for.
ResolverQueryLogConfigId string
The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
ResourceId string
The ID of a VPC that you want this query logging configuration to log queries for.
resolverQueryLogConfigId string
The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
resourceId string
The ID of a VPC that you want this query logging configuration to log queries for.
resolver_query_log_config_id str
The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
resource_id str
The ID of a VPC that you want this query logging configuration to log queries for.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ResolverQueryLogConfigAssociation Resource

Get an existing ResolverQueryLogConfigAssociation 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?: ResolverQueryLogConfigAssociationState, opts?: CustomResourceOptions): ResolverQueryLogConfigAssociation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        resolver_query_log_config_id: Optional[str] = None,
        resource_id: Optional[str] = None) -> ResolverQueryLogConfigAssociation
func GetResolverQueryLogConfigAssociation(ctx *Context, name string, id IDInput, state *ResolverQueryLogConfigAssociationState, opts ...ResourceOption) (*ResolverQueryLogConfigAssociation, error)
public static ResolverQueryLogConfigAssociation Get(string name, Input<string> id, ResolverQueryLogConfigAssociationState? 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:

ResolverQueryLogConfigId string
The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
ResourceId string
The ID of a VPC that you want this query logging configuration to log queries for.
ResolverQueryLogConfigId string
The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
ResourceId string
The ID of a VPC that you want this query logging configuration to log queries for.
resolverQueryLogConfigId string
The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
resourceId string
The ID of a VPC that you want this query logging configuration to log queries for.
resolver_query_log_config_id str
The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
resource_id str
The ID of a VPC that you want this query logging configuration to log queries for.

Import

Route 53 Resolver query logging configuration associations can be imported using the Route 53 Resolver query logging configuration association ID, e.g.,

 $ pulumi import aws:route53/resolverQueryLogConfigAssociation:ResolverQueryLogConfigAssociation example rqlca-b320624fef3c4d70

Package Details

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