1. Packages
  2. Splunk
  3. API Docs
  4. ConfigsConf
Splunk v1.2.10 published on Wednesday, Sep 18, 2024 by Pulumi

splunk.ConfigsConf

Explore with Pulumi AI

splunk logo
Splunk v1.2.10 published on Wednesday, Sep 18, 2024 by Pulumi

    # Resource: splunk.ConfigsConf

    Create and manage configuration file stanzas.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as splunk from "@pulumi/splunk";
    
    const new_conf_stanza = new splunk.ConfigsConf("new-conf-stanza", {
        name: "custom-conf/custom",
        variables: {
            disabled: "false",
            custom_key: "value",
        },
    });
    
    import pulumi
    import pulumi_splunk as splunk
    
    new_conf_stanza = splunk.ConfigsConf("new-conf-stanza",
        name="custom-conf/custom",
        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{
    			Name: pulumi.String("custom-conf/custom"),
    			Variables: pulumi.StringMap{
    				"disabled":   pulumi.String("false"),
    				"custom_key": pulumi.String("value"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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()
        {
            Name = "custom-conf/custom",
            Variables = 
            {
                { "disabled", "false" },
                { "custom_key", "value" },
            },
        });
    
    });
    
    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()
                .name("custom-conf/custom")
                .variables(Map.ofEntries(
                    Map.entry("disabled", "false"),
                    Map.entry("custom_key", "value")
                ))
                .build());
    
        }
    }
    
    resources:
      new-conf-stanza:
        type: splunk:ConfigsConf
        properties:
          name: custom-conf/custom
          variables:
            disabled: 'false'
            custom_key: value
    

    Create ConfigsConf Resource

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

    Constructor syntax

    new ConfigsConf(name: string, args?: ConfigsConfArgs, opts?: CustomResourceOptions);
    @overload
    def ConfigsConf(resource_name: str,
                    args: Optional[ConfigsConfArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConfigsConf(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    acl: Optional[ConfigsConfAclArgs] = None,
                    name: Optional[str] = None,
                    variables: Optional[Mapping[str, str]] = 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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var configsConfResource = new Splunk.ConfigsConf("configsConfResource", new()
    {
        Acl = new Splunk.Inputs.ConfigsConfAclArgs
        {
            App = "string",
            CanChangePerms = false,
            CanShareApp = false,
            CanShareGlobal = false,
            CanShareUser = false,
            CanWrite = false,
            Owner = "string",
            Reads = new[]
            {
                "string",
            },
            Removable = false,
            Sharing = "string",
            Writes = new[]
            {
                "string",
            },
        },
        Name = "string",
        Variables = 
        {
            { "string", "string" },
        },
    });
    
    example, err := splunk.NewConfigsConf(ctx, "configsConfResource", &splunk.ConfigsConfArgs{
    	Acl: &splunk.ConfigsConfAclArgs{
    		App:            pulumi.String("string"),
    		CanChangePerms: pulumi.Bool(false),
    		CanShareApp:    pulumi.Bool(false),
    		CanShareGlobal: pulumi.Bool(false),
    		CanShareUser:   pulumi.Bool(false),
    		CanWrite:       pulumi.Bool(false),
    		Owner:          pulumi.String("string"),
    		Reads: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Removable: pulumi.Bool(false),
    		Sharing:   pulumi.String("string"),
    		Writes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    	Variables: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var configsConfResource = new ConfigsConf("configsConfResource", ConfigsConfArgs.builder()
        .acl(ConfigsConfAclArgs.builder()
            .app("string")
            .canChangePerms(false)
            .canShareApp(false)
            .canShareGlobal(false)
            .canShareUser(false)
            .canWrite(false)
            .owner("string")
            .reads("string")
            .removable(false)
            .sharing("string")
            .writes("string")
            .build())
        .name("string")
        .variables(Map.of("string", "string"))
        .build());
    
    configs_conf_resource = splunk.ConfigsConf("configsConfResource",
        acl=splunk.ConfigsConfAclArgs(
            app="string",
            can_change_perms=False,
            can_share_app=False,
            can_share_global=False,
            can_share_user=False,
            can_write=False,
            owner="string",
            reads=["string"],
            removable=False,
            sharing="string",
            writes=["string"],
        ),
        name="string",
        variables={
            "string": "string",
        })
    
    const configsConfResource = new splunk.ConfigsConf("configsConfResource", {
        acl: {
            app: "string",
            canChangePerms: false,
            canShareApp: false,
            canShareGlobal: false,
            canShareUser: false,
            canWrite: false,
            owner: "string",
            reads: ["string"],
            removable: false,
            sharing: "string",
            writes: ["string"],
        },
        name: "string",
        variables: {
            string: "string",
        },
    });
    
    type: splunk:ConfigsConf
    properties:
        acl:
            app: string
            canChangePerms: false
            canShareApp: false
            canShareGlobal: false
            canShareUser: false
            canWrite: false
            owner: string
            reads:
                - string
            removable: false
            sharing: string
            writes:
                - string
        name: string
        variables:
            string: string
    

    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
    The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system
    CanChangePerms bool
    Indicates if the active user can change permissions for this object. Defaults to true.
    CanShareApp bool
    Indicates if the active user can change sharing to app level. Defaults to true.
    CanShareGlobal bool
    Indicates if the active user can change sharing to system level. Defaults to true.
    CanShareUser bool
    Indicates if the active user can change sharing to user level. Defaults to true.
    CanWrite bool
    Indicates if the active user can edit this object. Defaults to true.
    Owner string
    User name of resource owner. Defaults to the resource creator. Required for updating any knowledge object ACL properties.nobody = All users may access the resource, but write access to the resource might be restricted.
    Reads List<string>
    Properties that indicate resource read permissions.
    Removable bool
    Indicates whether an admin or user with sufficient permissions can delete the entity.
    Sharing string
    Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user
    Writes List<string>
    Properties that indicate write permissions of the resource.
    App string
    The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system
    CanChangePerms bool
    Indicates if the active user can change permissions for this object. Defaults to true.
    CanShareApp bool
    Indicates if the active user can change sharing to app level. Defaults to true.
    CanShareGlobal bool
    Indicates if the active user can change sharing to system level. Defaults to true.
    CanShareUser bool
    Indicates if the active user can change sharing to user level. Defaults to true.
    CanWrite bool
    Indicates if the active user can edit this object. Defaults to true.
    Owner string
    User name of resource owner. Defaults to the resource creator. Required for updating any knowledge object ACL properties.nobody = All users may access the resource, but write access to the resource might be restricted.
    Reads []string
    Properties that indicate resource read permissions.
    Removable bool
    Indicates whether an admin or user with sufficient permissions can delete the entity.
    Sharing string
    Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user
    Writes []string
    Properties that indicate write permissions of the resource.
    app String
    The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system
    canChangePerms Boolean
    Indicates if the active user can change permissions for this object. Defaults to true.
    canShareApp Boolean
    Indicates if the active user can change sharing to app level. Defaults to true.
    canShareGlobal Boolean
    Indicates if the active user can change sharing to system level. Defaults to true.
    canShareUser Boolean
    Indicates if the active user can change sharing to user level. Defaults to true.
    canWrite Boolean
    Indicates if the active user can edit this object. Defaults to true.
    owner String
    User name of resource owner. Defaults to the resource creator. Required for updating any knowledge object ACL properties.nobody = All users may access the resource, but write access to the resource might be restricted.
    reads List<String>
    Properties that indicate resource read permissions.
    removable Boolean
    Indicates whether an admin or user with sufficient permissions can delete the entity.
    sharing String
    Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user
    writes List<String>
    Properties that indicate write permissions of the resource.
    app string
    The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system
    canChangePerms boolean
    Indicates if the active user can change permissions for this object. Defaults to true.
    canShareApp boolean
    Indicates if the active user can change sharing to app level. Defaults to true.
    canShareGlobal boolean
    Indicates if the active user can change sharing to system level. Defaults to true.
    canShareUser boolean
    Indicates if the active user can change sharing to user level. Defaults to true.
    canWrite boolean
    Indicates if the active user can edit this object. Defaults to true.
    owner string
    User name of resource owner. Defaults to the resource creator. Required for updating any knowledge object ACL properties.nobody = All users may access the resource, but write access to the resource might be restricted.
    reads string[]
    Properties that indicate resource read permissions.
    removable boolean
    Indicates whether an admin or user with sufficient permissions can delete the entity.
    sharing string
    Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user
    writes string[]
    Properties that indicate write permissions of the resource.
    app str
    The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system
    can_change_perms bool
    Indicates if the active user can change permissions for this object. Defaults to true.
    can_share_app bool
    Indicates if the active user can change sharing to app level. Defaults to true.
    can_share_global bool
    Indicates if the active user can change sharing to system level. Defaults to true.
    can_share_user bool
    Indicates if the active user can change sharing to user level. Defaults to true.
    can_write bool
    Indicates if the active user can edit this object. Defaults to true.
    owner str
    User name of resource owner. Defaults to the resource creator. Required for updating any knowledge object ACL properties.nobody = All users may access the resource, but write access to the resource might be restricted.
    reads Sequence[str]
    Properties that indicate resource read permissions.
    removable bool
    Indicates whether an admin or user with sufficient permissions can delete the entity.
    sharing str
    Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user
    writes Sequence[str]
    Properties that indicate write permissions of the resource.
    app String
    The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system
    canChangePerms Boolean
    Indicates if the active user can change permissions for this object. Defaults to true.
    canShareApp Boolean
    Indicates if the active user can change sharing to app level. Defaults to true.
    canShareGlobal Boolean
    Indicates if the active user can change sharing to system level. Defaults to true.
    canShareUser Boolean
    Indicates if the active user can change sharing to user level. Defaults to true.
    canWrite Boolean
    Indicates if the active user can edit this object. Defaults to true.
    owner String
    User name of resource owner. Defaults to the resource creator. Required for updating any knowledge object ACL properties.nobody = All users may access the resource, but write access to the resource might be restricted.
    reads List<String>
    Properties that indicate resource read permissions.
    removable Boolean
    Indicates whether an admin or user with sufficient permissions can delete the entity.
    sharing String
    Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user
    writes List<String>
    Properties that indicate write permissions of the resource.

    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.10 published on Wednesday, Sep 18, 2024 by Pulumi