token

package
v0.62.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTokenResource

func NewTokenResource() resource.Resource

NewTokenResource is a helper function to simplify the provider implementation.

Types

type Model

type Model struct {
	Id          types.String `tfsdk:"id"` // needed by TF
	ProjectId   types.String `tfsdk:"project_id"`
	Region      types.String `tfsdk:"region"`
	TokenId     types.String `tfsdk:"token_id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	State       types.String `tfsdk:"state"`
	ValidUntil  types.String `tfsdk:"valid_until"`
	TTLDuration types.String `tfsdk:"ttl_duration"`
	Token       types.String `tfsdk:"token"`
	// RotateWhenChanged is a map of arbitrary key/value pairs that will force
	// recreation of the token when they change, enabling token rotation based on
	// external conditions such as a rotating timestamp. Changing this forces a new
	// resource to be created.
	RotateWhenChanged types.Map `tfsdk:"rotate_when_changed"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL