autoscalingplansscalingplan

package
v0.0.0-...-964ba77 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationSource

type ApplicationSource struct {
	// CloudformationStackArn: string, optional
	CloudformationStackArn terra.StringValue `hcl:"cloudformation_stack_arn,attr"`
	// TagFilter: min=0,max=50
	TagFilter []TagFilter `hcl:"tag_filter,block" validate:"min=0,max=50"`
}

type ApplicationSourceAttributes

type ApplicationSourceAttributes struct {
	// contains filtered or unexported fields
}

func (ApplicationSourceAttributes) CloudformationStackArn

func (as ApplicationSourceAttributes) CloudformationStackArn() terra.StringValue

func (ApplicationSourceAttributes) InternalRef

func (as ApplicationSourceAttributes) InternalRef() (terra.Reference, error)

func (ApplicationSourceAttributes) InternalTokens

func (as ApplicationSourceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ApplicationSourceAttributes) InternalWithRef

func (ApplicationSourceAttributes) TagFilter

type ApplicationSourceState

type ApplicationSourceState struct {
	CloudformationStackArn string           `json:"cloudformation_stack_arn"`
	TagFilter              []TagFilterState `json:"tag_filter"`
}

type CustomizedLoadMetricSpecification

type CustomizedLoadMetricSpecification struct {
	// Dimensions: map of string, optional
	Dimensions terra.MapValue[terra.StringValue] `hcl:"dimensions,attr"`
	// MetricName: string, required
	MetricName terra.StringValue `hcl:"metric_name,attr" validate:"required"`
	// Namespace: string, required
	Namespace terra.StringValue `hcl:"namespace,attr" validate:"required"`
	// Statistic: string, required
	Statistic terra.StringValue `hcl:"statistic,attr" validate:"required"`
	// Unit: string, optional
	Unit terra.StringValue `hcl:"unit,attr"`
}

type CustomizedLoadMetricSpecificationAttributes

type CustomizedLoadMetricSpecificationAttributes struct {
	// contains filtered or unexported fields
}

func (CustomizedLoadMetricSpecificationAttributes) Dimensions

func (CustomizedLoadMetricSpecificationAttributes) InternalRef

func (CustomizedLoadMetricSpecificationAttributes) InternalTokens

func (CustomizedLoadMetricSpecificationAttributes) InternalWithRef

func (CustomizedLoadMetricSpecificationAttributes) MetricName

func (CustomizedLoadMetricSpecificationAttributes) Namespace

func (CustomizedLoadMetricSpecificationAttributes) Statistic

func (CustomizedLoadMetricSpecificationAttributes) Unit

type CustomizedLoadMetricSpecificationState

type CustomizedLoadMetricSpecificationState struct {
	Dimensions map[string]string `json:"dimensions"`
	MetricName string            `json:"metric_name"`
	Namespace  string            `json:"namespace"`
	Statistic  string            `json:"statistic"`
	Unit       string            `json:"unit"`
}

type CustomizedScalingMetricSpecification

type CustomizedScalingMetricSpecification struct {
	// Dimensions: map of string, optional
	Dimensions terra.MapValue[terra.StringValue] `hcl:"dimensions,attr"`
	// MetricName: string, required
	MetricName terra.StringValue `hcl:"metric_name,attr" validate:"required"`
	// Namespace: string, required
	Namespace terra.StringValue `hcl:"namespace,attr" validate:"required"`
	// Statistic: string, required
	Statistic terra.StringValue `hcl:"statistic,attr" validate:"required"`
	// Unit: string, optional
	Unit terra.StringValue `hcl:"unit,attr"`
}

type CustomizedScalingMetricSpecificationAttributes

type CustomizedScalingMetricSpecificationAttributes struct {
	// contains filtered or unexported fields
}

func (CustomizedScalingMetricSpecificationAttributes) Dimensions

func (CustomizedScalingMetricSpecificationAttributes) InternalRef

func (CustomizedScalingMetricSpecificationAttributes) InternalTokens

func (CustomizedScalingMetricSpecificationAttributes) InternalWithRef

func (CustomizedScalingMetricSpecificationAttributes) MetricName

func (CustomizedScalingMetricSpecificationAttributes) Namespace

