oci.NetworkFirewall.NetworkFirewallPolicyApplication
Explore with Pulumi AI
This resource provides the Network Firewall Policy Application resource in Oracle Cloud Infrastructure Network Firewall service.
Creates a new Application inside the Network Firewall Policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNetworkFirewallPolicyApplication = new oci.networkfirewall.NetworkFirewallPolicyApplication("test_network_firewall_policy_application", {
    icmpType: networkFirewallPolicyApplicationIcmpType,
    name: networkFirewallPolicyApplicationName,
    networkFirewallPolicyId: testNetworkFirewallPolicy.id,
    type: networkFirewallPolicyApplicationType,
    icmpCode: networkFirewallPolicyApplicationIcmpCode,
});
import pulumi
import pulumi_oci as oci
test_network_firewall_policy_application = oci.network_firewall.NetworkFirewallPolicyApplication("test_network_firewall_policy_application",
    icmp_type=network_firewall_policy_application_icmp_type,
    name=network_firewall_policy_application_name,
    network_firewall_policy_id=test_network_firewall_policy["id"],
    type=network_firewall_policy_application_type,
    icmp_code=network_firewall_policy_application_icmp_code)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/networkfirewall"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := networkfirewall.NewNetworkFirewallPolicyApplication(ctx, "test_network_firewall_policy_application", &networkfirewall.NetworkFirewallPolicyApplicationArgs{
			IcmpType:                pulumi.Any(networkFirewallPolicyApplicationIcmpType),
			Name:                    pulumi.Any(networkFirewallPolicyApplicationName),
			NetworkFirewallPolicyId: pulumi.Any(testNetworkFirewallPolicy.Id),
			Type:                    pulumi.Any(networkFirewallPolicyApplicationType),
			IcmpCode:                pulumi.Any(networkFirewallPolicyApplicationIcmpCode),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testNetworkFirewallPolicyApplication = new Oci.NetworkFirewall.NetworkFirewallPolicyApplication("test_network_firewall_policy_application", new()
    {
        IcmpType = networkFirewallPolicyApplicationIcmpType,
        Name = networkFirewallPolicyApplicationName,
        NetworkFirewallPolicyId = testNetworkFirewallPolicy.Id,
        Type = networkFirewallPolicyApplicationType,
        IcmpCode = networkFirewallPolicyApplicationIcmpCode,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.NetworkFirewall.NetworkFirewallPolicyApplication;
import com.pulumi.oci.NetworkFirewall.NetworkFirewallPolicyApplicationArgs;
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 testNetworkFirewallPolicyApplication = new NetworkFirewallPolicyApplication("testNetworkFirewallPolicyApplication", NetworkFirewallPolicyApplicationArgs.builder()
            .icmpType(networkFirewallPolicyApplicationIcmpType)
            .name(networkFirewallPolicyApplicationName)
            .networkFirewallPolicyId(testNetworkFirewallPolicy.id())
            .type(networkFirewallPolicyApplicationType)
            .icmpCode(networkFirewallPolicyApplicationIcmpCode)
            .build());
    }
}
resources:
  testNetworkFirewallPolicyApplication:
    type: oci:NetworkFirewall:NetworkFirewallPolicyApplication
    name: test_network_firewall_policy_application
    properties:
      icmpType: ${networkFirewallPolicyApplicationIcmpType}
      name: ${networkFirewallPolicyApplicationName}
      networkFirewallPolicyId: ${testNetworkFirewallPolicy.id}
      type: ${networkFirewallPolicyApplicationType}
      icmpCode: ${networkFirewallPolicyApplicationIcmpCode}
Create NetworkFirewallPolicyApplication Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkFirewallPolicyApplication(name: string, args: NetworkFirewallPolicyApplicationArgs, opts?: CustomResourceOptions);@overload
def NetworkFirewallPolicyApplication(resource_name: str,
                                     args: NetworkFirewallPolicyApplicationArgs,
                                     opts: Optional[ResourceOptions] = None)
@overload
def NetworkFirewallPolicyApplication(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     icmp_type: Optional[int] = None,
                                     network_firewall_policy_id: Optional[str] = None,
                                     type: Optional[str] = None,
                                     icmp_code: Optional[int] = None,
                                     name: Optional[str] = None)func NewNetworkFirewallPolicyApplication(ctx *Context, name string, args NetworkFirewallPolicyApplicationArgs, opts ...ResourceOption) (*NetworkFirewallPolicyApplication, error)public NetworkFirewallPolicyApplication(string name, NetworkFirewallPolicyApplicationArgs args, CustomResourceOptions? opts = null)
