Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTokenResource ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.