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

oci.NetworkFirewall.NetworkFirewallPolicyServiceList

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 Service List resource in Oracle Cloud Infrastructure Network Firewall service.

    Creates a new ServiceList for the Network Firewall Policy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNetworkFirewallPolicyServiceList = new oci.networkfirewall.NetworkFirewallPolicyServiceList("test_network_firewall_policy_service_list", {
        name: networkFirewallPolicyServiceListName,
        networkFirewallPolicyId: testNetworkFirewallPolicy.id,
        services: networkFirewallPolicyServiceListServices,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_network_firewall_policy_service_list = oci.network_firewall.NetworkFirewallPolicyServiceList("test_network_firewall_policy_service_list",
        name=network_firewall_policy_service_list_name,
        network_firewall_policy_id=test_network_firewall_policy["id"],
        services=network_firewall_policy_service_list_services)
    
    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.NewNetworkFirewallPolicyServiceList(ctx, "test_network_firewall_policy_service_list", &NetworkFirewall.NetworkFirewallPolicyServiceListArgs{
    			Name:                    pulumi.Any(networkFirewallPolicyServiceListName),
    			NetworkFirewallPolicyId: pulumi.Any(testNetworkFirewallPolicy.Id),
    			Services:                pulumi.Any(networkFirewallPolicyServiceListServices),
    		})
    		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 testNetworkFirewallPolicyServiceList = new Oci.NetworkFirewall.NetworkFirewallPolicyServiceList("test_network_firewall_policy_service_list", new()
        {
            Name = networkFirewallPolicyServiceListName,
            NetworkFirewallPolicyId = testNetworkFirewallPolicy.Id,
            Services = networkFirewallPolicyServiceListServices,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.NetworkFirewall.NetworkFirewallPolicyServiceList;
    import com.pulumi.oci.NetworkFirewall.NetworkFirewallPolicyServiceListArgs;
    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 testNetworkFirewallPolicyServiceList = new NetworkFirewallPolicyServiceList("testNetworkFirewallPolicyServiceList", NetworkFirewallPolicyServiceListArgs.builder()        
                .name(networkFirewallPolicyServiceListName)
                .networkFirewallPolicyId(testNetworkFirewallPolicy.id())
                .services(networkFirewallPolicyServiceListServices)
                .build());
    
        }
    }
    
    resources:
      testNetworkFirewallPolicyServiceList:
        type: oci:NetworkFirewall:NetworkFirewallPolicyServiceList
        name: test_network_firewall_policy_service_list
        properties:
          name: ${networkFirewallPolicyServiceListName}
          networkFirewallPolicyId: ${testNetworkFirewallPolicy.id}
          services: ${networkFirewallPolicyServiceListServices}
    

    Create NetworkFirewallPolicyServiceList Resource

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

    Constructor syntax

    new NetworkFirewallPolicyServiceList(name: string, args: NetworkFirewallPolicyServiceListArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkFirewallPolicyServiceList(resource_name: str,
                                         args: NetworkFirewallPolicyServiceListArgs,
                                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def NetworkFirewallPolicyServiceList(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         network_firewall_policy_id: Optional[str] = None,
                                         services: Optional[Sequence[str]] = None,
                                         name: Optional[str] = None)
    func NewNetworkFirewallPolicyServiceList(ctx *Context, name string, args NetworkFirewallPolicyServiceListArgs, opts ...ResourceOption) (*NetworkFirewallPolicyServiceList, error)
    public NetworkFirewallPolicyServiceList(string name, NetworkFirewallPolicyServiceListArgs args, CustomResourceOptions? opts = null)
    public NetworkFirewallPolicyServiceList(String name, NetworkFirewallPolicyServiceListArgs args)
    public NetworkFirewallPolicyServiceList(String name, NetworkFirewallPolicyServiceListArgs args, CustomResourceOptions options)
    
    type: oci:NetworkFirewall:NetworkFirewallPolicyServiceList
    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 NetworkFirewallPolicyServiceListArgs
    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 NetworkFirewallPolicyServiceListArgs
    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 NetworkFirewallPolicyServiceListArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkFirewallPolicyServiceListArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkFirewallPolicyServiceListArgs
    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 networkFirewallPolicyServiceListResource = new Oci.NetworkFirewall.NetworkFirewallPolicyServiceList("networkFirewallPolicyServiceListResource", new()
    {
        NetworkFirewallPolicyId = "string",
        Services = new[]
        {
            "string",
        },
        Name = "string",
    });
    
    example, err := NetworkFirewall.NewNetworkFirewallPolicyServiceList(ctx, "networkFirewallPolicyServiceListResource", &NetworkFirewall.NetworkFirewallPolicyServiceListArgs{
    	NetworkFirewallPolicyId: pulumi.String("string"),
    	Services: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    })
    
    var networkFirewallPolicyServiceListResource = new NetworkFirewallPolicyServiceList("networkFirewallPolicyServiceListResource", NetworkFirewallPolicyServiceListArgs.builder()        
        .networkFirewallPolicyId("string")
        .services("string")
        .name("string")
        .build());
    
    network_firewall_policy_service_list_resource = oci.network_firewall.NetworkFirewallPolicyServiceList("networkFirewallPolicyServiceListResource",
        network_firewall_policy_id="string",
        services=["string"],
        name="string")
    
    const networkFirewallPolicyServiceListResource = new oci.networkfirewall.NetworkFirewallPolicyServiceList("networkFirewallPolicyServiceListResource", {
        networkFirewallPolicyId: "string",
        services: ["string"],
        name: "string",
    });
    
    type: oci:NetworkFirewall:NetworkFirewallPolicyServiceList
    properties:
        name: string
        networkFirewallPolicyId: string
        services:
            - string
    

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

    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    Services List<string>

    (Updatable) Collection of service names. The services referenced in the service list must already be present in the policy before being used in the service list.

    ** 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 service Group.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    Services []string

    (Updatable) Collection of service names. The services referenced in the service list must already be present in the policy before being used in the service list.

    ** 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 service Group.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    services List<String>

    (Updatable) Collection of service names. The services referenced in the service list must already be present in the policy before being used in the service list.

    ** 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 service Group.
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    services string[]

    (Updatable) Collection of service names. The services referenced in the service list must already be present in the policy before being used in the service list.

    ** 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 service Group.
    network_firewall_policy_id str
    Unique Network Firewall Policy identifier
    services Sequence[str]

    (Updatable) Collection of service names. The services referenced in the service list must already be present in the policy before being used in the service list.

    ** 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 service Group.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    services List<String>

    (Updatable) Collection of service names. The services referenced in the service list must already be present in the policy before being used in the service list.

    ** 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 service Group.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkFirewallPolicyServiceList 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 serviceList belongs to.
    TotalServices int
    Count of total services in the given service List.
    Id string
    The provider-assigned unique ID for this managed resource.
    ParentResourceId string
    OCID of the Network Firewall Policy this serviceList belongs to.
    TotalServices int
    Count of total services in the given service List.
    id String
    The provider-assigned unique ID for this managed resource.
    parentResourceId String
    OCID of the Network Firewall Policy this serviceList belongs to.
    totalServices Integer
    Count of total services in the given service List.
    id string
    The provider-assigned unique ID for this managed resource.
    parentResourceId string
    OCID of the Network Firewall Policy this serviceList belongs to.
    totalServices number
    Count of total services in the given service List.
    id str
    The provider-assigned unique ID for this managed resource.
    parent_resource_id str
    OCID of the Network Firewall Policy this serviceList belongs to.
    total_services int
    Count of total services in the given service List.
    id String
    The provider-assigned unique ID for this managed resource.
    parentResourceId String
    OCID of the Network Firewall Policy this serviceList belongs to.
    totalServices Number
    Count of total services in the given service List.

    Look up Existing NetworkFirewallPolicyServiceList Resource

    Get an existing NetworkFirewallPolicyServiceList 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?: NetworkFirewallPolicyServiceListState, opts?: CustomResourceOptions): NetworkFirewallPolicyServiceList
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            network_firewall_policy_id: Optional[str] = None,
            parent_resource_id: Optional[str] = None,
            services: Optional[Sequence[str]] = None,
            total_services: Optional[int] = None) -> NetworkFirewallPolicyServiceList
    func GetNetworkFirewallPolicyServiceList(ctx *Context, name string, id IDInput, state *NetworkFirewallPolicyServiceListState, opts ...ResourceOption) (*NetworkFirewallPolicyServiceList, error)
    public static NetworkFirewallPolicyServiceList Get(string name, Input<string> id, NetworkFirewallPolicyServiceListState? state, CustomResourceOptions? opts = null)
    public static NetworkFirewallPolicyServiceList get(String name, Output<String> id, NetworkFirewallPolicyServiceListState 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:
    Name string
    Name of the service Group.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    OCID of the Network Firewall Policy this serviceList belongs to.
    Services List<string>

    (Updatable) Collection of service names. The services referenced in the service list must already be present in the policy before being used in the service list.

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

    TotalServices int
    Count of total services in the given service List.
    Name string
    Name of the service Group.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    OCID of the Network Firewall Policy this serviceList belongs to.
    Services []string

    (Updatable) Collection of service names. The services referenced in the service list must already be present in the policy before being used in the service list.

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

    TotalServices int
    Count of total services in the given service List.
    name String
    Name of the service Group.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    OCID of the Network Firewall Policy this serviceList belongs to.
    services List<String>

    (Updatable) Collection of service names. The services referenced in the service list must already be present in the policy before being used in the service list.

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

    totalServices Integer
    Count of total services in the given service List.
    name string
    Name of the service Group.
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    parentResourceId string
    OCID of the Network Firewall Policy this serviceList belongs to.
    services string[]

    (Updatable) Collection of service names. The services referenced in the service list must already be present in the policy before being used in the service list.

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

    totalServices number
    Count of total services in the given service List.
    name str
    Name of the service Group.
    network_firewall_policy_id str
    Unique Network Firewall Policy identifier
    parent_resource_id str
    OCID of the Network Firewall Policy this serviceList belongs to.
    services Sequence[str]

    (Updatable) Collection of service names. The services referenced in the service list must already be present in the policy before being used in the service list.

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

    total_services int
    Count of total services in the given service List.
    name String
    Name of the service Group.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    OCID of the Network Firewall Policy this serviceList belongs to.
    services List<String>

    (Updatable) Collection of service names. The services referenced in the service list must already be present in the policy before being used in the service list.

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

    totalServices Number
    Count of total services in the given service List.

    Import

    NetworkFirewallPolicyServiceLists can be imported using the id, e.g.

    $ pulumi import oci:NetworkFirewall/networkFirewallPolicyServiceList:NetworkFirewallPolicyServiceList test_network_firewall_policy_service_list "networkFirewallPolicies/{networkFirewallPolicyId}/serviceLists/{serviceListName}"
    

    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