func (CustomizedScalingMetricSpecificationAttributes) Statistic

func (CustomizedScalingMetricSpecificationAttributes) Unit

type CustomizedScalingMetricSpecificationState

type CustomizedScalingMetricSpecificationState struct {
	Dimensions map[string]string `json:"dimensions"`
	MetricName string            `json:"metric_name"`
	Namespace  string            `json:"namespace"`
	Statistic  string            `json:"statistic"`
	Unit       string            `json:"unit"`
}

type PredefinedLoadMetricSpecification

type PredefinedLoadMetricSpecification struct {
	// PredefinedLoadMetricType: string, required
	PredefinedLoadMetricType terra.StringValue `hcl:"predefined_load_metric_type,attr" validate:"required"`
	// ResourceLabel: string, optional
	ResourceLabel terra.StringValue `hcl:"resource_label,attr"`
}

type PredefinedLoadMetricSpecificationAttributes

type PredefinedLoadMetricSpecificationAttributes struct {
	// contains filtered or unexported fields
}

func (PredefinedLoadMetricSpecificationAttributes) InternalRef

func (PredefinedLoadMetricSpecificationAttributes) InternalTokens

func (PredefinedLoadMetricSpecificationAttributes) InternalWithRef

func (PredefinedLoadMetricSpecificationAttributes) PredefinedLoadMetricType

func (plms PredefinedLoadMetricSpecificationAttributes) PredefinedLoadMetricType() terra.StringValue

func (PredefinedLoadMetricSpecificationAttributes) ResourceLabel

type PredefinedLoadMetricSpecificationState

type PredefinedLoadMetricSpecificationState struct {
	PredefinedLoadMetricType string `json:"predefined_load_metric_type"`
	ResourceLabel            string `json:"resource_label"`
}

type PredefinedScalingMetricSpecification

type PredefinedScalingMetricSpecification struct {
	// PredefinedScalingMetricType: string, required
	PredefinedScalingMetricType terra.StringValue `hcl:"predefined_scaling_metric_type,attr" validate:"required"`
	// ResourceLabel: string, optional
	ResourceLabel terra.StringValue `hcl:"resource_label,attr"`
}

type PredefinedScalingMetricSpecificationAttributes

type PredefinedScalingMetricSpecificationAttributes struct {
	// contains filtered or unexported fields
}

func (PredefinedScalingMetricSpecificationAttributes) InternalRef

func (PredefinedScalingMetricSpecificationAttributes) InternalTokens

func (PredefinedScalingMetricSpecificationAttributes) InternalWithRef

func (PredefinedScalingMetricSpecificationAttributes) PredefinedScalingMetricType

func (psms PredefinedScalingMetricSpecificationAttributes) PredefinedScalingMetricType() terra.StringValue

func (PredefinedScalingMetricSpecificationAttributes) ResourceLabel

type PredefinedScalingMetricSpecificationState

type PredefinedScalingMetricSpecificationState struct {
	PredefinedScalingMetricType string `json:"predefined_scaling_metric_type"`
	ResourceLabel               string `json:"resource_label"`
}

type ScalingInstruction

