1. Packages
  2. Palo Alto Networks Cloud NGFW for AWS Provider
  3. API Docs
  4. PredefinedUrlCategoryOverride
Palo Alto Networks Cloud NGFW for AWS v0.1.1 published on Saturday, Mar 15, 2025 by Pulumi

cloudngfwaws.PredefinedUrlCategoryOverride

Explore with Pulumi AI

Resource for predefined URL category override management.

Admin Permission Type

  • Rulestack (for scope="Local")
  • Global Rulestack (for scope="Global")

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudngfwaws from "@pulumi/cloudngfwaws";

const r = new cloudngfwaws.Rulestack("r", {
    name: "terraform-rulestack",
    scope: "Local",
    accountId: "123456789",
    description: "Made by Pulumi",
    profileConfig: {
        antiSpyware: "BestPractice",
    },
});
const example = new cloudngfwaws.PredefinedUrlCategoryOverride("example", {
    rulestack: r.name,
    name: "foobar",
    action: "block",
});
Copy
import pulumi
import pulumi_cloudngfwaws as cloudngfwaws

r = cloudngfwaws.Rulestack("r",
    name="terraform-rulestack",
    scope="Local",
    account_id="123456789",
    description="Made by Pulumi",
    profile_config={
        "anti_spyware": "BestPractice",
    })
example = cloudngfwaws.PredefinedUrlCategoryOverride("example",
    rulestack=r.name,
    name="foobar",
    action="block")
Copy
package main