public NetworkFirewallPolicyApplication(String name, NetworkFirewallPolicyApplicationArgs args)
public NetworkFirewallPolicyApplication(String name, NetworkFirewallPolicyApplicationArgs args, CustomResourceOptions options)
type: oci:NetworkFirewall:NetworkFirewallPolicyApplication
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 NetworkFirewallPolicyApplicationArgs
- 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 NetworkFirewallPolicyApplicationArgs
- 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 NetworkFirewallPolicyApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkFirewallPolicyApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkFirewallPolicyApplicationArgs
- 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 networkFirewallPolicyApplicationResource = new Oci.NetworkFirewall.NetworkFirewallPolicyApplication("networkFirewallPolicyApplicationResource", new()
{
    IcmpType = 0,
    NetworkFirewallPolicyId = "string",
    Type = "string",
    IcmpCode = 0,
    Name = "string",
});
example, err := networkfirewall.NewNetworkFirewallPolicyApplication(ctx, "networkFirewallPolicyApplicationResource", &networkfirewall.NetworkFirewallPolicyApplicationArgs{
	IcmpType:                pulumi.Int(0),
	NetworkFirewallPolicyId: pulumi.String("string"),
	Type:                    pulumi.String("string"),
	IcmpCode:                pulumi.Int(0),
	Name:                    pulumi.String("string"),
})
var networkFirewallPolicyApplicationResource = new NetworkFirewallPolicyApplication("networkFirewallPolicyApplicationResource", NetworkFirewallPolicyApplicationArgs.builder()
    .icmpType(0)
    .networkFirewallPolicyId("string")
    .type("string")
    .icmpCode(0)
    .name("string")
    .build());
network_firewall_policy_application_resource = oci.network_firewall.NetworkFirewallPolicyApplication("networkFirewallPolicyApplicationResource",
    icmp_type=0,
    network_firewall_policy_id="string",
    type="string",
    icmp_code=0,
    name="string")
const networkFirewallPolicyApplicationResource = new oci.networkfirewall.NetworkFirewallPolicyApplication("networkFirewallPolicyApplicationResource", {
    icmpType: 0,
    networkFirewallPolicyId: "string",
    type: "string",
    icmpCode: 0,
    name: "string",
});
type: oci:NetworkFirewall:NetworkFirewallPolicyApplication
properties:
    icmpCode: 0
    icmpType: 0
    name: string
    networkFirewallPolicyId: string
    type: string
NetworkFirewallPolicyApplication 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 NetworkFirewallPolicyApplication resource accepts the following input properties:
- IcmpType int
- (Updatable) The value of the ICMP/IMCP_V6 message Type field as defined by RFC 4443.
- NetworkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- Type string
- Describes the type of application. The accepted values are - * ICMP * ICMP_V6 - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- IcmpCode int
- (Updatable) The value of the ICMP/ICMP_V6 message Code (subtype) field as defined by RFC 4443.
- Name string
- Name of the application
- IcmpType int
- (Updatable) The value of the ICMP/IMCP_V6 message Type field as defined by RFC 4443.
- NetworkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- Type string
- Describes the type of application. The accepted values are - * ICMP * ICMP_V6 - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- IcmpCode int
- (Updatable) The value of the ICMP/ICMP_V6 message Code (subtype) field as defined by RFC 4443.
- Name string
- Name of the application
- icmpType Integer
- (Updatable) The value of the ICMP/IMCP_V6 message Type field as defined by RFC 4443.
- networkFirewall StringPolicy Id 
- Unique Network Firewall Policy identifier
- type String
- Describes the type of application. The accepted values are - * ICMP * ICMP_V6 - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- icmpCode Integer
- (Updatable) The value of the ICMP/ICMP_V6 message Code (subtype) field as defined by RFC 4443.
- name String
- Name of the application
- icmpType number
- (Updatable) The value of the ICMP/IMCP_V6 message Type field as defined by RFC 4443.
- networkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- type string
- Describes the type of application. The accepted values are - * ICMP * ICMP_V6 - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- icmpCode number
- (Updatable) The value of the ICMP/ICMP_V6 message Code (subtype) field as defined by RFC 4443.
- name string
- Name of the application
- icmp_type int
- (Updatable) The value of the ICMP/IMCP_V6 message Type field as defined by RFC 4443.
- network_firewall_ strpolicy_ id 
- Unique Network Firewall Policy identifier
- type str
- Describes the type of application. The accepted values are - * ICMP * ICMP_V6 - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- icmp_code int
- (Updatable) The value of the ICMP/ICMP_V6 message Code (subtype) field as defined by RFC 4443.
- name str
- Name of the application
- icmpType Number
- (Updatable) The value of the ICMP/IMCP_V6 message Type field as defined by RFC 4443.
- networkFirewall StringPolicy Id 
- Unique Network Firewall Policy identifier
- type String
- Describes the type of application. The accepted values are - * ICMP * ICMP_V6 - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- icmpCode Number
- (Updatable) The value of the ICMP/ICMP_V6 message Code (subtype) field as defined by RFC 4443.
- name String
- Name of the application
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkFirewallPolicyApplication resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- ParentResource stringId 
- OCID of the Network Firewall Policy this application belongs to.
- Id string
- The provider-assigned unique ID for this managed resource.
- ParentResource stringId 
- OCID of the Network Firewall Policy this application belongs to.
- id String
- The provider-assigned unique ID for this managed resource.
- parentResource StringId 
- OCID of the Network Firewall Policy this application belongs to.
- id string
- The provider-assigned unique ID for this managed resource.
- parentResource stringId 
- OCID of the Network Firewall Policy this application belongs to.
- id str
- The provider-assigned unique ID for this managed resource.
- parent_resource_ strid 
- OCID of the Network Firewall Policy this application belongs to.
- id String
- The provider-assigned unique ID for this managed resource.
- parentResource StringId 
- OCID of the Network Firewall Policy this application belongs to.
Look up Existing NetworkFirewallPolicyApplication Resource
Get an existing NetworkFirewallPolicyApplication 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?: NetworkFirewallPolicyApplicationState, opts?: CustomResourceOptions): NetworkFirewallPolicyApplication@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        icmp_code: Optional[int] = None,
        icmp_type: Optional[int] = None,
        name: Optional[str] = None,
        network_firewall_policy_id: Optional[str] = None,
        parent_resource_id: Optional[str] = None,
        type: Optional[str] = None) -> NetworkFirewallPolicyApplicationfunc GetNetworkFirewallPolicyApplication(ctx *Context, name string, id IDInput, state *NetworkFirewallPolicyApplicationState, opts ...ResourceOption) (*NetworkFirewallPolicyApplication, error)public static NetworkFirewallPolicyApplication Get(string name, Input<string> id, NetworkFirewallPolicyApplicationState? state, CustomResourceOptions? opts = null)public static NetworkFirewallPolicyApplication get(String name, Output<String> id, NetworkFirewallPolicyApplicationState state, CustomResourceOptions options)resources:  _:    type: oci:NetworkFirewall:NetworkFirewallPolicyApplication    get:      id: ${id}- 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.