type ScalingInstruction struct {
	// DisableDynamicScaling: bool, optional
	DisableDynamicScaling terra.BoolValue `hcl:"disable_dynamic_scaling,attr"`
	// MaxCapacity: number, required
	MaxCapacity terra.NumberValue `hcl:"max_capacity,attr" validate:"required"`
	// MinCapacity: number, required
	MinCapacity terra.NumberValue `hcl:"min_capacity,attr" validate:"required"`
	// PredictiveScalingMaxCapacityBehavior: string, optional
	PredictiveScalingMaxCapacityBehavior terra.StringValue `hcl:"predictive_scaling_max_capacity_behavior,attr"`
	// PredictiveScalingMaxCapacityBuffer: number, optional
	PredictiveScalingMaxCapacityBuffer terra.NumberValue `hcl:"predictive_scaling_max_capacity_buffer,attr"`
	// PredictiveScalingMode: string, optional
	PredictiveScalingMode terra.StringValue `hcl:"predictive_scaling_mode,attr"`
	// ResourceId: string, required
	ResourceId terra.StringValue `hcl:"resource_id,attr" validate:"required"`
	// ScalableDimension: string, required
	ScalableDimension terra.StringValue `hcl:"scalable_dimension,attr" validate:"required"`
	// ScalingPolicyUpdateBehavior: string, optional
	ScalingPolicyUpdateBehavior terra.StringValue `hcl:"scaling_policy_update_behavior,attr"`
	// ScheduledActionBufferTime: number, optional
	ScheduledActionBufferTime terra.NumberValue `hcl:"scheduled_action_buffer_time,attr"`
	// ServiceNamespace: string, required
	ServiceNamespace terra.StringValue `hcl:"service_namespace,attr" validate:"required"`
	// CustomizedLoadMetricSpecification: optional
	CustomizedLoadMetricSpecification *CustomizedLoadMetricSpecification `hcl:"customized_load_metric_specification,block"`
	// PredefinedLoadMetricSpecification: optional
	PredefinedLoadMetricSpecification *PredefinedLoadMetricSpecification `hcl:"predefined_load_metric_specification,block"`
	// TargetTrackingConfiguration: min=1,max=10
	TargetTrackingConfiguration []TargetTrackingConfiguration `hcl:"target_tracking_configuration,block" validate:"min=1,max=10"`
}

type ScalingInstructionAttributes

type ScalingInstructionAttributes struct {
	// contains filtered or unexported fields
}

func (ScalingInstructionAttributes) CustomizedLoadMetricSpecification

func (ScalingInstructionAttributes) DisableDynamicScaling

func (si ScalingInstructionAttributes) DisableDynamicScaling() terra.BoolValue

func (ScalingInstructionAttributes) InternalRef

func (si ScalingInstructionAttributes) InternalRef() (terra.Reference, error)

func (ScalingInstructionAttributes) InternalTokens

func (si ScalingInstructionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ScalingInstructionAttributes) InternalWithRef

func (ScalingInstructionAttributes) MaxCapacity

func (ScalingInstructionAttributes) MinCapacity

func (ScalingInstructionAttributes) PredefinedLoadMetricSpecification

func (ScalingInstructionAttributes) PredictiveScalingMaxCapacityBehavior

func (si ScalingInstructionAttributes) PredictiveScalingMaxCapacityBehavior() terra.StringValue

func (ScalingInstructionAttributes) PredictiveScalingMaxCapacityBuffer

func (si ScalingInstructionAttributes) PredictiveScalingMaxCapacityBuffer() terra.NumberValue

func (ScalingInstructionAttributes) PredictiveScalingMode

func (si ScalingInstructionAttributes) PredictiveScalingMode() terra.StringValue

func (ScalingInstructionAttributes) ResourceId

func (ScalingInstructionAttributes) ScalableDimension

func (si ScalingInstructionAttributes) ScalableDimension() terra.StringValue

func (ScalingInstructionAttributes) ScalingPolicyUpdateBehavior

func (si ScalingInstructionAttributes) ScalingPolicyUpdateBehavior() terra.StringValue

func (ScalingInstructionAttributes) ScheduledActionBufferTime

func (si ScalingInstructionAttributes) ScheduledActionBufferTime() terra.NumberValue

func (ScalingInstructionAttributes) ServiceNamespace

func (si ScalingInstructionAttributes) ServiceNamespace() terra.StringValue

func (ScalingInstructionAttributes) TargetTrackingConfiguration

type ScalingInstructionState

type ScalingInstructionState struct {
	DisableDynamicScaling                bool                                     `json:"disable_dynamic_scaling"`
	MaxCapacity                          float64                                  `json:"max_capacity"`
	MinCapacity                          float64                                  `json:"min_capacity"`
	PredictiveScalingMaxCapacityBehavior string                                   `json:"predictive_scaling_max_capacity_behavior"`
	PredictiveScalingMaxCapacityBuffer   float64                                  `json:"predictive_scaling_max_capacity_buffer"`
	PredictiveScalingMode                string                                   `json:"predictive_scaling_mode"`
	ResourceId                           string                                   `json:"resource_id"`
	ScalableDimension                    string                                   `json:"scalable_dimension"`
	ScalingPolicyUpdateBehavior          string                                   `json:"scaling_policy_update_behavior"`
	ScheduledActionBufferTime            float64                                  `json:"scheduled_action_buffer_time"`
	ServiceNamespace                     string                                   `json:"service_namespace"`
	CustomizedLoadMetricSpecification    []CustomizedLoadMetricSpecificationState `json:"customized_load_metric_specification"`
	PredefinedLoadMetricSpecification    []PredefinedLoadMetricSpecificationState `json:"predefined_load_metric_specification"`
	TargetTrackingConfiguration          []TargetTrackingConfigurationState       `json:"target_tracking_configuration"`
}

