vultr.FirewallGroup
Explore with Pulumi AI
Provides a Vultr Firewall Group resource. This can be used to create, read, modify, and delete Firewall Group.
Example Usage
Create a new Firewall group
import * as pulumi from "@pulumi/pulumi";
import * as vultr from "@ediri/vultr";
const myFirewallgroup = new vultr.FirewallGroup("myFirewallgroup", {description: "base firewall"});
import pulumi
import ediri_vultr as vultr
my_firewallgroup = vultr.FirewallGroup("myFirewallgroup", description="base firewall")
package main
import (
"github.com/dirien/pulumi-vultr/sdk/v2/go/vultr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vultr.NewFirewallGroup(ctx, "myFirewallgroup", &vultr.FirewallGroupArgs{
Description: pulumi.String("base firewall"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vultr = ediri.Vultr;
return await Deployment.RunAsync(() =>
{
var myFirewallgroup = new Vultr.FirewallGroup("myFirewallgroup", new()
{
Description = "base firewall",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vultr.FirewallGroup;
import com.pulumi.vultr.FirewallGroupArgs;
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 myFirewallgroup = new FirewallGroup("myFirewallgroup", FirewallGroupArgs.builder()
.description("base firewall")
.build());
}
}
resources:
myFirewallgroup:
type: vultr:FirewallGroup
properties:
description: base firewall
Create FirewallGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FirewallGroup(name: string, args?: FirewallGroupArgs, opts?: CustomResourceOptions);
@overload
def FirewallGroup(resource_name: str,
args: Optional[FirewallGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def FirewallGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None)
func NewFirewallGroup(ctx *Context, name string, args *FirewallGroupArgs, opts ...ResourceOption) (*FirewallGroup, error)
public FirewallGroup(string name, FirewallGroupArgs? args = null, CustomResourceOptions? opts = null)
public FirewallGroup(String name, FirewallGroupArgs args)
public FirewallGroup(String name, FirewallGroupArgs args, CustomResourceOptions options)
type: vultr:FirewallGroup
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 FirewallGroupArgs
- 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 FirewallGroupArgs
- 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 FirewallGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FirewallGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FirewallGroupArgs
- 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 firewallGroupResource = new Vultr.FirewallGroup("firewallGroupResource", new()
{
Description = "string",
});
example, err := vultr.NewFirewallGroup(ctx, "firewallGroupResource", &vultr.FirewallGroupArgs{
Description: pulumi.String("string"),
})
var firewallGroupResource = new FirewallGroup("firewallGroupResource", FirewallGroupArgs.builder()
.description("string")
.build());
firewall_group_resource = vultr.FirewallGroup("firewallGroupResource", description="string")
const firewallGroupResource = new vultr.FirewallGroup("firewallGroupResource", {description: "string"});
type: vultr:FirewallGroup
properties:
description: string
FirewallGroup 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 FirewallGroup resource accepts the following input properties:
- Description string
- Description of the firewall group.
- Description string
- Description of the firewall group.
- description String
- Description of the firewall group.
- description string
- Description of the firewall group.
- description str
- Description of the firewall group.
- description String
- Description of the firewall group.
Outputs
All input properties are implicitly available as output properties. Additionally, the FirewallGroup resource produces the following output properties:
- Date
Created string - The date the firewall group was created.
- Date
Modified string - The date the firewall group was modified.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Count int - The number of instances that are currently using this firewall group.
- Max
Rule intCount - The number of max firewall rules this group can have.
- Rule
Count int - The number of firewall rules this group currently has.
- Date
Created string - The date the firewall group was created.
- Date
Modified string - The date the firewall group was modified.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Count int - The number of instances that are currently using this firewall group.
- Max
Rule intCount - The number of max firewall rules this group can have.
- Rule
Count int - The number of firewall rules this group currently has.
- date
Created String - The date the firewall group was created.
- date
Modified String - The date the firewall group was modified.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Count Integer - The number of instances that are currently using this firewall group.
- max
Rule IntegerCount - The number of max firewall rules this group can have.
- rule
Count Integer - The number of firewall rules this group currently has.
- date
Created string - The date the firewall group was created.
- date
Modified string - The date the firewall group was modified.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Count number - The number of instances that are currently using this firewall group.
- max
Rule numberCount - The number of max firewall rules this group can have.
- rule
Count number - The number of firewall rules this group currently has.
- date_
created str - The date the firewall group was created.
- date_
modified str - The date the firewall group was modified.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
count int - The number of instances that are currently using this firewall group.
- max_
rule_ intcount - The number of max firewall rules this group can have.
- rule_
count int - The number of firewall rules this group currently has.
- date
Created String - The date the firewall group was created.
- date
Modified String - The date the firewall group was modified.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Count Number - The number of instances that are currently using this firewall group.
- max
Rule NumberCount - The number of max firewall rules this group can have.
- rule
Count Number - The number of firewall rules this group currently has.
Look up Existing FirewallGroup Resource
Get an existing FirewallGroup 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?: FirewallGroupState, opts?: CustomResourceOptions): FirewallGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
date_created: Optional[str] = None,
date_modified: Optional[str] = None,
description: Optional[str] = None,
instance_count: Optional[int] = None,
max_rule_count: Optional[int] = None,
rule_count: Optional[int] = None) -> FirewallGroup
func GetFirewallGroup(ctx *Context, name string, id IDInput, state *FirewallGroupState, opts ...ResourceOption) (*FirewallGroup, error)
public static FirewallGroup Get(string name, Input<string> id, FirewallGroupState? state, CustomResourceOptions? opts = null)
public static FirewallGroup get(String name, Output<String> id, FirewallGroupState 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.
- Date
Created string - The date the firewall group was created.
- Date
Modified string - The date the firewall group was modified.
- Description string
- Description of the firewall group.
- Instance
Count int - The number of instances that are currently using this firewall group.
- Max
Rule intCount - The number of max firewall rules this group can have.
- Rule
Count int - The number of firewall rules this group currently has.
- Date
Created string - The date the firewall group was created.
- Date
Modified string - The date the firewall group was modified.
- Description string
- Description of the firewall group.
- Instance
Count int - The number of instances that are currently using this firewall group.
- Max
Rule intCount - The number of max firewall rules this group can have.
- Rule
Count int - The number of firewall rules this group currently has.
- date
Created String - The date the firewall group was created.
- date
Modified String - The date the firewall group was modified.
- description String
- Description of the firewall group.
- instance
Count Integer - The number of instances that are currently using this firewall group.
- max
Rule IntegerCount - The number of max firewall rules this group can have.
- rule
Count Integer - The number of firewall rules this group currently has.
- date
Created string - The date the firewall group was created.
- date
Modified string - The date the firewall group was modified.
- description string
- Description of the firewall group.
- instance
Count number - The number of instances that are currently using this firewall group.
- max
Rule numberCount - The number of max firewall rules this group can have.
- rule
Count number - The number of firewall rules this group currently has.
- date_
created str - The date the firewall group was created.
- date_
modified str - The date the firewall group was modified.
- description str
- Description of the firewall group.
- instance_
count int - The number of instances that are currently using this firewall group.
- max_
rule_ intcount - The number of max firewall rules this group can have.
- rule_
count int - The number of firewall rules this group currently has.
- date
Created String - The date the firewall group was created.
- date
Modified String - The date the firewall group was modified.
- description String
- Description of the firewall group.
- instance
Count Number - The number of instances that are currently using this firewall group.
- max
Rule NumberCount - The number of max firewall rules this group can have.
- rule
Count Number - The number of firewall rules this group currently has.
Import
Firewall Groups can be imported using the Firewall Group FIREWALLGROUPID
, e.g.
$ pulumi import vultr:index/firewallGroup:FirewallGroup my_firewallgroup c342f929
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- vultr dirien/pulumi-vultr
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vultr
Terraform Provider.