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

cloudngfwaws.CommitRulestack

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 committing the rulestack config.

    !> NOTE: This resource should be placed in a separate plan as the plan that configures the rulestack and its contents. If you do not, you will have perpetual configuration drift and will need to run your plan twice so the commit is performed. Placing instances of this resource with instances of NGFW resources (such as cloudngfwaws.Ngfw) is fine.

    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.CommitRulestack("example", {rulestack: "my-rulestack"});
    
    import pulumi
    import pulumi_cloudngfwaws as cloudngfwaws
    
    example = cloudngfwaws.CommitRulestack("example", rulestack="my-rulestack")
    
    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.NewCommitRulestack(ctx, "example", &cloudngfwaws.CommitRulestackArgs{
    			Rulestack: pulumi.String("my-rulestack"),
    		})
    		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.CommitRulestack("example", new()
        {
            Rulestack = "my-rulestack",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudngfwaws.CommitRulestack;
    import com.pulumi.cloudngfwaws.CommitRulestackArgs;
    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 CommitRulestack("example", CommitRulestackArgs.builder()
                .rulestack("my-rulestack")
                .build());
    
        }
    }
    
    resources:
      example:
        type: cloudngfwaws:CommitRulestack
        properties:
          rulestack: my-rulestack
    

    Create CommitRulestack Resource

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

    Constructor syntax

    new CommitRulestack(name: string, args: CommitRulestackArgs, opts?: CustomResourceOptions);
    @overload
    def CommitRulestack(resource_name: str,
                        args: CommitRulestackArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def CommitRulestack(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        rulestack: Optional[str] = None,
                        scope: Optional[str] = None,
                        state: Optional[str] = None)
    func NewCommitRulestack(ctx *Context, name string, args CommitRulestackArgs, opts ...ResourceOption) (*CommitRulestack, error)
    public CommitRulestack(string name, CommitRulestackArgs args, CustomResourceOptions? opts = null)
    public CommitRulestack(String name, CommitRulestackArgs args)
    public CommitRulestack(String name, CommitRulestackArgs args, CustomResourceOptions options)
    
    type: cloudngfwaws:CommitRulestack
    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 CommitRulestackArgs
    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 CommitRulestackArgs
    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 CommitRulestackArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CommitRulestackArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CommitRulestackArgs
    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 commitRulestackResource = new CloudNgfwAws.CommitRulestack("commitRulestackResource", new()
    {
        Rulestack = "string",
        Scope = "string",
        State = "string",
    });
    
    example, err := cloudngfwaws.NewCommitRulestack(ctx, "commitRulestackResource", &cloudngfwaws.CommitRulestackArgs{
    	Rulestack: pulumi.String("string"),
    	Scope:     pulumi.String("string"),
    	State:     pulumi.String("string"),
    })
    
    var commitRulestackResource = new CommitRulestack("commitRulestackResource", CommitRulestackArgs.builder()
        .rulestack("string")
        .scope("string")
        .state("string")
        .build());
    
    commit_rulestack_resource = cloudngfwaws.CommitRulestack("commitRulestackResource",
        rulestack="string",
        scope="string",
        state="string")
    
    const commitRulestackResource = new cloudngfwaws.CommitRulestack("commitRulestackResource", {
        rulestack: "string",
        scope: "string",
        state: "string",
    });
    
    type: cloudngfwaws:CommitRulestack
    properties:
        rulestack: string
        scope: string
        state: string
    

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

    Rulestack string
    The rulestack.
    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. This can only be the default value. Defaults to Running.
    Rulestack string
    The rulestack.
    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. This can only be the default value. Defaults to Running.
    rulestack String
    The rulestack.
    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. This can only be the default value. Defaults to Running.
    rulestack string
    The rulestack.
    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. This can only be the default value. Defaults to Running.
    rulestack str
    The rulestack.
    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. This can only be the default value. Defaults to Running.
    rulestack String
    The rulestack.
    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. This can only be the default value. Defaults to Running.

    Outputs

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

    CommitErrors List<string>
    Commit error messages.
    CommitStatus string
    The commit status.
    Id string
    The provider-assigned unique ID for this managed resource.
    ValidationErrors List<string>
    Validation error messages.
    ValidationStatus string
    The validation status.
    CommitErrors []string
    Commit error messages.
    CommitStatus string
    The commit status.
    Id string
    The provider-assigned unique ID for this managed resource.
    ValidationErrors []string
    Validation error messages.
    ValidationStatus string
    The validation status.
    commitErrors List<String>
    Commit error messages.
    commitStatus String
    The commit status.
    id String
    The provider-assigned unique ID for this managed resource.
    validationErrors List<String>
    Validation error messages.
    validationStatus String
    The validation status.
    commitErrors string[]
    Commit error messages.
    commitStatus string
    The commit status.
    id string
    The provider-assigned unique ID for this managed resource.
    validationErrors string[]
    Validation error messages.
    validationStatus string
    The validation status.
    commit_errors Sequence[str]
    Commit error messages.
    commit_status str
    The commit status.
    id str
    The provider-assigned unique ID for this managed resource.
    validation_errors Sequence[str]
    Validation error messages.
    validation_status str
    The validation status.
    commitErrors List<String>
    Commit error messages.
    commitStatus String
    The commit status.
    id String
    The provider-assigned unique ID for this managed resource.
    validationErrors List<String>
    Validation error messages.
    validationStatus String
    The validation status.

    Look up Existing CommitRulestack Resource

    Get an existing CommitRulestack 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?: CommitRulestackState, opts?: CustomResourceOptions): CommitRulestack
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            commit_errors: Optional[Sequence[str]] = None,
            commit_status: Optional[str] = None,
            rulestack: Optional[str] = None,
            scope: Optional[str] = None,
            state: Optional[str] = None,
            validation_errors: Optional[Sequence[str]] = None,
            validation_status: Optional[str] = None) -> CommitRulestack
    func GetCommitRulestack(ctx *Context, name string, id IDInput, state *CommitRulestackState, opts ...ResourceOption) (*CommitRulestack, error)
    public static CommitRulestack Get(string name, Input<string> id, CommitRulestackState? state, CustomResourceOptions? opts = null)
    public static CommitRulestack get(String name, Output<String> id, CommitRulestackState 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:
    CommitErrors List<string>
    Commit error messages.
    CommitStatus string
    The commit status.
    Rulestack string
    The rulestack.
    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. This can only be the default value. Defaults to Running.
    ValidationErrors List<string>
    Validation error messages.
    ValidationStatus string
    The validation status.
    CommitErrors []string
    Commit error messages.
    CommitStatus string
    The commit status.
    Rulestack string
    The rulestack.
    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. This can only be the default value. Defaults to Running.
    ValidationErrors []string
    Validation error messages.
    ValidationStatus string
    The validation status.
    commitErrors List<String>
    Commit error messages.
    commitStatus String
    The commit status.
    rulestack String
    The rulestack.
    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. This can only be the default value. Defaults to Running.
    validationErrors List<String>
    Validation error messages.
    validationStatus String
    The validation status.
    commitErrors string[]
    Commit error messages.
    commitStatus string
    The commit status.
    rulestack string
    The rulestack.
    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. This can only be the default value. Defaults to Running.
    validationErrors string[]
    Validation error messages.
    validationStatus string
    The validation status.
    commit_errors Sequence[str]
    Commit error messages.
    commit_status str
    The commit status.
    rulestack str
    The rulestack.
    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. This can only be the default value. Defaults to Running.
    validation_errors Sequence[str]
    Validation error messages.
    validation_status str
    The validation status.
    commitErrors List<String>
    Commit error messages.
    commitStatus String
    The commit status.
    rulestack String
    The rulestack.
    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. This can only be the default value. Defaults to Running.
    validationErrors List<String>
    Validation error messages.
    validationStatus String
    The validation status.

    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