type TagFilter

type TagFilter struct {
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type TagFilterAttributes

type TagFilterAttributes struct {
	// contains filtered or unexported fields
}

func (TagFilterAttributes) InternalRef

func (tf TagFilterAttributes) InternalRef() (terra.Reference, error)

func (TagFilterAttributes) InternalTokens

func (tf TagFilterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TagFilterAttributes) InternalWithRef

func (tf TagFilterAttributes) InternalWithRef(ref terra.Reference) TagFilterAttributes

func (TagFilterAttributes) Key

func (TagFilterAttributes) Values

type TagFilterState

type TagFilterState struct {
	Key    string   `json:"key"`
	Values []string `json:"values"`
}

type TargetTrackingConfiguration

type TargetTrackingConfiguration struct {
	// DisableScaleIn: bool, optional
	DisableScaleIn terra.BoolValue `hcl:"disable_scale_in,attr"`
	// EstimatedInstanceWarmup: number, optional
	EstimatedInstanceWarmup terra.NumberValue `hcl:"estimated_instance_warmup,attr"`
	// ScaleInCooldown: number, optional
	ScaleInCooldown terra.NumberValue `hcl:"scale_in_cooldown,attr"`
	// ScaleOutCooldown: number, optional
	ScaleOutCooldown terra.NumberValue `hcl:"scale_out_cooldown,attr"`
	// TargetValue: number, required
	TargetValue terra.NumberValue `hcl:"target_value,attr" validate:"required"`
	// CustomizedScalingMetricSpecification: optional
	CustomizedScalingMetricSpecification *CustomizedScalingMetricSpecification `hcl:"customized_scaling_metric_specification,block"`
	// PredefinedScalingMetricSpecification: optional
	PredefinedScalingMetricSpecification *PredefinedScalingMetricSpecification `hcl:"predefined_scaling_metric_specification,block"`
}

type TargetTrackingConfigurationAttributes

type TargetTrackingConfigurationAttributes struct {
	// contains filtered or unexported fields
}

func (TargetTrackingConfigurationAttributes) CustomizedScalingMetricSpecification

func (TargetTrackingConfigurationAttributes) DisableScaleIn

func (TargetTrackingConfigurationAttributes) EstimatedInstanceWarmup

func (ttc TargetTrackingConfigurationAttributes) EstimatedInstanceWarmup() terra.NumberValue

func (TargetTrackingConfigurationAttributes) InternalRef

func (TargetTrackingConfigurationAttributes) InternalTokens

func (TargetTrackingConfigurationAttributes) InternalWithRef

func (TargetTrackingConfigurationAttributes) PredefinedScalingMetricSpecification

func (TargetTrackingConfigurationAttributes) ScaleInCooldown

func (TargetTrackingConfigurationAttributes) ScaleOutCooldown

func (TargetTrackingConfigurationAttributes) TargetValue

type TargetTrackingConfigurationState

type TargetTrackingConfigurationState struct {
	DisableScaleIn                       bool                                        `json:"disable_scale_in"`
	EstimatedInstanceWarmup              float64                                     `json:"estimated_instance_warmup"`
	ScaleInCooldown                      float64                                     `json:"scale_in_cooldown"`
	ScaleOutCooldown                     float64                                     `json:"scale_out_cooldown"`
	TargetValue                          float64                                     `json:"target_value"`
	CustomizedScalingMetricSpecification []CustomizedScalingMetricSpecificationState `json:"customized_scaling_metric_specification"`
	PredefinedScalingMetricSpecification []PredefinedScalingMetricSpecificationState `json:"predefined_scaling_metric_specification"`
}

Jump to

Keyboard shortcuts

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