oci.NetworkFirewall.NetworkFirewallPolicyApplicationGroup
Explore with Pulumi AI
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/v2/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.
Constructor 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.
- Network
Firewall stringPolicy Id 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.
- Network
Firewall stringPolicy Id 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.
- network
Firewall StringPolicy Id 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.
- network
Firewall stringPolicy Id 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_ strpolicy_ id 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.
- network
Firewall StringPolicy Id 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.
- Parent
Resource stringId - 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.
- Parent
Resource stringId - 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.
- parent
Resource StringId - OCID of the Network Firewall Policy this application group belongs to.
- total
Apps Integer - Count of total applications in the given application group.
- id string
- The provider-assigned unique ID for this managed resource.
- parent
Resource stringId - OCID of the Network Firewall Policy this application group belongs to.
- total
Apps number - Count of total applications in the given application group.
- id str
- The provider-assigned unique ID for this managed resource.
- parent_
resource_ strid - 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.
- parent
Resource StringId - OCID of the Network Firewall Policy this application group belongs to.
- total
Apps 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.
- 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.
- Network
Firewall stringPolicy Id 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 stringId - OCID of the Network Firewall Policy this application group belongs to.
- Total
Apps 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.
- Network
Firewall stringPolicy Id 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 stringId - 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.
- network
Firewall StringPolicy Id 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 StringId - OCID of the Network Firewall Policy this application group belongs to.
- total
Apps 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.
- network
Firewall stringPolicy Id 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 stringId - OCID of the Network Firewall Policy this application group belongs to.
- total
Apps 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_ strpolicy_ id 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_ strid - 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.
- network
Firewall StringPolicy Id 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 StringId - OCID of the Network Firewall Policy this application group belongs to.
- total
Apps 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.