1. Packages
  2. Splunk
  3. API Docs
  4. ConfigsConf
Splunk v1.2.5 published on Friday, Jan 19, 2024 by Pulumi

splunk.ConfigsConf

Explore with Pulumi AI

splunk logo
Splunk v1.2.5 published on Friday, Jan 19, 2024 by Pulumi

    # Resource: splunk.ConfigsConf

    Create and manage configuration file stanzas.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Splunk = Pulumi.Splunk;
    
    return await Deployment.RunAsync(() => 
    {
        var new_conf_stanza = new Splunk.ConfigsConf("new-conf-stanza", new()
        {
            Variables = 
            {
                { "disabled", "false" },
                { "custom_key", "value" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-splunk/sdk/go/splunk"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := splunk.NewConfigsConf(ctx, "new-conf-stanza", &splunk.ConfigsConfArgs{
    			Variables: pulumi.StringMap{
    				"disabled":   pulumi.String("false"),
    				"custom_key": pulumi.String("value"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.splunk.ConfigsConf;
    import com.pulumi.splunk.ConfigsConfArgs;
    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 new_conf_stanza = new ConfigsConf("new-conf-stanza", ConfigsConfArgs.builder()        
                .variables(Map.ofEntries(
                    Map.entry("disabled", "false"),
                    Map.entry("custom_key", "value")
                ))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_splunk as splunk
    
    new_conf_stanza = splunk.ConfigsConf("new-conf-stanza", variables={
        "disabled": "false",
        "custom_key": "value",
    })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as splunk from "@pulumi/splunk";
    
    const new_conf_stanza = new splunk.ConfigsConf("new-conf-stanza", {variables: {
        disabled: "false",
        custom_key: "value",
    }});
    
    resources:
      new-conf-stanza:
        type: splunk:ConfigsConf
        properties:
          variables:
            disabled: 'false'
            custom_key: value
    

    Create ConfigsConf Resource

    new ConfigsConf(name: string, args?: ConfigsConfArgs, opts?: CustomResourceOptions);
    @overload
    def ConfigsConf(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    acl: Optional[ConfigsConfAclArgs] = None,
                    name: Optional[str] = None,
                    variables: Optional[Mapping[str, str]] = None)
    @overload
    def ConfigsConf(resource_name: str,
                    args: Optional[ConfigsConfArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    func NewConfigsConf(ctx *Context, name string, args *ConfigsConfArgs, opts ...ResourceOption) (*ConfigsConf, error)
    public ConfigsConf(string name, ConfigsConfArgs? args = null, CustomResourceOptions? opts = null)
    public ConfigsConf(String name, ConfigsConfArgs args)
    public ConfigsConf(String name, ConfigsConfArgs args, CustomResourceOptions options)
    
    type: splunk:ConfigsConf
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ConfigsConfArgs
    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 ConfigsConfArgs
    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 ConfigsConfArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConfigsConfArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConfigsConfArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ConfigsConf Resource Properties

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

    Inputs

    The ConfigsConf resource accepts the following input properties:

    Acl ConfigsConfAcl
    Name string
    A '/' separated string consisting of {conf_file_name}/{stanza_name} ex. props/custom_stanza
    Variables Dictionary<string, string>
    A map of key value pairs for a stanza.
    Acl ConfigsConfAclArgs
    Name string
    A '/' separated string consisting of {conf_file_name}/{stanza_name} ex. props/custom_stanza
    Variables map[string]string
    A map of key value pairs for a stanza.
    acl ConfigsConfAcl
    name String
    A '/' separated string consisting of {conf_file_name}/{stanza_name} ex. props/custom_stanza
    variables Map<String,String>
    A map of key value pairs for a stanza.
    acl ConfigsConfAcl
    name string
    A '/' separated string consisting of {conf_file_name}/{stanza_name} ex. props/custom_stanza
    variables {[key: string]: string}
    A map of key value pairs for a stanza.
    acl ConfigsConfAclArgs
    name str
    A '/' separated string consisting of {conf_file_name}/{stanza_name} ex. props/custom_stanza
    variables Mapping[str, str]
    A map of key value pairs for a stanza.
    acl Property Map
    name String
    A '/' separated string consisting of {conf_file_name}/{stanza_name} ex. props/custom_stanza
    variables Map<String>
    A map of key value pairs for a stanza.

    Outputs

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

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

    Look up Existing ConfigsConf Resource

    Get an existing ConfigsConf 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?: ConfigsConfState, opts?: CustomResourceOptions): ConfigsConf
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acl: Optional[ConfigsConfAclArgs] = None,
            name: Optional[str] = None,
            variables: Optional[Mapping[str, str]] = None) -> ConfigsConf
    func GetConfigsConf(ctx *Context, name string, id IDInput, state *ConfigsConfState, opts ...ResourceOption) (*ConfigsConf, error)
    public static ConfigsConf Get(string name, Input<string> id, ConfigsConfState? state, CustomResourceOptions? opts = null)
    public static ConfigsConf get(String name, Output<String> id, ConfigsConfState 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:
    Acl ConfigsConfAcl
    Name string
    A '/' separated string consisting of {conf_file_name}/{stanza_name} ex. props/custom_stanza
    Variables Dictionary<string, string>
    A map of key value pairs for a stanza.
    Acl ConfigsConfAclArgs
    Name string
    A '/' separated string consisting of {conf_file_name}/{stanza_name} ex. props/custom_stanza
    Variables map[string]string
    A map of key value pairs for a stanza.
    acl ConfigsConfAcl
    name String
    A '/' separated string consisting of {conf_file_name}/{stanza_name} ex. props/custom_stanza
    variables Map<String,String>
    A map of key value pairs for a stanza.
    acl ConfigsConfAcl
    name string
    A '/' separated string consisting of {conf_file_name}/{stanza_name} ex. props/custom_stanza
    variables {[key: string]: string}
    A map of key value pairs for a stanza.
    acl ConfigsConfAclArgs
    name str
    A '/' separated string consisting of {conf_file_name}/{stanza_name} ex. props/custom_stanza
    variables Mapping[str, str]
    A map of key value pairs for a stanza.
    acl Property Map
    name String
    A '/' separated string consisting of {conf_file_name}/{stanza_name} ex. props/custom_stanza
    variables Map<String>
    A map of key value pairs for a stanza.

    Supporting Types

    ConfigsConfAcl, ConfigsConfAclArgs

    App string
    CanChangePerms bool
    CanShareApp bool
    CanShareGlobal bool
    CanShareUser bool
    CanWrite bool
    Owner string
    Reads List<string>
    Removable bool
    Sharing string
    Writes List<string>
    App string
    CanChangePerms bool
    CanShareApp bool
    CanShareGlobal bool
    CanShareUser bool
    CanWrite bool
    Owner string
    Reads []string
    Removable bool
    Sharing string
    Writes []string
    app String
    canChangePerms Boolean
    canShareApp Boolean
    canShareGlobal Boolean
    canShareUser Boolean
    canWrite Boolean
    owner String
    reads List<String>
    removable Boolean
    sharing String
    writes List<String>
    app string
    canChangePerms boolean
    canShareApp boolean
    canShareGlobal boolean
    canShareUser boolean
    canWrite boolean
    owner string
    reads string[]
    removable boolean
    sharing string
    writes string[]
    app str
    can_change_perms bool
    can_share_app bool
    can_share_global bool
    can_share_user bool
    can_write bool
    owner str
    reads Sequence[str]
    removable bool
    sharing str
    writes Sequence[str]
    app String
    canChangePerms Boolean
    canShareApp Boolean
    canShareGlobal Boolean
    canShareUser Boolean
    canWrite Boolean
    owner String
    reads List<String>
    removable Boolean
    sharing String
    writes List<String>

    Package Details

    Repository
    Splunk pulumi/pulumi-splunk
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the splunk Terraform Provider.
    splunk logo
    Splunk v1.2.5 published on Friday, Jan 19, 2024 by Pulumi