Documentation ¶
Index ¶
- type Args
- type BasicAlgorithm
- type BasicAlgorithmAttributes
- func (ba BasicAlgorithmAttributes) CooldownPeriod() terra.StringValue
- func (ba BasicAlgorithmAttributes) InternalRef() (terra.Reference, error)
- func (ba BasicAlgorithmAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ba BasicAlgorithmAttributes) InternalWithRef(ref terra.Reference) BasicAlgorithmAttributes
- func (ba BasicAlgorithmAttributes) YarnConfig() terra.ListValue[BasicAlgorithmYarnConfigAttributes]
- type BasicAlgorithmState
- type BasicAlgorithmYarnConfig
- type BasicAlgorithmYarnConfigAttributes
- func (yc BasicAlgorithmYarnConfigAttributes) GracefulDecommissionTimeout() terra.StringValue
- func (yc BasicAlgorithmYarnConfigAttributes) InternalRef() (terra.Reference, error)
- func (yc BasicAlgorithmYarnConfigAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (yc BasicAlgorithmYarnConfigAttributes) InternalWithRef(ref terra.Reference) BasicAlgorithmYarnConfigAttributes
- func (yc BasicAlgorithmYarnConfigAttributes) ScaleDownFactor() terra.NumberValue
- func (yc BasicAlgorithmYarnConfigAttributes) ScaleDownMinWorkerFraction() terra.NumberValue
- func (yc BasicAlgorithmYarnConfigAttributes) ScaleUpFactor() terra.NumberValue
- func (yc BasicAlgorithmYarnConfigAttributes) ScaleUpMinWorkerFraction() terra.NumberValue
- type BasicAlgorithmYarnConfigState
- type Resource
- func (gdap *Resource) Attributes() googleDataprocAutoscalingPolicyAttributes
- func (gdap *Resource) Configuration() interface{}
- func (gdap *Resource) DependOn() terra.Reference
- func (gdap *Resource) Dependencies() terra.Dependencies
- func (gdap *Resource) ImportState(state io.Reader) error
- func (gdap *Resource) LifecycleManagement() *terra.Lifecycle
- func (gdap *Resource) LocalName() string
- func (gdap *Resource) State() (*googleDataprocAutoscalingPolicyState, bool)
- func (gdap *Resource) StateMust() *googleDataprocAutoscalingPolicyState
- func (gdap *Resource) Type() string
- type SecondaryWorkerConfig
- type SecondaryWorkerConfigAttributes
- func (swc SecondaryWorkerConfigAttributes) InternalRef() (terra.Reference, error)
- func (swc SecondaryWorkerConfigAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (swc SecondaryWorkerConfigAttributes) InternalWithRef(ref terra.Reference) SecondaryWorkerConfigAttributes
- func (swc SecondaryWorkerConfigAttributes) MaxInstances() terra.NumberValue
- func (swc SecondaryWorkerConfigAttributes) MinInstances() terra.NumberValue
- func (swc SecondaryWorkerConfigAttributes) Weight() terra.NumberValue
- type SecondaryWorkerConfigState
- 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
- type WorkerConfig
- type WorkerConfigAttributes
- func (wc WorkerConfigAttributes) InternalRef() (terra.Reference, error)
- func (wc WorkerConfigAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (wc WorkerConfigAttributes) InternalWithRef(ref terra.Reference) WorkerConfigAttributes
- func (wc WorkerConfigAttributes) MaxInstances() terra.NumberValue
- func (wc WorkerConfigAttributes) MinInstances() terra.NumberValue
- func (wc WorkerConfigAttributes) Weight() terra.NumberValue
- type WorkerConfigState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // Location: string, optional Location terra.StringValue `hcl:"location,attr"` // PolicyId: string, required PolicyId terra.StringValue `hcl:"policy_id,attr" validate:"required"` // Project: string, optional Project terra.StringValue `hcl:"project,attr"` // BasicAlgorithm: optional BasicAlgorithm *BasicAlgorithm `hcl:"basic_algorithm,block"` // SecondaryWorkerConfig: optional SecondaryWorkerConfig *SecondaryWorkerConfig `hcl:"secondary_worker_config,block"` // Timeouts: optional Timeouts *Timeouts `hcl:"timeouts,block"` // WorkerConfig: optional WorkerConfig *WorkerConfig `hcl:"worker_config,block"` }
Args contains the configurations for google_dataproc_autoscaling_policy.
type BasicAlgorithm ¶
type BasicAlgorithm struct { // CooldownPeriod: string, optional CooldownPeriod terra.StringValue `hcl:"cooldown_period,attr"` // BasicAlgorithmYarnConfig: required YarnConfig *BasicAlgorithmYarnConfig `hcl:"yarn_config,block" validate:"required"` }
type BasicAlgorithmAttributes ¶
type BasicAlgorithmAttributes struct {
// contains filtered or unexported fields
}
func (BasicAlgorithmAttributes) CooldownPeriod ¶
func (ba BasicAlgorithmAttributes) CooldownPeriod() terra.StringValue
func (BasicAlgorithmAttributes) InternalRef ¶
func (ba BasicAlgorithmAttributes) InternalRef() (terra.Reference, error)
func (BasicAlgorithmAttributes) InternalTokens ¶
func (ba BasicAlgorithmAttributes) InternalTokens() (hclwrite.Tokens, error)
func (BasicAlgorithmAttributes) InternalWithRef ¶
func (ba BasicAlgorithmAttributes) InternalWithRef(ref terra.Reference) BasicAlgorithmAttributes
func (BasicAlgorithmAttributes) YarnConfig ¶
func (ba BasicAlgorithmAttributes) YarnConfig() terra.ListValue[BasicAlgorithmYarnConfigAttributes]
type BasicAlgorithmState ¶
type BasicAlgorithmState struct { CooldownPeriod string `json:"cooldown_period"` YarnConfig []BasicAlgorithmYarnConfigState `json:"yarn_config"` }
type BasicAlgorithmYarnConfig ¶
type BasicAlgorithmYarnConfig struct { // GracefulDecommissionTimeout: string, required GracefulDecommissionTimeout terra.StringValue `hcl:"graceful_decommission_timeout,attr" validate:"required"` // ScaleDownFactor: number, required ScaleDownFactor terra.NumberValue `hcl:"scale_down_factor,attr" validate:"required"` // ScaleDownMinWorkerFraction: number, optional ScaleDownMinWorkerFraction terra.NumberValue `hcl:"scale_down_min_worker_fraction,attr"` // ScaleUpFactor: number, required ScaleUpFactor terra.NumberValue `hcl:"scale_up_factor,attr" validate:"required"` // ScaleUpMinWorkerFraction: number, optional ScaleUpMinWorkerFraction terra.NumberValue `hcl:"scale_up_min_worker_fraction,attr"` }
type BasicAlgorithmYarnConfigAttributes ¶
type BasicAlgorithmYarnConfigAttributes struct {
// contains filtered or unexported fields
}
func (BasicAlgorithmYarnConfigAttributes) GracefulDecommissionTimeout ¶
func (yc BasicAlgorithmYarnConfigAttributes) GracefulDecommissionTimeout() terra.StringValue
func (BasicAlgorithmYarnConfigAttributes) InternalRef ¶
func (yc BasicAlgorithmYarnConfigAttributes) InternalRef() (terra.Reference, error)
func (BasicAlgorithmYarnConfigAttributes) InternalTokens ¶
func (yc BasicAlgorithmYarnConfigAttributes) InternalTokens() (hclwrite.Tokens, error)
func (BasicAlgorithmYarnConfigAttributes) InternalWithRef ¶
func (yc BasicAlgorithmYarnConfigAttributes) InternalWithRef(ref terra.Reference) BasicAlgorithmYarnConfigAttributes
func (BasicAlgorithmYarnConfigAttributes) ScaleDownFactor ¶
func (yc BasicAlgorithmYarnConfigAttributes) ScaleDownFactor() terra.NumberValue
func (BasicAlgorithmYarnConfigAttributes) ScaleDownMinWorkerFraction ¶
func (yc BasicAlgorithmYarnConfigAttributes) ScaleDownMinWorkerFraction() terra.NumberValue
func (BasicAlgorithmYarnConfigAttributes) ScaleUpFactor ¶
func (yc BasicAlgorithmYarnConfigAttributes) ScaleUpFactor() terra.NumberValue
func (BasicAlgorithmYarnConfigAttributes) ScaleUpMinWorkerFraction ¶
func (yc BasicAlgorithmYarnConfigAttributes) ScaleUpMinWorkerFraction() terra.NumberValue
type BasicAlgorithmYarnConfigState ¶
type BasicAlgorithmYarnConfigState struct { GracefulDecommissionTimeout string `json:"graceful_decommission_timeout"` ScaleDownFactor float64 `json:"scale_down_factor"` ScaleDownMinWorkerFraction float64 `json:"scale_down_min_worker_fraction"` ScaleUpFactor float64 `json:"scale_up_factor"` ScaleUpMinWorkerFraction float64 `json:"scale_up_min_worker_fraction"` }
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_dataproc_autoscaling_policy.
func (*Resource) Attributes ¶
func (gdap *Resource) Attributes() googleDataprocAutoscalingPolicyAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (gdap *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (gdap *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 SecondaryWorkerConfig ¶
type SecondaryWorkerConfig struct { // MaxInstances: number, optional MaxInstances terra.NumberValue `hcl:"max_instances,attr"` // MinInstances: number, optional MinInstances terra.NumberValue `hcl:"min_instances,attr"` // Weight: number, optional Weight terra.NumberValue `hcl:"weight,attr"` }
type SecondaryWorkerConfigAttributes ¶
type SecondaryWorkerConfigAttributes struct {
// contains filtered or unexported fields
}
func (SecondaryWorkerConfigAttributes) InternalRef ¶
func (swc SecondaryWorkerConfigAttributes) InternalRef() (terra.Reference, error)
func (SecondaryWorkerConfigAttributes) InternalTokens ¶
func (swc SecondaryWorkerConfigAttributes) InternalTokens() (hclwrite.Tokens, error)
func (SecondaryWorkerConfigAttributes) InternalWithRef ¶
func (swc SecondaryWorkerConfigAttributes) InternalWithRef(ref terra.Reference) SecondaryWorkerConfigAttributes
func (SecondaryWorkerConfigAttributes) MaxInstances ¶
func (swc SecondaryWorkerConfigAttributes) MaxInstances() terra.NumberValue
func (SecondaryWorkerConfigAttributes) MinInstances ¶
func (swc SecondaryWorkerConfigAttributes) MinInstances() terra.NumberValue
func (SecondaryWorkerConfigAttributes) Weight ¶
func (swc SecondaryWorkerConfigAttributes) Weight() terra.NumberValue
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
type TimeoutsState ¶
type WorkerConfig ¶
type WorkerConfig struct { // MaxInstances: number, required MaxInstances terra.NumberValue `hcl:"max_instances,attr" validate:"required"` // MinInstances: number, optional MinInstances terra.NumberValue `hcl:"min_instances,attr"` // Weight: number, optional Weight terra.NumberValue `hcl:"weight,attr"` }
type WorkerConfigAttributes ¶
type WorkerConfigAttributes struct {
// contains filtered or unexported fields
}
func (WorkerConfigAttributes) InternalRef ¶
func (wc WorkerConfigAttributes) InternalRef() (terra.Reference, error)
func (WorkerConfigAttributes) InternalTokens ¶
func (wc WorkerConfigAttributes) InternalTokens() (hclwrite.Tokens, error)
func (WorkerConfigAttributes) InternalWithRef ¶
func (wc WorkerConfigAttributes) InternalWithRef(ref terra.Reference) WorkerConfigAttributes
func (WorkerConfigAttributes) MaxInstances ¶
func (wc WorkerConfigAttributes) MaxInstances() terra.NumberValue
func (WorkerConfigAttributes) MinInstances ¶
func (wc WorkerConfigAttributes) MinInstances() terra.NumberValue
func (WorkerConfigAttributes) Weight ¶
func (wc WorkerConfigAttributes) Weight() terra.NumberValue
type WorkerConfigState ¶
Click to show internal directories.
Click to hide internal directories.