ResolverRuleAssociation
Provides a Route53 Resolver rule association.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Route53.ResolverRuleAssociation("example", new Aws.Route53.ResolverRuleAssociationArgs
{
ResolverRuleId = aws_route53_resolver_rule.Sys.Id,
VpcId = aws_vpc.Foo.Id,
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/route53"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := route53.NewResolverRuleAssociation(ctx, "example", &route53.ResolverRuleAssociationArgs{
ResolverRuleId: pulumi.String(aws_route53_resolver_rule.Sys.Id),
VpcId: pulumi.String(aws_vpc.Foo.Id),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.route53.ResolverRuleAssociation("example",
resolver_rule_id=aws_route53_resolver_rule["sys"]["id"],
vpc_id=aws_vpc["foo"]["id"])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.route53.ResolverRuleAssociation("example", {
resolverRuleId: aws_route53_resolver_rule_sys.id,
vpcId: aws_vpc_foo.id,
});Create a ResolverRuleAssociation Resource
new ResolverRuleAssociation(name: string, args: ResolverRuleAssociationArgs, opts?: CustomResourceOptions);def ResolverRuleAssociation(resource_name, opts=None, name=None, resolver_rule_id=None, vpc_id=None, __props__=None);func NewResolverRuleAssociation(ctx *Context, name string, args ResolverRuleAssociationArgs, opts ...ResourceOption) (*ResolverRuleAssociation, error)public ResolverRuleAssociation(string name, ResolverRuleAssociationArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
ResolverRuleAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ResolverRuleAssociation resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the ResolverRuleAssociation resource produces the following output properties:
Look up an 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): ResolverRuleAssociationstatic get(resource_name, id, opts=None, name=None, resolver_rule_id=None, vpc_id=None, __props__=None);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)- 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.
The following state arguments are supported:
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.