1. Packages
  2. Palo Alto Networks Cloud NGFW For AWS Provider
  3. API Docs
  4. Rulestack
Palo Alto Networks Cloud NGFW for AWS v0.0.2 published on Wednesday, Nov 13, 2024 by Pulumi

cloudngfwaws.Rulestack

Explore with Pulumi AI

cloudngfwaws logo
Palo Alto Networks Cloud NGFW for AWS v0.0.2 published on Wednesday, Nov 13, 2024 by Pulumi

    Resource for rulestack manipulation.

    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 example = new cloudngfwaws.Rulestack("example", {
        name: "terraform-rulestack",
        scope: "Local",
        accountId: "123456789",
        description: "Made by Pulumi",
        profileConfig: {
            antiSpyware: "BestPractice",
        },
    });
    
    import pulumi
    import pulumi_cloudngfwaws as cloudngfwaws
    
    example = cloudngfwaws.Rulestack("example",
        name="terraform-rulestack",
        scope="Local",
        account_id="123456789",
        description="Made by Pulumi",
        profile_config={
            "anti_spyware": "BestPractice",
        })
    
    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 {
    		_, err := cloudngfwaws.NewRulestack(ctx, "example", &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
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using CloudNgfwAws = Pulumi.CloudNgfwAws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new CloudNgfwAws.Rulestack("example", new()
        {
            Name = "terraform-rulestack",
            Scope = "Local",
            AccountId = "123456789",
            Description = "Made by Pulumi",
            ProfileConfig = new CloudNgfwAws.Inputs.RulestackProfileConfigArgs
            {
                AntiSpyware = "BestPractice",
            },
        });
    
    });
    
    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 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 example = new Rulestack("example", RulestackArgs.builder()
                .name("terraform-rulestack")
                .scope("Local")
                .accountId("123456789")
                .description("Made by Pulumi")
                .profileConfig(RulestackProfileConfigArgs.builder()
                    .antiSpyware("BestPractice")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: cloudngfwaws:Rulestack
        properties:
          name: terraform-rulestack
          scope: Local
          accountId: '123456789'
          description: Made by Pulumi
          profileConfig:
            antiSpyware: BestPractice
    

    Create Rulestack Resource

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

    Constructor syntax

    new Rulestack(name: string, args: RulestackArgs, opts?: CustomResourceOptions);
    @overload
    def Rulestack(resource_name: str,
                  args: RulestackArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Rulestack(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  profile_config: Optional[RulestackProfileConfigArgs] = None,
                  account_group: Optional[str] = None,
                  account_id: Optional[str] = None,
                  description: Optional[str] = None,
                  lookup_x_forwarded_for: Optional[str] = None,
                  minimum_app_id_version: Optional[str] = None,
                  name: Optional[str] = None,
                  scope: Optional[str] = None,
                  tags: Optional[Mapping[str, str]] = None)
    func NewRulestack(ctx *Context, name string, args RulestackArgs, opts ...ResourceOption) (*Rulestack, error)
    public Rulestack(string name, RulestackArgs args, CustomResourceOptions? opts = null)
    public Rulestack(String name, RulestackArgs args)
    public Rulestack(String name, RulestackArgs args, CustomResourceOptions options)
    
    type: cloudngfwaws:Rulestack
    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 RulestackArgs
    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 RulestackArgs
    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 RulestackArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RulestackArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RulestackArgs
    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 rulestackResource = new CloudNgfwAws.Rulestack("rulestackResource", new()
    {
        ProfileConfig = new CloudNgfwAws.Inputs.RulestackProfileConfigArgs
        {
            AntiSpyware = "string",
            AntiVirus = "string",
            FileBlocking = "string",
            OutboundTrustCertificate = "string",
            OutboundUntrustCertificate = "string",
            UrlFiltering = "string",
            Vulnerability = "string",
        },
        AccountGroup = "string",
        AccountId = "string",
        Description = "string",
        LookupXForwardedFor = "string",
        MinimumAppIdVersion = "string",
        Name = "string",
        Scope = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := cloudngfwaws.NewRulestack(ctx, "rulestackResource", &cloudngfwaws.RulestackArgs{
    	ProfileConfig: &cloudngfwaws.RulestackProfileConfigArgs{
    		AntiSpyware:                pulumi.String("string"),
    		AntiVirus:                  pulumi.String("string"),
    		FileBlocking:               pulumi.String("string"),
    		OutboundTrustCertificate:   pulumi.String("string"),
    		OutboundUntrustCertificate: pulumi.String("string"),
    		UrlFiltering:               pulumi.String("string"),
    		Vulnerability:              pulumi.String("string"),
    	},
    	AccountGroup:        pulumi.String("string"),
    	AccountId:           pulumi.String("string"),
    	Description:         pulumi.String("string"),
    	LookupXForwardedFor: pulumi.String("string"),
    	MinimumAppIdVersion: pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	Scope:               pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var rulestackResource = new Rulestack("rulestackResource", RulestackArgs.builder()
        .profileConfig(RulestackProfileConfigArgs.builder()
            .antiSpyware("string")
            .antiVirus("string")
            .fileBlocking("string")
            .outboundTrustCertificate("string")
            .outboundUntrustCertificate("string")
            .urlFiltering("string")
            .vulnerability("string")
            .build())
        .accountGroup("string")
        .accountId("string")
        .description("string")
        .lookupXForwardedFor("string")
        .minimumAppIdVersion("string")
        .name("string")
        .scope("string")
        .tags(Map.of("string", "string"))
        .build());
    
    rulestack_resource = cloudngfwaws.Rulestack("rulestackResource",
        profile_config={
            "anti_spyware": "string",
            "anti_virus": "string",
            "file_blocking": "string",
            "outbound_trust_certificate": "string",
            "outbound_untrust_certificate": "string",
            "url_filtering": "string",
            "vulnerability": "string",
        },
        account_group="string",
        account_id="string",
        description="string",
        lookup_x_forwarded_for="string",
        minimum_app_id_version="string",
        name="string",
        scope="string",
        tags={
            "string": "string",
        })
    
    const rulestackResource = new cloudngfwaws.Rulestack("rulestackResource", {
        profileConfig: {
            antiSpyware: "string",
            antiVirus: "string",
            fileBlocking: "string",
            outboundTrustCertificate: "string",
            outboundUntrustCertificate: "string",
            urlFiltering: "string",
            vulnerability: "string",
        },
        accountGroup: "string",
        accountId: "string",
        description: "string",
        lookupXForwardedFor: "string",
        minimumAppIdVersion: "string",
        name: "string",
        scope: "string",
        tags: {
            string: "string",
        },
    });
    
    type: cloudngfwaws:Rulestack
    properties:
        accountGroup: string
        accountId: string
        description: string
        lookupXForwardedFor: string
        minimumAppIdVersion: string
        name: string
        profileConfig:
            antiSpyware: string
            antiVirus: string
            fileBlocking: string
            outboundTrustCertificate: string
            outboundUntrustCertificate: string
            urlFiltering: string
            vulnerability: string
        scope: string
        tags:
            string: string
    

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

    ProfileConfig Pulumi.CloudNgfwAws.Inputs.RulestackProfileConfig
    AccountGroup string
    Account group.
    AccountId string
    The account ID.
    Description string
    The description.
    LookupXForwardedFor string
    Lookup x forwarded for.
    MinimumAppIdVersion string
    Minimum App-ID version number.
    Name string
    The name.
    Scope string
    The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
    Tags Dictionary<string, string>
    The tags.
    ProfileConfig RulestackProfileConfigArgs
    AccountGroup string
    Account group.
    AccountId string
    The account ID.
    Description string
    The description.
    LookupXForwardedFor string
    Lookup x forwarded for.
    MinimumAppIdVersion string
    Minimum App-ID version number.
    Name string
    The name.
    Scope string
    The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
    Tags map[string]string
    The tags.
    profileConfig RulestackProfileConfig
    accountGroup String
    Account group.
    accountId String
    The account ID.
    description String
    The description.
    lookupXForwardedFor String
    Lookup x forwarded for.
    minimumAppIdVersion String
    Minimum App-ID version number.
    name String
    The name.
    scope String
    The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
    tags Map<String,String>
    The tags.
    profileConfig RulestackProfileConfig
    accountGroup string
    Account group.
    accountId string
    The account ID.
    description string
    The description.
    lookupXForwardedFor string
    Lookup x forwarded for.
    minimumAppIdVersion string
    Minimum App-ID version number.
    name string
    The name.
    scope string
    The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
    tags {[key: string]: string}
    The tags.
    profile_config RulestackProfileConfigArgs
    account_group str
    Account group.
    account_id str
    The account ID.
    description str
    The description.
    lookup_x_forwarded_for str
    Lookup x forwarded for.
    minimum_app_id_version str
    Minimum App-ID version number.
    name str
    The name.
    scope str
    The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
    tags Mapping[str, str]
    The tags.
    profileConfig Property Map
    accountGroup String
    Account group.
    accountId String
    The account ID.
    description String
    The description.
    lookupXForwardedFor String
    Lookup x forwarded for.
    minimumAppIdVersion String
    Minimum App-ID version number.
    name String
    The name.
    scope String
    The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
    tags Map<String>
    The tags.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The rulestack state.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The rulestack state.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The rulestack state.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The rulestack state.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The rulestack state.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The rulestack state.

    Look up Existing Rulestack Resource

    Get an existing Rulestack 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?: RulestackState, opts?: CustomResourceOptions): Rulestack
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_group: Optional[str] = None,
            account_id: Optional[str] = None,
            description: Optional[str] = None,
            lookup_x_forwarded_for: Optional[str] = None,
            minimum_app_id_version: Optional[str] = None,
            name: Optional[str] = None,
            profile_config: Optional[RulestackProfileConfigArgs] = None,
            scope: Optional[str] = None,
            state: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> Rulestack
    func GetRulestack(ctx *Context, name string, id IDInput, state *RulestackState, opts ...ResourceOption) (*Rulestack, error)
    public static Rulestack Get(string name, Input<string> id, RulestackState? state, CustomResourceOptions? opts = null)
    public static Rulestack get(String name, Output<String> id, RulestackState 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:
    AccountGroup string
    Account group.
    AccountId string
    The account ID.
    Description string
    The description.
    LookupXForwardedFor string
    Lookup x forwarded for.
    MinimumAppIdVersion string
    Minimum App-ID version number.
    Name string
    The name.
    ProfileConfig Pulumi.CloudNgfwAws.Inputs.RulestackProfileConfig
    Scope string
    The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
    State string
    The rulestack state.
    Tags Dictionary<string, string>
    The tags.
    AccountGroup string
    Account group.
    AccountId string
    The account ID.
    Description string
    The description.
    LookupXForwardedFor string
    Lookup x forwarded for.
    MinimumAppIdVersion string
    Minimum App-ID version number.
    Name string
    The name.
    ProfileConfig RulestackProfileConfigArgs
    Scope string
    The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
    State string
    The rulestack state.
    Tags map[string]string
    The tags.
    accountGroup String
    Account group.
    accountId String
    The account ID.
    description String
    The description.
    lookupXForwardedFor String
    Lookup x forwarded for.
    minimumAppIdVersion String
    Minimum App-ID version number.
    name String
    The name.
    profileConfig RulestackProfileConfig
    scope String
    The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
    state String
    The rulestack state.
    tags Map<String,String>
    The tags.
    accountGroup string
    Account group.
    accountId string
    The account ID.
    description string
    The description.
    lookupXForwardedFor string
    Lookup x forwarded for.
    minimumAppIdVersion string
    Minimum App-ID version number.
    name string
    The name.
    profileConfig RulestackProfileConfig
    scope string
    The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
    state string
    The rulestack state.
    tags {[key: string]: string}
    The tags.
    account_group str
    Account group.
    account_id str
    The account ID.
    description str
    The description.
    lookup_x_forwarded_for str
    Lookup x forwarded for.
    minimum_app_id_version str
    Minimum App-ID version number.
    name str
    The name.
    profile_config RulestackProfileConfigArgs
    scope str
    The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
    state str
    The rulestack state.
    tags Mapping[str, str]
    The tags.
    accountGroup String
    Account group.
    accountId String
    The account ID.
    description String
    The description.
    lookupXForwardedFor String
    Lookup x forwarded for.
    minimumAppIdVersion String
    Minimum App-ID version number.
    name String
    The name.
    profileConfig Property Map
    scope String
    The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
    state String
    The rulestack state.
    tags Map<String>
    The tags.

    Supporting Types

    RulestackProfileConfig, RulestackProfileConfigArgs

    AntiSpyware string
    Anti-spyware profile setting. Defaults to BestPractice.
    AntiVirus string
    Anti-virus profile setting. Defaults to BestPractice.
    FileBlocking string
    File blocking profile setting. Defaults to BestPractice.
    OutboundTrustCertificate string
    Outbound trust certificate.
    OutboundUntrustCertificate string
    Outbound untrust certificate.
    UrlFiltering string
    URL filtering profile setting. Defaults to None.
    Vulnerability string
    Vulnerability profile setting. Defaults to BestPractice.
    AntiSpyware string
    Anti-spyware profile setting. Defaults to BestPractice.
    AntiVirus string
    Anti-virus profile setting. Defaults to BestPractice.
    FileBlocking string
    File blocking profile setting. Defaults to BestPractice.
    OutboundTrustCertificate string
    Outbound trust certificate.
    OutboundUntrustCertificate string
    Outbound untrust certificate.
    UrlFiltering string
    URL filtering profile setting. Defaults to None.
    Vulnerability string
    Vulnerability profile setting. Defaults to BestPractice.
    antiSpyware String
    Anti-spyware profile setting. Defaults to BestPractice.
    antiVirus String
    Anti-virus profile setting. Defaults to BestPractice.
    fileBlocking String
    File blocking profile setting. Defaults to BestPractice.
    outboundTrustCertificate String
    Outbound trust certificate.
    outboundUntrustCertificate String
    Outbound untrust certificate.
    urlFiltering String
    URL filtering profile setting. Defaults to None.
    vulnerability String
    Vulnerability profile setting. Defaults to BestPractice.
    antiSpyware string
    Anti-spyware profile setting. Defaults to BestPractice.
    antiVirus string
    Anti-virus profile setting. Defaults to BestPractice.
    fileBlocking string
    File blocking profile setting. Defaults to BestPractice.
    outboundTrustCertificate string
    Outbound trust certificate.
    outboundUntrustCertificate string
    Outbound untrust certificate.
    urlFiltering string
    URL filtering profile setting. Defaults to None.
    vulnerability string
    Vulnerability profile setting. Defaults to BestPractice.
    anti_spyware str
    Anti-spyware profile setting. Defaults to BestPractice.
    anti_virus str
    Anti-virus profile setting. Defaults to BestPractice.
    file_blocking str
    File blocking profile setting. Defaults to BestPractice.
    outbound_trust_certificate str
    Outbound trust certificate.
    outbound_untrust_certificate str
    Outbound untrust certificate.
    url_filtering str
    URL filtering profile setting. Defaults to None.
    vulnerability str
    Vulnerability profile setting. Defaults to BestPractice.
    antiSpyware String
    Anti-spyware profile setting. Defaults to BestPractice.
    antiVirus String
    Anti-virus profile setting. Defaults to BestPractice.
    fileBlocking String
    File blocking profile setting. Defaults to BestPractice.
    outboundTrustCertificate String
    Outbound trust certificate.
    outboundUntrustCertificate String
    Outbound untrust certificate.
    urlFiltering String
    URL filtering profile setting. Defaults to None.
    vulnerability String
    Vulnerability profile setting. Defaults to BestPractice.

    Import

    import name is :

    $ pulumi import cloudngfwaws:index/rulestack:Rulestack example Local:terraform-rulestack
    

    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.
    cloudngfwaws logo
    Palo Alto Networks Cloud NGFW for AWS v0.0.2 published on Wednesday, Nov 13, 2024 by Pulumi