1. Packages
  2. AWS
  3. API Docs
  4. route53
  5. getQueryLogConfig
AWS v6.81.0 published on Tuesday, May 20, 2025 by Pulumi

aws.route53.getQueryLogConfig

Explore with Pulumi AI

aws logo
AWS v6.81.0 published on Tuesday, May 20, 2025 by Pulumi

    aws.route53.ResolverQueryLogConfig provides details about a specific Route53 Resolver Query Logging Configuration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.route53.getQueryLogConfig({
        resolverQueryLogConfigId: "rqlc-1abc2345ef678g91h",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.route53.get_query_log_config(resolver_query_log_config_id="rqlc-1abc2345ef678g91h")
    
    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.GetQueryLogConfig(ctx, &route53.GetQueryLogConfigArgs{
    			ResolverQueryLogConfigId: pulumi.StringRef("rqlc-1abc2345ef678g91h"),
    		}, nil)
    		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 = Aws.Route53.GetQueryLogConfig.Invoke(new()
        {
            ResolverQueryLogConfigId = "rqlc-1abc2345ef678g91h",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.route53.Route53Functions;
    import com.pulumi.aws.route53.inputs.GetQueryLogConfigArgs;
    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) {
            final var example = Route53Functions.getQueryLogConfig(GetQueryLogConfigArgs.builder()
                .resolverQueryLogConfigId("rqlc-1abc2345ef678g91h")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:route53:getQueryLogConfig
          arguments:
            resolverQueryLogConfigId: rqlc-1abc2345ef678g91h
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.route53.getQueryLogConfig({
        filters: [
            {
                name: "Name",
                values: ["shared-query-log-config"],
            },
            {
                name: "ShareStatus",
                values: ["SHARED_WITH_ME"],
            },
        ],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.route53.get_query_log_config(filters=[
        {
            "name": "Name",
            "values": ["shared-query-log-config"],
        },
        {
            "name": "ShareStatus",
            "values": ["SHARED_WITH_ME"],
        },
    ])
    
    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.GetQueryLogConfig(ctx, &route53.GetQueryLogConfigArgs{
    			Filters: []route53.GetQueryLogConfigFilter{
    				{
    					Name: "Name",
    					Values: []string{
    						"shared-query-log-config",
    					},
    				},
    				{
    					Name: "ShareStatus",
    					Values: []string{
    						"SHARED_WITH_ME",
    					},
    				},
    			},
    		}, nil)
    		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 = Aws.Route53.GetQueryLogConfig.Invoke(new()
        {
            Filters = new[]
            {
                new Aws.Route53.Inputs.GetQueryLogConfigFilterInputArgs
                {
                    Name = "Name",
                    Values = new[]
                    {
                        "shared-query-log-config",
                    },
                },
                new Aws.Route53.Inputs.GetQueryLogConfigFilterInputArgs
                {
                    Name = "ShareStatus",
                    Values = new[]
                    {
                        "SHARED_WITH_ME",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.route53.Route53Functions;
    import com.pulumi.aws.route53.inputs.GetQueryLogConfigArgs;
    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) {
            final var example = Route53Functions.getQueryLogConfig(GetQueryLogConfigArgs.builder()
                .filters(            
                    GetQueryLogConfigFilterArgs.builder()
                        .name("Name")
                        .values("shared-query-log-config")
                        .build(),
                    GetQueryLogConfigFilterArgs.builder()
                        .name("ShareStatus")
                        .values("SHARED_WITH_ME")
                        .build())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:route53:getQueryLogConfig
          arguments:
            filters:
              - name: Name
                values:
                  - shared-query-log-config
              - name: ShareStatus
                values:
                  - SHARED_WITH_ME
    

    Using getQueryLogConfig

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getQueryLogConfig(args: GetQueryLogConfigArgs, opts?: InvokeOptions): Promise<GetQueryLogConfigResult>
    function getQueryLogConfigOutput(args: GetQueryLogConfigOutputArgs, opts?: InvokeOptions): Output<GetQueryLogConfigResult>
    def get_query_log_config(filters: Optional[Sequence[GetQueryLogConfigFilter]] = None,
                             name: Optional[str] = None,
                             resolver_query_log_config_id: Optional[str] = None,
                             tags: Optional[Mapping[str, str]] = None,
                             opts: Optional[InvokeOptions] = None) -> GetQueryLogConfigResult
    def get_query_log_config_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetQueryLogConfigFilterArgs]]]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             resolver_query_log_config_id: Optional[pulumi.Input[str]] = None,
                             tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetQueryLogConfigResult]
    func GetQueryLogConfig(ctx *Context, args *GetQueryLogConfigArgs, opts ...InvokeOption) (*GetQueryLogConfigResult, error)
    func GetQueryLogConfigOutput(ctx *Context, args *GetQueryLogConfigOutputArgs, opts ...InvokeOption) GetQueryLogConfigResultOutput

    > Note: This function is named GetQueryLogConfig in the Go SDK.

    public static class GetQueryLogConfig 
    {
        public static Task<GetQueryLogConfigResult> InvokeAsync(GetQueryLogConfigArgs args, InvokeOptions? opts = null)
        public static Output<GetQueryLogConfigResult> Invoke(GetQueryLogConfigInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetQueryLogConfigResult> getQueryLogConfig(GetQueryLogConfigArgs args, InvokeOptions options)
    public static Output<GetQueryLogConfigResult> getQueryLogConfig(GetQueryLogConfigArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws:route53/getQueryLogConfig:getQueryLogConfig
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<GetQueryLogConfigFilter>
    One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [Route53resolver Filter value in the AWS API reference][1].
    Name string
    The name of the query logging configuration.
    ResolverQueryLogConfigId string
    ID of the Route53 Resolver Query Logging Configuration.
    Tags Dictionary<string, string>
    Map of tags to assign to the service.
    Filters []GetQueryLogConfigFilter
    One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [Route53resolver Filter value in the AWS API reference][1].
    Name string
    The name of the query logging configuration.
    ResolverQueryLogConfigId string
    ID of the Route53 Resolver Query Logging Configuration.
    Tags map[string]string
    Map of tags to assign to the service.
    filters List<GetQueryLogConfigFilter>
    One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [Route53resolver Filter value in the AWS API reference][1].
    name String
    The name of the query logging configuration.
    resolverQueryLogConfigId String
    ID of the Route53 Resolver Query Logging Configuration.
    tags Map<String,String>
    Map of tags to assign to the service.
    filters GetQueryLogConfigFilter[]
    One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [Route53resolver Filter value in the AWS API reference][1].
    name string
    The name of the query logging configuration.
    resolverQueryLogConfigId string
    ID of the Route53 Resolver Query Logging Configuration.
    tags {[key: string]: string}
    Map of tags to assign to the service.
    filters Sequence[GetQueryLogConfigFilter]
    One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [Route53resolver Filter value in the AWS API reference][1].
    name str
    The name of the query logging configuration.
    resolver_query_log_config_id str
    ID of the Route53 Resolver Query Logging Configuration.
    tags Mapping[str, str]
    Map of tags to assign to the service.
    filters List<Property Map>
    One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [Route53resolver Filter value in the AWS API reference][1].
    name String
    The name of the query logging configuration.
    resolverQueryLogConfigId String
    ID of the Route53 Resolver Query Logging Configuration.
    tags Map<String>
    Map of tags to assign to the service.

    getQueryLogConfig Result

    The following output properties are available:

    Arn string
    Computed ARN of the Route53 Resolver Query Logging Configuration.
    DestinationArn string
    The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group or a Kinesis Data Firehose delivery stream.
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerId string
    The AWS account ID for 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.
    Tags Dictionary<string, string>
    Map of tags to assign to the service.
    Filters List<GetQueryLogConfigFilter>
    Name string
    The name of the query logging configuration.
    ResolverQueryLogConfigId string
    Arn string
    Computed ARN of the Route53 Resolver Query Logging Configuration.
    DestinationArn string
    The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group or a Kinesis Data Firehose delivery stream.
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerId string
    The AWS account ID for 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.
    Tags map[string]string
    Map of tags to assign to the service.
    Filters []GetQueryLogConfigFilter
    Name string
    The name of the query logging configuration.
    ResolverQueryLogConfigId string
    arn String
    Computed ARN of the Route53 Resolver Query Logging Configuration.
    destinationArn String
    The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group or a Kinesis Data Firehose delivery stream.
    id String
    The provider-assigned unique ID for this managed resource.
    ownerId String
    The AWS account ID for 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.
    tags Map<String,String>
    Map of tags to assign to the service.
    filters List<GetQueryLogConfigFilter>
    name String
    The name of the query logging configuration.
    resolverQueryLogConfigId String
    arn string
    Computed ARN of the Route53 Resolver Query Logging Configuration.
    destinationArn string
    The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group or a Kinesis Data Firehose delivery stream.
    id string
    The provider-assigned unique ID for this managed resource.
    ownerId string
    The AWS account ID for 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.
    tags {[key: string]: string}
    Map of tags to assign to the service.
    filters GetQueryLogConfigFilter[]
    name string
    The name of the query logging configuration.
    resolverQueryLogConfigId string
    arn str
    Computed ARN of the Route53 Resolver Query Logging Configuration.
    destination_arn str
    The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group or a Kinesis Data Firehose delivery stream.
    id str
    The provider-assigned unique ID for this managed resource.
    owner_id str
    The AWS account ID for 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.
    tags Mapping[str, str]
    Map of tags to assign to the service.
    filters Sequence[GetQueryLogConfigFilter]
    name str
    The name of the query logging configuration.
    resolver_query_log_config_id str
    arn String
    Computed ARN of the Route53 Resolver Query Logging Configuration.
    destinationArn String
    The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group or a Kinesis Data Firehose delivery stream.
    id String
    The provider-assigned unique ID for this managed resource.
    ownerId String
    The AWS account ID for 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.
    tags Map<String>
    Map of tags to assign to the service.
    filters List<Property Map>
    name String
    The name of the query logging configuration.
    resolverQueryLogConfigId String

    Supporting Types

    GetQueryLogConfigFilter

    Name string
    The name of the query logging configuration.
    Values List<string>
    Name string
    The name of the query logging configuration.
    Values []string
    name String
    The name of the query logging configuration.
    values List<String>
    name string
    The name of the query logging configuration.
    values string[]
    name str
    The name of the query logging configuration.
    values Sequence[str]
    name String
    The name of the query logging configuration.
    values List<String>

    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.81.0 published on Tuesday, May 20, 2025 by Pulumi