Documentation
¶
Index ¶
- Constants
- func DiagsToError(diags diag.Diagnostics) error
- func LogAndAddError(ctx context.Context, diags *diag.Diagnostics, summary, detail string)
- func LogAndAddErrorBeta(ctx context.Context, diags *diag.Diagnostics, name string, ...)
- func LogAndAddWarning(ctx context.Context, diags *diag.Diagnostics, summary, detail string)
- func LogAndAddWarningBeta(ctx context.Context, diags *diag.Diagnostics, name string, ...)
- type ProviderData
- type ResourceType
Constants ¶
View Source
const Separator = ","
Separator used for concatenation of TF-internal resource ID
Variables ¶
This section is empty.
Functions ¶
func DiagsToError ¶
func DiagsToError(diags diag.Diagnostics) error
DiagsToError Converts TF diagnostics' errors into an error with a human-readable description. If there are no errors, the output is nil
func LogAndAddError ¶
func LogAndAddError(ctx context.Context, diags *diag.Diagnostics, summary, detail string)
LogAndAddError Logs the error and adds it to the diags
func LogAndAddErrorBeta ¶ added in v0.20.0
func LogAndAddErrorBeta(ctx context.Context, diags *diag.Diagnostics, name string, resourceType ResourceType)
func LogAndAddWarning ¶
func LogAndAddWarning(ctx context.Context, diags *diag.Diagnostics, summary, detail string)
LogAndAddWarning Logs the warning and adds it to the diags
func LogAndAddWarningBeta ¶ added in v0.20.0
func LogAndAddWarningBeta(ctx context.Context, diags *diag.Diagnostics, name string, resourceType ResourceType)
Types ¶
type ProviderData ¶
type ProviderData struct {
RoundTripper http.RoundTripper
ServiceAccountEmail string // Deprecated: ServiceAccountEmail is not required and will be removed after 12th June 2025.
// Deprecated: Use DefaultRegion instead
Region string
DefaultRegion string
AuthorizationCustomEndpoint string
CdnCustomEndpoint string
DnsCustomEndpoint string
GitCustomEndpoint string
IaaSCustomEndpoint string
LoadBalancerCustomEndpoint string
LogMeCustomEndpoint string
MariaDBCustomEndpoint string
MongoDBFlexCustomEndpoint string
ModelServingCustomEndpoint string
ObjectStorageCustomEndpoint string
ObservabilityCustomEndpoint string
OpenSearchCustomEndpoint string
PostgresFlexCustomEndpoint string
RabbitMQCustomEndpoint string
RedisCustomEndpoint string
ResourceManagerCustomEndpoint string
ScfCustomEndpoint string
SecretsManagerCustomEndpoint string
SQLServerFlexCustomEndpoint string
ServerBackupCustomEndpoint string
ServerUpdateCustomEndpoint string
SKECustomEndpoint string
ServiceEnablementCustomEndpoint string
ServiceAccountCustomEndpoint string
EnableBetaResources bool
Experiments []string
Version string // version of the STACKIT Terraform provider
}
func (*ProviderData) GetRegion ¶ added in v0.44.0
func (pd *ProviderData) GetRegion() string
GetRegion returns the effective region for the provider, falling back to the deprecated _region_ attribute
func (*ProviderData) GetRegionWithOverride ¶ added in v0.56.0
func (pd *ProviderData) GetRegionWithOverride(overrideRegion types.String) string
type ResourceType ¶ added in v0.57.0
type ResourceType string
const ( Resource ResourceType = "resource" Datasource ResourceType = "datasource" )
Click to show internal directories.
Click to hide internal directories.