1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. NetworkFirewall
  5. NetworkFirewallPolicyApplicationGroup
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

oci.NetworkFirewall.NetworkFirewallPolicyApplicationGroup

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

    This resource provides the Network Firewall Policy Application Group resource in Oracle Cloud Infrastructure Network Firewall service.

    Creates a new ApplicationGroup inside the Network Firewall Policy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNetworkFirewallPolicyApplicationGroup = new oci.networkfirewall.NetworkFirewallPolicyApplicationGroup("test_network_firewall_policy_application_group", {
        apps: networkFirewallPolicyApplicationGroupApps,
        name: networkFirewallPolicyApplicationGroupName,
        networkFirewallPolicyId: testNetworkFirewallPolicy.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_network_firewall_policy_application_group = oci.network_firewall.NetworkFirewallPolicyApplicationGroup("test_network_firewall_policy_application_group",
        apps=network_firewall_policy_application_group_apps,
        name=network_firewall_policy_application_group_name,
        network_firewall_policy_id=test_network_firewall_policy["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/NetworkFirewall"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := NetworkFirewall.NewNetworkFirewallPolicyApplicationGroup(ctx, "test_network_firewall_policy_application_group", &NetworkFirewall.NetworkFirewallPolicyApplicationGroupArgs{
    			Apps:                    pulumi.Any(networkFirewallPolicyApplicationGroupApps),
    			Name:                    pulumi.Any(networkFirewallPolicyApplicationGroupName),
    			NetworkFirewallPolicyId: pulumi.Any(testNetworkFirewallPolicy.Id),
    		})
    		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 testNetworkFirewallPolicyApplicationGroup = new Oci.NetworkFirewall.NetworkFirewallPolicyApplicationGroup("test_network_firewall_policy_application_group", new()
        {
            Apps = networkFirewallPolicyApplicationGroupApps,
            Name = networkFirewallPolicyApplicationGroupName,
            NetworkFirewallPolicyId = testNetworkFirewallPolicy.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.NetworkFirewall.NetworkFirewallPolicyApplicationGroup;
    import com.pulumi.oci.NetworkFirewall.NetworkFirewallPolicyApplicationGroupArgs;
    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 testNetworkFirewallPolicyApplicationGroup = new NetworkFirewallPolicyApplicationGroup("testNetworkFirewallPolicyApplicationGroup", NetworkFirewallPolicyApplicationGroupArgs.builder()        
                .apps(networkFirewallPolicyApplicationGroupApps)
                .name(networkFirewallPolicyApplicationGroupName)
                .networkFirewallPolicyId(testNetworkFirewallPolicy.id())
                .build());
    
        }
    }
    
    resources:
      testNetworkFirewallPolicyApplicationGroup:
        type: oci:NetworkFirewall:NetworkFirewallPolicyApplicationGroup
        name: test_network_firewall_policy_application_group
        properties:
          apps: ${networkFirewallPolicyApplicationGroupApps}
          name: ${networkFirewallPolicyApplicationGroupName}
          networkFirewallPolicyId: ${testNetworkFirewallPolicy.id}
    

    Create NetworkFirewallPolicyApplicationGroup Resource

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

    Constructor syntax

    new NetworkFirewallPolicyApplicationGroup(name: string, args: NetworkFirewallPolicyApplicationGroupArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkFirewallPolicyApplicationGroup(resource_name: str,
                                              args: NetworkFirewallPolicyApplicationGroupArgs,
                                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def NetworkFirewallPolicyApplicationGroup(resource_name: str,
                                              opts: Optional[ResourceOptions] = None,
                                              apps: Optional[Sequence[str]] = None,
                                              network_firewall_policy_id: Optional[str] = None,
                                              name: Optional[str] = None)
    func NewNetworkFirewallPolicyApplicationGroup(ctx *Context, name string, args NetworkFirewallPolicyApplicationGroupArgs, opts ...ResourceOption) (*NetworkFirewallPolicyApplicationGroup, error)
    public NetworkFirewallPolicyApplicationGroup(string name, NetworkFirewallPolicyApplicationGroupArgs args, CustomResourceOptions? opts = null)
    public NetworkFirewallPolicyApplicationGroup(String name, NetworkFirewallPolicyApplicationGroupArgs args)
    public NetworkFirewallPolicyApplicationGroup(String name, NetworkFirewallPolicyApplicationGroupArgs args, CustomResourceOptions options)
    
    type: oci:NetworkFirewall:NetworkFirewallPolicyApplicationGroup
    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 NetworkFirewallPolicyApplicationGroupArgs
    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 NetworkFirewallPolicyApplicationGroupArgs
    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 NetworkFirewallPolicyApplicationGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkFirewallPolicyApplicationGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkFirewallPolicyApplicationGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var networkFirewallPolicyApplicationGroupResource = new Oci.NetworkFirewall.NetworkFirewallPolicyApplicationGroup("networkFirewallPolicyApplicationGroupResource", new()
    {
        Apps = new[]
        {
            "string",
        },
        NetworkFirewallPolicyId = "string",
        Name = "string",
    });
    
    example, err := NetworkFirewall.NewNetworkFirewallPolicyApplicationGroup(ctx, "networkFirewallPolicyApplicationGroupResource", &NetworkFirewall.NetworkFirewallPolicyApplicationGroupArgs{
    	Apps: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	NetworkFirewallPolicyId: pulumi.String("string"),
    	Name:                    pulumi.String("string"),
    })
    
    var networkFirewallPolicyApplicationGroupResource = new NetworkFirewallPolicyApplicationGroup("networkFirewallPolicyApplicationGroupResource", NetworkFirewallPolicyApplicationGroupArgs.builder()        
        .apps("string")
        .networkFirewallPolicyId("string")
        .name("string")
        .build());
    
    network_firewall_policy_application_group_resource = oci.network_firewall.NetworkFirewallPolicyApplicationGroup("networkFirewallPolicyApplicationGroupResource",
        apps=["string"],
        network_firewall_policy_id="string",
        name="string")
    
    const networkFirewallPolicyApplicationGroupResource = new oci.networkfirewall.NetworkFirewallPolicyApplicationGroup("networkFirewallPolicyApplicationGroupResource", {
        apps: ["string"],
        networkFirewallPolicyId: "string",
        name: "string",
    });
    
    type: oci:NetworkFirewall:NetworkFirewallPolicyApplicationGroup
    properties:
        apps:
            - string
        name: string
        networkFirewallPolicyId: string
    

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

    Apps List<string>
    (Updatable) Collection of application names. The apps referenced in the application group must already be present in the policy before being used in the application group.
    NetworkFirewallPolicyId string

    Unique Network Firewall Policy identifier

    ** 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

    Name string
    Name of the application group.
    Apps []string
    (Updatable) Collection of application names. The apps referenced in the application group must already be present in the policy before being used in the application group.
    NetworkFirewallPolicyId string

    Unique Network Firewall Policy identifier

    ** 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

    Name string
    Name of the application group.
    apps List<String>
    (Updatable) Collection of application names. The apps referenced in the application group must already be present in the policy before being used in the application group.
    networkFirewallPolicyId String

    Unique Network Firewall Policy identifier

    ** 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

    name String
    Name of the application group.
    apps string[]
    (Updatable) Collection of application names. The apps referenced in the application group must already be present in the policy before being used in the application group.
    networkFirewallPolicyId string

    Unique Network Firewall Policy identifier

    ** 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

    name string
    Name of the application group.
    apps Sequence[str]
    (Updatable) Collection of application names. The apps referenced in the application group must already be present in the policy before being used in the application group.
    network_firewall_policy_id str

    Unique Network Firewall Policy identifier

    ** 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

    name str
    Name of the application group.
    apps List<String>
    (Updatable) Collection of application names. The apps referenced in the application group must already be present in the policy before being used in the application group.
    networkFirewallPolicyId String

    Unique Network Firewall Policy identifier

    ** 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

    name String
    Name of the application group.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkFirewallPolicyApplicationGroup resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    ParentResourceId string
    OCID of the Network Firewall Policy this application group belongs to.
    TotalApps int
    Count of total applications in the given application group.
    Id string
    The provider-assigned unique ID for this managed resource.
    ParentResourceId string
    OCID of the Network Firewall Policy this application group belongs to.
    TotalApps int
    Count of total applications in the given application group.
    id String
    The provider-assigned unique ID for this managed resource.
    parentResourceId String
    OCID of the Network Firewall Policy this application group belongs to.
    totalApps Integer
    Count of total applications in the given application group.
    id string
    The provider-assigned unique ID for this managed resource.
    parentResourceId string
    OCID of the Network Firewall Policy this application group belongs to.
    totalApps number
    Count of total applications in the given application group.
    id str
    The provider-assigned unique ID for this managed resource.
    parent_resource_id str
    OCID of the Network Firewall Policy this application group belongs to.
    total_apps int
    Count of total applications in the given application group.
    id String
    The provider-assigned unique ID for this managed resource.
    parentResourceId String
    OCID of the Network Firewall Policy this application group belongs to.
    totalApps Number
    Count of total applications in the given application group.

    Look up Existing NetworkFirewallPolicyApplicationGroup Resource

    Get an existing NetworkFirewallPolicyApplicationGroup 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?: NetworkFirewallPolicyApplicationGroupState, opts?: CustomResourceOptions): NetworkFirewallPolicyApplicationGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            apps: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            network_firewall_policy_id: Optional[str] = None,
            parent_resource_id: Optional[str] = None,
            total_apps: Optional[int] = None) -> NetworkFirewallPolicyApplicationGroup
    func GetNetworkFirewallPolicyApplicationGroup(ctx *Context, name string, id IDInput, state *NetworkFirewallPolicyApplicationGroupState, opts ...ResourceOption) (*NetworkFirewallPolicyApplicationGroup, error)
    public static NetworkFirewallPolicyApplicationGroup Get(string name, Input<string> id, NetworkFirewallPolicyApplicationGroupState? state, CustomResourceOptions? opts = null)
    public static NetworkFirewallPolicyApplicationGroup get(String name, Output<String> id, NetworkFirewallPolicyApplicationGroupState 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.
    The following state arguments are supported:
    Apps List<string>
    (Updatable) Collection of application names. The apps referenced in the application group must already be present in the policy before being used in the application group.
    Name string
    Name of the application group.
    NetworkFirewallPolicyId string

    Unique Network Firewall Policy identifier

    ** 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

    ParentResourceId string
    OCID of the Network Firewall Policy this application group belongs to.
    TotalApps int
    Count of total applications in the given application group.
    Apps []string
    (Updatable) Collection of application names. The apps referenced in the application group must already be present in the policy before being used in the application group.
    Name string
    Name of the application group.
    NetworkFirewallPolicyId string

    Unique Network Firewall Policy identifier

    ** 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

    ParentResourceId string
    OCID of the Network Firewall Policy this application group belongs to.
    TotalApps int
    Count of total applications in the given application group.
    apps List<String>
    (Updatable) Collection of application names. The apps referenced in the application group must already be present in the policy before being used in the application group.
    name String
    Name of the application group.
    networkFirewallPolicyId String

    Unique Network Firewall Policy identifier

    ** 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

    parentResourceId String
    OCID of the Network Firewall Policy this application group belongs to.
    totalApps Integer
    Count of total applications in the given application group.
    apps string[]
    (Updatable) Collection of application names. The apps referenced in the application group must already be present in the policy before being used in the application group.
    name string
    Name of the application group.
    networkFirewallPolicyId string

    Unique Network Firewall Policy identifier

    ** 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

    parentResourceId string
    OCID of the Network Firewall Policy this application group belongs to.
    totalApps number
    Count of total applications in the given application group.
    apps Sequence[str]
    (Updatable) Collection of application names. The apps referenced in the application group must already be present in the policy before being used in the application group.
    name str
    Name of the application group.
    network_firewall_policy_id str

    Unique Network Firewall Policy identifier

    ** 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

    parent_resource_id str
    OCID of the Network Firewall Policy this application group belongs to.
    total_apps int
    Count of total applications in the given application group.
    apps List<String>
    (Updatable) Collection of application names. The apps referenced in the application group must already be present in the policy before being used in the application group.
    name String
    Name of the application group.
    networkFirewallPolicyId String

    Unique Network Firewall Policy identifier

    ** 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

    parentResourceId String
    OCID of the Network Firewall Policy this application group belongs to.
    totalApps Number
    Count of total applications in the given application group.

    Import

    NetworkFirewallPolicyApplicationGroups can be imported using the name, e.g.

    $ pulumi import oci:NetworkFirewall/networkFirewallPolicyApplicationGroup:NetworkFirewallPolicyApplicationGroup test_network_firewall_policy_application_group "networkFirewallPolicies/{networkFirewallPolicyId}/applicationGroups/{applicationGroupName}"
    

    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi