Documentation ¶
Index ¶
- type Args
- type AutoscalingConfig
- type AutoscalingConfigAttributes
- func (ac AutoscalingConfigAttributes) AutoscalingLimits() terra.ListValue[AutoscalingConfigAutoscalingLimitsAttributes]
- func (ac AutoscalingConfigAttributes) AutoscalingTargets() terra.ListValue[AutoscalingConfigAutoscalingTargetsAttributes]
- func (ac AutoscalingConfigAttributes) InternalRef() (terra.Reference, error)
- func (ac AutoscalingConfigAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ac AutoscalingConfigAttributes) InternalWithRef(ref terra.Reference) AutoscalingConfigAttributes
- type AutoscalingConfigAutoscalingLimits
- type AutoscalingConfigAutoscalingLimitsAttributes
- func (al AutoscalingConfigAutoscalingLimitsAttributes) InternalRef() (terra.Reference, error)
- func (al AutoscalingConfigAutoscalingLimitsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (al AutoscalingConfigAutoscalingLimitsAttributes) InternalWithRef(ref terra.Reference) AutoscalingConfigAutoscalingLimitsAttributes
- func (al AutoscalingConfigAutoscalingLimitsAttributes) MaxNodes() terra.NumberValue
- func (al AutoscalingConfigAutoscalingLimitsAttributes) MaxProcessingUnits() terra.NumberValue
- func (al AutoscalingConfigAutoscalingLimitsAttributes) MinNodes() terra.NumberValue
- func (al AutoscalingConfigAutoscalingLimitsAttributes) MinProcessingUnits() terra.NumberValue
- type AutoscalingConfigAutoscalingLimitsState
- type AutoscalingConfigAutoscalingTargets
- type AutoscalingConfigAutoscalingTargetsAttributes
- func (at AutoscalingConfigAutoscalingTargetsAttributes) HighPriorityCpuUtilizationPercent() terra.NumberValue
- func (at AutoscalingConfigAutoscalingTargetsAttributes) InternalRef() (terra.Reference, error)
- func (at AutoscalingConfigAutoscalingTargetsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (at AutoscalingConfigAutoscalingTargetsAttributes) InternalWithRef(ref terra.Reference) AutoscalingConfigAutoscalingTargetsAttributes
- func (at AutoscalingConfigAutoscalingTargetsAttributes) StorageUtilizationPercent() terra.NumberValue
- type AutoscalingConfigAutoscalingTargetsState
- type AutoscalingConfigState
- type DataArgs
- type DataAutoscalingConfigAttributes
- func (ac DataAutoscalingConfigAttributes) AutoscalingLimits() terra.ListValue[DataAutoscalingConfigAutoscalingLimitsAttributes]
- func (ac DataAutoscalingConfigAttributes) AutoscalingTargets() terra.ListValue[DataAutoscalingConfigAutoscalingTargetsAttributes]
- func (ac DataAutoscalingConfigAttributes) InternalRef() (terra.Reference, error)
- func (ac DataAutoscalingConfigAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ac DataAutoscalingConfigAttributes) InternalWithRef(ref terra.Reference) DataAutoscalingConfigAttributes
- type DataAutoscalingConfigAutoscalingLimitsAttributes
- func (al DataAutoscalingConfigAutoscalingLimitsAttributes) InternalRef() (terra.Reference, error)
- func (al DataAutoscalingConfigAutoscalingLimitsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (al DataAutoscalingConfigAutoscalingLimitsAttributes) InternalWithRef(ref terra.Reference) DataAutoscalingConfigAutoscalingLimitsAttributes
- func (al DataAutoscalingConfigAutoscalingLimitsAttributes) MaxNodes() terra.NumberValue
- func (al DataAutoscalingConfigAutoscalingLimitsAttributes) MaxProcessingUnits() terra.NumberValue
- func (al DataAutoscalingConfigAutoscalingLimitsAttributes) MinNodes() terra.NumberValue
- func (al DataAutoscalingConfigAutoscalingLimitsAttributes) MinProcessingUnits() terra.NumberValue
- type DataAutoscalingConfigAutoscalingLimitsState
- type DataAutoscalingConfigAutoscalingTargetsAttributes
- func (at DataAutoscalingConfigAutoscalingTargetsAttributes) HighPriorityCpuUtilizationPercent() terra.NumberValue
- func (at DataAutoscalingConfigAutoscalingTargetsAttributes) InternalRef() (terra.Reference, error)
- func (at DataAutoscalingConfigAutoscalingTargetsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (at DataAutoscalingConfigAutoscalingTargetsAttributes) InternalWithRef(ref terra.Reference) DataAutoscalingConfigAutoscalingTargetsAttributes
- func (at DataAutoscalingConfigAutoscalingTargetsAttributes) StorageUtilizationPercent() terra.NumberValue
- type DataAutoscalingConfigAutoscalingTargetsState
- type DataAutoscalingConfigState
- type DataSource
- type Resource
- func (gsi *Resource) Attributes() googleSpannerInstanceAttributes
- func (gsi *Resource) Configuration() interface{}
- func (gsi *Resource) DependOn() terra.Reference
- func (gsi *Resource) Dependencies() terra.Dependencies
- func (gsi *Resource) ImportState(state io.Reader) error
- func (gsi *Resource) LifecycleManagement() *terra.Lifecycle
- func (gsi *Resource) LocalName() string
- func (gsi *Resource) State() (*googleSpannerInstanceState, bool)
- func (gsi *Resource) StateMust() *googleSpannerInstanceState
- func (gsi *Resource) Type() string
- type Timeouts
- type TimeoutsAttributes
- func (t TimeoutsAttributes) Create() terra.StringValue
- func (t TimeoutsAttributes) Delete() terra.StringValue
- func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
- func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
- func (t TimeoutsAttributes) Update() terra.StringValue
- type TimeoutsState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { // Config: string, required Config terra.StringValue `hcl:"config,attr" validate:"required"` // DisplayName: string, required DisplayName terra.StringValue `hcl:"display_name,attr" validate:"required"` // ForceDestroy: bool, optional ForceDestroy terra.BoolValue `hcl:"force_destroy,attr"` // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // Labels: map of string, optional Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"` // Name: string, optional Name terra.StringValue `hcl:"name,attr"` // NumNodes: number, optional NumNodes terra.NumberValue `hcl:"num_nodes,attr"` // ProcessingUnits: number, optional ProcessingUnits terra.NumberValue `hcl:"processing_units,attr"` // Project: string, optional Project terra.StringValue `hcl:"project,attr"` // AutoscalingConfig: optional AutoscalingConfig *AutoscalingConfig `hcl:"autoscaling_config,block"` // Timeouts: optional Timeouts *Timeouts `hcl:"timeouts,block"` }
Args contains the configurations for google_spanner_instance.
type AutoscalingConfig ¶
type AutoscalingConfig struct { // AutoscalingConfigAutoscalingLimits: optional AutoscalingLimits *AutoscalingConfigAutoscalingLimits `hcl:"autoscaling_limits,block"` // AutoscalingConfigAutoscalingTargets: optional AutoscalingTargets *AutoscalingConfigAutoscalingTargets `hcl:"autoscaling_targets,block"` }
type AutoscalingConfigAttributes ¶
type AutoscalingConfigAttributes struct {
// contains filtered or unexported fields
}
func (AutoscalingConfigAttributes) AutoscalingLimits ¶
func (ac AutoscalingConfigAttributes) AutoscalingLimits() terra.ListValue[AutoscalingConfigAutoscalingLimitsAttributes]
func (AutoscalingConfigAttributes) AutoscalingTargets ¶
func (ac AutoscalingConfigAttributes) AutoscalingTargets() terra.ListValue[AutoscalingConfigAutoscalingTargetsAttributes]
func (AutoscalingConfigAttributes) InternalRef ¶
func (ac AutoscalingConfigAttributes) InternalRef() (terra.Reference, error)
func (AutoscalingConfigAttributes) InternalTokens ¶
func (ac AutoscalingConfigAttributes) InternalTokens() (hclwrite.Tokens, error)
func (AutoscalingConfigAttributes) InternalWithRef ¶
func (ac AutoscalingConfigAttributes) InternalWithRef(ref terra.Reference) AutoscalingConfigAttributes
type AutoscalingConfigAutoscalingLimits ¶
type AutoscalingConfigAutoscalingLimits struct { // MaxNodes: number, optional MaxNodes terra.NumberValue `hcl:"max_nodes,attr"` // MaxProcessingUnits: number, optional MaxProcessingUnits terra.NumberValue `hcl:"max_processing_units,attr"` // MinNodes: number, optional MinNodes terra.NumberValue `hcl:"min_nodes,attr"` // MinProcessingUnits: number, optional MinProcessingUnits terra.NumberValue `hcl:"min_processing_units,attr"` }
type AutoscalingConfigAutoscalingLimitsAttributes ¶
type AutoscalingConfigAutoscalingLimitsAttributes struct {
// contains filtered or unexported fields
}
func (AutoscalingConfigAutoscalingLimitsAttributes) InternalRef ¶
func (al AutoscalingConfigAutoscalingLimitsAttributes) InternalRef() (terra.Reference, error)
func (AutoscalingConfigAutoscalingLimitsAttributes) InternalTokens ¶
func (al AutoscalingConfigAutoscalingLimitsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (AutoscalingConfigAutoscalingLimitsAttributes) InternalWithRef ¶
func (al AutoscalingConfigAutoscalingLimitsAttributes) InternalWithRef(ref terra.Reference) AutoscalingConfigAutoscalingLimitsAttributes
func (AutoscalingConfigAutoscalingLimitsAttributes) MaxNodes ¶
func (al AutoscalingConfigAutoscalingLimitsAttributes) MaxNodes() terra.NumberValue
func (AutoscalingConfigAutoscalingLimitsAttributes) MaxProcessingUnits ¶
func (al AutoscalingConfigAutoscalingLimitsAttributes) MaxProcessingUnits() terra.NumberValue
func (AutoscalingConfigAutoscalingLimitsAttributes) MinNodes ¶
func (al AutoscalingConfigAutoscalingLimitsAttributes) MinNodes() terra.NumberValue
func (AutoscalingConfigAutoscalingLimitsAttributes) MinProcessingUnits ¶
func (al AutoscalingConfigAutoscalingLimitsAttributes) MinProcessingUnits() terra.NumberValue
type AutoscalingConfigAutoscalingTargets ¶
type AutoscalingConfigAutoscalingTargets struct { // HighPriorityCpuUtilizationPercent: number, optional HighPriorityCpuUtilizationPercent terra.NumberValue `hcl:"high_priority_cpu_utilization_percent,attr"` // StorageUtilizationPercent: number, optional StorageUtilizationPercent terra.NumberValue `hcl:"storage_utilization_percent,attr"` }
type AutoscalingConfigAutoscalingTargetsAttributes ¶
type AutoscalingConfigAutoscalingTargetsAttributes struct {
// contains filtered or unexported fields
}
func (AutoscalingConfigAutoscalingTargetsAttributes) HighPriorityCpuUtilizationPercent ¶
func (at AutoscalingConfigAutoscalingTargetsAttributes) HighPriorityCpuUtilizationPercent() terra.NumberValue
func (AutoscalingConfigAutoscalingTargetsAttributes) InternalRef ¶
func (at AutoscalingConfigAutoscalingTargetsAttributes) InternalRef() (terra.Reference, error)
func (AutoscalingConfigAutoscalingTargetsAttributes) InternalTokens ¶
func (at AutoscalingConfigAutoscalingTargetsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (AutoscalingConfigAutoscalingTargetsAttributes) InternalWithRef ¶
func (at AutoscalingConfigAutoscalingTargetsAttributes) InternalWithRef(ref terra.Reference) AutoscalingConfigAutoscalingTargetsAttributes
func (AutoscalingConfigAutoscalingTargetsAttributes) StorageUtilizationPercent ¶
func (at AutoscalingConfigAutoscalingTargetsAttributes) StorageUtilizationPercent() terra.NumberValue
type AutoscalingConfigState ¶
type AutoscalingConfigState struct { AutoscalingLimits []AutoscalingConfigAutoscalingLimitsState `json:"autoscaling_limits"` AutoscalingTargets []AutoscalingConfigAutoscalingTargetsState `json:"autoscaling_targets"` }
type DataArgs ¶
type DataArgs struct { // Config: string, optional Config terra.StringValue `hcl:"config,attr"` // DisplayName: string, optional DisplayName terra.StringValue `hcl:"display_name,attr"` // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // Project: string, optional Project terra.StringValue `hcl:"project,attr"` }
DataArgs contains the configurations for google_spanner_instance.
type DataAutoscalingConfigAttributes ¶
type DataAutoscalingConfigAttributes struct {
// contains filtered or unexported fields
}
func (DataAutoscalingConfigAttributes) AutoscalingLimits ¶
func (ac DataAutoscalingConfigAttributes) AutoscalingLimits() terra.ListValue[DataAutoscalingConfigAutoscalingLimitsAttributes]
func (DataAutoscalingConfigAttributes) AutoscalingTargets ¶
func (ac DataAutoscalingConfigAttributes) AutoscalingTargets() terra.ListValue[DataAutoscalingConfigAutoscalingTargetsAttributes]
func (DataAutoscalingConfigAttributes) InternalRef ¶
func (ac DataAutoscalingConfigAttributes) InternalRef() (terra.Reference, error)
func (DataAutoscalingConfigAttributes) InternalTokens ¶
func (ac DataAutoscalingConfigAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataAutoscalingConfigAttributes) InternalWithRef ¶
func (ac DataAutoscalingConfigAttributes) InternalWithRef(ref terra.Reference) DataAutoscalingConfigAttributes
type DataAutoscalingConfigAutoscalingLimitsAttributes ¶
type DataAutoscalingConfigAutoscalingLimitsAttributes struct {
// contains filtered or unexported fields
}
func (DataAutoscalingConfigAutoscalingLimitsAttributes) InternalRef ¶
func (al DataAutoscalingConfigAutoscalingLimitsAttributes) InternalRef() (terra.Reference, error)
func (DataAutoscalingConfigAutoscalingLimitsAttributes) InternalTokens ¶
func (al DataAutoscalingConfigAutoscalingLimitsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataAutoscalingConfigAutoscalingLimitsAttributes) InternalWithRef ¶
func (al DataAutoscalingConfigAutoscalingLimitsAttributes) InternalWithRef(ref terra.Reference) DataAutoscalingConfigAutoscalingLimitsAttributes
func (DataAutoscalingConfigAutoscalingLimitsAttributes) MaxNodes ¶
func (al DataAutoscalingConfigAutoscalingLimitsAttributes) MaxNodes() terra.NumberValue
func (DataAutoscalingConfigAutoscalingLimitsAttributes) MaxProcessingUnits ¶
func (al DataAutoscalingConfigAutoscalingLimitsAttributes) MaxProcessingUnits() terra.NumberValue
func (DataAutoscalingConfigAutoscalingLimitsAttributes) MinNodes ¶
func (al DataAutoscalingConfigAutoscalingLimitsAttributes) MinNodes() terra.NumberValue
func (DataAutoscalingConfigAutoscalingLimitsAttributes) MinProcessingUnits ¶
func (al DataAutoscalingConfigAutoscalingLimitsAttributes) MinProcessingUnits() terra.NumberValue
type DataAutoscalingConfigAutoscalingTargetsAttributes ¶
type DataAutoscalingConfigAutoscalingTargetsAttributes struct {
// contains filtered or unexported fields
}
func (DataAutoscalingConfigAutoscalingTargetsAttributes) HighPriorityCpuUtilizationPercent ¶
func (at DataAutoscalingConfigAutoscalingTargetsAttributes) HighPriorityCpuUtilizationPercent() terra.NumberValue
func (DataAutoscalingConfigAutoscalingTargetsAttributes) InternalRef ¶
func (at DataAutoscalingConfigAutoscalingTargetsAttributes) InternalRef() (terra.Reference, error)
func (DataAutoscalingConfigAutoscalingTargetsAttributes) InternalTokens ¶
func (at DataAutoscalingConfigAutoscalingTargetsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataAutoscalingConfigAutoscalingTargetsAttributes) InternalWithRef ¶
func (at DataAutoscalingConfigAutoscalingTargetsAttributes) InternalWithRef(ref terra.Reference) DataAutoscalingConfigAutoscalingTargetsAttributes
func (DataAutoscalingConfigAutoscalingTargetsAttributes) StorageUtilizationPercent ¶
func (at DataAutoscalingConfigAutoscalingTargetsAttributes) StorageUtilizationPercent() terra.NumberValue
type DataAutoscalingConfigState ¶
type DataAutoscalingConfigState struct { AutoscalingLimits []DataAutoscalingConfigAutoscalingLimitsState `json:"autoscaling_limits"` AutoscalingTargets []DataAutoscalingConfigAutoscalingTargetsState `json:"autoscaling_targets"` }
type DataSource ¶
DataSource represents the Terraform data resource google_spanner_instance.
func Data ¶
func Data(name string, args DataArgs) *DataSource
Data creates a new instance of DataSource.
func (*DataSource) Attributes ¶
func (gsi *DataSource) Attributes() dataGoogleSpannerInstanceAttributes
Attributes returns the attributes for DataSource.
func (*DataSource) Configuration ¶
func (gsi *DataSource) Configuration() interface{}
Configuration returns the configuration (args) for DataSource.
func (*DataSource) DataSource ¶
func (gsi *DataSource) DataSource() string
DataSource returns the Terraform object type for DataSource.
func (*DataSource) LocalName ¶
func (gsi *DataSource) LocalName() string
LocalName returns the local name for DataSource.
type Resource ¶
type Resource struct { Name string Args Args DependsOn terra.Dependencies Lifecycle *terra.Lifecycle // contains filtered or unexported fields }
Resource represents the Terraform resource google_spanner_instance.
func (*Resource) Attributes ¶
func (gsi *Resource) Attributes() googleSpannerInstanceAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (gsi *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (gsi *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block for Resource.
type Timeouts ¶
type Timeouts struct { // Create: string, optional Create terra.StringValue `hcl:"create,attr"` // Delete: string, optional Delete terra.StringValue `hcl:"delete,attr"` // Update: string, optional Update terra.StringValue `hcl:"update,attr"` }
type TimeoutsAttributes ¶
type TimeoutsAttributes struct {
// contains filtered or unexported fields
}
func (TimeoutsAttributes) Create ¶
func (t TimeoutsAttributes) Create() terra.StringValue
func (TimeoutsAttributes) Delete ¶
func (t TimeoutsAttributes) Delete() terra.StringValue
func (TimeoutsAttributes) InternalRef ¶
func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
func (TimeoutsAttributes) InternalTokens ¶
func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (TimeoutsAttributes) InternalWithRef ¶
func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
func (TimeoutsAttributes) Update ¶
func (t TimeoutsAttributes) Update() terra.StringValue