splunk.InputsTcpCooked
Explore with Pulumi AI
# Resource: splunk.InputsTcpCooked
Create or update cooked TCP input information and create new containers for managing cooked data.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as splunk from "@pulumi/splunk";
const tcpCooked = new splunk.InputsTcpCooked("tcp_cooked", {
name: "50000",
disabled: false,
connectionHost: "dns",
restrictToHost: "splunk",
});
import pulumi
import pulumi_splunk as splunk
tcp_cooked = splunk.InputsTcpCooked("tcp_cooked",
name="50000",
disabled=False,
connection_host="dns",
restrict_to_host="splunk")
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.NewInputsTcpCooked(ctx, "tcp_cooked", &splunk.InputsTcpCookedArgs{
Name: pulumi.String("50000"),
Disabled: pulumi.Bool(false),
ConnectionHost: pulumi.String("dns"),
RestrictToHost: pulumi.String("splunk"),
})
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 tcpCooked = new Splunk.InputsTcpCooked("tcp_cooked", new()
{
Name = "50000",
Disabled = false,
ConnectionHost = "dns",
RestrictToHost = "splunk",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.splunk.InputsTcpCooked;
import com.pulumi.splunk.InputsTcpCookedArgs;
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 tcpCooked = new InputsTcpCooked("tcpCooked", InputsTcpCookedArgs.builder()
.name("50000")
.disabled(false)
.connectionHost("dns")
.restrictToHost("splunk")
.build());
}
}
resources:
tcpCooked:
type: splunk:InputsTcpCooked
name: tcp_cooked
properties:
name: '50000'
disabled: false
connectionHost: dns
restrictToHost: splunk
Create InputsTcpCooked Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InputsTcpCooked(name: string, args?: InputsTcpCookedArgs, opts?: CustomResourceOptions);
@overload
def InputsTcpCooked(resource_name: str,
args: Optional[InputsTcpCookedArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def InputsTcpCooked(resource_name: str,
opts: Optional[ResourceOptions] = None,
acl: Optional[InputsTcpCookedAclArgs] = None,
connection_host: Optional[str] = None,
disabled: Optional[bool] = None,
host: Optional[str] = None,
name: Optional[str] = None,
restrict_to_host: Optional[str] = None)
func NewInputsTcpCooked(ctx *Context, name string, args *InputsTcpCookedArgs, opts ...ResourceOption) (*InputsTcpCooked, error)
public InputsTcpCooked(string name, InputsTcpCookedArgs? args = null, CustomResourceOptions? opts = null)
public InputsTcpCooked(String name, InputsTcpCookedArgs args)
public InputsTcpCooked(String name, InputsTcpCookedArgs args, CustomResourceOptions options)
type: splunk:InputsTcpCooked
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 InputsTcpCookedArgs
- 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 InputsTcpCookedArgs
- 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 InputsTcpCookedArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InputsTcpCookedArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InputsTcpCookedArgs
- 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 inputsTcpCookedResource = new Splunk.InputsTcpCooked("inputsTcpCookedResource", new()
{
Acl = new Splunk.Inputs.InputsTcpCookedAclArgs
{
App = "string",
CanChangePerms = false,
CanShareApp = false,
CanShareGlobal = false,
CanShareUser = false,
CanWrite = false,
Owner = "string",
Reads = new[]
{
"string",
},
Removable = false,
Sharing = "string",
Writes = new[]
{
"string",
},
},
ConnectionHost = "string",
Disabled = false,
Host = "string",
Name = "string",
RestrictToHost = "string",
});
example, err := splunk.NewInputsTcpCooked(ctx, "inputsTcpCookedResource", &splunk.InputsTcpCookedArgs{
Acl: &splunk.InputsTcpCookedAclArgs{
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"),
},
},
ConnectionHost: pulumi.String("string"),
Disabled: pulumi.Bool(false),
Host: pulumi.String("string"),
Name: pulumi.String("string"),
RestrictToHost: pulumi.String("string"),
})
var inputsTcpCookedResource = new InputsTcpCooked("inputsTcpCookedResource", InputsTcpCookedArgs.builder()
.acl(InputsTcpCookedAclArgs.builder()
.app("string")
.canChangePerms(false)
.canShareApp(false)
.canShareGlobal(false)
.canShareUser(false)
.canWrite(false)
.owner("string")
.reads("string")
.removable(false)
.sharing("string")
.writes("string")
.build())
.connectionHost("string")
.disabled(false)
.host("string")
.name("string")
.restrictToHost("string")
.build());
inputs_tcp_cooked_resource = splunk.InputsTcpCooked("inputsTcpCookedResource",
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"],
},
connection_host="string",
disabled=False,
host="string",
name="string",
restrict_to_host="string")
const inputsTcpCookedResource = new splunk.InputsTcpCooked("inputsTcpCookedResource", {
acl: {
app: "string",
canChangePerms: false,
canShareApp: false,
canShareGlobal: false,
canShareUser: false,
canWrite: false,
owner: "string",
reads: ["string"],
removable: false,
sharing: "string",
writes: ["string"],
},
connectionHost: "string",
disabled: false,
host: "string",
name: "string",
restrictToHost: "string",
});
type: splunk:InputsTcpCooked
properties:
acl:
app: string
canChangePerms: false
canShareApp: false
canShareGlobal: false
canShareUser: false
canWrite: false
owner: string
reads:
- string
removable: false
sharing: string
writes:
- string
connectionHost: string
disabled: false
host: string
name: string
restrictToHost: string
InputsTcpCooked 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 InputsTcpCooked resource accepts the following input properties:
- Acl
Inputs
Tcp Cooked Acl - The app/user context that is the namespace for the resource
- Connection
Host string - Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- Disabled bool
- Indicates if input is disabled.
- Host string
- Host from which the indexer gets data.
- Name string
- The port number of this input.
- Restrict
To stringHost - Restrict incoming connections on this port to the host specified here.
- Acl
Inputs
Tcp Cooked Acl Args - The app/user context that is the namespace for the resource
- Connection
Host string - Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- Disabled bool
- Indicates if input is disabled.
- Host string
- Host from which the indexer gets data.
- Name string
- The port number of this input.
- Restrict
To stringHost - Restrict incoming connections on this port to the host specified here.
- acl
Inputs
Tcp Cooked Acl - The app/user context that is the namespace for the resource
- connection
Host String - Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- disabled Boolean
- Indicates if input is disabled.
- host String
- Host from which the indexer gets data.
- name String
- The port number of this input.
- restrict
To StringHost - Restrict incoming connections on this port to the host specified here.
- acl
Inputs
Tcp Cooked Acl - The app/user context that is the namespace for the resource
- connection
Host string - Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- disabled boolean
- Indicates if input is disabled.
- host string
- Host from which the indexer gets data.
- name string
- The port number of this input.
- restrict
To stringHost - Restrict incoming connections on this port to the host specified here.
- acl
Inputs
Tcp Cooked Acl Args - The app/user context that is the namespace for the resource
- connection_
host str - Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- disabled bool
- Indicates if input is disabled.
- host str
- Host from which the indexer gets data.
- name str
- The port number of this input.
- restrict_
to_ strhost - Restrict incoming connections on this port to the host specified here.
- acl Property Map
- The app/user context that is the namespace for the resource
- connection
Host String - Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- disabled Boolean
- Indicates if input is disabled.
- host String
- Host from which the indexer gets data.
- name String
- The port number of this input.
- restrict
To StringHost - Restrict incoming connections on this port to the host specified here.
Outputs
All input properties are implicitly available as output properties. Additionally, the InputsTcpCooked 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 InputsTcpCooked Resource
Get an existing InputsTcpCooked 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?: InputsTcpCookedState, opts?: CustomResourceOptions): InputsTcpCooked
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acl: Optional[InputsTcpCookedAclArgs] = None,
connection_host: Optional[str] = None,
disabled: Optional[bool] = None,
host: Optional[str] = None,
name: Optional[str] = None,
restrict_to_host: Optional[str] = None) -> InputsTcpCooked
func GetInputsTcpCooked(ctx *Context, name string, id IDInput, state *InputsTcpCookedState, opts ...ResourceOption) (*InputsTcpCooked, error)
public static InputsTcpCooked Get(string name, Input<string> id, InputsTcpCookedState? state, CustomResourceOptions? opts = null)
public static InputsTcpCooked get(String name, Output<String> id, InputsTcpCookedState 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.
- Acl
Inputs
Tcp Cooked Acl - The app/user context that is the namespace for the resource
- Connection
Host string - Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- Disabled bool
- Indicates if input is disabled.
- Host string
- Host from which the indexer gets data.
- Name string
- The port number of this input.
- Restrict
To stringHost - Restrict incoming connections on this port to the host specified here.
- Acl
Inputs
Tcp Cooked Acl Args - The app/user context that is the namespace for the resource
- Connection
Host string - Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- Disabled bool
- Indicates if input is disabled.
- Host string
- Host from which the indexer gets data.
- Name string
- The port number of this input.
- Restrict
To stringHost - Restrict incoming connections on this port to the host specified here.
- acl
Inputs
Tcp Cooked Acl - The app/user context that is the namespace for the resource
- connection
Host String - Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- disabled Boolean
- Indicates if input is disabled.
- host String
- Host from which the indexer gets data.
- name String
- The port number of this input.
- restrict
To StringHost - Restrict incoming connections on this port to the host specified here.
- acl
Inputs
Tcp Cooked Acl - The app/user context that is the namespace for the resource
- connection
Host string - Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- disabled boolean
- Indicates if input is disabled.
- host string
- Host from which the indexer gets data.
- name string
- The port number of this input.
- restrict
To stringHost - Restrict incoming connections on this port to the host specified here.
- acl
Inputs
Tcp Cooked Acl Args - The app/user context that is the namespace for the resource
- connection_
host str - Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- disabled bool
- Indicates if input is disabled.
- host str
- Host from which the indexer gets data.
- name str
- The port number of this input.
- restrict_
to_ strhost - Restrict incoming connections on this port to the host specified here.
- acl Property Map
- The app/user context that is the namespace for the resource
- connection
Host String - Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- disabled Boolean
- Indicates if input is disabled.
- host String
- Host from which the indexer gets data.
- name String
- The port number of this input.
- restrict
To StringHost - Restrict incoming connections on this port to the host specified here.
Supporting Types
InputsTcpCookedAcl, InputsTcpCookedAclArgs
- 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
- Can
Change boolPerms - Indicates if the active user can change permissions for this object. Defaults to true.
- bool
- Indicates if the active user can change sharing to app level. Defaults to true.
- bool
- Indicates if the active user can change sharing to system level. Defaults to true.
- 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 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.
- 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 string
- 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 boolPerms - Indicates if the active user can change permissions for this object. Defaults to true.
- bool
- Indicates if the active user can change sharing to app level. Defaults to true.
- bool
- Indicates if the active user can change sharing to system level. Defaults to true.
- 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 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.
- 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 String
- 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 BooleanPerms - Indicates if the active user can change permissions for this object. Defaults to true.
- Boolean
- Indicates if the active user can change sharing to app level. Defaults to true.
- Boolean
- Indicates if the active user can change sharing to system level. Defaults to true.
- Boolean
- Indicates if the active user can change sharing to user level. Defaults to true.
- can
Write 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.
- 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 string
- 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 booleanPerms - Indicates if the active user can change permissions for this object. Defaults to true.
- boolean
- Indicates if the active user can change sharing to app level. Defaults to true.
- boolean
- Indicates if the active user can change sharing to system level. Defaults to true.
- boolean
- Indicates if the active user can change sharing to user level. Defaults to true.
- can
Write 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.
- 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 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_ boolperms - Indicates if the active user can change permissions for this object. Defaults to true.
- bool
- Indicates if the active user can change sharing to app level. Defaults to true.
- bool
- Indicates if the active user can change sharing to system level. Defaults to true.
- 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.
- 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 String
- 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 BooleanPerms - Indicates if the active user can change permissions for this object. Defaults to true.
- Boolean
- Indicates if the active user can change sharing to app level. Defaults to true.
- Boolean
- Indicates if the active user can change sharing to system level. Defaults to true.
- Boolean
- Indicates if the active user can change sharing to user level. Defaults to true.
- can
Write 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.
- 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.