aws.route53.ResolverQueryLogConfig
Explore with Pulumi AI
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
The ResolverQueryLogConfig resource accepts the following input properties:
- Destination
Arn 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.
- 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.
- Destination
Arn 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.
- 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.
- destination
Arn 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.
- 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.
- destination
Arn 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.
- {[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.
- 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.
- destination
Arn 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.
- 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.
- Owner
Id string - The AWS account ID of the account that created the query logging configuration.
- 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
orSHARED_WITH_ME
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- 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.
- Owner
Id string - The AWS account ID of the account that created the query logging configuration.
- 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
orSHARED_WITH_ME
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- 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.
- owner
Id String - The AWS account ID of the account that created the query logging configuration.
- 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
orSHARED_WITH_ME
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- 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.
- owner
Id string - The AWS account ID of the account that created the query logging configuration.
- 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
orSHARED_WITH_ME
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- 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.
- 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
orSHARED_WITH_ME
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- 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.
- owner
Id String - The AWS account ID of the account that created the query logging configuration.
- 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
orSHARED_WITH_ME
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
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.
- Arn string
- The ARN (Amazon Resource Name) of the Route 53 Resolver query logging configuration.
- Destination
Arn 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.
- Owner
Id string - The AWS account ID of the account that created the query logging configuration.
- 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
orSHARED_WITH_ME
- 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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- The ARN (Amazon Resource Name) of the Route 53 Resolver query logging configuration.
- Destination
Arn 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.
- Owner
Id string - The AWS account ID of the account that created the query logging configuration.
- 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
orSHARED_WITH_ME
- 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The ARN (Amazon Resource Name) of the Route 53 Resolver query logging configuration.
- destination
Arn 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.
- owner
Id String - The AWS account ID of the account that created the query logging configuration.
- 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
orSHARED_WITH_ME
- 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- The ARN (Amazon Resource Name) of the Route 53 Resolver query logging configuration.
- destination
Arn 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.
- owner
Id string - The AWS account ID of the account that created the query logging configuration.
- 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
orSHARED_WITH_ME
- {[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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- 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.
- 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
orSHARED_WITH_ME
- 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. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The ARN (Amazon Resource Name) of the Route 53 Resolver query logging configuration.
- destination
Arn 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.
- owner
Id String - The AWS account ID of the account that created the query logging configuration.
- 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
orSHARED_WITH_ME
- 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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
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.