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

cloudngfwaws.getPredefinedUrlCategoryOverride

Explore with Pulumi AI

Palo Alto Networks Cloud NGFW for AWS v0.1.1 published on Saturday, Mar 15, 2025 by Pulumi

Data source for retrieving a predefined URL category override.

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: "my-rulestack",
    scope: "Local",
    accountId: "12345",
    description: "Made by Pulumi",
    profileConfig: {
        antiSpyware: "BestPractice",
    },
});
const example = cloudngfwaws.getPredefinedUrlCategoryOverrideOutput({
    rulestack: r.name,
    name: "foobar",
});
Copy
import pulumi
import pulumi_cloudngfwaws as cloudngfwaws

r = cloudngfwaws.Rulestack("r",
    name="my-rulestack",
    scope="Local",
    account_id="12345",
    description="Made by Pulumi",
    profile_config={
        "anti_spyware": "BestPractice",
    })
example = cloudngfwaws.get_predefined_url_category_override_output(rulestack=r.name,
    name="foobar")
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("my-rulestack"),
			Scope:       pulumi.String("Local"),
			AccountId:   pulumi.String("12345"),
			Description: pulumi.String("Made by Pulumi"),
			ProfileConfig: &cloudngfwaws.RulestackProfileConfigArgs{
				AntiSpyware: pulumi.String("BestPractice"),
			},
		})
		if err != nil {
			return err
		}
		_ = cloudngfwaws.LookupPredefinedUrlCategoryOverrideOutput(ctx, cloudngfwaws.GetPredefinedUrlCategoryOverrideOutputArgs{
			Rulestack: r.Name,
			Name:      pulumi.String("foobar"),
		}, nil)
		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 = "my-rulestack",
        Scope = "Local",
        AccountId = "12345",
        Description = "Made by Pulumi",
        ProfileConfig = new CloudNgfwAws.Inputs.RulestackProfileConfigArgs
        {
            AntiSpyware = "BestPractice",
        },
    });

    var example = CloudNgfwAws.GetPredefinedUrlCategoryOverride.Invoke(new()
    {
        Rulestack = r.Name,
        Name = "foobar",
    });

});
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.CloudngfwawsFunctions;
import com.pulumi.cloudngfwaws.inputs.GetPredefinedUrlCategoryOverrideArgs;
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("my-rulestack")
            .scope("Local")
            .accountId("12345")
            .description("Made by Pulumi")
            .profileConfig(RulestackProfileConfigArgs.builder()
                .antiSpyware("BestPractice")
                .build())
            .build());

        final var example = CloudngfwawsFunctions.getPredefinedUrlCategoryOverride(GetPredefinedUrlCategoryOverrideArgs.builder()
            .rulestack(r.name())
            .name("foobar")
            .build());

    }
}
Copy
resources:
  r:
    type: cloudngfwaws:Rulestack
    properties:
      name: my-rulestack
      scope: Local
      accountId: '12345'
      description: Made by Pulumi
      profileConfig:
        antiSpyware: BestPractice
variables:
  example:
    fn::invoke:
      function: cloudngfwaws:getPredefinedUrlCategoryOverride
      arguments:
        rulestack: ${r.name}
        name: foobar
Copy

