1. Packages
  2. AWS
  3. API Docs
  4. route53
  5. ResolverQueryLogConfig
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.route53.ResolverQueryLogConfig

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Provides a Route 53 Resolver query logging configuration resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.route53.ResolverQueryLogConfig("example", {
        name: "example",
        destinationArn: exampleAwsS3Bucket.arn,
        tags: {
            Environment: "Prod",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.route53.ResolverQueryLogConfig("example",
        name="example",
        destination_arn=example_aws_s3_bucket["arn"],
        tags={
            "Environment": "Prod",
        })
    
    package main
    
    import (
    	"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 {
    		_, err := route53.NewResolverQueryLogConfig(ctx, "example", &route53.ResolverQueryLogConfigArgs{
    			Name:           pulumi.String("example"),
    			DestinationArn: pulumi.Any(exampleAwsS3Bucket.Arn),
    			Tags: pulumi.StringMap{
    				"Environment": pulumi.String("Prod"),
    			},
    		})
    		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.Route53.ResolverQueryLogConfig("example", new()
        {
            Name = "example",
            DestinationArn = exampleAwsS3Bucket.Arn,
            Tags = 
            {
                { "Environment", "Prod" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.route53.ResolverQueryLogConfig;
    import com.pulumi.aws.route53.ResolverQueryLogConfigArgs;
    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 ResolverQueryLogConfig("example", ResolverQueryLogConfigArgs.builder()
                .name("example")
                .destinationArn(exampleAwsS3Bucket.arn())
                .tags(Map.of("Environment", "Prod"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:route53:ResolverQueryLogConfig
        properties:
          name: example
          destinationArn: ${exampleAwsS3Bucket.arn}
          tags:
            Environment: Prod
    

    Create ResolverQueryLogConfig Resource

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

    Constructor syntax

    new ResolverQueryLogConfig(name: string, args: ResolverQueryLogConfigArgs, opts?: CustomResourceOptions);
    @overload
    def ResolverQueryLogConfig(resource_name: str,
                               args: ResolverQueryLogConfigArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @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)
    func NewResolverQueryLogConfig(ctx *Context, name string, args ResolverQueryLogConfigArgs, opts ...ResourceOption) (*ResolverQueryLogConfig, error)
    public ResolverQueryLogConfig(string name, ResolverQueryLogConfigArgs args, CustomResourceOptions? opts = null)
    public ResolverQueryLogConfig(String name, ResolverQueryLogConfigArgs args)
    public ResolverQueryLogConfig(String name, ResolverQueryLogConfigArgs args, CustomResourceOptions options)
    
    type: aws:route53:ResolverQueryLogConfig
    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 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.
    name String
    The unique name of the resource.
    args ResolverQueryLogConfigArgs
    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 resolverQueryLogConfigResource = new Aws.Route53.ResolverQueryLogConfig("resolverQueryLogConfigResource", new()
    {
        DestinationArn = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := route53.NewResolverQueryLogConfig(ctx, "resolverQueryLogConfigResource", &route53.ResolverQueryLogConfigArgs{
    	DestinationArn: pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var resolverQueryLogConfigResource = new ResolverQueryLogConfig("resolverQueryLogConfigResource", ResolverQueryLogConfigArgs.builder()
        .destinationArn("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    resolver_query_log_config_resource = aws.route53.ResolverQueryLogConfig("resolverQueryLogConfigResource",
        destination_arn="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const resolverQueryLogConfigResource = new aws.route53.ResolverQueryLogConfig("resolverQueryLogConfigResource", {
        destinationArn: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:route53:ResolverQueryLogConfig
    properties:
        destinationArn: string
        name: string
        tags:
            string: string
    

    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

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

    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 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.
    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>
    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 default_tags configuration block.

    Deprecated: Please use tags instead.

    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 default_tags configuration block.

    Deprecated: Please use tags instead.

    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 default_tags configuration block.

    Deprecated: Please use tags instead.

    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 default_tags configuration block.

    Deprecated: Please use tags instead.

    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 default_tags configuration block.

    Deprecated: Please use tags instead.

    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>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up 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)
    public static ResolverQueryLogConfig get(String name, Output<String> id, ResolverQueryLogConfigState 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:
    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 default_tags configuration block.

    Deprecated: Please use tags instead.

    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 default_tags configuration block.

    Deprecated: Please use tags instead.

    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 default_tags configuration block.

    Deprecated: Please use tags instead.

    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 default_tags configuration block.

    Deprecated: Please use tags instead.

    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 default_tags configuration block.

    Deprecated: Please use tags instead.

    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>
    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>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Import

    Using pulumi import, import Route 53 Resolver query logging configurations using the Route 53 Resolver query logging configuration ID. For example:

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

    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
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi