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

ResolverQueryLogConfig

Provides a Route 53 Resolver query logging configuration resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.Route53.ResolverQueryLogConfig("example", new Aws.Route53.ResolverQueryLogConfigArgs
        {
            DestinationArn = aws_s3_bucket.Example.Arn,
            Tags = 
            {
                { "Environment", "Prod" },
            },
        });
    }

}
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.NewResolverQueryLogConfig(ctx, "example", &route53.ResolverQueryLogConfigArgs{
			DestinationArn: pulumi.Any(aws_s3_bucket.Example.Arn),
			Tags: pulumi.StringMap{
				"Environment": pulumi.String("Prod"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_aws as aws

example = aws.route53.ResolverQueryLogConfig("example",
    destination_arn=aws_s3_bucket["example"]["arn"],
    tags={
        "Environment": "Prod",
    })
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.route53.ResolverQueryLogConfig("example", {
    destinationArn: aws_s3_bucket.example.arn,
    tags: {
        Environment: "Prod",
    },
});

Create a ResolverQueryLogConfig Resource

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

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

DestinationArn string
The ARN of the resource that you want Route 53 Resolver to send query logs. You can send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
Name string
The name of the Route 53 Resolver query logging configuration.
Tags Dictionary<string, string>
A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
DestinationArn string
The ARN of the resource that you want Route 53 Resolver to send query logs. You can send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
Name string
The name of the Route 53 Resolver query logging configuration.
Tags map[string]string
A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
destinationArn string
The ARN of the resource that you want Route 53 Resolver to send query logs. You can send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
name string
The name of the Route 53 Resolver query logging configuration.
tags {[key: string]: string}
A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
destination_arn str
The ARN of the resource that you want Route 53 Resolver to send query logs. You can send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
name str
The name of the Route 53 Resolver query logging configuration.
tags Mapping[str, str]
A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Outputs

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

Arn string
The ARN (Amazon Resource Name) of the Route 53 Resolver query logging configuration.
Id string
The provider-assigned unique ID for this managed resource.
OwnerId string
The AWS account ID of the account that created the query logging configuration.
ShareStatus string
An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM). Values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME
TagsAll Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider .
Arn string
The ARN (Amazon Resource Name) of the Route 53 Resolver query logging configuration.
Id string
The provider-assigned unique ID for this managed resource.
OwnerId string
The AWS account ID of the account that created the query logging configuration.
ShareStatus string
An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM). Values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME
TagsAll map[string]string
A map of tags assigned to the resource, including those inherited from the provider .
arn string
The ARN (Amazon Resource Name) of the Route 53 Resolver query logging configuration.
id string
The provider-assigned unique ID for this managed resource.
ownerId string
The AWS account ID of the account that created the query logging configuration.
shareStatus string
An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM). Values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME
tagsAll {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider .
arn str
The ARN (Amazon Resource Name) of the Route 53 Resolver query logging configuration.
id str
The provider-assigned unique ID for this managed resource.
owner_id str
The AWS account ID of the account that created the query logging configuration.
share_status str
An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM). Values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME
tags_all Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider .

Look up an Existing ResolverQueryLogConfig Resource

Get an existing ResolverQueryLogConfig 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?: ResolverQueryLogConfigState, opts?: CustomResourceOptions): ResolverQueryLogConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        destination_arn: Optional[str] = None,
        name: Optional[str] = None,
        owner_id: Optional[str] = None,
        share_status: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None) -> ResolverQueryLogConfig
func GetResolverQueryLogConfig(ctx *Context, name string, id IDInput, state *ResolverQueryLogConfigState, opts ...ResourceOption) (*ResolverQueryLogConfig, error)
public static ResolverQueryLogConfig Get(string name, Input<string> id, ResolverQueryLogConfigState? 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 (Amazon Resource Name) of the Route 53 Resolver query logging configuration.
DestinationArn string
The ARN of the resource that you want Route 53 Resolver to send query logs. You can send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
Name string
The name of the Route 53 Resolver query logging configuration.
OwnerId string
The AWS account ID of the account that created the query logging configuration.
ShareStatus string
An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM). Values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME
Tags Dictionary<string, string>
A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider .
Arn string
The ARN (Amazon Resource Name) of the Route 53 Resolver query logging configuration.
DestinationArn string
The ARN of the resource that you want Route 53 Resolver to send query logs. You can send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
Name string
The name of the Route 53 Resolver query logging configuration.
OwnerId string
The AWS account ID of the account that created the query logging configuration.
ShareStatus string
An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM). Values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME
Tags map[string]string
A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll map[string]string
A map of tags assigned to the resource, including those inherited from the provider .
arn string
The ARN (Amazon Resource Name) of the Route 53 Resolver query logging configuration.
destinationArn string
The ARN of the resource that you want Route 53 Resolver to send query logs. You can send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
name string
The name of the Route 53 Resolver query logging configuration.
ownerId string
The AWS account ID of the account that created the query logging configuration.
shareStatus string
An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM). Values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME
tags {[key: string]: string}
A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider .
arn str
The ARN (Amazon Resource Name) of the Route 53 Resolver query logging configuration.
destination_arn str
The ARN of the resource that you want Route 53 Resolver to send query logs. You can send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
name str
The name of the Route 53 Resolver query logging configuration.
owner_id str
The AWS account ID of the account that created the query logging configuration.
share_status str
An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM). Values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME
tags Mapping[str, str]
A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tags_all Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider .

Import

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

 $ pulumi import aws:route53/resolverQueryLogConfig:ResolverQueryLogConfig example rqlc-92edc3b1838248bf

Package Details

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