1. Packages
  2. AWS Classic
  3. API Docs
  4. route53
  5. getQueryLogConfig

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

aws.route53.getQueryLogConfig

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 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=[
        aws.route53.GetQueryLogConfigFilterArgs(
            name="Name",
            values=["shared-query-log-config"],
        ),
        aws.route53.GetQueryLogConfigFilterArgs(
            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)
    // Output-based functions aren't available in Java yet
    
    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].

    In addition to all arguments above, the following attributes are exported:

    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].

    In addition to all arguments above, the following attributes are exported:

    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].

    In addition to all arguments above, the following attributes are exported:

    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].

    In addition to all arguments above, the following attributes are exported:

    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].

    In addition to all arguments above, the following attributes are exported:

    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].

    In addition to all arguments above, the following attributes are exported:

    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
    DestinationArn string
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerId string
    ShareStatus string
    Tags Dictionary<string, string>
    Filters List<GetQueryLogConfigFilter>
    Name string
    ResolverQueryLogConfigId string
    Arn string
    DestinationArn string
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerId string
    ShareStatus string
    Tags map[string]string
    Filters []GetQueryLogConfigFilter
    Name string
    ResolverQueryLogConfigId string
    arn String
    destinationArn String
    id String
    The provider-assigned unique ID for this managed resource.
    ownerId String
    shareStatus String
    tags Map<String,String>
    filters List<GetQueryLogConfigFilter>
    name String
    resolverQueryLogConfigId String
    arn string
    destinationArn string
    id string
    The provider-assigned unique ID for this managed resource.
    ownerId string
    shareStatus string
    tags {[key: string]: string}
    filters GetQueryLogConfigFilter[]
    name string
    resolverQueryLogConfigId string
    arn str
    destination_arn str
    id str
    The provider-assigned unique ID for this managed resource.
    owner_id str
    share_status str
    tags Mapping[str, str]
    filters Sequence[GetQueryLogConfigFilter]
    name str
    resolver_query_log_config_id str
    arn String
    destinationArn String
    id String
    The provider-assigned unique ID for this managed resource.
    ownerId String
    shareStatus String
    tags Map<String>
    filters List<Property Map>
    name String
    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

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi