InputsTcpSplunkTcpToken
# Resource: splunk.InputsTcpSplunkTcpToken
Manage receiver access using tokens.
Example Usage
using Pulumi;
using Splunk = Pulumi.Splunk;
class MyStack : Stack
{
public MyStack()
{
var tcpSplunkTcpToken = new Splunk.InputsTcpSplunkTcpToken("tcpSplunkTcpToken", new Splunk.InputsTcpSplunkTcpTokenArgs
{
Token = "D66C45B3-7C28-48A1-A13A-027914146501",
});
}
}
package main
import (
"github.com/pulumi/pulumi-splunk/sdk/go/splunk"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := splunk.NewInputsTcpSplunkTcpToken(ctx, "tcpSplunkTcpToken", &splunk.InputsTcpSplunkTcpTokenArgs{
Token: pulumi.String("D66C45B3-7C28-48A1-A13A-027914146501"),
})
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_splunk as splunk
tcp_splunk_tcp_token = splunk.InputsTcpSplunkTcpToken("tcpSplunkTcpToken", token="D66C45B3-7C28-48A1-A13A-027914146501")
import * as pulumi from "@pulumi/pulumi";
import * as splunk from "@pulumi/splunk";
const tcpSplunkTcpToken = new splunk.InputsTcpSplunkTcpToken("tcp_splunk_tcp_token", {
token: "D66C45B3-7C28-48A1-A13A-027914146501",
});
Create a InputsTcpSplunkTcpToken Resource
new InputsTcpSplunkTcpToken(name: string, args?: InputsTcpSplunkTcpTokenArgs, opts?: CustomResourceOptions);
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)
- name 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 str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name 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 string
- The unique name of the resource.
- args InputsTcpSplunkTcpTokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
InputsTcpSplunkTcpToken Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The InputsTcpSplunkTcpToken resource accepts the following input properties:
- Acl
Inputs
Tcp Splunk Tcp Token Acl Args The app/user context that is the namespace for the resource
- Name string
Required. Name for the token to create.
- Token string
Optional. Token value to use. If unspecified, a token is generated automatically.
- Acl
Inputs
Tcp Splunk Tcp Token Acl The app/user context that is the namespace for the resource
- Name string
Required. Name for the token to create.
- Token string
Optional. Token value to use. If unspecified, a token is generated automatically.
- acl
Inputs
Tcp Splunk Tcp Token Acl The app/user context that is the namespace for the resource
- name string
Required. Name for the token to create.
- token string
Optional. Token value to use. If unspecified, a token is generated automatically.
- acl
Inputs
Tcp Splunk Tcp Token Acl Args The app/user context that is the namespace for the resource
- name str
Required. Name for the token to create.
- token str
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 str
- The provider-assigned unique ID for this managed resource.
Look up an 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)
- 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.
The following state arguments are supported:
- Acl
Inputs
Tcp Splunk Tcp Token Acl Args The app/user context that is the namespace for the resource
- Name string
Required. Name for the token to create.
- Token string
Optional. Token value to use. If unspecified, a token is generated automatically.
- Acl
Inputs
Tcp Splunk Tcp Token Acl The app/user context that is the namespace for the resource
- Name string
Required. Name for the token to create.
- Token string
Optional. Token value to use. If unspecified, a token is generated automatically.
- acl
Inputs
Tcp Splunk Tcp Token Acl The app/user context that is the namespace for the resource
- name string
Required. Name for the token to create.
- token string
Optional. Token value to use. If unspecified, a token is generated automatically.
- acl
Inputs
Tcp Splunk Tcp Token Acl Args The app/user context that is the namespace for the resource
- name str
Required. Name for the token to create.
- token str
Optional. Token value to use. If unspecified, a token is generated automatically.
Supporting Types
InputsTcpSplunkTcpTokenAcl
Package Details
- Repository
- https://github.com/pulumi/pulumi-splunk
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
splunk
Terraform Provider.