Documentation ¶
Index ¶
- type Args
- type AutoscalingPolicy
- type AutoscalingPolicyAttributes
- func (ap AutoscalingPolicyAttributes) CooldownPeriod() terra.NumberValue
- func (ap AutoscalingPolicyAttributes) CpuUtilization() terra.ListValue[AutoscalingPolicyCpuUtilizationAttributes]
- func (ap AutoscalingPolicyAttributes) InternalRef() (terra.Reference, error)
- func (ap AutoscalingPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ap AutoscalingPolicyAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyAttributes
- func (ap AutoscalingPolicyAttributes) LoadBalancingUtilization() terra.ListValue[AutoscalingPolicyLoadBalancingUtilizationAttributes]
- func (ap AutoscalingPolicyAttributes) MaxReplicas() terra.NumberValue
- func (ap AutoscalingPolicyAttributes) Metric() terra.ListValue[AutoscalingPolicyMetricAttributes]
- func (ap AutoscalingPolicyAttributes) MinReplicas() terra.NumberValue
- func (ap AutoscalingPolicyAttributes) Mode() terra.StringValue
- func (ap AutoscalingPolicyAttributes) ScaleDownControl() terra.ListValue[AutoscalingPolicyScaleDownControlAttributes]
- func (ap AutoscalingPolicyAttributes) ScaleInControl() terra.ListValue[AutoscalingPolicyScaleInControlAttributes]
- func (ap AutoscalingPolicyAttributes) ScalingSchedules() terra.SetValue[AutoscalingPolicyScalingSchedulesAttributes]
- type AutoscalingPolicyCpuUtilization
- type AutoscalingPolicyCpuUtilizationAttributes
- func (cu AutoscalingPolicyCpuUtilizationAttributes) InternalRef() (terra.Reference, error)
- func (cu AutoscalingPolicyCpuUtilizationAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (cu AutoscalingPolicyCpuUtilizationAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyCpuUtilizationAttributes
- func (cu AutoscalingPolicyCpuUtilizationAttributes) PredictiveMethod() terra.StringValue
- func (cu AutoscalingPolicyCpuUtilizationAttributes) Target() terra.NumberValue
- type AutoscalingPolicyCpuUtilizationState
- type AutoscalingPolicyLoadBalancingUtilization
- type AutoscalingPolicyLoadBalancingUtilizationAttributes
- func (lbu AutoscalingPolicyLoadBalancingUtilizationAttributes) InternalRef() (terra.Reference, error)
- func (lbu AutoscalingPolicyLoadBalancingUtilizationAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (lbu AutoscalingPolicyLoadBalancingUtilizationAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyLoadBalancingUtilizationAttributes
- func (lbu AutoscalingPolicyLoadBalancingUtilizationAttributes) Target() terra.NumberValue
- type AutoscalingPolicyLoadBalancingUtilizationState
- type AutoscalingPolicyMetric
- type AutoscalingPolicyMetricAttributes
- func (m AutoscalingPolicyMetricAttributes) Filter() terra.StringValue
- func (m AutoscalingPolicyMetricAttributes) InternalRef() (terra.Reference, error)
- func (m AutoscalingPolicyMetricAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (m AutoscalingPolicyMetricAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyMetricAttributes
- func (m AutoscalingPolicyMetricAttributes) Name() terra.StringValue
- func (m AutoscalingPolicyMetricAttributes) SingleInstanceAssignment() terra.NumberValue
- func (m AutoscalingPolicyMetricAttributes) Target() terra.NumberValue
- func (m AutoscalingPolicyMetricAttributes) Type() terra.StringValue
- type AutoscalingPolicyMetricState
- type AutoscalingPolicyScaleDownControl
- type AutoscalingPolicyScaleDownControlAttributes
- func (sdc AutoscalingPolicyScaleDownControlAttributes) InternalRef() (terra.Reference, error)
- func (sdc AutoscalingPolicyScaleDownControlAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (sdc AutoscalingPolicyScaleDownControlAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyScaleDownControlAttributes
- func (sdc AutoscalingPolicyScaleDownControlAttributes) MaxScaledDownReplicas() ...
- func (sdc AutoscalingPolicyScaleDownControlAttributes) TimeWindowSec() terra.NumberValue
- type AutoscalingPolicyScaleDownControlMaxScaledDownReplicas
- type AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes
- func (msdr AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes) Fixed() terra.NumberValue
- func (msdr AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes) InternalRef() (terra.Reference, error)
- func (msdr AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (msdr AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes
- func (msdr AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes) Percent() terra.NumberValue
- type AutoscalingPolicyScaleDownControlMaxScaledDownReplicasState
- type AutoscalingPolicyScaleDownControlState
- type AutoscalingPolicyScaleInControl
- type AutoscalingPolicyScaleInControlAttributes
- func (sic AutoscalingPolicyScaleInControlAttributes) InternalRef() (terra.Reference, error)
- func (sic AutoscalingPolicyScaleInControlAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (sic AutoscalingPolicyScaleInControlAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyScaleInControlAttributes
- func (sic AutoscalingPolicyScaleInControlAttributes) MaxScaledInReplicas() terra.ListValue[AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes]
- func (sic AutoscalingPolicyScaleInControlAttributes) TimeWindowSec() terra.NumberValue
- type AutoscalingPolicyScaleInControlMaxScaledInReplicas
- type AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes
- func (msir AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes) Fixed() terra.NumberValue
- func (msir AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes) InternalRef() (terra.Reference, error)
- func (msir AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (msir AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes
- func (msir AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes) Percent() terra.NumberValue
- type AutoscalingPolicyScaleInControlMaxScaledInReplicasState
- type AutoscalingPolicyScaleInControlState
- type AutoscalingPolicyScalingSchedules
- type AutoscalingPolicyScalingSchedulesAttributes
- func (ss AutoscalingPolicyScalingSchedulesAttributes) Description() terra.StringValue
- func (ss AutoscalingPolicyScalingSchedulesAttributes) Disabled() terra.BoolValue
- func (ss AutoscalingPolicyScalingSchedulesAttributes) DurationSec() terra.NumberValue
- func (ss AutoscalingPolicyScalingSchedulesAttributes) InternalRef() (terra.Reference, error)
- func (ss AutoscalingPolicyScalingSchedulesAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ss AutoscalingPolicyScalingSchedulesAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyScalingSchedulesAttributes
- func (ss AutoscalingPolicyScalingSchedulesAttributes) MinRequiredReplicas() terra.NumberValue
- func (ss AutoscalingPolicyScalingSchedulesAttributes) Name() terra.StringValue
- func (ss AutoscalingPolicyScalingSchedulesAttributes) Schedule() terra.StringValue
- func (ss AutoscalingPolicyScalingSchedulesAttributes) TimeZone() terra.StringValue
- type AutoscalingPolicyScalingSchedulesState
- type AutoscalingPolicyState
- type Resource
- func (gca *Resource) Attributes() googleComputeAutoscalerAttributes
- func (gca *Resource) Configuration() interface{}
- func (gca *Resource) DependOn() terra.Reference
- func (gca *Resource) Dependencies() terra.Dependencies
- func (gca *Resource) ImportState(state io.Reader) error
- func (gca *Resource) LifecycleManagement() *terra.Lifecycle
- func (gca *Resource) LocalName() string
- func (gca *Resource) State() (*googleComputeAutoscalerState, bool)
- func (gca *Resource) StateMust() *googleComputeAutoscalerState
- func (gca *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 { // Description: string, optional Description terra.StringValue `hcl:"description,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"` // Target: string, required Target terra.StringValue `hcl:"target,attr" validate:"required"` // Zone: string, optional Zone terra.StringValue `hcl:"zone,attr"` // AutoscalingPolicy: required AutoscalingPolicy *AutoscalingPolicy `hcl:"autoscaling_policy,block" validate:"required"` // Timeouts: optional Timeouts *Timeouts `hcl:"timeouts,block"` }
Args contains the configurations for google_compute_autoscaler.
type AutoscalingPolicy ¶
type AutoscalingPolicy struct { // CooldownPeriod: number, optional CooldownPeriod terra.NumberValue `hcl:"cooldown_period,attr"` // MaxReplicas: number, required MaxReplicas terra.NumberValue `hcl:"max_replicas,attr" validate:"required"` // MinReplicas: number, required MinReplicas terra.NumberValue `hcl:"min_replicas,attr" validate:"required"` // Mode: string, optional Mode terra.StringValue `hcl:"mode,attr"` // AutoscalingPolicyCpuUtilization: optional CpuUtilization *AutoscalingPolicyCpuUtilization `hcl:"cpu_utilization,block"` // AutoscalingPolicyLoadBalancingUtilization: optional LoadBalancingUtilization *AutoscalingPolicyLoadBalancingUtilization `hcl:"load_balancing_utilization,block"` // AutoscalingPolicyMetric: min=0 Metric []AutoscalingPolicyMetric `hcl:"metric,block" validate:"min=0"` // AutoscalingPolicyScaleDownControl: optional ScaleDownControl *AutoscalingPolicyScaleDownControl `hcl:"scale_down_control,block"` // AutoscalingPolicyScaleInControl: optional ScaleInControl *AutoscalingPolicyScaleInControl `hcl:"scale_in_control,block"` // AutoscalingPolicyScalingSchedules: min=0 ScalingSchedules []AutoscalingPolicyScalingSchedules `hcl:"scaling_schedules,block" validate:"min=0"` }
type AutoscalingPolicyAttributes ¶
type AutoscalingPolicyAttributes struct {
// contains filtered or unexported fields
}
func (AutoscalingPolicyAttributes) CooldownPeriod ¶
func (ap AutoscalingPolicyAttributes) CooldownPeriod() terra.NumberValue
func (AutoscalingPolicyAttributes) CpuUtilization ¶
func (ap AutoscalingPolicyAttributes) CpuUtilization() terra.ListValue[AutoscalingPolicyCpuUtilizationAttributes]
func (AutoscalingPolicyAttributes) InternalRef ¶
func (ap AutoscalingPolicyAttributes) InternalRef() (terra.Reference, error)
func (AutoscalingPolicyAttributes) InternalTokens ¶
func (ap AutoscalingPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)
func (AutoscalingPolicyAttributes) InternalWithRef ¶
func (ap AutoscalingPolicyAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyAttributes
func (AutoscalingPolicyAttributes) LoadBalancingUtilization ¶
func (ap AutoscalingPolicyAttributes) LoadBalancingUtilization() terra.ListValue[AutoscalingPolicyLoadBalancingUtilizationAttributes]
func (AutoscalingPolicyAttributes) MaxReplicas ¶
func (ap AutoscalingPolicyAttributes) MaxReplicas() terra.NumberValue
func (AutoscalingPolicyAttributes) Metric ¶
func (ap AutoscalingPolicyAttributes) Metric() terra.ListValue[AutoscalingPolicyMetricAttributes]
func (AutoscalingPolicyAttributes) MinReplicas ¶
func (ap AutoscalingPolicyAttributes) MinReplicas() terra.NumberValue
func (AutoscalingPolicyAttributes) Mode ¶
func (ap AutoscalingPolicyAttributes) Mode() terra.StringValue
func (AutoscalingPolicyAttributes) ScaleDownControl ¶
func (ap AutoscalingPolicyAttributes) ScaleDownControl() terra.ListValue[AutoscalingPolicyScaleDownControlAttributes]
func (AutoscalingPolicyAttributes) ScaleInControl ¶
func (ap AutoscalingPolicyAttributes) ScaleInControl() terra.ListValue[AutoscalingPolicyScaleInControlAttributes]
func (AutoscalingPolicyAttributes) ScalingSchedules ¶
func (ap AutoscalingPolicyAttributes) ScalingSchedules() terra.SetValue[AutoscalingPolicyScalingSchedulesAttributes]
type AutoscalingPolicyCpuUtilization ¶
type AutoscalingPolicyCpuUtilization struct { // PredictiveMethod: string, optional PredictiveMethod terra.StringValue `hcl:"predictive_method,attr"` // Target: number, required Target terra.NumberValue `hcl:"target,attr" validate:"required"` }
type AutoscalingPolicyCpuUtilizationAttributes ¶
type AutoscalingPolicyCpuUtilizationAttributes struct {
// contains filtered or unexported fields
}
func (AutoscalingPolicyCpuUtilizationAttributes) InternalRef ¶
func (cu AutoscalingPolicyCpuUtilizationAttributes) InternalRef() (terra.Reference, error)
func (AutoscalingPolicyCpuUtilizationAttributes) InternalTokens ¶
func (cu AutoscalingPolicyCpuUtilizationAttributes) InternalTokens() (hclwrite.Tokens, error)
func (AutoscalingPolicyCpuUtilizationAttributes) InternalWithRef ¶
func (cu AutoscalingPolicyCpuUtilizationAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyCpuUtilizationAttributes
func (AutoscalingPolicyCpuUtilizationAttributes) PredictiveMethod ¶
func (cu AutoscalingPolicyCpuUtilizationAttributes) PredictiveMethod() terra.StringValue
func (AutoscalingPolicyCpuUtilizationAttributes) Target ¶
func (cu AutoscalingPolicyCpuUtilizationAttributes) Target() terra.NumberValue
type AutoscalingPolicyLoadBalancingUtilization ¶
type AutoscalingPolicyLoadBalancingUtilization struct { // Target: number, required Target terra.NumberValue `hcl:"target,attr" validate:"required"` }
type AutoscalingPolicyLoadBalancingUtilizationAttributes ¶
type AutoscalingPolicyLoadBalancingUtilizationAttributes struct {
// contains filtered or unexported fields
}
func (AutoscalingPolicyLoadBalancingUtilizationAttributes) InternalRef ¶
func (lbu AutoscalingPolicyLoadBalancingUtilizationAttributes) InternalRef() (terra.Reference, error)
func (AutoscalingPolicyLoadBalancingUtilizationAttributes) InternalTokens ¶
func (lbu AutoscalingPolicyLoadBalancingUtilizationAttributes) InternalTokens() (hclwrite.Tokens, error)
func (AutoscalingPolicyLoadBalancingUtilizationAttributes) InternalWithRef ¶
func (lbu AutoscalingPolicyLoadBalancingUtilizationAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyLoadBalancingUtilizationAttributes
func (AutoscalingPolicyLoadBalancingUtilizationAttributes) Target ¶
func (lbu AutoscalingPolicyLoadBalancingUtilizationAttributes) Target() terra.NumberValue
type AutoscalingPolicyLoadBalancingUtilizationState ¶
type AutoscalingPolicyLoadBalancingUtilizationState struct {
Target float64 `json:"target"`
}
type AutoscalingPolicyMetric ¶
type AutoscalingPolicyMetric struct { // Filter: string, optional Filter terra.StringValue `hcl:"filter,attr"` // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // SingleInstanceAssignment: number, optional SingleInstanceAssignment terra.NumberValue `hcl:"single_instance_assignment,attr"` // Target: number, optional Target terra.NumberValue `hcl:"target,attr"` // Type: string, optional Type terra.StringValue `hcl:"type,attr"` }
type AutoscalingPolicyMetricAttributes ¶
type AutoscalingPolicyMetricAttributes struct {
// contains filtered or unexported fields
}
func (AutoscalingPolicyMetricAttributes) Filter ¶
func (m AutoscalingPolicyMetricAttributes) Filter() terra.StringValue
func (AutoscalingPolicyMetricAttributes) InternalRef ¶
func (m AutoscalingPolicyMetricAttributes) InternalRef() (terra.Reference, error)
func (AutoscalingPolicyMetricAttributes) InternalTokens ¶
func (m AutoscalingPolicyMetricAttributes) InternalTokens() (hclwrite.Tokens, error)
func (AutoscalingPolicyMetricAttributes) InternalWithRef ¶
func (m AutoscalingPolicyMetricAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyMetricAttributes
func (AutoscalingPolicyMetricAttributes) Name ¶
func (m AutoscalingPolicyMetricAttributes) Name() terra.StringValue
func (AutoscalingPolicyMetricAttributes) SingleInstanceAssignment ¶
func (m AutoscalingPolicyMetricAttributes) SingleInstanceAssignment() terra.NumberValue
func (AutoscalingPolicyMetricAttributes) Target ¶
func (m AutoscalingPolicyMetricAttributes) Target() terra.NumberValue
func (AutoscalingPolicyMetricAttributes) Type ¶
func (m AutoscalingPolicyMetricAttributes) Type() terra.StringValue
type AutoscalingPolicyScaleDownControl ¶
type AutoscalingPolicyScaleDownControl struct { // TimeWindowSec: number, optional TimeWindowSec terra.NumberValue `hcl:"time_window_sec,attr"` // AutoscalingPolicyScaleDownControlMaxScaledDownReplicas: optional MaxScaledDownReplicas *AutoscalingPolicyScaleDownControlMaxScaledDownReplicas `hcl:"max_scaled_down_replicas,block"` }
type AutoscalingPolicyScaleDownControlAttributes ¶
type AutoscalingPolicyScaleDownControlAttributes struct {
// contains filtered or unexported fields
}
func (AutoscalingPolicyScaleDownControlAttributes) InternalRef ¶
func (sdc AutoscalingPolicyScaleDownControlAttributes) InternalRef() (terra.Reference, error)
func (AutoscalingPolicyScaleDownControlAttributes) InternalTokens ¶
func (sdc AutoscalingPolicyScaleDownControlAttributes) InternalTokens() (hclwrite.Tokens, error)
func (AutoscalingPolicyScaleDownControlAttributes) InternalWithRef ¶
func (sdc AutoscalingPolicyScaleDownControlAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyScaleDownControlAttributes
func (AutoscalingPolicyScaleDownControlAttributes) MaxScaledDownReplicas ¶
func (sdc AutoscalingPolicyScaleDownControlAttributes) MaxScaledDownReplicas() terra.ListValue[AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes]
func (AutoscalingPolicyScaleDownControlAttributes) TimeWindowSec ¶
func (sdc AutoscalingPolicyScaleDownControlAttributes) TimeWindowSec() terra.NumberValue
type AutoscalingPolicyScaleDownControlMaxScaledDownReplicas ¶
type AutoscalingPolicyScaleDownControlMaxScaledDownReplicas struct { // Fixed: number, optional Fixed terra.NumberValue `hcl:"fixed,attr"` // Percent: number, optional Percent terra.NumberValue `hcl:"percent,attr"` }
type AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes ¶
type AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes struct {
// contains filtered or unexported fields
}
func (AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes) Fixed ¶
func (msdr AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes) Fixed() terra.NumberValue
func (AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes) InternalRef ¶
func (msdr AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes) InternalRef() (terra.Reference, error)
func (AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes) InternalTokens ¶
func (msdr AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes) InternalTokens() (hclwrite.Tokens, error)
func (AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes) InternalWithRef ¶
func (msdr AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes
func (AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes) Percent ¶
func (msdr AutoscalingPolicyScaleDownControlMaxScaledDownReplicasAttributes) Percent() terra.NumberValue
type AutoscalingPolicyScaleDownControlState ¶
type AutoscalingPolicyScaleDownControlState struct { TimeWindowSec float64 `json:"time_window_sec"` MaxScaledDownReplicas []AutoscalingPolicyScaleDownControlMaxScaledDownReplicasState `json:"max_scaled_down_replicas"` }
type AutoscalingPolicyScaleInControl ¶
type AutoscalingPolicyScaleInControl struct { // TimeWindowSec: number, optional TimeWindowSec terra.NumberValue `hcl:"time_window_sec,attr"` // AutoscalingPolicyScaleInControlMaxScaledInReplicas: optional MaxScaledInReplicas *AutoscalingPolicyScaleInControlMaxScaledInReplicas `hcl:"max_scaled_in_replicas,block"` }
type AutoscalingPolicyScaleInControlAttributes ¶
type AutoscalingPolicyScaleInControlAttributes struct {
// contains filtered or unexported fields
}
func (AutoscalingPolicyScaleInControlAttributes) InternalRef ¶
func (sic AutoscalingPolicyScaleInControlAttributes) InternalRef() (terra.Reference, error)
func (AutoscalingPolicyScaleInControlAttributes) InternalTokens ¶
func (sic AutoscalingPolicyScaleInControlAttributes) InternalTokens() (hclwrite.Tokens, error)
func (AutoscalingPolicyScaleInControlAttributes) InternalWithRef ¶
func (sic AutoscalingPolicyScaleInControlAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyScaleInControlAttributes
func (AutoscalingPolicyScaleInControlAttributes) MaxScaledInReplicas ¶
func (sic AutoscalingPolicyScaleInControlAttributes) MaxScaledInReplicas() terra.ListValue[AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes]
func (AutoscalingPolicyScaleInControlAttributes) TimeWindowSec ¶
func (sic AutoscalingPolicyScaleInControlAttributes) TimeWindowSec() terra.NumberValue
type AutoscalingPolicyScaleInControlMaxScaledInReplicas ¶
type AutoscalingPolicyScaleInControlMaxScaledInReplicas struct { // Fixed: number, optional Fixed terra.NumberValue `hcl:"fixed,attr"` // Percent: number, optional Percent terra.NumberValue `hcl:"percent,attr"` }
type AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes ¶
type AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes struct {
// contains filtered or unexported fields
}
func (AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes) Fixed ¶
func (msir AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes) Fixed() terra.NumberValue
func (AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes) InternalRef ¶
func (msir AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes) InternalRef() (terra.Reference, error)
func (AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes) InternalTokens ¶
func (msir AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes) InternalTokens() (hclwrite.Tokens, error)
func (AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes) InternalWithRef ¶
func (msir AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes
func (AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes) Percent ¶
func (msir AutoscalingPolicyScaleInControlMaxScaledInReplicasAttributes) Percent() terra.NumberValue
type AutoscalingPolicyScaleInControlState ¶
type AutoscalingPolicyScaleInControlState struct { TimeWindowSec float64 `json:"time_window_sec"` MaxScaledInReplicas []AutoscalingPolicyScaleInControlMaxScaledInReplicasState `json:"max_scaled_in_replicas"` }
type AutoscalingPolicyScalingSchedules ¶
type AutoscalingPolicyScalingSchedules struct { // Description: string, optional Description terra.StringValue `hcl:"description,attr"` // Disabled: bool, optional Disabled terra.BoolValue `hcl:"disabled,attr"` // DurationSec: number, required DurationSec terra.NumberValue `hcl:"duration_sec,attr" validate:"required"` // MinRequiredReplicas: number, required MinRequiredReplicas terra.NumberValue `hcl:"min_required_replicas,attr" validate:"required"` // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // Schedule: string, required Schedule terra.StringValue `hcl:"schedule,attr" validate:"required"` // TimeZone: string, optional TimeZone terra.StringValue `hcl:"time_zone,attr"` }
type AutoscalingPolicyScalingSchedulesAttributes ¶
type AutoscalingPolicyScalingSchedulesAttributes struct {
// contains filtered or unexported fields
}
func (AutoscalingPolicyScalingSchedulesAttributes) Description ¶
func (ss AutoscalingPolicyScalingSchedulesAttributes) Description() terra.StringValue
func (AutoscalingPolicyScalingSchedulesAttributes) Disabled ¶
func (ss AutoscalingPolicyScalingSchedulesAttributes) Disabled() terra.BoolValue
func (AutoscalingPolicyScalingSchedulesAttributes) DurationSec ¶
func (ss AutoscalingPolicyScalingSchedulesAttributes) DurationSec() terra.NumberValue
func (AutoscalingPolicyScalingSchedulesAttributes) InternalRef ¶
func (ss AutoscalingPolicyScalingSchedulesAttributes) InternalRef() (terra.Reference, error)
func (AutoscalingPolicyScalingSchedulesAttributes) InternalTokens ¶
func (ss AutoscalingPolicyScalingSchedulesAttributes) InternalTokens() (hclwrite.Tokens, error)
func (AutoscalingPolicyScalingSchedulesAttributes) InternalWithRef ¶
func (ss AutoscalingPolicyScalingSchedulesAttributes) InternalWithRef(ref terra.Reference) AutoscalingPolicyScalingSchedulesAttributes
func (AutoscalingPolicyScalingSchedulesAttributes) MinRequiredReplicas ¶
func (ss AutoscalingPolicyScalingSchedulesAttributes) MinRequiredReplicas() terra.NumberValue
func (AutoscalingPolicyScalingSchedulesAttributes) Name ¶
func (ss AutoscalingPolicyScalingSchedulesAttributes) Name() terra.StringValue
func (AutoscalingPolicyScalingSchedulesAttributes) Schedule ¶
func (ss AutoscalingPolicyScalingSchedulesAttributes) Schedule() terra.StringValue
func (AutoscalingPolicyScalingSchedulesAttributes) TimeZone ¶
func (ss AutoscalingPolicyScalingSchedulesAttributes) TimeZone() terra.StringValue
type AutoscalingPolicyScalingSchedulesState ¶
type AutoscalingPolicyScalingSchedulesState struct { Description string `json:"description"` Disabled bool `json:"disabled"` DurationSec float64 `json:"duration_sec"` MinRequiredReplicas float64 `json:"min_required_replicas"` Name string `json:"name"` Schedule string `json:"schedule"` TimeZone string `json:"time_zone"` }
type AutoscalingPolicyState ¶
type AutoscalingPolicyState struct { CooldownPeriod float64 `json:"cooldown_period"` MaxReplicas float64 `json:"max_replicas"` MinReplicas float64 `json:"min_replicas"` Mode string `json:"mode"` CpuUtilization []AutoscalingPolicyCpuUtilizationState `json:"cpu_utilization"` LoadBalancingUtilization []AutoscalingPolicyLoadBalancingUtilizationState `json:"load_balancing_utilization"` Metric []AutoscalingPolicyMetricState `json:"metric"` ScaleDownControl []AutoscalingPolicyScaleDownControlState `json:"scale_down_control"` ScaleInControl []AutoscalingPolicyScaleInControlState `json:"scale_in_control"` ScalingSchedules []AutoscalingPolicyScalingSchedulesState `json:"scaling_schedules"` }
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_compute_autoscaler.
func (*Resource) Attributes ¶
func (gca *Resource) Attributes() googleComputeAutoscalerAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (gca *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (gca *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
type TimeoutsState ¶
Click to show internal directories.
Click to hide internal directories.