- IcmpCode int
- (Updatable) The value of the ICMP/ICMP_V6 message Code (subtype) field as defined by RFC 4443.
- IcmpType int
- (Updatable) The value of the ICMP/IMCP_V6 message Type field as defined by RFC 4443.
- Name string
- Name of the application
- NetworkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- ParentResource stringId 
- OCID of the Network Firewall Policy this application belongs to.
- Type string
- Describes the type of application. The accepted values are - * ICMP * ICMP_V6 - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- IcmpCode int
- (Updatable) The value of the ICMP/ICMP_V6 message Code (subtype) field as defined by RFC 4443.
- IcmpType int
- (Updatable) The value of the ICMP/IMCP_V6 message Type field as defined by RFC 4443.
- Name string
- Name of the application
- NetworkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- ParentResource stringId 
- OCID of the Network Firewall Policy this application belongs to.
- Type string
- Describes the type of application. The accepted values are - * ICMP * ICMP_V6 - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- icmpCode Integer
- (Updatable) The value of the ICMP/ICMP_V6 message Code (subtype) field as defined by RFC 4443.
- icmpType Integer
- (Updatable) The value of the ICMP/IMCP_V6 message Type field as defined by RFC 4443.
- name String
- Name of the application
- networkFirewall StringPolicy Id 
- Unique Network Firewall Policy identifier
- parentResource StringId 
- OCID of the Network Firewall Policy this application belongs to.
- type String
- Describes the type of application. The accepted values are - * ICMP * ICMP_V6 - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- icmpCode number
- (Updatable) The value of the ICMP/ICMP_V6 message Code (subtype) field as defined by RFC 4443.
- icmpType number
- (Updatable) The value of the ICMP/IMCP_V6 message Type field as defined by RFC 4443.
- name string
- Name of the application
- networkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- parentResource stringId 
- OCID of the Network Firewall Policy this application belongs to.
- type string
- Describes the type of application. The accepted values are - * ICMP * ICMP_V6 - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- icmp_code int
- (Updatable) The value of the ICMP/ICMP_V6 message Code (subtype) field as defined by RFC 4443.
- icmp_type int
- (Updatable) The value of the ICMP/IMCP_V6 message Type field as defined by RFC 4443.
- name str
- Name of the application
- network_firewall_ strpolicy_ id 
- Unique Network Firewall Policy identifier
- parent_resource_ strid 
- OCID of the Network Firewall Policy this application belongs to.
- type str
- Describes the type of application. The accepted values are - * ICMP * ICMP_V6 - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- icmpCode Number
- (Updatable) The value of the ICMP/ICMP_V6 message Code (subtype) field as defined by RFC 4443.
- icmpType Number
- (Updatable) The value of the ICMP/IMCP_V6 message Type field as defined by RFC 4443.
- name String
- Name of the application
- networkFirewall StringPolicy Id 
- Unique Network Firewall Policy identifier
- parentResource StringId 
- OCID of the Network Firewall Policy this application belongs to.
- type String
- Describes the type of application. The accepted values are - * ICMP * ICMP_V6 - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
Import
NetworkFirewallPolicyApplications can be imported using the name, e.g.
$ pulumi import oci:NetworkFirewall/networkFirewallPolicyApplication:NetworkFirewallPolicyApplication test_network_firewall_policy_application "networkFirewallPolicies/{networkFirewallPolicyId}/applications/{applicationName}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.