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.
- Learn more about log shipping tokens in the Logz.io Docs
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 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 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 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 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 String
- The unique name of the resource.
- args 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",
});
example, err := logzio.NewLogShippingToken(ctx, "logShippingTokenResource", &logzio.LogShippingTokenArgs{
Enabled: pulumi.Bool(false),
LogShippingTokenId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var logShippingTokenResource = new LogShippingToken("logShippingTokenResource", LogShippingTokenArgs.builder()
.enabled(false)
.logShippingTokenId("string")
.name("string")
.build());
log_shipping_token_resource = logzio.LogShippingToken("logShippingTokenResource",
enabled=False,
log_shipping_token_id="string",
name="string")
const logShippingTokenResource = new logzio.LogShippingToken("logShippingTokenResource", {
enabled: false,
logShippingTokenId: "string",
name: "string",
});
type: logzio:LogShippingToken
properties:
enabled: false
logShippingTokenId: string
name: string
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 bool
- Log
Shipping stringToken Id - Name string
- Enabled bool
- Log
Shipping stringToken Id - Name string
- enabled Boolean
- log
Shipping StringToken Id - name String
- enabled boolean
- log
Shipping stringToken Id - name string
- enabled bool
- log_
shipping_ strtoken_ id - name str
- enabled Boolean
- log
Shipping StringToken Id - name String
Outputs
All input properties are implicitly available as output properties. Additionally, the LogShippingToken resource produces the following output properties:
- 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
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
- 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.
- created_
at float - created_
by str - enabled bool
- log_
shipping_ strtoken_ id - name str
- token str
- token_
id float - updated_
at float - updated_
by str
Package Details
- Repository
- logzio logzio/terraform-provider-logzio
- License
- Notes
- This Pulumi package is based on the
logzio
Terraform Provider.