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

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

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

    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"])
    
    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
    	})
    }
    
    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 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}
    

    Create ResolverQueryLogConfigAssociation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ResolverQueryLogConfigAssociation(name: string, args: ResolverQueryLogConfigAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def ResolverQueryLogConfigAssociation(resource_name: str,
                                          args: ResolverQueryLogConfigAssociationArgs,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def ResolverQueryLogConfigAssociation(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          resolver_query_log_config_id: Optional[str] = None,
                                          resource_id: Optional[str] = None)
    func NewResolverQueryLogConfigAssociation(ctx *Context, name string, args ResolverQueryLogConfigAssociationArgs, opts ...ResourceOption) (*ResolverQueryLogConfigAssociation, error)
    public ResolverQueryLogConfigAssociation(string name, ResolverQueryLogConfigAssociationArgs args, CustomResourceOptions? opts = null)
    public ResolverQueryLogConfigAssociation(String name, ResolverQueryLogConfigAssociationArgs args)
    public ResolverQueryLogConfigAssociation(String name, ResolverQueryLogConfigAssociationArgs args, CustomResourceOptions options)
    
    type: aws:route53:ResolverQueryLogConfigAssociation
    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 ResolverQueryLogConfigAssociationArgs
    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 ResolverQueryLogConfigAssociationArgs
    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 ResolverQueryLogConfigAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ResolverQueryLogConfigAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ResolverQueryLogConfigAssociationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var resolverQueryLogConfigAssociationResource = new Aws.Route53.ResolverQueryLogConfigAssociation("resolverQueryLogConfigAssociationResource", new()
    {
        ResolverQueryLogConfigId = "string",
        ResourceId = "string",
    });
    
    example, err := route53.NewResolverQueryLogConfigAssociation(ctx, "resolverQueryLogConfigAssociationResource", &route53.ResolverQueryLogConfigAssociationArgs{
    	ResolverQueryLogConfigId: pulumi.String("string"),
    	ResourceId:               pulumi.String("string"),
    })
    
    var resolverQueryLogConfigAssociationResource = new ResolverQueryLogConfigAssociation("resolverQueryLogConfigAssociationResource", ResolverQueryLogConfigAssociationArgs.builder()        
        .resolverQueryLogConfigId("string")
        .resourceId("string")
        .build());
    
    resolver_query_log_config_association_resource = aws.route53.ResolverQueryLogConfigAssociation("resolverQueryLogConfigAssociationResource",
        resolver_query_log_config_id="string",
        resource_id="string")
    
    const resolverQueryLogConfigAssociationResource = new aws.route53.ResolverQueryLogConfigAssociation("resolverQueryLogConfigAssociationResource", {
        resolverQueryLogConfigId: "string",
        resourceId: "string",
    });
    
    type: aws:route53:ResolverQueryLogConfigAssociation
    properties:
        resolverQueryLogConfigId: string
        resourceId: string
    

    ResolverQueryLogConfigAssociation 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 ResolverQueryLogConfigAssociation resource accepts the following input properties:

    ResolverQueryLogConfigId string
    The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
    ResourceId string
    The ID of a VPC that you want this query logging configuration to log queries for.
    ResolverQueryLogConfigId string
    The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
    ResourceId string
    The ID of a VPC that you want this query logging configuration to log queries for.
    resolverQueryLogConfigId String
    The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
    resourceId String
    The ID of a VPC that you want this query logging configuration to log queries for.
    resolverQueryLogConfigId string
    The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
    resourceId string
    The ID of a VPC that you want this query logging configuration to log queries for.
    resolver_query_log_config_id str
    The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
    resource_id str
    The ID of a VPC that you want this query logging configuration to log queries for.
    resolverQueryLogConfigId String
    The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
    resourceId String
    The ID of a VPC that you want this query logging configuration to log queries for.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ResolverQueryLogConfigAssociation resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ResolverQueryLogConfigAssociation Resource

    Get an existing ResolverQueryLogConfigAssociation 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?: ResolverQueryLogConfigAssociationState, opts?: CustomResourceOptions): ResolverQueryLogConfigAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            resolver_query_log_config_id: Optional[str] = None,
            resource_id: Optional[str] = None) -> ResolverQueryLogConfigAssociation
    func GetResolverQueryLogConfigAssociation(ctx *Context, name string, id IDInput, state *ResolverQueryLogConfigAssociationState, opts ...ResourceOption) (*ResolverQueryLogConfigAssociation, error)
    public static ResolverQueryLogConfigAssociation Get(string name, Input<string> id, ResolverQueryLogConfigAssociationState? state, CustomResourceOptions? opts = null)
    public static ResolverQueryLogConfigAssociation get(String name, Output<String> id, ResolverQueryLogConfigAssociationState 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.
    The following state arguments are supported:
    ResolverQueryLogConfigId string
    The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
    ResourceId string
    The ID of a VPC that you want this query logging configuration to log queries for.
    ResolverQueryLogConfigId string
    The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
    ResourceId string
    The ID of a VPC that you want this query logging configuration to log queries for.
    resolverQueryLogConfigId String
    The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
    resourceId String
    The ID of a VPC that you want this query logging configuration to log queries for.
    resolverQueryLogConfigId string
    The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
    resourceId string
    The ID of a VPC that you want this query logging configuration to log queries for.
    resolver_query_log_config_id str
    The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
    resource_id str
    The ID of a VPC that you want this query logging configuration to log queries for.
    resolverQueryLogConfigId String
    The ID of the Route 53 Resolver query logging configuration that you want to associate a VPC with.
    resourceId String
    The ID of a VPC that you want this query logging configuration to log queries for.

    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
    

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