1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. FwPolicyV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.FwPolicyV2

Explore with Pulumi AI

Manages a v2 firewall policy resource within FlexibleEngine.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const rule1 = new flexibleengine.FwRuleV2("rule1", {
    description: "drop TELNET traffic",
    action: "deny",
    protocol: "tcp",
    destinationPort: "23",
    enabled: true,
});
const rule2 = new flexibleengine.FwRuleV2("rule2", {
    description: "drop NTP traffic",
    action: "deny",
    protocol: "udp",
    destinationPort: "123",
    enabled: false,
});
const policy1 = new flexibleengine.FwPolicyV2("policy1", {rules: [
    rule1.fwRuleV2Id,
    rule2.fwRuleV2Id,
]});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

rule1 = flexibleengine.FwRuleV2("rule1",
    description="drop TELNET traffic",
    action="deny",
    protocol="tcp",
    destination_port="23",
    enabled=True)
rule2 = flexibleengine.FwRuleV2("rule2",
    description="drop NTP traffic",
    action="deny",
    protocol="udp",
    destination_port="123",
    enabled=False)
policy1 = flexibleengine.FwPolicyV2("policy1", rules=[
    rule1.fw_rule_v2_id,
    rule2.fw_rule_v2_id,
])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		rule1, err := flexibleengine.NewFwRuleV2(ctx, "rule1", &flexibleengine.FwRuleV2Args{
			Description:     pulumi.String("drop TELNET traffic"),
			Action:          pulumi.String("deny"),
			Protocol:        pulumi.String("tcp"),
			DestinationPort: pulumi.String("23"),
			Enabled:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		rule2, err := flexibleengine.NewFwRuleV2(ctx, "rule2", &flexibleengine.FwRuleV2Args{
			Description:     pulumi.String("drop NTP traffic"),
			Action:          pulumi.String("deny"),
			Protocol:        pulumi.String("udp"),
			DestinationPort: pulumi.String("123"),
			Enabled:         pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = flexibleengine.NewFwPolicyV2(ctx, "policy1", &flexibleengine.FwPolicyV2Args{
			Rules: pulumi.StringArray{
				rule1.FwRuleV2Id,
				rule2.FwRuleV2Id,
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var rule1 = new Flexibleengine.FwRuleV2("rule1", new()
    {
        Description = "drop TELNET traffic",
        Action = "deny",
        Protocol = "tcp",
        DestinationPort = "23",
        Enabled = true,
    });

    var rule2 = new Flexibleengine.FwRuleV2("rule2", new()
    {
        Description = "drop NTP traffic",
        Action = "deny",
        Protocol = "udp",
        DestinationPort = "123",
        Enabled = false,
    });

    var policy1 = new Flexibleengine.FwPolicyV2("policy1", new()
    {
        Rules = new[]
        {
            rule1.FwRuleV2Id,
            rule2.FwRuleV2Id,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FwRuleV2;
import com.pulumi.flexibleengine.FwRuleV2Args;
import com.pulumi.flexibleengine.FwPolicyV2;
import com.pulumi.flexibleengine.FwPolicyV2Args;
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 rule1 = new FwRuleV2("rule1", FwRuleV2Args.builder()
            .description("drop TELNET traffic")
            .action("deny")
            .protocol("tcp")
            .destinationPort("23")
            .enabled("true")
            .build());

        var rule2 = new FwRuleV2("rule2", FwRuleV2Args.builder()
            .description("drop NTP traffic")
            .action("deny")
            .protocol("udp")
            .destinationPort("123")
            .enabled("false")
            .build());

        var policy1 = new FwPolicyV2("policy1", FwPolicyV2Args.builder()
            .rules(            
                rule1.fwRuleV2Id(),
                rule2.fwRuleV2Id())
            .build());

    }
}
Copy
resources:
  rule1:
    type: flexibleengine:FwRuleV2
    properties:
      description: drop TELNET traffic
      action: deny
      protocol: tcp
      destinationPort: '23'
      enabled: 'true'
  rule2:
    type: flexibleengine:FwRuleV2
    properties:
      description: drop NTP traffic
      action: deny
      protocol: udp
      destinationPort: '123'
      enabled: 'false'
  policy1:
    type: flexibleengine:FwPolicyV2
    properties:
      rules:
        - ${rule1.fwRuleV2Id}
        - ${rule2.fwRuleV2Id}
Copy

Create FwPolicyV2 Resource

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

Constructor syntax

new FwPolicyV2(name: string, args?: FwPolicyV2Args, opts?: CustomResourceOptions);
@overload
def FwPolicyV2(resource_name: str,
               args: Optional[FwPolicyV2Args] = None,
               opts: Optional[ResourceOptions] = None)

@overload
def FwPolicyV2(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               audited: Optional[bool] = None,
               description: Optional[str] = None,
               fw_policy_v2_id: Optional[str] = None,
               name: Optional[str] = None,
               region: Optional[str] = None,
               rules: Optional[Sequence[str]] = None,
               shared: Optional[bool] = None,
               tenant_id: Optional[str] = None,
               timeouts: Optional[FwPolicyV2TimeoutsArgs] = None,
               value_specs: Optional[Mapping[str, str]] = None)
func NewFwPolicyV2(ctx *Context, name string, args *FwPolicyV2Args, opts ...ResourceOption) (*FwPolicyV2, error)
public FwPolicyV2(string name, FwPolicyV2Args? args = null, CustomResourceOptions? opts = null)
public FwPolicyV2(String name, FwPolicyV2Args args)
public FwPolicyV2(String name, FwPolicyV2Args args, CustomResourceOptions options)
type: flexibleengine:FwPolicyV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args FwPolicyV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args FwPolicyV2Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args FwPolicyV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args FwPolicyV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. FwPolicyV2Args
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 fwPolicyV2Resource = new Flexibleengine.FwPolicyV2("fwPolicyV2Resource", new()
{
    Audited = false,
    Description = "string",
    FwPolicyV2Id = "string",
    Name = "string",
    Region = "string",
    Rules = new[]
    {
        "string",
    },
    Shared = false,
    Timeouts = new Flexibleengine.Inputs.FwPolicyV2TimeoutsArgs
    {
        Create = "string",
    },
});
Copy
example, err := flexibleengine.NewFwPolicyV2(ctx, "fwPolicyV2Resource", &flexibleengine.FwPolicyV2Args{
Audited: pulumi.Bool(false),
Description: pulumi.String("string"),
FwPolicyV2Id: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
Rules: pulumi.StringArray{
pulumi.String("string"),
},
Shared: pulumi.Bool(false),
Timeouts: &.FwPolicyV2TimeoutsArgs{
Create: pulumi.String("string"),
},
})
Copy
var fwPolicyV2Resource = new FwPolicyV2("fwPolicyV2Resource", FwPolicyV2Args.builder()
    .audited(false)
    .description("string")
    .fwPolicyV2Id("string")
    .name("string")
    .region("string")
    .rules("string")
    .shared(false)
    .timeouts(FwPolicyV2TimeoutsArgs.builder()
        .create("string")
        .build())
    .build());
Copy
fw_policy_v2_resource = flexibleengine.FwPolicyV2("fwPolicyV2Resource",
    audited=False,
    description="string",
    fw_policy_v2_id="string",
    name="string",
    region="string",
    rules=["string"],
    shared=False,
    timeouts={
        "create": "string",
    })
Copy
const fwPolicyV2Resource = new flexibleengine.FwPolicyV2("fwPolicyV2Resource", {
    audited: false,
    description: "string",
    fwPolicyV2Id: "string",
    name: "string",
    region: "string",
    rules: ["string"],
    shared: false,
    timeouts: {
        create: "string",
    },
});
Copy
type: flexibleengine:FwPolicyV2
properties:
    audited: false
    description: string
    fwPolicyV2Id: string
    name: string
    region: string
    rules:
        - string
    shared: false
    timeouts:
        create: string
Copy

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

Audited bool
Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
Description string
A description for the firewall policy. Changing this updates the description of an existing firewall policy.
FwPolicyV2Id string
The ID of the policy.
Name string
A name for the firewall policy. Changing this updates the name of an existing firewall policy.
Region string
Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
Rules List<string>
An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
Shared bool
Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
TenantId string

Deprecated: Deprecated

Timeouts FwPolicyV2Timeouts
ValueSpecs Dictionary<string, string>

Deprecated: Deprecated

Audited bool
Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
Description string
A description for the firewall policy. Changing this updates the description of an existing firewall policy.
FwPolicyV2Id string
The ID of the policy.
Name string
A name for the firewall policy. Changing this updates the name of an existing firewall policy.
Region string
Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
Rules []string
An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
Shared bool
Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
TenantId string

Deprecated: Deprecated

Timeouts FwPolicyV2TimeoutsArgs
ValueSpecs map[string]string

Deprecated: Deprecated

audited Boolean
Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
description String
A description for the firewall policy. Changing this updates the description of an existing firewall policy.
fwPolicyV2Id String
The ID of the policy.
name String
A name for the firewall policy. Changing this updates the name of an existing firewall policy.
region String
Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
rules List<String>
An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
shared Boolean
Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
tenantId String

Deprecated: Deprecated

timeouts FwPolicyV2Timeouts
valueSpecs Map<String,String>

Deprecated: Deprecated

audited boolean
Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
description string
A description for the firewall policy. Changing this updates the description of an existing firewall policy.
fwPolicyV2Id string
The ID of the policy.
name string
A name for the firewall policy. Changing this updates the name of an existing firewall policy.
region string
Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
rules string[]
An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
shared boolean
Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
tenantId string

Deprecated: Deprecated

timeouts FwPolicyV2Timeouts
valueSpecs {[key: string]: string}

Deprecated: Deprecated

audited bool
Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
description str
A description for the firewall policy. Changing this updates the description of an existing firewall policy.
fw_policy_v2_id str
The ID of the policy.
name str
A name for the firewall policy. Changing this updates the name of an existing firewall policy.
region str
Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
rules Sequence[str]
An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
shared bool
Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
tenant_id str

Deprecated: Deprecated

timeouts FwPolicyV2TimeoutsArgs
value_specs Mapping[str, str]

Deprecated: Deprecated

audited Boolean
Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
description String
A description for the firewall policy. Changing this updates the description of an existing firewall policy.
fwPolicyV2Id String
The ID of the policy.
name String
A name for the firewall policy. Changing this updates the name of an existing firewall policy.
region String
Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
rules List<String>
An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
shared Boolean
Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
tenantId String

Deprecated: Deprecated

timeouts Property Map
valueSpecs Map<String>

Deprecated: Deprecated

Outputs

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

Get an existing FwPolicyV2 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?: FwPolicyV2State, opts?: CustomResourceOptions): FwPolicyV2
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        audited: Optional[bool] = None,
        description: Optional[str] = None,
        fw_policy_v2_id: Optional[str] = None,
        name: Optional[str] = None,
        region: Optional[str] = None,
        rules: Optional[Sequence[str]] = None,
        shared: Optional[bool] = None,
        tenant_id: Optional[str] = None,
        timeouts: Optional[FwPolicyV2TimeoutsArgs] = None,
        value_specs: Optional[Mapping[str, str]] = None) -> FwPolicyV2
func GetFwPolicyV2(ctx *Context, name string, id IDInput, state *FwPolicyV2State, opts ...ResourceOption) (*FwPolicyV2, error)
public static FwPolicyV2 Get(string name, Input<string> id, FwPolicyV2State? state, CustomResourceOptions? opts = null)
public static FwPolicyV2 get(String name, Output<String> id, FwPolicyV2State state, CustomResourceOptions options)
resources:  _:    type: flexibleengine:FwPolicyV2    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Audited bool
Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
Description string
A description for the firewall policy. Changing this updates the description of an existing firewall policy.
FwPolicyV2Id string
The ID of the policy.
Name string
A name for the firewall policy. Changing this updates the name of an existing firewall policy.
Region string
Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
Rules List<string>
An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
Shared bool
Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
TenantId string

Deprecated: Deprecated

Timeouts FwPolicyV2Timeouts
ValueSpecs Dictionary<string, string>

Deprecated: Deprecated

Audited bool
Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
Description string
A description for the firewall policy. Changing this updates the description of an existing firewall policy.
FwPolicyV2Id string
The ID of the policy.
Name string
A name for the firewall policy. Changing this updates the name of an existing firewall policy.
Region string
Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
Rules []string
An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
Shared bool
Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
TenantId string

Deprecated: Deprecated

Timeouts FwPolicyV2TimeoutsArgs
ValueSpecs map[string]string

Deprecated: Deprecated

audited Boolean
Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
description String
A description for the firewall policy. Changing this updates the description of an existing firewall policy.
fwPolicyV2Id String
The ID of the policy.
name String
A name for the firewall policy. Changing this updates the name of an existing firewall policy.
region String
Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
rules List<String>
An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
shared Boolean
Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
tenantId String

Deprecated: Deprecated

timeouts FwPolicyV2Timeouts
valueSpecs Map<String,String>

Deprecated: Deprecated

audited boolean
Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
description string
A description for the firewall policy. Changing this updates the description of an existing firewall policy.
fwPolicyV2Id string
The ID of the policy.
name string
A name for the firewall policy. Changing this updates the name of an existing firewall policy.
region string
Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
rules string[]
An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
shared boolean
Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
tenantId string

Deprecated: Deprecated

timeouts FwPolicyV2Timeouts
valueSpecs {[key: string]: string}

Deprecated: Deprecated

audited bool
Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
description str
A description for the firewall policy. Changing this updates the description of an existing firewall policy.
fw_policy_v2_id str
The ID of the policy.
name str
A name for the firewall policy. Changing this updates the name of an existing firewall policy.
region str
Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
rules Sequence[str]
An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
shared bool
Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
tenant_id str

Deprecated: Deprecated

timeouts FwPolicyV2TimeoutsArgs
value_specs Mapping[str, str]

Deprecated: Deprecated

audited Boolean
Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
description String
A description for the firewall policy. Changing this updates the description of an existing firewall policy.
fwPolicyV2Id String
The ID of the policy.
name String
A name for the firewall policy. Changing this updates the name of an existing firewall policy.
region String
Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
rules List<String>
An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
shared Boolean
Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
tenantId String

Deprecated: Deprecated

timeouts Property Map
valueSpecs Map<String>

Deprecated: Deprecated

Supporting Types

FwPolicyV2Timeouts
, FwPolicyV2TimeoutsArgs

Create string
Create string
create String
create string
create str
create String

Import

Firewall Policies can be imported using the id, e.g.

$ pulumi import flexibleengine:index/fwPolicyV2:FwPolicyV2 policy_1 07f422e6-c596-474b-8b94-fe2c12506ce0
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.