ResolverQueryLogConfigAssociation

class ResolverQueryLogConfigAssociation : KotlinCustomResource

Provides a Route 53 Resolver query logging configuration association resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.route53.ResolverQueryLogConfigAssociation("example", {
resolverQueryLogConfigId: exampleAwsRoute53ResolverQueryLogConfig.id,
resourceId: exampleAwsVpc.id,
});
import pulumi
import pulumi_aws as aws
example = aws.route53.ResolverQueryLogConfigAssociation("example",
resolver_query_log_config_id=example_aws_route53_resolver_query_log_config["id"],
resource_id=example_aws_vpc["id"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Route53.ResolverQueryLogConfigAssociation("example", new()
{
ResolverQueryLogConfigId = exampleAwsRoute53ResolverQueryLogConfig.Id,
ResourceId = exampleAwsVpc.Id,
});
});
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.NewResolverQueryLogConfigAssociation(ctx, "example", &route53.ResolverQueryLogConfigAssociationArgs{
ResolverQueryLogConfigId: pulumi.Any(exampleAwsRoute53ResolverQueryLogConfig.Id),
ResourceId: pulumi.Any(exampleAwsVpc.Id),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.route53.ResolverQueryLogConfigAssociation;
import com.pulumi.aws.route53.ResolverQueryLogConfigAssociationArgs;
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 ResolverQueryLogConfigAssociation("example", ResolverQueryLogConfigAssociationArgs.builder()
.resolverQueryLogConfigId(exampleAwsRoute53ResolverQueryLogConfig.id())
.resourceId(exampleAwsVpc.id())
.build());
}
}
resources:
example:
type: aws:route53:ResolverQueryLogConfigAssociation
properties:
resolverQueryLogConfigId: ${exampleAwsRoute53ResolverQueryLogConfig.id}
resourceId: ${exampleAwsVpc.id}

Import

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

$ pulumi import aws:route53/resolverQueryLogConfigAssociation:ResolverQueryLogConfigAssociation example rqlca-b320624fef3c4d70

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.

Link copied to clipboard
val resourceId: Output<String>

The ID of a VPC that you want this query logging configuration to log queries for.

Link copied to clipboard
val urn: Output<String>