import (
	"github.com/pulumi/pulumi-cloudngfwaws/sdk/go/cloudngfwaws"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		r, err := cloudngfwaws.NewRulestack(ctx, "r", &cloudngfwaws.RulestackArgs{
			Name:        pulumi.String("terraform-rulestack"),
			Scope:       pulumi.String("Local"),
			AccountId:   pulumi.String("123456789"),
			Description: pulumi.String("Made by Pulumi"),
			ProfileConfig: &cloudngfwaws.RulestackProfileConfigArgs{
				AntiSpyware: pulumi.String("BestPractice"),
			},
		})
		if err != nil {
			return err
		}
		_, err = cloudngfwaws.NewPredefinedUrlCategoryOverride(ctx, "example", &cloudngfwaws.PredefinedUrlCategoryOverrideArgs{
			Rulestack: r.Name,
			Name:      pulumi.String("foobar"),
			Action:    pulumi.String("block"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudNgfwAws = Pulumi.CloudNgfwAws;

return await Deployment.RunAsync(() => 
{
    var r = new CloudNgfwAws.Rulestack("r", new()
    {
        Name = "terraform-rulestack",
        Scope = "Local",
        AccountId = "123456789",
        Description = "Made by Pulumi",
        ProfileConfig = new CloudNgfwAws.Inputs.RulestackProfileConfigArgs
        {
            AntiSpyware = "BestPractice",
        },
    });

    var example = new CloudNgfwAws.PredefinedUrlCategoryOverride("example", new()
    {
        Rulestack = r.Name,
        Name = "foobar",
        Action = "block",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudngfwaws.Rulestack;
import com.pulumi.cloudngfwaws.RulestackArgs;
import com.pulumi.cloudngfwaws.inputs.RulestackProfileConfigArgs;
import com.pulumi.cloudngfwaws.PredefinedUrlCategoryOverride;
import com.pulumi.cloudngfwaws.PredefinedUrlCategoryOverrideArgs;
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 r = new Rulestack("r", RulestackArgs.builder()
            .name("terraform-rulestack")
            .scope("Local")
            .accountId("123456789")
            .description("Made by Pulumi")
            .profileConfig(RulestackProfileConfigArgs.builder()
                .antiSpyware("BestPractice")
                .build())
            .build());

        var example = new PredefinedUrlCategoryOverride("example", PredefinedUrlCategoryOverrideArgs.builder()
            .rulestack(r.name())
            .name("foobar")
            .action("block")
            .build());

    }
}
Copy
resources:
  example:
    type: cloudngfwaws:PredefinedUrlCategoryOverride
    properties:
      rulestack: ${r.name}
      name: foobar
      action: block
  r:
    type: cloudngfwaws:Rulestack
    properties:
      name: terraform-rulestack
      scope: Local
      accountId: '123456789'
      description: Made by Pulumi
      profileConfig:
        antiSpyware: BestPractice
Copy

Create PredefinedUrlCategoryOverride Resource

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

Constructor syntax

new PredefinedUrlCategoryOverride(name: string, args: PredefinedUrlCategoryOverrideArgs, opts?: CustomResourceOptions);
@overload
def PredefinedUrlCategoryOverride(resource_name: str,
                                  args: PredefinedUrlCategoryOverrideArgs,
                                  opts: Optional[ResourceOptions] = None)

@overload
def PredefinedUrlCategoryOverride(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  rulestack: Optional[str] = None,
                                  action: Optional[str] = None,
                                  audit_comment: Optional[str] = None,
                                  name: Optional[str] = None)
func NewPredefinedUrlCategoryOverride(ctx *Context, name string, args PredefinedUrlCategoryOverrideArgs, opts ...ResourceOption) (*PredefinedUrlCategoryOverride, error)
public PredefinedUrlCategoryOverride(string name, PredefinedUrlCategoryOverrideArgs args, CustomResourceOptions? opts = null)
public PredefinedUrlCategoryOverride(String name, PredefinedUrlCategoryOverrideArgs args)
public PredefinedUrlCategoryOverride(String name, PredefinedUrlCategoryOverrideArgs args, CustomResourceOptions options)
type: cloudngfwaws:PredefinedUrlCategoryOverride
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. PredefinedUrlCategoryOverrideArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. PredefinedUrlCategoryOverrideArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. PredefinedUrlCategoryOverrideArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PredefinedUrlCategoryOverrideArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. PredefinedUrlCategoryOverrideArgs
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 predefinedUrlCategoryOverrideResource = new CloudNgfwAws.PredefinedUrlCategoryOverride("predefinedUrlCategoryOverrideResource", new()
{
    Rulestack = "string",
    Action = "string",
    AuditComment = "string",
    Name = "string",
});
Copy
example, err := cloudngfwaws.NewPredefinedUrlCategoryOverride(ctx, "predefinedUrlCategoryOverrideResource", &cloudngfwaws.PredefinedUrlCategoryOverrideArgs{
	Rulestack:    pulumi.String("string"),
	Action:       pulumi.String("string"),
	AuditComment: pulumi.String("string"),
	Name:         pulumi.String("string"),
})
Copy
var predefinedUrlCategoryOverrideResource = new PredefinedUrlCategoryOverride("predefinedUrlCategoryOverrideResource", PredefinedUrlCategoryOverrideArgs.builder()
    .rulestack("string")
    .action("string")
    .auditComment("string")
    .name("string")
    .build());
Copy
predefined_url_category_override_resource = cloudngfwaws.PredefinedUrlCategoryOverride("predefinedUrlCategoryOverrideResource",
    rulestack="string",
    action="string",
    audit_comment="string",
    name="string")
Copy
const predefinedUrlCategoryOverrideResource = new cloudngfwaws.PredefinedUrlCategoryOverride("predefinedUrlCategoryOverrideResource", {
    rulestack: "string",
    action: "string",
    auditComment: "string",
    name: "string",
});
Copy
type: cloudngfwaws:PredefinedUrlCategoryOverride
properties:
    action: string
    auditComment: string
    name: string
    rulestack: string
Copy

PredefinedUrlCategoryOverride Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The PredefinedUrlCategoryOverride resource accepts the following input properties:

Rulestack
This property is required.
Changes to this property will trigger replacement.
string
The rulestack.
Action string
The action to take. Valid values are none, allow, alert, or block. Defaults to none.
AuditComment string
The audit comment.
Name string
The name.
Rulestack
This property is required.
Changes to this property will trigger replacement.
string
The rulestack.
Action string
The action to take. Valid values are none, allow, alert, or block. Defaults to none.
AuditComment string
The audit comment.
Name string
The name.
rulestack
This property is required.
Changes to this property will trigger replacement.
String
The rulestack.
action String
The action to take. Valid values are none, allow, alert, or block. Defaults to none.
auditComment String
The audit comment.
name String
The name.
rulestack
This property is required.
Changes to this property will trigger replacement.
string
The rulestack.
action string
The action to take. Valid values are none, allow, alert, or block. Defaults to none.
auditComment string
The audit comment.
name string
The name.
rulestack
This property is required.
Changes to this property will trigger replacement.
str
The rulestack.
action str
The action to take. Valid values are none, allow, alert, or block. Defaults to none.
audit_comment str
The audit comment.
name str
The name.
rulestack
This property is required.
Changes to this property will trigger replacement.
String
The rulestack.
action String
The action to take. Valid values are none, allow, alert, or block. Defaults to none.
auditComment String
The audit comment.
name String
The name.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
UpdateToken string
Update token.
Id string
The provider-assigned unique ID for this managed resource.
UpdateToken string
Update token.
id String
The provider-assigned unique ID for this managed resource.
updateToken String
Update token.
id string
The provider-assigned unique ID for this managed resource.
updateToken string
Update token.
id str
The provider-assigned unique ID for this managed resource.
update_token str
Update token.
id String
The provider-assigned unique ID for this managed resource.
updateToken String
Update token.

Look up Existing PredefinedUrlCategoryOverride Resource

Get an existing PredefinedUrlCategoryOverride 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?: PredefinedUrlCategoryOverrideState, opts?: CustomResourceOptions): PredefinedUrlCategoryOverride
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action: Optional[str] = None,
        audit_comment: Optional[str] = None,
        name: Optional[str] = None,
        rulestack: Optional[str] = None,
        update_token: Optional[str] = None) -> PredefinedUrlCategoryOverride
func GetPredefinedUrlCategoryOverride(ctx *Context, name string, id IDInput, state *PredefinedUrlCategoryOverrideState, opts ...ResourceOption) (*PredefinedUrlCategoryOverride, error)
public static PredefinedUrlCategoryOverride Get(string name, Input<string> id, PredefinedUrlCategoryOverrideState? state, CustomResourceOptions? opts = null)
public static PredefinedUrlCategoryOverride get(String name, Output<String> id, PredefinedUrlCategoryOverrideState state, CustomResourceOptions options)
resources:  _:    type: cloudngfwaws:PredefinedUrlCategoryOverride    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Action string
The action to take. Valid values are none, allow, alert, or block. Defaults to none.
AuditComment string
The audit comment.
Name string
The name.
Rulestack Changes to this property will trigger replacement. string
The rulestack.
UpdateToken string
Update token.
Action string
The action to take. Valid values are none, allow, alert, or block. Defaults to none.
AuditComment string
The audit comment.
Name string
The name.
Rulestack Changes to this property will trigger replacement. string
The rulestack.
UpdateToken string
Update token.
action String
The action to take. Valid values are none, allow, alert, or block. Defaults to none.
auditComment String
The audit comment.
name String
The name.
rulestack Changes to this property will trigger replacement. String
The rulestack.
updateToken String
Update token.
action string
The action to take. Valid values are none, allow, alert, or block. Defaults to none.
auditComment string
The audit comment.
name string
The name.
rulestack Changes to this property will trigger replacement. string
The rulestack.
updateToken string
Update token.
action str
The action to take. Valid values are none, allow, alert, or block. Defaults to none.
audit_comment str
The audit comment.
name str
The name.
rulestack Changes to this property will trigger replacement. str
The rulestack.
update_token str
Update token.
action String
The action to take. Valid values are none, allow, alert, or block. Defaults to none.
auditComment String
The audit comment.
name String
The name.
rulestack Changes to this property will trigger replacement. String
The rulestack.
updateToken String
Update token.

Import

import name is :<predefined_url_category_override_name>

$ pulumi import cloudngfwaws:index/predefinedUrlCategoryOverride:PredefinedUrlCategoryOverride example terraform-rulestack:foobar
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
cloudngfwaws pulumi/pulumi-cloudngfwaws
License
Apache-2.0
Notes
This Pulumi package is based on the cloudngfwaws Terraform Provider.