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

oci.NetworkFirewall.NetworkFirewallPolicyAddressList

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

    Creates a new Address List for the Network Firewall Policy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNetworkFirewallPolicyAddressList = new oci.networkfirewall.NetworkFirewallPolicyAddressList("test_network_firewall_policy_address_list", {
        name: networkFirewallPolicyAddressListName,
        networkFirewallPolicyId: testNetworkFirewallPolicy.id,
        type: networkFirewallPolicyAddressListType,
        addresses: networkFirewallPolicyAddressListAddresses,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_network_firewall_policy_address_list = oci.network_firewall.NetworkFirewallPolicyAddressList("test_network_firewall_policy_address_list",
        name=network_firewall_policy_address_list_name,
        network_firewall_policy_id=test_network_firewall_policy["id"],
        type=network_firewall_policy_address_list_type,
        addresses=network_firewall_policy_address_list_addresses)
    
    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.NewNetworkFirewallPolicyAddressList(ctx, "test_network_firewall_policy_address_list", &NetworkFirewall.NetworkFirewallPolicyAddressListArgs{
    			Name:                    pulumi.Any(networkFirewallPolicyAddressListName),
    			NetworkFirewallPolicyId: pulumi.Any(testNetworkFirewallPolicy.Id),
    			Type:                    pulumi.Any(networkFirewallPolicyAddressListType),
    			Addresses:               pulumi.Any(networkFirewallPolicyAddressListAddresses),
    		})
    		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 testNetworkFirewallPolicyAddressList = new Oci.NetworkFirewall.NetworkFirewallPolicyAddressList("test_network_firewall_policy_address_list", new()
        {
            Name = networkFirewallPolicyAddressListName,
            NetworkFirewallPolicyId = testNetworkFirewallPolicy.Id,
            Type = networkFirewallPolicyAddressListType,
            Addresses = networkFirewallPolicyAddressListAddresses,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.NetworkFirewall.NetworkFirewallPolicyAddressList;
    import com.pulumi.oci.NetworkFirewall.NetworkFirewallPolicyAddressListArgs;
    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 testNetworkFirewallPolicyAddressList = new NetworkFirewallPolicyAddressList("testNetworkFirewallPolicyAddressList", NetworkFirewallPolicyAddressListArgs.builder()        
                .name(networkFirewallPolicyAddressListName)
                .networkFirewallPolicyId(testNetworkFirewallPolicy.id())
                .type(networkFirewallPolicyAddressListType)
                .addresses(networkFirewallPolicyAddressListAddresses)
                .build());
    
        }
    }
    
    resources:
      testNetworkFirewallPolicyAddressList:
        type: oci:NetworkFirewall:NetworkFirewallPolicyAddressList
        name: test_network_firewall_policy_address_list
        properties:
          name: ${networkFirewallPolicyAddressListName}
          networkFirewallPolicyId: ${testNetworkFirewallPolicy.id}
          type: ${networkFirewallPolicyAddressListType}
          addresses: ${networkFirewallPolicyAddressListAddresses}
    

    Create NetworkFirewallPolicyAddressList Resource

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

    Constructor syntax

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

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

    Addresses List<string>
    (Updatable) List of addresses.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    Type string

    Type of address List. The accepted values are - * FQDN * IP

    ** 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
    Unique name to identify the group of addresses to be used in the policy rules.
    Addresses []string
    (Updatable) List of addresses.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    Type string

    Type of address List. The accepted values are - * FQDN * IP

    ** 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
    Unique name to identify the group of addresses to be used in the policy rules.
    addresses List<String>
    (Updatable) List of addresses.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    type String

    Type of address List. The accepted values are - * FQDN * IP

    ** 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
    Unique name to identify the group of addresses to be used in the policy rules.
    addresses string[]
    (Updatable) List of addresses.
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    type string

    Type of address List. The accepted values are - * FQDN * IP

    ** 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
    Unique name to identify the group of addresses to be used in the policy rules.
    addresses Sequence[str]
    (Updatable) List of addresses.
    network_firewall_policy_id str
    Unique Network Firewall Policy identifier
    type str

    Type of address List. The accepted values are - * FQDN * IP

    ** 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
    Unique name to identify the group of addresses to be used in the policy rules.
    addresses List<String>
    (Updatable) List of addresses.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    type String

    Type of address List. The accepted values are - * FQDN * IP

    ** 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
    Unique name to identify the group of addresses to be used in the policy rules.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkFirewallPolicyAddressList 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 Address List belongs to.
    TotalAddresses int
    Count of total addresses in the AddressList
    Id string
    The provider-assigned unique ID for this managed resource.
    ParentResourceId string
    OCID of the Network Firewall Policy this Address List belongs to.
    TotalAddresses int
    Count of total addresses in the AddressList
    id String
    The provider-assigned unique ID for this managed resource.
    parentResourceId String
    OCID of the Network Firewall Policy this Address List belongs to.
    totalAddresses Integer
    Count of total addresses in the AddressList
    id string
    The provider-assigned unique ID for this managed resource.
    parentResourceId string
    OCID of the Network Firewall Policy this Address List belongs to.
    totalAddresses number
    Count of total addresses in the AddressList
    id str
    The provider-assigned unique ID for this managed resource.
    parent_resource_id str
    OCID of the Network Firewall Policy this Address List belongs to.
    total_addresses int
    Count of total addresses in the AddressList
    id String
    The provider-assigned unique ID for this managed resource.
    parentResourceId String
    OCID of the Network Firewall Policy this Address List belongs to.
    totalAddresses Number
    Count of total addresses in the AddressList

    Look up Existing NetworkFirewallPolicyAddressList Resource

    Get an existing NetworkFirewallPolicyAddressList 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?: NetworkFirewallPolicyAddressListState, opts?: CustomResourceOptions): NetworkFirewallPolicyAddressList
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            addresses: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            network_firewall_policy_id: Optional[str] = None,
            parent_resource_id: Optional[str] = None,
            total_addresses: Optional[int] = None,
            type: Optional[str] = None) -> NetworkFirewallPolicyAddressList
    func GetNetworkFirewallPolicyAddressList(ctx *Context, name string, id IDInput, state *NetworkFirewallPolicyAddressListState, opts ...ResourceOption) (*NetworkFirewallPolicyAddressList, error)
    public static NetworkFirewallPolicyAddressList Get(string name, Input<string> id, NetworkFirewallPolicyAddressListState? state, CustomResourceOptions? opts = null)
    public static NetworkFirewallPolicyAddressList get(String name, Output<String> id, NetworkFirewallPolicyAddressListState 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:
    Addresses List<string>
    (Updatable) List of addresses.
    Name string
    Unique name to identify the group of addresses to be used in the policy rules.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    OCID of the Network Firewall Policy this Address List belongs to.
    TotalAddresses int
    Count of total addresses in the AddressList
    Type string

    Type of address List. The accepted values are - * FQDN * IP

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

    Addresses []string
    (Updatable) List of addresses.
    Name string
    Unique name to identify the group of addresses to be used in the policy rules.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    OCID of the Network Firewall Policy this Address List belongs to.
    TotalAddresses int
    Count of total addresses in the AddressList
    Type string

    Type of address List. The accepted values are - * FQDN * IP

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

    addresses List<String>
    (Updatable) List of addresses.
    name String
    Unique name to identify the group of addresses to be used in the policy rules.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    OCID of the Network Firewall Policy this Address List belongs to.
    totalAddresses Integer
    Count of total addresses in the AddressList
    type String

    Type of address List. The accepted values are - * FQDN * IP

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

    addresses string[]
    (Updatable) List of addresses.
    name string
    Unique name to identify the group of addresses to be used in the policy rules.
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    parentResourceId string
    OCID of the Network Firewall Policy this Address List belongs to.
    totalAddresses number
    Count of total addresses in the AddressList
    type string

    Type of address List. The accepted values are - * FQDN * IP

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

    addresses Sequence[str]
    (Updatable) List of addresses.
    name str
    Unique name to identify the group of addresses to be used in the policy rules.
    network_firewall_policy_id str
    Unique Network Firewall Policy identifier
    parent_resource_id str
    OCID of the Network Firewall Policy this Address List belongs to.
    total_addresses int
    Count of total addresses in the AddressList
    type str

    Type of address List. The accepted values are - * FQDN * IP

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

    addresses List<String>
    (Updatable) List of addresses.
    name String
    Unique name to identify the group of addresses to be used in the policy rules.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    OCID of the Network Firewall Policy this Address List belongs to.
    totalAddresses Number
    Count of total addresses in the AddressList
    type String

    Type of address List. The accepted values are - * FQDN * IP

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

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

    $ pulumi import oci:NetworkFirewall/networkFirewallPolicyAddressList:NetworkFirewallPolicyAddressList test_network_firewall_policy_address_list "networkFirewallPolicies/{networkFirewallPolicyId}/addressLists/{addressListName}"
    

    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