aws.route53.ResolverFirewallRuleGroupAssociation
Explore with Pulumi AI
Provides a Route 53 Resolver DNS Firewall rule group association resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.route53.ResolverFirewallRuleGroup("example", {name: "example"});
const exampleResolverFirewallRuleGroupAssociation = new aws.route53.ResolverFirewallRuleGroupAssociation("example", {
name: "example",
firewallRuleGroupId: example.id,
priority: 100,
vpcId: exampleAwsVpc.id,
});
import pulumi
import pulumi_aws as aws
example = aws.route53.ResolverFirewallRuleGroup("example", name="example")
example_resolver_firewall_rule_group_association = aws.route53.ResolverFirewallRuleGroupAssociation("example",
name="example",
firewall_rule_group_id=example.id,
priority=100,
vpc_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 {
example, err := route53.NewResolverFirewallRuleGroup(ctx, "example", &route53.ResolverFirewallRuleGroupArgs{
Name: pulumi.String("example"),
})
if err != nil {
return err
}
_, err = route53.NewResolverFirewallRuleGroupAssociation(ctx, "example", &route53.ResolverFirewallRuleGroupAssociationArgs{
Name: pulumi.String("example"),
FirewallRuleGroupId: example.ID(),
Priority: pulumi.Int(100),
VpcId: 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.ResolverFirewallRuleGroup("example", new()
{
Name = "example",
});
var exampleResolverFirewallRuleGroupAssociation = new Aws.Route53.ResolverFirewallRuleGroupAssociation("example", new()
{
Name = "example",
FirewallRuleGroupId = example.Id,
Priority = 100,
VpcId = exampleAwsVpc.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.route53.ResolverFirewallRuleGroup;
import com.pulumi.aws.route53.ResolverFirewallRuleGroupArgs;
import com.pulumi.aws.route53.ResolverFirewallRuleGroupAssociation;
import com.pulumi.aws.route53.ResolverFirewallRuleGroupAssociationArgs;
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 ResolverFirewallRuleGroup("example", ResolverFirewallRuleGroupArgs.builder()
.name("example")
.build());
var exampleResolverFirewallRuleGroupAssociation = new ResolverFirewallRuleGroupAssociation("exampleResolverFirewallRuleGroupAssociation", ResolverFirewallRuleGroupAssociationArgs.builder()
.name("example")
.firewallRuleGroupId(example.id())
.priority(100)
.vpcId(exampleAwsVpc.id())
.build());
}
}
resources:
example:
type: aws:route53:ResolverFirewallRuleGroup
properties:
name: example
exampleResolverFirewallRuleGroupAssociation:
type: aws:route53:ResolverFirewallRuleGroupAssociation
name: example
properties:
name: example
firewallRuleGroupId: ${example.id}
priority: 100
vpcId: ${exampleAwsVpc.id}
Create ResolverFirewallRuleGroupAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ResolverFirewallRuleGroupAssociation(name: string, args: ResolverFirewallRuleGroupAssociationArgs, opts?: CustomResourceOptions);
@overload
def ResolverFirewallRuleGroupAssociation(resource_name: str,
args: ResolverFirewallRuleGroupAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ResolverFirewallRuleGroupAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
firewall_rule_group_id: Optional[str] = None,
priority: Optional[int] = None,
vpc_id: Optional[str] = None,
mutation_protection: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewResolverFirewallRuleGroupAssociation(ctx *Context, name string, args ResolverFirewallRuleGroupAssociationArgs, opts ...ResourceOption) (*ResolverFirewallRuleGroupAssociation, error)
public ResolverFirewallRuleGroupAssociation(string name, ResolverFirewallRuleGroupAssociationArgs args, CustomResourceOptions? opts = null)
public ResolverFirewallRuleGroupAssociation(String name, ResolverFirewallRuleGroupAssociationArgs args)
public ResolverFirewallRuleGroupAssociation(String name, ResolverFirewallRuleGroupAssociationArgs args, CustomResourceOptions options)
type: aws:route53:ResolverFirewallRuleGroupAssociation
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 ResolverFirewallRuleGroupAssociationArgs
- 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 ResolverFirewallRuleGroupAssociationArgs
- 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 ResolverFirewallRuleGroupAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResolverFirewallRuleGroupAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResolverFirewallRuleGroupAssociationArgs
- 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 resolverFirewallRuleGroupAssociationResource = new Aws.Route53.ResolverFirewallRuleGroupAssociation("resolverFirewallRuleGroupAssociationResource", new()
{
FirewallRuleGroupId = "string",
Priority = 0,
VpcId = "string",
MutationProtection = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := route53.NewResolverFirewallRuleGroupAssociation(ctx, "resolverFirewallRuleGroupAssociationResource", &route53.ResolverFirewallRuleGroupAssociationArgs{
FirewallRuleGroupId: pulumi.String("string"),
Priority: pulumi.Int(0),
VpcId: pulumi.String("string"),
MutationProtection: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var resolverFirewallRuleGroupAssociationResource = new ResolverFirewallRuleGroupAssociation("resolverFirewallRuleGroupAssociationResource", ResolverFirewallRuleGroupAssociationArgs.builder()
.firewallRuleGroupId("string")
.priority(0)
.vpcId("string")
.mutationProtection("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
resolver_firewall_rule_group_association_resource = aws.route53.ResolverFirewallRuleGroupAssociation("resolverFirewallRuleGroupAssociationResource",
firewall_rule_group_id="string",
priority=0,
vpc_id="string",
mutation_protection="string",
name="string",
tags={
"string": "string",
})
const resolverFirewallRuleGroupAssociationResource = new aws.route53.ResolverFirewallRuleGroupAssociation("resolverFirewallRuleGroupAssociationResource", {
firewallRuleGroupId: "string",
priority: 0,
vpcId: "string",
mutationProtection: "string",
name: "string",
tags: {
string: "string",
},
});
type: aws:route53:ResolverFirewallRuleGroupAssociation
properties:
firewallRuleGroupId: string
mutationProtection: string
name: string
priority: 0
tags:
string: string
vpcId: string
ResolverFirewallRuleGroupAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ResolverFirewallRuleGroupAssociation resource accepts the following input properties:
- Firewall
Rule stringGroup Id - The unique identifier of the firewall rule group.
- Priority int
- The setting that determines the processing order of the rule group among the rule groups that you associate with the specified VPC. DNS Firewall filters VPC traffic starting from the rule group with the lowest numeric priority setting.
- Vpc
Id string - The unique identifier of the VPC that you want to associate with the rule group.
- Mutation
Protection string - If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections. Valid values:
ENABLED
,DISABLED
. - Name string
- A name that lets you identify the rule group association, to manage and use it.
- Dictionary<string, string>
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Firewall
Rule stringGroup Id - The unique identifier of the firewall rule group.
- Priority int
- The setting that determines the processing order of the rule group among the rule groups that you associate with the specified VPC. DNS Firewall filters VPC traffic starting from the rule group with the lowest numeric priority setting.
- Vpc
Id string - The unique identifier of the VPC that you want to associate with the rule group.
- Mutation
Protection string - If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections. Valid values:
ENABLED
,DISABLED
. - Name string
- A name that lets you identify the rule group association, to manage and use it.
- map[string]string
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- firewall
Rule StringGroup Id - The unique identifier of the firewall rule group.
- priority Integer
- The setting that determines the processing order of the rule group among the rule groups that you associate with the specified VPC. DNS Firewall filters VPC traffic starting from the rule group with the lowest numeric priority setting.
- vpc
Id String - The unique identifier of the VPC that you want to associate with the rule group.
- mutation
Protection String - If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections. Valid values:
ENABLED
,DISABLED
. - name String
- A name that lets you identify the rule group association, to manage and use it.
- Map<String,String>
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- firewall
Rule stringGroup Id - The unique identifier of the firewall rule group.
- priority number
- The setting that determines the processing order of the rule group among the rule groups that you associate with the specified VPC. DNS Firewall filters VPC traffic starting from the rule group with the lowest numeric priority setting.
- vpc
Id string - The unique identifier of the VPC that you want to associate with the rule group.
- mutation
Protection string - If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections. Valid values:
ENABLED
,DISABLED
. - name string
- A name that lets you identify the rule group association, to manage and use it.
- {[key: string]: string}
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- firewall_
rule_ strgroup_ id - The unique identifier of the firewall rule group.
- priority int
- The setting that determines the processing order of the rule group among the rule groups that you associate with the specified VPC. DNS Firewall filters VPC traffic starting from the rule group with the lowest numeric priority setting.
- vpc_
id str - The unique identifier of the VPC that you want to associate with the rule group.
- mutation_
protection str - If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections. Valid values:
ENABLED
,DISABLED
. - name str
- A name that lets you identify the rule group association, to manage and use it.
- Mapping[str, str]
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- firewall
Rule StringGroup Id - The unique identifier of the firewall rule group.
- priority Number
- The setting that determines the processing order of the rule group among the rule groups that you associate with the specified VPC. DNS Firewall filters VPC traffic starting from the rule group with the lowest numeric priority setting.
- vpc
Id String - The unique identifier of the VPC that you want to associate with the rule group.
- mutation
Protection String - If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections. Valid values:
ENABLED
,DISABLED
. - name String
- A name that lets you identify the rule group association, to manage and use it.
- Map<String>
- Key-value map of resource tags. 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 ResolverFirewallRuleGroupAssociation resource produces the following output properties:
Look up Existing ResolverFirewallRuleGroupAssociation Resource
Get an existing ResolverFirewallRuleGroupAssociation 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?: ResolverFirewallRuleGroupAssociationState, opts?: CustomResourceOptions): ResolverFirewallRuleGroupAssociation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
firewall_rule_group_id: Optional[str] = None,
mutation_protection: Optional[str] = None,
name: Optional[str] = None,
priority: Optional[int] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
vpc_id: Optional[str] = None) -> ResolverFirewallRuleGroupAssociation
func GetResolverFirewallRuleGroupAssociation(ctx *Context, name string, id IDInput, state *ResolverFirewallRuleGroupAssociationState, opts ...ResourceOption) (*ResolverFirewallRuleGroupAssociation, error)
public static ResolverFirewallRuleGroupAssociation Get(string name, Input<string> id, ResolverFirewallRuleGroupAssociationState? state, CustomResourceOptions? opts = null)
public static ResolverFirewallRuleGroupAssociation get(String name, Output<String> id, ResolverFirewallRuleGroupAssociationState 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 firewall rule group association.
- Firewall
Rule stringGroup Id - The unique identifier of the firewall rule group.
- Mutation
Protection string - If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections. Valid values:
ENABLED
,DISABLED
. - Name string
- A name that lets you identify the rule group association, to manage and use it.
- Priority int
- The setting that determines the processing order of the rule group among the rule groups that you associate with the specified VPC. DNS Firewall filters VPC traffic starting from the rule group with the lowest numeric priority setting.
- Dictionary<string, string>
- Key-value map of resource tags. 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. - Vpc
Id string - The unique identifier of the VPC that you want to associate with the rule group.
- Arn string
- The ARN (Amazon Resource Name) of the firewall rule group association.
- Firewall
Rule stringGroup Id - The unique identifier of the firewall rule group.
- Mutation
Protection string - If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections. Valid values:
ENABLED
,DISABLED
. - Name string
- A name that lets you identify the rule group association, to manage and use it.
- Priority int
- The setting that determines the processing order of the rule group among the rule groups that you associate with the specified VPC. DNS Firewall filters VPC traffic starting from the rule group with the lowest numeric priority setting.
- map[string]string
- Key-value map of resource tags. 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. - Vpc
Id string - The unique identifier of the VPC that you want to associate with the rule group.
- arn String
- The ARN (Amazon Resource Name) of the firewall rule group association.
- firewall
Rule StringGroup Id - The unique identifier of the firewall rule group.
- mutation
Protection String - If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections. Valid values:
ENABLED
,DISABLED
. - name String
- A name that lets you identify the rule group association, to manage and use it.
- priority Integer
- The setting that determines the processing order of the rule group among the rule groups that you associate with the specified VPC. DNS Firewall filters VPC traffic starting from the rule group with the lowest numeric priority setting.
- Map<String,String>
- Key-value map of resource tags. 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. - vpc
Id String - The unique identifier of the VPC that you want to associate with the rule group.
- arn string
- The ARN (Amazon Resource Name) of the firewall rule group association.
- firewall
Rule stringGroup Id - The unique identifier of the firewall rule group.
- mutation
Protection string - If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections. Valid values:
ENABLED
,DISABLED
. - name string
- A name that lets you identify the rule group association, to manage and use it.
- priority number
- The setting that determines the processing order of the rule group among the rule groups that you associate with the specified VPC. DNS Firewall filters VPC traffic starting from the rule group with the lowest numeric priority setting.
- {[key: string]: string}
- Key-value map of resource tags. 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. - vpc
Id string - The unique identifier of the VPC that you want to associate with the rule group.
- arn str
- The ARN (Amazon Resource Name) of the firewall rule group association.
- firewall_
rule_ strgroup_ id - The unique identifier of the firewall rule group.
- mutation_
protection str - If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections. Valid values:
ENABLED
,DISABLED
. - name str
- A name that lets you identify the rule group association, to manage and use it.
- priority int
- The setting that determines the processing order of the rule group among the rule groups that you associate with the specified VPC. DNS Firewall filters VPC traffic starting from the rule group with the lowest numeric priority setting.
- Mapping[str, str]
- Key-value map of resource tags. 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. - vpc_
id str - The unique identifier of the VPC that you want to associate with the rule group.
- arn String
- The ARN (Amazon Resource Name) of the firewall rule group association.
- firewall
Rule StringGroup Id - The unique identifier of the firewall rule group.
- mutation
Protection String - If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections. Valid values:
ENABLED
,DISABLED
. - name String
- A name that lets you identify the rule group association, to manage and use it.
- priority Number
- The setting that determines the processing order of the rule group among the rule groups that you associate with the specified VPC. DNS Firewall filters VPC traffic starting from the rule group with the lowest numeric priority setting.
- Map<String>
- Key-value map of resource tags. 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. - vpc
Id String - The unique identifier of the VPC that you want to associate with the rule group.
Import
Using pulumi import
, import Route 53 Resolver DNS Firewall rule group associations using the Route 53 Resolver DNS Firewall rule group association ID. For example:
$ pulumi import aws:route53/resolverFirewallRuleGroupAssociation:ResolverFirewallRuleGroupAssociation example rslvr-frgassoc-0123456789abcdef
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.