1. Packages
  2. Splunk Provider
  3. API Docs
  4. InputsTcpSplunkTcpToken
Splunk v1.2.17 published on Wednesday, Apr 9, 2025 by Pulumi

splunk.InputsTcpSplunkTcpToken

Explore with Pulumi AI

# Resource: splunk.InputsTcpSplunkTcpToken

Manage receiver access using tokens.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as splunk from "@pulumi/splunk";

const tcpSplunkTcpToken = new splunk.InputsTcpSplunkTcpToken("tcp_splunk_tcp_token", {
    name: "new-splunk-tcp-token",
    token: "D66C45B3-7C28-48A1-A13A-027914146501",
});
Copy
import pulumi
import pulumi_splunk as splunk

tcp_splunk_tcp_token = splunk.InputsTcpSplunkTcpToken("tcp_splunk_tcp_token",
    name="new-splunk-tcp-token",
    token="D66C45B3-7C28-48A1-A13A-027914146501")
Copy
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.NewInputsTcpSplunkTcpToken(ctx, "tcp_splunk_tcp_token", &splunk.InputsTcpSplunkTcpTokenArgs{
			Name:  pulumi.String("new-splunk-tcp-token"),
			Token: pulumi.String("D66C45B3-7C28-48A1-A13A-027914146501"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Splunk = Pulumi.Splunk;

return await Deployment.RunAsync(() => 
{
    var tcpSplunkTcpToken = new Splunk.InputsTcpSplunkTcpToken("tcp_splunk_tcp_token", new()
    {
        Name = "new-splunk-tcp-token",
        Token = "D66C45B3-7C28-48A1-A13A-027914146501",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.splunk.InputsTcpSplunkTcpToken;
import com.pulumi.splunk.InputsTcpSplunkTcpTokenArgs;
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 tcpSplunkTcpToken = new InputsTcpSplunkTcpToken("tcpSplunkTcpToken", InputsTcpSplunkTcpTokenArgs.builder()
            .name("new-splunk-tcp-token")
            .token("D66C45B3-7C28-48A1-A13A-027914146501")
            .build());

    }
}
Copy
resources:
  tcpSplunkTcpToken:
    type: splunk:InputsTcpSplunkTcpToken
    name: tcp_splunk_tcp_token
    properties:
      name: new-splunk-tcp-token
      token: D66C45B3-7C28-48A1-A13A-027914146501
Copy

Create InputsTcpSplunkTcpToken Resource

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

Constructor syntax

new InputsTcpSplunkTcpToken(name: string, args?: InputsTcpSplunkTcpTokenArgs, opts?: CustomResourceOptions);
@overload
def InputsTcpSplunkTcpToken(resource_name: str,
                            args: Optional[InputsTcpSplunkTcpTokenArgs] = None,
                            opts: Optional[ResourceOptions] = None)

@overload
def InputsTcpSplunkTcpToken(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            acl: Optional[InputsTcpSplunkTcpTokenAclArgs] = None,
                            name: Optional[str] = None,
                            token: Optional[str] = None)
func NewInputsTcpSplunkTcpToken(ctx *Context, name string, args *InputsTcpSplunkTcpTokenArgs, opts ...ResourceOption) (*InputsTcpSplunkTcpToken, error)
public InputsTcpSplunkTcpToken(string name, InputsTcpSplunkTcpTokenArgs? args = null, CustomResourceOptions? opts = null)
public InputsTcpSplunkTcpToken(String name, InputsTcpSplunkTcpTokenArgs args)
public InputsTcpSplunkTcpToken(String name, InputsTcpSplunkTcpTokenArgs args, CustomResourceOptions options)
type: splunk:InputsTcpSplunkTcpToken
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args InputsTcpSplunkTcpTokenArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args InputsTcpSplunkTcpTokenArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args InputsTcpSplunkTcpTokenArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args InputsTcpSplunkTcpTokenArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. InputsTcpSplunkTcpTokenArgs
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 inputsTcpSplunkTcpTokenResource = new Splunk.InputsTcpSplunkTcpToken("inputsTcpSplunkTcpTokenResource", new()
{
    Acl = new Splunk.Inputs.InputsTcpSplunkTcpTokenAclArgs
    {
        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",
    Token = "string",
});
Copy
example, err := splunk.NewInputsTcpSplunkTcpToken(ctx, "inputsTcpSplunkTcpTokenResource", &splunk.InputsTcpSplunkTcpTokenArgs{
	Acl: &splunk.InputsTcpSplunkTcpTokenAclArgs{
		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"),
	Token: pulumi.String("string"),
})
Copy
var inputsTcpSplunkTcpTokenResource = new InputsTcpSplunkTcpToken("inputsTcpSplunkTcpTokenResource", InputsTcpSplunkTcpTokenArgs.builder()
    .acl(InputsTcpSplunkTcpTokenAclArgs.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")
    .token("string")
    .build());
Copy
inputs_tcp_splunk_tcp_token_resource = splunk.InputsTcpSplunkTcpToken("inputsTcpSplunkTcpTokenResource",
    acl={
        "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",
    token="string")
Copy
const inputsTcpSplunkTcpTokenResource = new splunk.InputsTcpSplunkTcpToken("inputsTcpSplunkTcpTokenResource", {
    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",
    token: "string",
});
Copy
type: splunk:InputsTcpSplunkTcpToken
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
    token: string
Copy

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

Acl InputsTcpSplunkTcpTokenAcl
The app/user context that is the namespace for the resource
Name Changes to this property will trigger replacement. string
Required. Name for the token to create.
Token string
Optional. Token value to use. If unspecified, a token is generated automatically.
Acl InputsTcpSplunkTcpTokenAclArgs
The app/user context that is the namespace for the resource
Name Changes to this property will trigger replacement. string
Required. Name for the token to create.
Token string
Optional. Token value to use. If unspecified, a token is generated automatically.
acl InputsTcpSplunkTcpTokenAcl
The app/user context that is the namespace for the resource
name Changes to this property will trigger replacement. String
Required. Name for the token to create.
token String
Optional. Token value to use. If unspecified, a token is generated automatically.
acl InputsTcpSplunkTcpTokenAcl
The app/user context that is the namespace for the resource
name Changes to this property will trigger replacement. string
Required. Name for the token to create.
token string
Optional. Token value to use. If unspecified, a token is generated automatically.
acl InputsTcpSplunkTcpTokenAclArgs
The app/user context that is the namespace for the resource
name Changes to this property will trigger replacement. str
Required. Name for the token to create.
token str
Optional. Token value to use. If unspecified, a token is generated automatically.
acl Property Map
The app/user context that is the namespace for the resource
name Changes to this property will trigger replacement. String
Required. Name for the token to create.
token String
Optional. Token value to use. If unspecified, a token is generated automatically.

Outputs

All input properties are implicitly available as output properties. Additionally, the InputsTcpSplunkTcpToken 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 InputsTcpSplunkTcpToken Resource

Get an existing InputsTcpSplunkTcpToken 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?: InputsTcpSplunkTcpTokenState, opts?: CustomResourceOptions): InputsTcpSplunkTcpToken
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        acl: Optional[InputsTcpSplunkTcpTokenAclArgs] = None,
        name: Optional[str] = None,
        token: Optional[str] = None) -> InputsTcpSplunkTcpToken
func GetInputsTcpSplunkTcpToken(ctx *Context, name string, id IDInput, state *InputsTcpSplunkTcpTokenState, opts ...ResourceOption) (*InputsTcpSplunkTcpToken, error)
public static InputsTcpSplunkTcpToken Get(string name, Input<string> id, InputsTcpSplunkTcpTokenState? state, CustomResourceOptions? opts = null)
public static InputsTcpSplunkTcpToken get(String name, Output<String> id, InputsTcpSplunkTcpTokenState state, CustomResourceOptions options)
resources:  _:    type: splunk:InputsTcpSplunkTcpToken    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 InputsTcpSplunkTcpTokenAcl
The app/user context that is the namespace for the resource
Name Changes to this property will trigger replacement. string
Required. Name for the token to create.
Token string
Optional. Token value to use. If unspecified, a token is generated automatically.
Acl InputsTcpSplunkTcpTokenAclArgs
The app/user context that is the namespace for the resource
Name Changes to this property will trigger replacement. string
Required. Name for the token to create.
Token string
Optional. Token value to use. If unspecified, a token is generated automatically.
acl InputsTcpSplunkTcpTokenAcl
The app/user context that is the namespace for the resource
name Changes to this property will trigger replacement. String
Required. Name for the token to create.
token String
Optional. Token value to use. If unspecified, a token is generated automatically.
acl InputsTcpSplunkTcpTokenAcl
The app/user context that is the namespace for the resource
name Changes to this property will trigger replacement. string
Required. Name for the token to create.
token string
Optional. Token value to use. If unspecified, a token is generated automatically.
acl InputsTcpSplunkTcpTokenAclArgs
The app/user context that is the namespace for the resource
name Changes to this property will trigger replacement. str
Required. Name for the token to create.
token str
Optional. Token value to use. If unspecified, a token is generated automatically.
acl Property Map
The app/user context that is the namespace for the resource
name Changes to this property will trigger replacement. String
Required. Name for the token to create.
token String
Optional. Token value to use. If unspecified, a token is generated automatically.

Supporting Types

InputsTcpSplunkTcpTokenAcl
, InputsTcpSplunkTcpTokenAclArgs

App Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 resource write permissions.
App Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 resource write permissions.
app Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 resource write permissions.
app Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 resource write permissions.
app Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 resource write permissions.
app Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 resource write permissions.

Package Details

Repository
Splunk pulumi/pulumi-splunk
License
Apache-2.0
Notes
This Pulumi package is based on the splunk Terraform Provider.