aviatrix.AviatrixFirewallTag
Explore with Pulumi AI
The aviatrix_firewall_tag resource allows the creation and management of Aviatrix Stateful Firewall tags for tag-based security for gateways.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;
return await Deployment.RunAsync(() =>
{
// Create an Aviatrix Firewall Tag
var testFirewallTag = new Aviatrix.AviatrixFirewallTag("testFirewallTag", new()
{
CidrLists = new[]
{
new Aviatrix.Inputs.AviatrixFirewallTagCidrListArgs
{
Cidr = "10.1.0.0/24",
CidrTagName = "a1",
},
new Aviatrix.Inputs.AviatrixFirewallTagCidrListArgs
{
Cidr = "10.2.0.0/24",
CidrTagName = "b1",
},
},
FirewallTag = "test-firewall-tag",
});
});
package main
import (
"github.com/astipkovits/pulumi-aviatrix/sdk/go/aviatrix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aviatrix.NewAviatrixFirewallTag(ctx, "testFirewallTag", &aviatrix.AviatrixFirewallTagArgs{
CidrLists: AviatrixFirewallTagCidrListArray{
&AviatrixFirewallTagCidrListArgs{
Cidr: pulumi.String("10.1.0.0/24"),
CidrTagName: pulumi.String("a1"),
},
&AviatrixFirewallTagCidrListArgs{
Cidr: pulumi.String("10.2.0.0/24"),
CidrTagName: pulumi.String("b1"),
},
},
FirewallTag: pulumi.String("test-firewall-tag"),
})
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.aviatrix.AviatrixFirewallTag;
import com.pulumi.aviatrix.AviatrixFirewallTagArgs;
import com.pulumi.aviatrix.inputs.AviatrixFirewallTagCidrListArgs;
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 testFirewallTag = new AviatrixFirewallTag("testFirewallTag", AviatrixFirewallTagArgs.builder()
.cidrLists(
AviatrixFirewallTagCidrListArgs.builder()
.cidr("10.1.0.0/24")
.cidrTagName("a1")
.build(),
AviatrixFirewallTagCidrListArgs.builder()
.cidr("10.2.0.0/24")
.cidrTagName("b1")
.build())
.firewallTag("test-firewall-tag")
.build());
}
}
import pulumi
import pulumi_aviatrix as aviatrix
# Create an Aviatrix Firewall Tag
test_firewall_tag = aviatrix.AviatrixFirewallTag("testFirewallTag",
cidr_lists=[
aviatrix.AviatrixFirewallTagCidrListArgs(
cidr="10.1.0.0/24",
cidr_tag_name="a1",
),
aviatrix.AviatrixFirewallTagCidrListArgs(
cidr="10.2.0.0/24",
cidr_tag_name="b1",
),
],
firewall_tag="test-firewall-tag")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";
// Create an Aviatrix Firewall Tag
const testFirewallTag = new aviatrix.AviatrixFirewallTag("test_firewall_tag", {
cidrLists: [
{
cidr: "10.1.0.0/24",
cidrTagName: "a1",
},
{
cidr: "10.2.0.0/24",
cidrTagName: "b1",
},
],
firewallTag: "test-firewall-tag",
});
resources:
# Create an Aviatrix Firewall Tag
testFirewallTag:
type: aviatrix:AviatrixFirewallTag
properties:
cidrLists:
- cidr: 10.1.0.0/24
cidrTagName: a1
- cidr: 10.2.0.0/24
cidrTagName: b1
firewallTag: test-firewall-tag
Create AviatrixFirewallTag Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AviatrixFirewallTag(name: string, args: AviatrixFirewallTagArgs, opts?: CustomResourceOptions);
@overload
def AviatrixFirewallTag(resource_name: str,
args: AviatrixFirewallTagArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AviatrixFirewallTag(resource_name: str,
opts: Optional[ResourceOptions] = None,
firewall_tag: Optional[str] = None,
cidr_lists: Optional[Sequence[AviatrixFirewallTagCidrListArgs]] = None)
func NewAviatrixFirewallTag(ctx *Context, name string, args AviatrixFirewallTagArgs, opts ...ResourceOption) (*AviatrixFirewallTag, error)
public AviatrixFirewallTag(string name, AviatrixFirewallTagArgs args, CustomResourceOptions? opts = null)
public AviatrixFirewallTag(String name, AviatrixFirewallTagArgs args)
public AviatrixFirewallTag(String name, AviatrixFirewallTagArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixFirewallTag
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 AviatrixFirewallTagArgs
- 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 AviatrixFirewallTagArgs
- 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 AviatrixFirewallTagArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AviatrixFirewallTagArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AviatrixFirewallTagArgs
- 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 aviatrixFirewallTagResource = new Aviatrix.AviatrixFirewallTag("aviatrixFirewallTagResource", new()
{
FirewallTag = "string",
CidrLists = new[]
{
new Aviatrix.Inputs.AviatrixFirewallTagCidrListArgs
{
Cidr = "string",
CidrTagName = "string",
},
},
});
example, err := aviatrix.NewAviatrixFirewallTag(ctx, "aviatrixFirewallTagResource", &aviatrix.AviatrixFirewallTagArgs{
FirewallTag: pulumi.String("string"),
CidrLists: aviatrix.AviatrixFirewallTagCidrListArray{
&aviatrix.AviatrixFirewallTagCidrListArgs{
Cidr: pulumi.String("string"),
CidrTagName: pulumi.String("string"),
},
},
})
var aviatrixFirewallTagResource = new AviatrixFirewallTag("aviatrixFirewallTagResource", AviatrixFirewallTagArgs.builder()
.firewallTag("string")
.cidrLists(AviatrixFirewallTagCidrListArgs.builder()
.cidr("string")
.cidrTagName("string")
.build())
.build());
aviatrix_firewall_tag_resource = aviatrix.AviatrixFirewallTag("aviatrixFirewallTagResource",
firewall_tag="string",
cidr_lists=[{
"cidr": "string",
"cidr_tag_name": "string",
}])
const aviatrixFirewallTagResource = new aviatrix.AviatrixFirewallTag("aviatrixFirewallTagResource", {
firewallTag: "string",
cidrLists: [{
cidr: "string",
cidrTagName: "string",
}],
});
type: aviatrix:AviatrixFirewallTag
properties:
cidrLists:
- cidr: string
cidrTagName: string
firewallTag: string
AviatrixFirewallTag 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 AviatrixFirewallTag resource accepts the following input properties:
- Firewall
Tag string - Name of the stateful firewall tag to be created.
- Cidr
Lists List<AviatrixFirewall Tag Cidr List> - Dynamic block representing a CIDR to filter, and a name to identify it:
- Firewall
Tag string - Name of the stateful firewall tag to be created.
- Cidr
Lists []AviatrixFirewall Tag Cidr List Args - Dynamic block representing a CIDR to filter, and a name to identify it:
- firewall
Tag String - Name of the stateful firewall tag to be created.
- cidr
Lists List<AviatrixFirewall Tag Cidr List> - Dynamic block representing a CIDR to filter, and a name to identify it:
- firewall
Tag string - Name of the stateful firewall tag to be created.
- cidr
Lists AviatrixFirewall Tag Cidr List[] - Dynamic block representing a CIDR to filter, and a name to identify it:
- firewall_
tag str - Name of the stateful firewall tag to be created.
- cidr_
lists Sequence[AviatrixFirewall Tag Cidr List Args] - Dynamic block representing a CIDR to filter, and a name to identify it:
- firewall
Tag String - Name of the stateful firewall tag to be created.
- cidr
Lists List<Property Map> - Dynamic block representing a CIDR to filter, and a name to identify it:
Outputs
All input properties are implicitly available as output properties. Additionally, the AviatrixFirewallTag 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 AviatrixFirewallTag Resource
Get an existing AviatrixFirewallTag 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?: AviatrixFirewallTagState, opts?: CustomResourceOptions): AviatrixFirewallTag
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cidr_lists: Optional[Sequence[AviatrixFirewallTagCidrListArgs]] = None,
firewall_tag: Optional[str] = None) -> AviatrixFirewallTag
func GetAviatrixFirewallTag(ctx *Context, name string, id IDInput, state *AviatrixFirewallTagState, opts ...ResourceOption) (*AviatrixFirewallTag, error)
public static AviatrixFirewallTag Get(string name, Input<string> id, AviatrixFirewallTagState? state, CustomResourceOptions? opts = null)
public static AviatrixFirewallTag get(String name, Output<String> id, AviatrixFirewallTagState 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.
- Cidr
Lists List<AviatrixFirewall Tag Cidr List> - Dynamic block representing a CIDR to filter, and a name to identify it:
- Firewall
Tag string - Name of the stateful firewall tag to be created.
- Cidr
Lists []AviatrixFirewall Tag Cidr List Args - Dynamic block representing a CIDR to filter, and a name to identify it:
- Firewall
Tag string - Name of the stateful firewall tag to be created.
- cidr
Lists List<AviatrixFirewall Tag Cidr List> - Dynamic block representing a CIDR to filter, and a name to identify it:
- firewall
Tag String - Name of the stateful firewall tag to be created.
- cidr
Lists AviatrixFirewall Tag Cidr List[] - Dynamic block representing a CIDR to filter, and a name to identify it:
- firewall
Tag string - Name of the stateful firewall tag to be created.
- cidr_
lists Sequence[AviatrixFirewall Tag Cidr List Args] - Dynamic block representing a CIDR to filter, and a name to identify it:
- firewall_
tag str - Name of the stateful firewall tag to be created.
- cidr
Lists List<Property Map> - Dynamic block representing a CIDR to filter, and a name to identify it:
- firewall
Tag String - Name of the stateful firewall tag to be created.
Supporting Types
AviatrixFirewallTagCidrList, AviatrixFirewallTagCidrListArgs
- Cidr string
- CIDR address to filter. Example: "10.88.88.88/32".
- Cidr
Tag stringName - A name to identify the CIDR. Example: "policy1".
- Cidr string
- CIDR address to filter. Example: "10.88.88.88/32".
- Cidr
Tag stringName - A name to identify the CIDR. Example: "policy1".
- cidr String
- CIDR address to filter. Example: "10.88.88.88/32".
- cidr
Tag StringName - A name to identify the CIDR. Example: "policy1".
- cidr string
- CIDR address to filter. Example: "10.88.88.88/32".
- cidr
Tag stringName - A name to identify the CIDR. Example: "policy1".
- cidr str
- CIDR address to filter. Example: "10.88.88.88/32".
- cidr_
tag_ strname - A name to identify the CIDR. Example: "policy1".
- cidr String
- CIDR address to filter. Example: "10.88.88.88/32".
- cidr
Tag StringName - A name to identify the CIDR. Example: "policy1".
Import
firewall_tag can be imported using the firewall_tag
, e.g.
$ pulumi import aviatrix:index/aviatrixFirewallTag:AviatrixFirewallTag test firewall_tag
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- aviatrix astipkovits/pulumi-aviatrix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aviatrix
Terraform Provider.