Using getPredefinedUrlCategoryOverride

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getPredefinedUrlCategoryOverride(args: GetPredefinedUrlCategoryOverrideArgs, opts?: InvokeOptions): Promise<GetPredefinedUrlCategoryOverrideResult>
function getPredefinedUrlCategoryOverrideOutput(args: GetPredefinedUrlCategoryOverrideOutputArgs, opts?: InvokeOptions): Output<GetPredefinedUrlCategoryOverrideResult>
Copy
def get_predefined_url_category_override(config_type: Optional[str] = None,
                                         name: Optional[str] = None,
                                         rulestack: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetPredefinedUrlCategoryOverrideResult
def get_predefined_url_category_override_output(config_type: Optional[pulumi.Input[str]] = None,
                                         name: Optional[pulumi.Input[str]] = None,
                                         rulestack: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetPredefinedUrlCategoryOverrideResult]
Copy
func LookupPredefinedUrlCategoryOverride(ctx *Context, args *LookupPredefinedUrlCategoryOverrideArgs, opts ...InvokeOption) (*LookupPredefinedUrlCategoryOverrideResult, error)
func LookupPredefinedUrlCategoryOverrideOutput(ctx *Context, args *LookupPredefinedUrlCategoryOverrideOutputArgs, opts ...InvokeOption) LookupPredefinedUrlCategoryOverrideResultOutput
Copy

> Note: This function is named LookupPredefinedUrlCategoryOverride in the Go SDK.

public static class GetPredefinedUrlCategoryOverride 
{
    public static Task<GetPredefinedUrlCategoryOverrideResult> InvokeAsync(GetPredefinedUrlCategoryOverrideArgs args, InvokeOptions? opts = null)
    public static Output<GetPredefinedUrlCategoryOverrideResult> Invoke(GetPredefinedUrlCategoryOverrideInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPredefinedUrlCategoryOverrideResult> getPredefinedUrlCategoryOverride(GetPredefinedUrlCategoryOverrideArgs args, InvokeOptions options)
public static Output<GetPredefinedUrlCategoryOverrideResult> getPredefinedUrlCategoryOverride(GetPredefinedUrlCategoryOverrideArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudngfwaws:index/getPredefinedUrlCategoryOverride:getPredefinedUrlCategoryOverride
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name.
Rulestack
This property is required.
Changes to this property will trigger replacement.
string
The rulestack.
ConfigType string
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
Name This property is required. string
The name.
Rulestack
This property is required.
Changes to this property will trigger replacement.
string
The rulestack.
ConfigType string
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
name This property is required. String
The name.
rulestack
This property is required.
Changes to this property will trigger replacement.
String
The rulestack.
configType String
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
name This property is required. string
The name.
rulestack
This property is required.
Changes to this property will trigger replacement.
string
The rulestack.
configType string
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
name This property is required. str
The name.
rulestack
This property is required.
Changes to this property will trigger replacement.
str
The rulestack.
config_type str
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
name This property is required. String
The name.
rulestack
This property is required.
Changes to this property will trigger replacement.
String
The rulestack.
configType String
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.

getPredefinedUrlCategoryOverride Result

The following output properties are available:

Action string
The action to take. Valid values are none, allow, alert, or block.
AuditComment string
The audit comment.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name.
Rulestack string
The rulestack.
UpdateToken string
Update token.
ConfigType string
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
Action string
The action to take. Valid values are none, allow, alert, or block.
AuditComment string
The audit comment.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name.
Rulestack string
The rulestack.
UpdateToken string
Update token.
ConfigType string
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
action String
The action to take. Valid values are none, allow, alert, or block.
auditComment String
The audit comment.
id String
The provider-assigned unique ID for this managed resource.
name String
The name.
rulestack String
The rulestack.
updateToken String
Update token.
configType String
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
action string
The action to take. Valid values are none, allow, alert, or block.
auditComment string
The audit comment.
id string
The provider-assigned unique ID for this managed resource.
name string
The name.
rulestack string
The rulestack.
updateToken string
Update token.
configType string
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
action str
The action to take. Valid values are none, allow, alert, or block.
audit_comment str
The audit comment.
id str
The provider-assigned unique ID for this managed resource.
name str
The name.
rulestack str
The rulestack.
update_token str
Update token.
config_type str
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
action String
The action to take. Valid values are none, allow, alert, or block.
auditComment String
The audit comment.
id String
The provider-assigned unique ID for this managed resource.
name String
The name.
rulestack String
The rulestack.
updateToken String
Update token.
configType String
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.

Package Details

Repository
cloudngfwaws pulumi/pulumi-cloudngfwaws
License
Apache-2.0
Notes
This Pulumi package is based on the cloudngfwaws Terraform Provider.
Palo Alto Networks Cloud NGFW for AWS v0.1.1 published on Saturday, Mar 15, 2025 by Pulumi