Documentation
¶
Index ¶
- Variables
- func FormatDeleteError(envName string, err error) string
- func KeyValueToSDK(input []KeyValueModel) []*client.KeyValueInput
- func ListStringToModel(input []string) []types.String
- func ListStringToSDK(input []basetypes.StringValue) []string
- func ListToModel(input []string) (types.List, diag.Diagnostics)
- func MaintenanceWindowsToSDK(maintenanceWindows []MaintenanceWindowModel) []*client.MaintenanceWindowSpecInput
- func ReorderByKey[M any, S any](model []M, items []S, getModelKey func(M) string, getItemKey func(S) string) []S
- func ReorderList(ctx context.Context, model types.List, input []string) ([]string, diag.Diagnostics)
- func ReservationsToModel(input []client.NodeReservation) (types.Set, diag.Diagnostics)
- func SetToModel(input []string) (types.Set, diag.Diagnostics)
- func ValidateDisconnected(envName string, errorCode string, appliedSpecRevision int64, ...) diag.Diagnostics
- func ValidateForceDestroy(envName string, forceDestroy bool) diag.Diagnostics
- func WaitForDeletion(ctx context.Context, resp *resource.DeleteResponse, envName string, ...)
- type EnvResourceBase
- type KeyValueModel
- type MaintenanceWindowModel
- type NodeGroupsModel
- type StatusCheckFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var DeletePollInterval = 30 * time.Second
View Source
var DeleteTimeout = 60 * time.Minute
View Source
var MFATimeout = 5 * time.Minute
Functions ¶
func FormatDeleteError ¶ added in v0.6.0
FormatDeleteError returns a user-friendly error message for delete failures.
func KeyValueToSDK ¶
func KeyValueToSDK(input []KeyValueModel) []*client.KeyValueInput
func ListStringToModel ¶
func ListStringToSDK ¶
func ListStringToSDK(input []basetypes.StringValue) []string
func ListToModel ¶
func ListToModel(input []string) (types.List, diag.Diagnostics)
func MaintenanceWindowsToSDK ¶
func MaintenanceWindowsToSDK(maintenanceWindows []MaintenanceWindowModel) []*client.MaintenanceWindowSpecInput
func ReorderByKey ¶ added in v0.6.0
func ReorderList ¶ added in v0.4.13
func ReservationsToModel ¶
func ReservationsToModel(input []client.NodeReservation) (types.Set, diag.Diagnostics)
func SetToModel ¶
func SetToModel(input []string) (types.Set, diag.Diagnostics)
func ValidateDisconnected ¶ added in v0.6.0
func ValidateDisconnected(envName string, errorCode string, appliedSpecRevision int64, skipDeprovision, allowDeleteDisconnected bool) diag.Diagnostics
ValidateDisconnected checks if the environment is DISCONNECTED and returns differentiated error messages based on whether the env was ever provisioned.
func ValidateForceDestroy ¶ added in v0.6.0
func ValidateForceDestroy(envName string, forceDestroy bool) diag.Diagnostics
ValidateForceDestroy checks if the environment is protected from deletion.
func WaitForDeletion ¶ added in v0.6.0
Types ¶
type EnvResourceBase ¶ added in v0.3.0
func (*EnvResourceBase) Configure ¶ added in v0.3.0
func (r *EnvResourceBase) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*EnvResourceBase) ImportState ¶ added in v0.3.0
func (r *EnvResourceBase) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*EnvResourceBase) ModifyPlan ¶ added in v0.3.0
func (r *EnvResourceBase) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
type KeyValueModel ¶
type MaintenanceWindowModel ¶
type NodeGroupsModel ¶
Click to show internal directories.
Click to hide internal directories.