cloudngfwaws.PredefinedUrlCategoryOverride
Explore with Pulumi AI
Resource for predefined URL category override management.
Admin Permission Type
Rulestack
(forscope="Local"
)Global Rulestack
(forscope="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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args PredefinedUrlCategoryOverrideArgs
- 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 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 string
- The unique name of the resource.
- args PredefinedUrlCategoryOverrideArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PredefinedUrlCategoryOverrideArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := cloudngfwaws.NewPredefinedUrlCategoryOverride(ctx, "predefinedUrlCategoryOverrideResource", &cloudngfwaws.PredefinedUrlCategoryOverrideArgs{
Rulestack: pulumi.String("string"),
Action: pulumi.String("string"),
AuditComment: pulumi.String("string"),
Name: pulumi.String("string"),
})
var predefinedUrlCategoryOverrideResource = new PredefinedUrlCategoryOverride("predefinedUrlCategoryOverrideResource", PredefinedUrlCategoryOverrideArgs.builder()
.rulestack("string")
.action("string")
.auditComment("string")
.name("string")
.build());
predefined_url_category_override_resource = cloudngfwaws.PredefinedUrlCategoryOverride("predefinedUrlCategoryOverrideResource",
rulestack="string",
action="string",
audit_comment="string",
name="string")
const predefinedUrlCategoryOverrideResource = new cloudngfwaws.PredefinedUrlCategoryOverride("predefinedUrlCategoryOverrideResource", {
rulestack: "string",
action: "string",
auditComment: "string",
name: "string",
});
type: cloudngfwaws:PredefinedUrlCategoryOverride
properties:
action: string
auditComment: string
name: string
rulestack: string
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 string
- The rulestack.
- Action string
- The action to take. Valid values are
none
,allow
,alert
, orblock
. Defaults tonone
. - Audit
Comment string - The audit comment.
- Name string
- The name.
- Rulestack string
- The rulestack.
- Action string
- The action to take. Valid values are
none
,allow
,alert
, orblock
. Defaults tonone
. - Audit
Comment string - The audit comment.
- Name string
- The name.
- rulestack String
- The rulestack.
- action String
- The action to take. Valid values are
none
,allow
,alert
, orblock
. Defaults tonone
. - audit
Comment String - The audit comment.
- name String
- The name.
- rulestack string
- The rulestack.
- action string
- The action to take. Valid values are
none
,allow
,alert
, orblock
. Defaults tonone
. - audit
Comment string - The audit comment.
- name string
- The name.
- rulestack str
- The rulestack.
- action str
- The action to take. Valid values are
none
,allow
,alert
, orblock
. Defaults tonone
. - audit_
comment str - The audit comment.
- name str
- The name.
- rulestack String
- The rulestack.
- action String
- The action to take. Valid values are
none
,allow
,alert
, orblock
. Defaults tonone
. - audit
Comment 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.
- Update
Token string - Update token.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Token string - Update token.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Token String - Update token.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Token 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.
- update
Token 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)
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.
- Action string
- The action to take. Valid values are
none
,allow
,alert
, orblock
. Defaults tonone
. - Audit
Comment string - The audit comment.
- Name string
- The name.
- Rulestack string
- The rulestack.
- Update
Token string - Update token.
- Action string
- The action to take. Valid values are
none
,allow
,alert
, orblock
. Defaults tonone
. - Audit
Comment string - The audit comment.
- Name string
- The name.
- Rulestack string
- The rulestack.
- Update
Token string - Update token.
- action String
- The action to take. Valid values are
none
,allow
,alert
, orblock
. Defaults tonone
. - audit
Comment String - The audit comment.
- name String
- The name.
- rulestack String
- The rulestack.
- update
Token String - Update token.
- action string
- The action to take. Valid values are
none
,allow
,alert
, orblock
. Defaults tonone
. - audit
Comment string - The audit comment.
- name string
- The name.
- rulestack string
- The rulestack.
- update
Token string - Update token.
- action str
- The action to take. Valid values are
none
,allow
,alert
, orblock
. Defaults tonone
. - audit_
comment str - The audit comment.
- name str
- The name.
- rulestack str
- The rulestack.
- update_
token str - Update token.
- action String
- The action to take. Valid values are
none
,allow
,alert
, orblock
. Defaults tonone
. - audit
Comment String - The audit comment.
- name String
- The name.
- rulestack String
- The rulestack.
- update
Token String - Update token.
Import
import name is
$ pulumi import cloudngfwaws:index/predefinedUrlCategoryOverride:PredefinedUrlCategoryOverride example terraform-rulestack:foobar
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.