1. Packages
  2. Logzio Provider
  3. API Docs
  4. LogShippingToken
logzio 1.17.1 published on Monday, Apr 14, 2025 by logzio

logzio.LogShippingToken

Explore with Pulumi AI

# Log Shipping Token Provider

Provides a Logz.io log shipping token resource. This can be used to create and manage Logz.io log shipping tokens.

Attribute Reference

  • token_id - (Integer) The log shipping token’s ID.
  • token - (String) The log shipping token itself.
  • updated_at - (Integer) Unix timestamp of when this log shipping token was last updated.
  • updated_by - (String) Email address of the last user to update this log shipping token.
  • created_at - (Integer) Unix timestamp of when this log shipping token was created.
  • created_by - (String) Email address of the user who created this log shipping token.

Create LogShippingToken Resource

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

Constructor syntax

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

@overload
def LogShippingToken(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     enabled: Optional[bool] = None,
                     log_shipping_token_id: Optional[str] = None,
                     name: Optional[str] = None)
func NewLogShippingToken(ctx *Context, name string, args *LogShippingTokenArgs, opts ...ResourceOption) (*LogShippingToken, error)
public LogShippingToken(string name, LogShippingTokenArgs? args = null, CustomResourceOptions? opts = null)
public LogShippingToken(String name, LogShippingTokenArgs args)
public LogShippingToken(String name, LogShippingTokenArgs args, CustomResourceOptions options)
type: logzio:LogShippingToken
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 LogShippingTokenArgs
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 LogShippingTokenArgs
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 LogShippingTokenArgs
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 LogShippingTokenArgs
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. LogShippingTokenArgs
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 logShippingTokenResource = new Logzio.LogShippingToken("logShippingTokenResource", new()
{
    Enabled = false,
    LogShippingTokenId = "string",
    Name = "string",
});
Copy
example, err := logzio.NewLogShippingToken(ctx, "logShippingTokenResource", &logzio.LogShippingTokenArgs{
Enabled: pulumi.Bool(false),
LogShippingTokenId: pulumi.String("string"),
Name: pulumi.String("string"),
})
Copy
var logShippingTokenResource = new LogShippingToken("logShippingTokenResource", LogShippingTokenArgs.builder()
    .enabled(false)
    .logShippingTokenId("string")
    .name("string")
    .build());
Copy
log_shipping_token_resource = logzio.LogShippingToken("logShippingTokenResource",
    enabled=False,
    log_shipping_token_id="string",
    name="string")
Copy
const logShippingTokenResource = new logzio.LogShippingToken("logShippingTokenResource", {
    enabled: false,
    logShippingTokenId: "string",
    name: "string",
});
Copy
type: logzio:LogShippingToken
properties:
    enabled: false
    logShippingTokenId: string
    name: string
Copy

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

enabled Boolean
logShippingTokenId String
name String
enabled boolean
logShippingTokenId string
name string
enabled Boolean
logShippingTokenId String
name String

Outputs

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

CreatedAt double
CreatedBy string
Id string
The provider-assigned unique ID for this managed resource.
Token string
TokenId double
UpdatedAt double
UpdatedBy string
CreatedAt float64
CreatedBy string
Id string
The provider-assigned unique ID for this managed resource.
Token string
TokenId float64
UpdatedAt float64
UpdatedBy string
createdAt Double
createdBy String
id String
The provider-assigned unique ID for this managed resource.
token String
tokenId Double
updatedAt Double
updatedBy String
createdAt number
createdBy string
id string
The provider-assigned unique ID for this managed resource.
token string
tokenId number
updatedAt number
updatedBy string
created_at float
created_by str
id str
The provider-assigned unique ID for this managed resource.
token str
token_id float
updated_at float
updated_by str
createdAt Number
createdBy String
id String
The provider-assigned unique ID for this managed resource.
token String
tokenId Number
updatedAt Number
updatedBy String

Look up Existing LogShippingToken Resource

Get an existing LogShippingToken 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?: LogShippingTokenState, opts?: CustomResourceOptions): LogShippingToken
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[float] = None,
        created_by: Optional[str] = None,
        enabled: Optional[bool] = None,
        log_shipping_token_id: Optional[str] = None,
        name: Optional[str] = None,
        token: Optional[str] = None,
        token_id: Optional[float] = None,
        updated_at: Optional[float] = None,
        updated_by: Optional[str] = None) -> LogShippingToken
func GetLogShippingToken(ctx *Context, name string, id IDInput, state *LogShippingTokenState, opts ...ResourceOption) (*LogShippingToken, error)
public static LogShippingToken Get(string name, Input<string> id, LogShippingTokenState? state, CustomResourceOptions? opts = null)
public static LogShippingToken get(String name, Output<String> id, LogShippingTokenState state, CustomResourceOptions options)
resources:  _:    type: logzio:LogShippingToken    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:
CreatedAt double
CreatedBy string
Enabled bool
LogShippingTokenId string
Name string
Token string
TokenId double
UpdatedAt double
UpdatedBy string
CreatedAt float64
CreatedBy string
Enabled bool
LogShippingTokenId string
Name string
Token string
TokenId float64
UpdatedAt float64
UpdatedBy string
createdAt Double
createdBy String
enabled Boolean
logShippingTokenId String
name String
token String
tokenId Double
updatedAt Double
updatedBy String
createdAt number
createdBy string
enabled boolean
logShippingTokenId string
name string
token string
tokenId number
updatedAt number
updatedBy string
createdAt Number
createdBy String
enabled Boolean
logShippingTokenId String
name String
token String
tokenId Number
updatedAt Number
updatedBy String

Package Details

Repository
logzio logzio/terraform-provider-logzio
License
Notes
This Pulumi package is based on the logzio Terraform Provider.