aws.route53.getQueryLogConfig
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
- Filters
List<GetQuery Log Config Filter> 
- 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.
- ResolverQuery stringLog Config Id 
- ID of the Route53 Resolver Query Logging Configuration.
- Dictionary<string, string>
- Map of tags to assign to the service.
- Filters
[]GetQuery Log Config Filter 
- 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.
- ResolverQuery stringLog Config Id 
- ID of the Route53 Resolver Query Logging Configuration.
- map[string]string
- Map of tags to assign to the service.
- filters
List<GetQuery Log Config Filter> 
- 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.
- resolverQuery StringLog Config Id 
- ID of the Route53 Resolver Query Logging Configuration.
- Map<String,String>
- Map of tags to assign to the service.
- filters
GetQuery Log Config Filter[] 
- 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.
- resolverQuery stringLog Config Id 
- ID of the Route53 Resolver Query Logging Configuration.
- {[key: string]: string}
- Map of tags to assign to the service.
- filters
Sequence[GetQuery Log Config Filter] 
- 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_ strlog_ config_ id 
- ID of the Route53 Resolver Query Logging Configuration.
- 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.
- resolverQuery StringLog Config Id 
- ID of the Route53 Resolver Query Logging Configuration.
- 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
- string
- Dictionary<string, string>
- Filters
List<GetQuery Log Config Filter> 
- Name string
- ResolverQuery stringLog Config Id 
- Arn string
- DestinationArn string
- Id string
- The provider-assigned unique ID for this managed resource.
- OwnerId string
- string
- map[string]string
- Filters
[]GetQuery Log Config Filter 
- Name string
- ResolverQuery stringLog Config Id 
- arn String
- destinationArn String
- id String
- The provider-assigned unique ID for this managed resource.
- ownerId String
- String
- Map<String,String>
- filters
List<GetQuery Log Config Filter> 
- name String
- resolverQuery StringLog Config Id 
- arn string
- destinationArn string
- id string
- The provider-assigned unique ID for this managed resource.
- ownerId string
- string
- {[key: string]: string}
- filters
GetQuery Log Config Filter[] 
- name string
- resolverQuery stringLog Config Id 
- arn str
- destination_arn str
- id str
- The provider-assigned unique ID for this managed resource.
- owner_id str
- str
- Mapping[str, str]
- filters
Sequence[GetQuery Log Config Filter] 
- name str
- resolver_query_ strlog_ config_ id 
- arn String
- destinationArn String
- id String
- The provider-assigned unique ID for this managed resource.
- ownerId String
- String
- Map<String>
- filters List<Property Map>
- name String
- resolverQuery StringLog Config Id 
Supporting Types
GetQueryLogConfigFilter    
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.