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

oci.NetworkFirewall.NetworkFirewallPolicyUrlList

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

    Creates a new Url List for the Network Firewall Policy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNetworkFirewallPolicyUrlList = new oci.networkfirewall.NetworkFirewallPolicyUrlList("test_network_firewall_policy_url_list", {
        name: networkFirewallPolicyUrlListName,
        networkFirewallPolicyId: testNetworkFirewallPolicy.id,
        urls: [{
            pattern: networkFirewallPolicyUrlListUrlsPattern,
            type: networkFirewallPolicyUrlListUrlsType,
        }],
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_network_firewall_policy_url_list = oci.network_firewall.NetworkFirewallPolicyUrlList("test_network_firewall_policy_url_list",
        name=network_firewall_policy_url_list_name,
        network_firewall_policy_id=test_network_firewall_policy["id"],
        urls=[oci.network_firewall.NetworkFirewallPolicyUrlListUrlArgs(
            pattern=network_firewall_policy_url_list_urls_pattern,
            type=network_firewall_policy_url_list_urls_type,
        )])
    
    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.NewNetworkFirewallPolicyUrlList(ctx, "test_network_firewall_policy_url_list", &NetworkFirewall.NetworkFirewallPolicyUrlListArgs{
    			Name:                    pulumi.Any(networkFirewallPolicyUrlListName),
    			NetworkFirewallPolicyId: pulumi.Any(testNetworkFirewallPolicy.Id),
    			Urls: networkfirewall.NetworkFirewallPolicyUrlListUrlArray{
    				&networkfirewall.NetworkFirewallPolicyUrlListUrlArgs{
    					Pattern: pulumi.Any(networkFirewallPolicyUrlListUrlsPattern),
    					Type:    pulumi.Any(networkFirewallPolicyUrlListUrlsType),
    				},
    			},
    		})
    		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 testNetworkFirewallPolicyUrlList = new Oci.NetworkFirewall.NetworkFirewallPolicyUrlList("test_network_firewall_policy_url_list", new()
        {
            Name = networkFirewallPolicyUrlListName,
            NetworkFirewallPolicyId = testNetworkFirewallPolicy.Id,
            Urls = new[]
            {
                new Oci.NetworkFirewall.Inputs.NetworkFirewallPolicyUrlListUrlArgs
                {
                    Pattern = networkFirewallPolicyUrlListUrlsPattern,
                    Type = networkFirewallPolicyUrlListUrlsType,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.NetworkFirewall.NetworkFirewallPolicyUrlList;
    import com.pulumi.oci.NetworkFirewall.NetworkFirewallPolicyUrlListArgs;
    import com.pulumi.oci.NetworkFirewall.inputs.NetworkFirewallPolicyUrlListUrlArgs;
    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 testNetworkFirewallPolicyUrlList = new NetworkFirewallPolicyUrlList("testNetworkFirewallPolicyUrlList", NetworkFirewallPolicyUrlListArgs.builder()        
                .name(networkFirewallPolicyUrlListName)
                .networkFirewallPolicyId(testNetworkFirewallPolicy.id())
                .urls(NetworkFirewallPolicyUrlListUrlArgs.builder()
                    .pattern(networkFirewallPolicyUrlListUrlsPattern)
                    .type(networkFirewallPolicyUrlListUrlsType)
                    .build())
                .build());
    
        }
    }
    
    resources:
      testNetworkFirewallPolicyUrlList:
        type: oci:NetworkFirewall:NetworkFirewallPolicyUrlList
        name: test_network_firewall_policy_url_list
        properties:
          name: ${networkFirewallPolicyUrlListName}
          networkFirewallPolicyId: ${testNetworkFirewallPolicy.id}
          urls:
            - pattern: ${networkFirewallPolicyUrlListUrlsPattern}
              type: ${networkFirewallPolicyUrlListUrlsType}
    

    Create NetworkFirewallPolicyUrlList Resource

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

    Constructor syntax

    new NetworkFirewallPolicyUrlList(name: string, args: NetworkFirewallPolicyUrlListArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkFirewallPolicyUrlList(resource_name: str,
                                     args: NetworkFirewallPolicyUrlListArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def NetworkFirewallPolicyUrlList(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     network_firewall_policy_id: Optional[str] = None,
                                     urls: Optional[Sequence[_networkfirewall.NetworkFirewallPolicyUrlListUrlArgs]] = None,
                                     name: Optional[str] = None)
    func NewNetworkFirewallPolicyUrlList(ctx *Context, name string, args NetworkFirewallPolicyUrlListArgs, opts ...ResourceOption) (*NetworkFirewallPolicyUrlList, error)
    public NetworkFirewallPolicyUrlList(string name, NetworkFirewallPolicyUrlListArgs args, CustomResourceOptions? opts = null)
    public NetworkFirewallPolicyUrlList(String name, NetworkFirewallPolicyUrlListArgs args)
    public NetworkFirewallPolicyUrlList(String name, NetworkFirewallPolicyUrlListArgs args, CustomResourceOptions options)
    
    type: oci:NetworkFirewall:NetworkFirewallPolicyUrlList
    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 NetworkFirewallPolicyUrlListArgs
    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 NetworkFirewallPolicyUrlListArgs
    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 NetworkFirewallPolicyUrlListArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkFirewallPolicyUrlListArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkFirewallPolicyUrlListArgs
    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 networkFirewallPolicyUrlListResource = new Oci.NetworkFirewall.NetworkFirewallPolicyUrlList("networkFirewallPolicyUrlListResource", new()
    {
        NetworkFirewallPolicyId = "string",
        Urls = new[]
        {
            new Oci.NetworkFirewall.Inputs.NetworkFirewallPolicyUrlListUrlArgs
            {
                Pattern = "string",
                Type = "string",
            },
        },
        Name = "string",
    });
    
    example, err := NetworkFirewall.NewNetworkFirewallPolicyUrlList(ctx, "networkFirewallPolicyUrlListResource", &NetworkFirewall.NetworkFirewallPolicyUrlListArgs{
    	NetworkFirewallPolicyId: pulumi.String("string"),
    	Urls: networkfirewall.NetworkFirewallPolicyUrlListUrlArray{
    		&networkfirewall.NetworkFirewallPolicyUrlListUrlArgs{
    			Pattern: pulumi.String("string"),
    			Type:    pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    })
    
    var networkFirewallPolicyUrlListResource = new NetworkFirewallPolicyUrlList("networkFirewallPolicyUrlListResource", NetworkFirewallPolicyUrlListArgs.builder()        
        .networkFirewallPolicyId("string")
        .urls(NetworkFirewallPolicyUrlListUrlArgs.builder()
            .pattern("string")
            .type("string")
            .build())
        .name("string")
        .build());
    
    network_firewall_policy_url_list_resource = oci.network_firewall.NetworkFirewallPolicyUrlList("networkFirewallPolicyUrlListResource",
        network_firewall_policy_id="string",
        urls=[oci.network_firewall.NetworkFirewallPolicyUrlListUrlArgs(
            pattern="string",
            type="string",
        )],
        name="string")
    
    const networkFirewallPolicyUrlListResource = new oci.networkfirewall.NetworkFirewallPolicyUrlList("networkFirewallPolicyUrlListResource", {
        networkFirewallPolicyId: "string",
        urls: [{
            pattern: "string",
            type: "string",
        }],
        name: "string",
    });
    
    type: oci:NetworkFirewall:NetworkFirewallPolicyUrlList
    properties:
        name: string
        networkFirewallPolicyId: string
        urls:
            - pattern: string
              type: string
    

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

    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    Urls List<NetworkFirewallPolicyUrlListUrl>
    (Updatable) List of urls.
    Name string
    Unique name to identify the group of urls to be used in the policy rules.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    Urls []NetworkFirewallPolicyUrlListUrlArgs
    (Updatable) List of urls.
    Name string
    Unique name to identify the group of urls to be used in the policy rules.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    urls List<PolicyUrlListUrl>
    (Updatable) List of urls.
    name String
    Unique name to identify the group of urls to be used in the policy rules.
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    urls NetworkFirewallPolicyUrlListUrl[]
    (Updatable) List of urls.
    name string
    Unique name to identify the group of urls to be used in the policy rules.
    network_firewall_policy_id str
    Unique Network Firewall Policy identifier
    urls Sequence[networkfirewall.NetworkFirewallPolicyUrlListUrlArgs]
    (Updatable) List of urls.
    name str
    Unique name to identify the group of urls to be used in the policy rules.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    urls List<Property Map>
    (Updatable) List of urls.
    name String
    Unique name to identify the group of urls to be used in the policy rules.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkFirewallPolicyUrlList 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 URL List belongs to.
    TotalUrls int
    Total count of URLs in the URL List
    Id string
    The provider-assigned unique ID for this managed resource.
    ParentResourceId string
    OCID of the Network Firewall Policy this URL List belongs to.
    TotalUrls int
    Total count of URLs in the URL List
    id String
    The provider-assigned unique ID for this managed resource.
    parentResourceId String
    OCID of the Network Firewall Policy this URL List belongs to.
    totalUrls Integer
    Total count of URLs in the URL List
    id string
    The provider-assigned unique ID for this managed resource.
    parentResourceId string
    OCID of the Network Firewall Policy this URL List belongs to.
    totalUrls number
    Total count of URLs in the URL List
    id str
    The provider-assigned unique ID for this managed resource.
    parent_resource_id str
    OCID of the Network Firewall Policy this URL List belongs to.
    total_urls int
    Total count of URLs in the URL List
    id String
    The provider-assigned unique ID for this managed resource.
    parentResourceId String
    OCID of the Network Firewall Policy this URL List belongs to.
    totalUrls Number
    Total count of URLs in the URL List

    Look up Existing NetworkFirewallPolicyUrlList Resource

    Get an existing NetworkFirewallPolicyUrlList 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?: NetworkFirewallPolicyUrlListState, opts?: CustomResourceOptions): NetworkFirewallPolicyUrlList
    @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,
            total_urls: Optional[int] = None,
            urls: Optional[Sequence[_networkfirewall.NetworkFirewallPolicyUrlListUrlArgs]] = None) -> NetworkFirewallPolicyUrlList
    func GetNetworkFirewallPolicyUrlList(ctx *Context, name string, id IDInput, state *NetworkFirewallPolicyUrlListState, opts ...ResourceOption) (*NetworkFirewallPolicyUrlList, error)
    public static NetworkFirewallPolicyUrlList Get(string name, Input<string> id, NetworkFirewallPolicyUrlListState? state, CustomResourceOptions? opts = null)
    public static NetworkFirewallPolicyUrlList get(String name, Output<String> id, NetworkFirewallPolicyUrlListState 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
    Unique name to identify the group of urls to be used in the policy rules.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    OCID of the Network Firewall Policy this URL List belongs to.
    TotalUrls int
    Total count of URLs in the URL List
    Urls List<NetworkFirewallPolicyUrlListUrl>
    (Updatable) List of urls.
    Name string
    Unique name to identify the group of urls to be used in the policy rules.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    OCID of the Network Firewall Policy this URL List belongs to.
    TotalUrls int
    Total count of URLs in the URL List
    Urls []NetworkFirewallPolicyUrlListUrlArgs
    (Updatable) List of urls.
    name String
    Unique name to identify the group of urls to be used in the policy rules.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    OCID of the Network Firewall Policy this URL List belongs to.
    totalUrls Integer
    Total count of URLs in the URL List
    urls List<PolicyUrlListUrl>
    (Updatable) List of urls.
    name string
    Unique name to identify the group of urls to be used in the policy rules.
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    parentResourceId string
    OCID of the Network Firewall Policy this URL List belongs to.
    totalUrls number
    Total count of URLs in the URL List
    urls NetworkFirewallPolicyUrlListUrl[]
    (Updatable) List of urls.
    name str
    Unique name to identify the group of urls 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 URL List belongs to.
    total_urls int
    Total count of URLs in the URL List
    urls Sequence[networkfirewall.NetworkFirewallPolicyUrlListUrlArgs]
    (Updatable) List of urls.
    name String
    Unique name to identify the group of urls to be used in the policy rules.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    OCID of the Network Firewall Policy this URL List belongs to.
    totalUrls Number
    Total count of URLs in the URL List
    urls List<Property Map>
    (Updatable) List of urls.

    Supporting Types

    NetworkFirewallPolicyUrlListUrl, NetworkFirewallPolicyUrlListUrlArgs

    Pattern string
    (Updatable) A string consisting of a concatenation of optional host component and optional path component. The host component may start with *. to match the case-insensitive domain and all its subdomains. The path component must start with a /, and may end with * to match all paths of which it is a case-sensitive prefix. A missing host component matches all request domains, and a missing path component matches all request paths. An empty value matches all requests.
    Type string

    (Updatable) The type of pattern.

    • SIMPLE - The only accepted value is SIMPLE. A simple pattern with optional subdomain and/or path suffix wildcards.

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

    Pattern string
    (Updatable) A string consisting of a concatenation of optional host component and optional path component. The host component may start with *. to match the case-insensitive domain and all its subdomains. The path component must start with a /, and may end with * to match all paths of which it is a case-sensitive prefix. A missing host component matches all request domains, and a missing path component matches all request paths. An empty value matches all requests.
    Type string

    (Updatable) The type of pattern.

    • SIMPLE - The only accepted value is SIMPLE. A simple pattern with optional subdomain and/or path suffix wildcards.

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

    pattern String
    (Updatable) A string consisting of a concatenation of optional host component and optional path component. The host component may start with *. to match the case-insensitive domain and all its subdomains. The path component must start with a /, and may end with * to match all paths of which it is a case-sensitive prefix. A missing host component matches all request domains, and a missing path component matches all request paths. An empty value matches all requests.
    type String

    (Updatable) The type of pattern.

    • SIMPLE - The only accepted value is SIMPLE. A simple pattern with optional subdomain and/or path suffix wildcards.

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

    pattern string
    (Updatable) A string consisting of a concatenation of optional host component and optional path component. The host component may start with *. to match the case-insensitive domain and all its subdomains. The path component must start with a /, and may end with * to match all paths of which it is a case-sensitive prefix. A missing host component matches all request domains, and a missing path component matches all request paths. An empty value matches all requests.
    type string

    (Updatable) The type of pattern.

    • SIMPLE - The only accepted value is SIMPLE. A simple pattern with optional subdomain and/or path suffix wildcards.

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

    pattern str
    (Updatable) A string consisting of a concatenation of optional host component and optional path component. The host component may start with *. to match the case-insensitive domain and all its subdomains. The path component must start with a /, and may end with * to match all paths of which it is a case-sensitive prefix. A missing host component matches all request domains, and a missing path component matches all request paths. An empty value matches all requests.
    type str

    (Updatable) The type of pattern.

    • SIMPLE - The only accepted value is SIMPLE. A simple pattern with optional subdomain and/or path suffix wildcards.

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

    pattern String
    (Updatable) A string consisting of a concatenation of optional host component and optional path component. The host component may start with *. to match the case-insensitive domain and all its subdomains. The path component must start with a /, and may end with * to match all paths of which it is a case-sensitive prefix. A missing host component matches all request domains, and a missing path component matches all request paths. An empty value matches all requests.
    type String

    (Updatable) The type of pattern.

    • SIMPLE - The only accepted value is SIMPLE. A simple pattern with optional subdomain and/or path suffix wildcards.

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

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

    $ pulumi import oci:NetworkFirewall/networkFirewallPolicyUrlList:NetworkFirewallPolicyUrlList test_network_firewall_policy_url_list "networkFirewallPolicies/{networkFirewallPolicyId}/urlLists/{urlListName}"
    

    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