google_dataproc_autoscaling_policy

package
v0.0.0-...-4deecce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 (BasicAlgorithmAttributes) YarnConfig

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 (BasicAlgorithmYarnConfigAttributes) InternalTokens

func (BasicAlgorithmYarnConfigAttributes) InternalWithRef

func (BasicAlgorithmYarnConfigAttributes) ScaleDownFactor

func (BasicAlgorithmYarnConfigAttributes) ScaleDownMinWorkerFraction

func (yc BasicAlgorithmYarnConfigAttributes) ScaleDownMinWorkerFraction() terra.NumberValue

func (BasicAlgorithmYarnConfigAttributes) ScaleUpFactor

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 New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

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) DependOn

func (gdap *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (gdap *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (gdap *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (gdap *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gdap *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gdap *Resource) State() (*googleDataprocAutoscalingPolicyState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (gdap *Resource) StateMust() *googleDataprocAutoscalingPolicyState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (gdap *Resource) Type() string

Type returns the Terraform object type 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 (SecondaryWorkerConfigAttributes) InternalTokens

func (swc SecondaryWorkerConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SecondaryWorkerConfigAttributes) InternalWithRef

func (SecondaryWorkerConfigAttributes) MaxInstances

func (SecondaryWorkerConfigAttributes) MinInstances

func (SecondaryWorkerConfigAttributes) Weight

type SecondaryWorkerConfigState

type SecondaryWorkerConfigState struct {
	MaxInstances float64 `json:"max_instances"`
	MinInstances float64 `json:"min_instances"`
	Weight       float64 `json:"weight"`
}

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 (TimeoutsAttributes) Delete

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

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

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 (WorkerConfigAttributes) MaxInstances

func (wc WorkerConfigAttributes) MaxInstances() terra.NumberValue

func (WorkerConfigAttributes) MinInstances

func (wc WorkerConfigAttributes) MinInstances() terra.NumberValue

func (WorkerConfigAttributes) Weight

type WorkerConfigState

type WorkerConfigState struct {
	MaxInstances float64 `json:"max_instances"`
	MinInstances float64 `json:"min_instances"`
	Weight       float64 `json:"weight"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL