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

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

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.route53.ResolverRuleAssociation

Explore with Pulumi AI

aws logo

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

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Provides a Route53 Resolver rule association.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.route53.ResolverRuleAssociation("example", {
        resolverRuleId: sys.id,
        vpcId: foo.id,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.route53.ResolverRuleAssociation("example",
        resolver_rule_id=sys["id"],
        vpc_id=foo["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.NewResolverRuleAssociation(ctx, "example", &route53.ResolverRuleAssociationArgs{
    			ResolverRuleId: pulumi.Any(sys.Id),
    			VpcId:          pulumi.Any(foo.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.ResolverRuleAssociation("example", new()
        {
            ResolverRuleId = sys.Id,
            VpcId = foo.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.route53.ResolverRuleAssociation;
    import com.pulumi.aws.route53.ResolverRuleAssociationArgs;
    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 ResolverRuleAssociation("example", ResolverRuleAssociationArgs.builder()
                .resolverRuleId(sys.id())
                .vpcId(foo.id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:route53:ResolverRuleAssociation
        properties:
          resolverRuleId: ${sys.id}
          vpcId: ${foo.id}
    

    Create ResolverRuleAssociation Resource

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

    Constructor syntax

    new ResolverRuleAssociation(name: string, args: ResolverRuleAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def ResolverRuleAssociation(resource_name: str,
                                args: ResolverRuleAssociationArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def ResolverRuleAssociation(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                resolver_rule_id: Optional[str] = None,
                                vpc_id: Optional[str] = None,
                                name: Optional[str] = None)
    func NewResolverRuleAssociation(ctx *Context, name string, args ResolverRuleAssociationArgs, opts ...ResourceOption) (*ResolverRuleAssociation, error)
    public ResolverRuleAssociation(string name, ResolverRuleAssociationArgs args, CustomResourceOptions? opts = null)
    public ResolverRuleAssociation(String name, ResolverRuleAssociationArgs args)
    public ResolverRuleAssociation(String name, ResolverRuleAssociationArgs args, CustomResourceOptions options)
    
    type: aws:route53:ResolverRuleAssociation
    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 ResolverRuleAssociationArgs
    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 ResolverRuleAssociationArgs
    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 ResolverRuleAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ResolverRuleAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ResolverRuleAssociationArgs
    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 resolverRuleAssociationResource = new Aws.Route53.ResolverRuleAssociation("resolverRuleAssociationResource", new()
    {
        ResolverRuleId = "string",
        VpcId = "string",
        Name = "string",
    });
    
    example, err := route53.NewResolverRuleAssociation(ctx, "resolverRuleAssociationResource", &route53.ResolverRuleAssociationArgs{
    	ResolverRuleId: pulumi.String("string"),
    	VpcId:          pulumi.String("string"),
    	Name:           pulumi.String("string"),
    })
    
    var resolverRuleAssociationResource = new ResolverRuleAssociation("resolverRuleAssociationResource", ResolverRuleAssociationArgs.builder()
        .resolverRuleId("string")
        .vpcId("string")
        .name("string")
        .build());
    
    resolver_rule_association_resource = aws.route53.ResolverRuleAssociation("resolverRuleAssociationResource",
        resolver_rule_id="string",
        vpc_id="string",
        name="string")
    
    const resolverRuleAssociationResource = new aws.route53.ResolverRuleAssociation("resolverRuleAssociationResource", {
        resolverRuleId: "string",
        vpcId: "string",
        name: "string",
    });
    
    type: aws:route53:ResolverRuleAssociation
    properties:
        name: string
        resolverRuleId: string
        vpcId: string
    

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

    ResolverRuleId string
    The ID of the resolver rule that you want to associate with the VPC.
    VpcId string
    The ID of the VPC that you want to associate the resolver rule with.
    Name string
    A name for the association that you're creating between a resolver rule and a VPC.
    ResolverRuleId string
    The ID of the resolver rule that you want to associate with the VPC.
    VpcId string
    The ID of the VPC that you want to associate the resolver rule with.
    Name string
    A name for the association that you're creating between a resolver rule and a VPC.
    resolverRuleId String
    The ID of the resolver rule that you want to associate with the VPC.
    vpcId String
    The ID of the VPC that you want to associate the resolver rule with.
    name String
    A name for the association that you're creating between a resolver rule and a VPC.
    resolverRuleId string
    The ID of the resolver rule that you want to associate with the VPC.
    vpcId string
    The ID of the VPC that you want to associate the resolver rule with.
    name string
    A name for the association that you're creating between a resolver rule and a VPC.
    resolver_rule_id str
    The ID of the resolver rule that you want to associate with the VPC.
    vpc_id str
    The ID of the VPC that you want to associate the resolver rule with.
    name str
    A name for the association that you're creating between a resolver rule and a VPC.
    resolverRuleId String
    The ID of the resolver rule that you want to associate with the VPC.
    vpcId String
    The ID of the VPC that you want to associate the resolver rule with.
    name String
    A name for the association that you're creating between a resolver rule and a VPC.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ResolverRuleAssociation 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 ResolverRuleAssociation Resource

    Get an existing ResolverRuleAssociation 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?: ResolverRuleAssociationState, opts?: CustomResourceOptions): ResolverRuleAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            resolver_rule_id: Optional[str] = None,
            vpc_id: Optional[str] = None) -> ResolverRuleAssociation
    func GetResolverRuleAssociation(ctx *Context, name string, id IDInput, state *ResolverRuleAssociationState, opts ...ResourceOption) (*ResolverRuleAssociation, error)
    public static ResolverRuleAssociation Get(string name, Input<string> id, ResolverRuleAssociationState? state, CustomResourceOptions? opts = null)
    public static ResolverRuleAssociation get(String name, Output<String> id, ResolverRuleAssociationState 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:
    Name string
    A name for the association that you're creating between a resolver rule and a VPC.
    ResolverRuleId string
    The ID of the resolver rule that you want to associate with the VPC.
    VpcId string
    The ID of the VPC that you want to associate the resolver rule with.
    Name string
    A name for the association that you're creating between a resolver rule and a VPC.
    ResolverRuleId string
    The ID of the resolver rule that you want to associate with the VPC.
    VpcId string
    The ID of the VPC that you want to associate the resolver rule with.
    name String
    A name for the association that you're creating between a resolver rule and a VPC.
    resolverRuleId String
    The ID of the resolver rule that you want to associate with the VPC.
    vpcId String
    The ID of the VPC that you want to associate the resolver rule with.
    name string
    A name for the association that you're creating between a resolver rule and a VPC.
    resolverRuleId string
    The ID of the resolver rule that you want to associate with the VPC.
    vpcId string
    The ID of the VPC that you want to associate the resolver rule with.
    name str
    A name for the association that you're creating between a resolver rule and a VPC.
    resolver_rule_id str
    The ID of the resolver rule that you want to associate with the VPC.
    vpc_id str
    The ID of the VPC that you want to associate the resolver rule with.
    name String
    A name for the association that you're creating between a resolver rule and a VPC.
    resolverRuleId String
    The ID of the resolver rule that you want to associate with the VPC.
    vpcId String
    The ID of the VPC that you want to associate the resolver rule with.

    Import

    Using pulumi import, import Route53 Resolver rule associations using the id. For example:

    $ pulumi import aws:route53/resolverRuleAssociation:ResolverRuleAssociation example rslvr-rrassoc-97242eaf88example
    

    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.42.0 published on Wednesday, Jun 26, 2024 by Pulumi