aws_autoscaling_policy

package
v5.45.0 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 {
	// AdjustmentType: string, optional
	AdjustmentType terra.StringValue `hcl:"adjustment_type,attr"`
	// AutoscalingGroupName: string, required
	AutoscalingGroupName terra.StringValue `hcl:"autoscaling_group_name,attr" validate:"required"`
	// Cooldown: number, optional
	Cooldown terra.NumberValue `hcl:"cooldown,attr"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// EstimatedInstanceWarmup: number, optional
	EstimatedInstanceWarmup terra.NumberValue `hcl:"estimated_instance_warmup,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// MetricAggregationType: string, optional
	MetricAggregationType terra.StringValue `hcl:"metric_aggregation_type,attr"`
	// MinAdjustmentMagnitude: number, optional
	MinAdjustmentMagnitude terra.NumberValue `hcl:"min_adjustment_magnitude,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// PolicyType: string, optional
	PolicyType terra.StringValue `hcl:"policy_type,attr"`
	// ScalingAdjustment: number, optional
	ScalingAdjustment terra.NumberValue `hcl:"scaling_adjustment,attr"`
	// PredictiveScalingConfiguration: optional
	PredictiveScalingConfiguration *PredictiveScalingConfiguration `hcl:"predictive_scaling_configuration,block"`
	// StepAdjustment: min=0
	StepAdjustment []StepAdjustment `hcl:"step_adjustment,block" validate:"min=0"`
	// TargetTrackingConfiguration: optional
	TargetTrackingConfiguration *TargetTrackingConfiguration `hcl:"target_tracking_configuration,block"`
}

Args contains the configurations for aws_autoscaling_policy.

type PredictiveScalingConfiguration

type PredictiveScalingConfiguration struct {
	// MaxCapacityBreachBehavior: string, optional
	MaxCapacityBreachBehavior terra.StringValue `hcl:"max_capacity_breach_behavior,attr"`
	// MaxCapacityBuffer: string, optional
	MaxCapacityBuffer terra.StringValue `hcl:"max_capacity_buffer,attr"`
	// Mode: string, optional
	Mode terra.StringValue `hcl:"mode,attr"`
	// SchedulingBufferTime: string, optional
	SchedulingBufferTime terra.StringValue `hcl:"scheduling_buffer_time,attr"`
	// PredictiveScalingConfigurationMetricSpecification: required
	MetricSpecification *PredictiveScalingConfigurationMetricSpecification `hcl:"metric_specification,block" validate:"required"`
}

type PredictiveScalingConfigurationAttributes

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

func (PredictiveScalingConfigurationAttributes) InternalRef

func (PredictiveScalingConfigurationAttributes) InternalTokens

func (PredictiveScalingConfigurationAttributes) InternalWithRef

func (PredictiveScalingConfigurationAttributes) MaxCapacityBreachBehavior

func (psc PredictiveScalingConfigurationAttributes) MaxCapacityBreachBehavior() terra.StringValue

func (PredictiveScalingConfigurationAttributes) MaxCapacityBuffer

func (PredictiveScalingConfigurationAttributes) Mode

func (PredictiveScalingConfigurationAttributes) SchedulingBufferTime

func (psc PredictiveScalingConfigurationAttributes) SchedulingBufferTime() terra.StringValue

type PredictiveScalingConfigurationMetricSpecification

type PredictiveScalingConfigurationMetricSpecification struct {
	// TargetValue: number, required
	TargetValue terra.NumberValue `hcl:"target_value,attr" validate:"required"`
	// PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification: optional
	CustomizedCapacityMetricSpecification *PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification `hcl:"customized_capacity_metric_specification,block"`
	// PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification: optional
	CustomizedLoadMetricSpecification *PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification `hcl:"customized_load_metric_specification,block"`
	// PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecification: optional
	CustomizedScalingMetricSpecification *PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecification `hcl:"customized_scaling_metric_specification,block"`
	// PredictiveScalingConfigurationMetricSpecificationPredefinedLoadMetricSpecification: optional
	PredefinedLoadMetricSpecification *PredictiveScalingConfigurationMetricSpecificationPredefinedLoadMetricSpecification `hcl:"predefined_load_metric_specification,block"`
	// PredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecification: optional
	PredefinedMetricPairSpecification *PredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecification `hcl:"predefined_metric_pair_specification,block"`
	// PredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecification: optional
	PredefinedScalingMetricSpecification *PredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecification `hcl:"predefined_scaling_metric_specification,block"`
}

type PredictiveScalingConfigurationMetricSpecification56Ac0Cae

type PredictiveScalingConfigurationMetricSpecification56Ac0Cae struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type PredictiveScalingConfigurationMetricSpecification56Ac0CaeAttributes

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

func (PredictiveScalingConfigurationMetricSpecification56Ac0CaeAttributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecification56Ac0CaeAttributes) InternalTokens

func (PredictiveScalingConfigurationMetricSpecification56Ac0CaeAttributes) InternalWithRef

func (PredictiveScalingConfigurationMetricSpecification56Ac0CaeAttributes) Name

func (PredictiveScalingConfigurationMetricSpecification56Ac0CaeAttributes) Value

type PredictiveScalingConfigurationMetricSpecification56Ac0CaeState

type PredictiveScalingConfigurationMetricSpecification56Ac0CaeState struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type PredictiveScalingConfigurationMetricSpecification5Ec745A9

type PredictiveScalingConfigurationMetricSpecification5Ec745A9 struct {
	// MetricName: string, required
	MetricName terra.StringValue `hcl:"metric_name,attr" validate:"required"`
	// Namespace: string, required
	Namespace terra.StringValue `hcl:"namespace,attr" validate:"required"`
	// PredictiveScalingConfigurationMetricSpecificationA484Bbb1: min=0
	Dimensions []PredictiveScalingConfigurationMetricSpecificationA484Bbb1 `hcl:"dimensions,block" validate:"min=0"`
}

type PredictiveScalingConfigurationMetricSpecification5Ec745A9Attributes

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

func (PredictiveScalingConfigurationMetricSpecification5Ec745A9Attributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecification5Ec745A9Attributes) InternalTokens

func (PredictiveScalingConfigurationMetricSpecification5Ec745A9Attributes) InternalWithRef

func (PredictiveScalingConfigurationMetricSpecification5Ec745A9Attributes) MetricName

func (PredictiveScalingConfigurationMetricSpecification5Ec745A9Attributes) Namespace

type PredictiveScalingConfigurationMetricSpecification5Ec745A9State

type PredictiveScalingConfigurationMetricSpecification5Ec745A9State struct {
	MetricName string                                                           `json:"metric_name"`
	Namespace  string                                                           `json:"namespace"`
	Dimensions []PredictiveScalingConfigurationMetricSpecificationA484Bbb1State `json:"dimensions"`
}

type PredictiveScalingConfigurationMetricSpecification61E4D6D6

type PredictiveScalingConfigurationMetricSpecification61E4D6D6 struct {
	// Stat: string, required
	Stat terra.StringValue `hcl:"stat,attr" validate:"required"`
	// Unit: string, optional
	Unit terra.StringValue `hcl:"unit,attr"`
	// PredictiveScalingConfigurationMetricSpecification7A152D67: required
	Metric *PredictiveScalingConfigurationMetricSpecification7A152D67 `hcl:"metric,block" validate:"required"`
}

type PredictiveScalingConfigurationMetricSpecification61E4D6D6Attributes

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

func (PredictiveScalingConfigurationMetricSpecification61E4D6D6Attributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecification61E4D6D6Attributes) InternalTokens

func (PredictiveScalingConfigurationMetricSpecification61E4D6D6Attributes) InternalWithRef

func (PredictiveScalingConfigurationMetricSpecification61E4D6D6Attributes) Stat

func (PredictiveScalingConfigurationMetricSpecification61E4D6D6Attributes) Unit

type PredictiveScalingConfigurationMetricSpecification61E4D6D6State

type PredictiveScalingConfigurationMetricSpecification61E4D6D6State struct {
	Stat   string                                                           `json:"stat"`
	Unit   string                                                           `json:"unit"`
	Metric []PredictiveScalingConfigurationMetricSpecification7A152D67State `json:"metric"`
}

type PredictiveScalingConfigurationMetricSpecification63A47Dc5

type PredictiveScalingConfigurationMetricSpecification63A47Dc5 struct {
	// MetricName: string, required
	MetricName terra.StringValue `hcl:"metric_name,attr" validate:"required"`
	// Namespace: string, required
	Namespace terra.StringValue `hcl:"namespace,attr" validate:"required"`
	// PredictiveScalingConfigurationMetricSpecification8Ef8Ae96: min=0
	Dimensions []PredictiveScalingConfigurationMetricSpecification8Ef8Ae96 `hcl:"dimensions,block" validate:"min=0"`
}

type PredictiveScalingConfigurationMetricSpecification63A47Dc5Attributes

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

func (PredictiveScalingConfigurationMetricSpecification63A47Dc5Attributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecification63A47Dc5Attributes) InternalTokens

func (PredictiveScalingConfigurationMetricSpecification63A47Dc5Attributes) InternalWithRef

func (PredictiveScalingConfigurationMetricSpecification63A47Dc5Attributes) MetricName

func (PredictiveScalingConfigurationMetricSpecification63A47Dc5Attributes) Namespace

type PredictiveScalingConfigurationMetricSpecification63A47Dc5State

type PredictiveScalingConfigurationMetricSpecification63A47Dc5State struct {
	MetricName string                                                           `json:"metric_name"`
	Namespace  string                                                           `json:"namespace"`
	Dimensions []PredictiveScalingConfigurationMetricSpecification8Ef8Ae96State `json:"dimensions"`
}

type PredictiveScalingConfigurationMetricSpecification716314D0

type PredictiveScalingConfigurationMetricSpecification716314D0 struct {
	// Stat: string, required
	Stat terra.StringValue `hcl:"stat,attr" validate:"required"`
	// Unit: string, optional
	Unit terra.StringValue `hcl:"unit,attr"`
	// PredictiveScalingConfigurationMetricSpecification63A47Dc5: required
	Metric *PredictiveScalingConfigurationMetricSpecification63A47Dc5 `hcl:"metric,block" validate:"required"`
}

type PredictiveScalingConfigurationMetricSpecification716314D0Attributes

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

func (PredictiveScalingConfigurationMetricSpecification716314D0Attributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecification716314D0Attributes) InternalTokens

func (PredictiveScalingConfigurationMetricSpecification716314D0Attributes) InternalWithRef

func (PredictiveScalingConfigurationMetricSpecification716314D0Attributes) Stat

func (PredictiveScalingConfigurationMetricSpecification716314D0Attributes) Unit

type PredictiveScalingConfigurationMetricSpecification716314D0State

type PredictiveScalingConfigurationMetricSpecification716314D0State struct {
	Stat   string                                                           `json:"stat"`
	Unit   string                                                           `json:"unit"`
	Metric []PredictiveScalingConfigurationMetricSpecification63A47Dc5State `json:"metric"`
}

type PredictiveScalingConfigurationMetricSpecification7A152D67

type PredictiveScalingConfigurationMetricSpecification7A152D67 struct {
	// MetricName: string, required
	MetricName terra.StringValue `hcl:"metric_name,attr" validate:"required"`
	// Namespace: string, required
	Namespace terra.StringValue `hcl:"namespace,attr" validate:"required"`
	// PredictiveScalingConfigurationMetricSpecification56Ac0Cae: min=0
	Dimensions []PredictiveScalingConfigurationMetricSpecification56Ac0Cae `hcl:"dimensions,block" validate:"min=0"`
}

type PredictiveScalingConfigurationMetricSpecification7A152D67Attributes

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

func (PredictiveScalingConfigurationMetricSpecification7A152D67Attributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecification7A152D67Attributes) InternalTokens

func (PredictiveScalingConfigurationMetricSpecification7A152D67Attributes) InternalWithRef

func (PredictiveScalingConfigurationMetricSpecification7A152D67Attributes) MetricName

func (PredictiveScalingConfigurationMetricSpecification7A152D67Attributes) Namespace

type PredictiveScalingConfigurationMetricSpecification7A152D67State

type PredictiveScalingConfigurationMetricSpecification7A152D67State struct {
	MetricName string                                                           `json:"metric_name"`
	Namespace  string                                                           `json:"namespace"`
	Dimensions []PredictiveScalingConfigurationMetricSpecification56Ac0CaeState `json:"dimensions"`
}

type PredictiveScalingConfigurationMetricSpecification8Ef8Ae96

type PredictiveScalingConfigurationMetricSpecification8Ef8Ae96 struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type PredictiveScalingConfigurationMetricSpecification8Ef8Ae96Attributes

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

func (PredictiveScalingConfigurationMetricSpecification8Ef8Ae96Attributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecification8Ef8Ae96Attributes) InternalTokens

func (PredictiveScalingConfigurationMetricSpecification8Ef8Ae96Attributes) InternalWithRef

func (PredictiveScalingConfigurationMetricSpecification8Ef8Ae96Attributes) Name

func (PredictiveScalingConfigurationMetricSpecification8Ef8Ae96Attributes) Value

type PredictiveScalingConfigurationMetricSpecification8Ef8Ae96State

type PredictiveScalingConfigurationMetricSpecification8Ef8Ae96State struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type PredictiveScalingConfigurationMetricSpecificationA484Bbb1

type PredictiveScalingConfigurationMetricSpecificationA484Bbb1 struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type PredictiveScalingConfigurationMetricSpecificationA484Bbb1Attributes

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

func (PredictiveScalingConfigurationMetricSpecificationA484Bbb1Attributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecificationA484Bbb1Attributes) InternalTokens

func (PredictiveScalingConfigurationMetricSpecificationA484Bbb1Attributes) InternalWithRef

func (PredictiveScalingConfigurationMetricSpecificationA484Bbb1Attributes) Name

func (PredictiveScalingConfigurationMetricSpecificationA484Bbb1Attributes) Value

type PredictiveScalingConfigurationMetricSpecificationA484Bbb1State

type PredictiveScalingConfigurationMetricSpecificationA484Bbb1State struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type PredictiveScalingConfigurationMetricSpecificationAttributes

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

func (PredictiveScalingConfigurationMetricSpecificationAttributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecificationAttributes) InternalTokens

func (PredictiveScalingConfigurationMetricSpecificationAttributes) InternalWithRef

func (PredictiveScalingConfigurationMetricSpecificationAttributes) TargetValue

type PredictiveScalingConfigurationMetricSpecificationB67D72Fe

type PredictiveScalingConfigurationMetricSpecificationB67D72Fe struct {
	// Stat: string, required
	Stat terra.StringValue `hcl:"stat,attr" validate:"required"`
	// Unit: string, optional
	Unit terra.StringValue `hcl:"unit,attr"`
	// PredictiveScalingConfigurationMetricSpecification5Ec745A9: required
	Metric *PredictiveScalingConfigurationMetricSpecification5Ec745A9 `hcl:"metric,block" validate:"required"`
}

type PredictiveScalingConfigurationMetricSpecificationB67D72FeAttributes

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

func (PredictiveScalingConfigurationMetricSpecificationB67D72FeAttributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecificationB67D72FeAttributes) InternalTokens

func (PredictiveScalingConfigurationMetricSpecificationB67D72FeAttributes) InternalWithRef

func (PredictiveScalingConfigurationMetricSpecificationB67D72FeAttributes) Stat

func (PredictiveScalingConfigurationMetricSpecificationB67D72FeAttributes) Unit

type PredictiveScalingConfigurationMetricSpecificationB67D72FeState

type PredictiveScalingConfigurationMetricSpecificationB67D72FeState struct {
	Stat   string                                                           `json:"stat"`
	Unit   string                                                           `json:"unit"`
	Metric []PredictiveScalingConfigurationMetricSpecification5Ec745A9State `json:"metric"`
}

type PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification

type PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification struct {
	// PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueries: min=1,max=10
	MetricDataQueries []PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueries `hcl:"metric_data_queries,block" validate:"min=1,max=10"`
}

type PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationAttributes

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

func (PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationAttributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationAttributes) InternalTokens

type PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueries

type PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueries struct {
	// Expression: string, optional
	Expression terra.StringValue `hcl:"expression,attr"`
	// Id: string, required
	Id terra.StringValue `hcl:"id,attr" validate:"required"`
	// Label: string, optional
	Label terra.StringValue `hcl:"label,attr"`
	// ReturnData: bool, optional
	ReturnData terra.BoolValue `hcl:"return_data,attr"`
	// PredictiveScalingConfigurationMetricSpecification716314D0: optional
	MetricStat *PredictiveScalingConfigurationMetricSpecification716314D0 `hcl:"metric_stat,block"`
}

type PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueriesAttributes

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

func (PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueriesAttributes) Expression

func (PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueriesAttributes) Id

func (PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueriesAttributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueriesAttributes) InternalTokens

func (PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueriesAttributes) Label

func (PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueriesAttributes) MetricStat

func (PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueriesAttributes) ReturnData

type PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueriesState

type PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueriesState struct {
	Expression string                                                           `json:"expression"`
	Id         string                                                           `json:"id"`
	Label      string                                                           `json:"label"`
	ReturnData bool                                                             `json:"return_data"`
	MetricStat []PredictiveScalingConfigurationMetricSpecification716314D0State `json:"metric_stat"`
}

type PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationState

type PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationState struct {
	MetricDataQueries []PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueriesState `json:"metric_data_queries"`
}

type PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification

type PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification struct {
	// PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueries: min=1,max=10
	MetricDataQueries []PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueries `hcl:"metric_data_queries,block" validate:"min=1,max=10"`
}

type PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationAttributes

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

func (PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationAttributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationAttributes) InternalTokens

type PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueries

type PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueries struct {
	// Expression: string, optional
	Expression terra.StringValue `hcl:"expression,attr"`
	// Id: string, required
	Id terra.StringValue `hcl:"id,attr" validate:"required"`
	// Label: string, optional
	Label terra.StringValue `hcl:"label,attr"`
	// ReturnData: bool, optional
	ReturnData terra.BoolValue `hcl:"return_data,attr"`
	// PredictiveScalingConfigurationMetricSpecificationB67D72Fe: optional
	MetricStat *PredictiveScalingConfigurationMetricSpecificationB67D72Fe `hcl:"metric_stat,block"`
}

type PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueriesAttributes

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

func (PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueriesAttributes) Expression

func (PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueriesAttributes) Id

func (PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueriesAttributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueriesAttributes) InternalTokens

func (PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueriesAttributes) Label

func (PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueriesAttributes) MetricStat

func (PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueriesAttributes) ReturnData

type PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueriesState

type PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueriesState struct {
	Expression string                                                           `json:"expression"`
	Id         string                                                           `json:"id"`
	Label      string                                                           `json:"label"`
	ReturnData bool                                                             `json:"return_data"`
	MetricStat []PredictiveScalingConfigurationMetricSpecificationB67D72FeState `json:"metric_stat"`
}

type PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationState

type PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationState struct {
	MetricDataQueries []PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueriesState `json:"metric_data_queries"`
}

type PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecification

type PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecification struct {
	// PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueries: min=1,max=10
	MetricDataQueries []PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueries `hcl:"metric_data_queries,block" validate:"min=1,max=10"`
}

type PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationAttributes

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

func (PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationAttributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationAttributes) InternalTokens

type PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueries

type PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueries struct {
	// Expression: string, optional
	Expression terra.StringValue `hcl:"expression,attr"`
	// Id: string, required
	Id terra.StringValue `hcl:"id,attr" validate:"required"`
	// Label: string, optional
	Label terra.StringValue `hcl:"label,attr"`
	// ReturnData: bool, optional
	ReturnData terra.BoolValue `hcl:"return_data,attr"`
	// PredictiveScalingConfigurationMetricSpecification61E4D6D6: optional
	MetricStat *PredictiveScalingConfigurationMetricSpecification61E4D6D6 `hcl:"metric_stat,block"`
}

type PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueriesAttributes

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

func (PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueriesAttributes) Expression

func (PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueriesAttributes) Id

func (PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueriesAttributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueriesAttributes) InternalTokens

func (PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueriesAttributes) Label

func (PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueriesAttributes) MetricStat

func (PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueriesAttributes) ReturnData

type PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueriesState

type PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueriesState struct {
	Expression string                                                           `json:"expression"`
	Id         string                                                           `json:"id"`
	Label      string                                                           `json:"label"`
	ReturnData bool                                                             `json:"return_data"`
	MetricStat []PredictiveScalingConfigurationMetricSpecification61E4D6D6State `json:"metric_stat"`
}

type PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationState

type PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationState struct {
	MetricDataQueries []PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueriesState `json:"metric_data_queries"`
}

type PredictiveScalingConfigurationMetricSpecificationPredefinedLoadMetricSpecification

type PredictiveScalingConfigurationMetricSpecificationPredefinedLoadMetricSpecification struct {
	// PredefinedMetricType: string, required
	PredefinedMetricType terra.StringValue `hcl:"predefined_metric_type,attr" validate:"required"`
	// ResourceLabel: string, required
	ResourceLabel terra.StringValue `hcl:"resource_label,attr" validate:"required"`
}

type PredictiveScalingConfigurationMetricSpecificationPredefinedLoadMetricSpecificationAttributes

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

func (PredictiveScalingConfigurationMetricSpecificationPredefinedLoadMetricSpecificationAttributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecificationPredefinedLoadMetricSpecificationAttributes) InternalTokens

func (PredictiveScalingConfigurationMetricSpecificationPredefinedLoadMetricSpecificationAttributes) PredefinedMetricType

func (PredictiveScalingConfigurationMetricSpecificationPredefinedLoadMetricSpecificationAttributes) ResourceLabel

type PredictiveScalingConfigurationMetricSpecificationPredefinedLoadMetricSpecificationState

type PredictiveScalingConfigurationMetricSpecificationPredefinedLoadMetricSpecificationState struct {
	PredefinedMetricType string `json:"predefined_metric_type"`
	ResourceLabel        string `json:"resource_label"`
}

type PredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecification

type PredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecification struct {
	// PredefinedMetricType: string, required
	PredefinedMetricType terra.StringValue `hcl:"predefined_metric_type,attr" validate:"required"`
	// ResourceLabel: string, required
	ResourceLabel terra.StringValue `hcl:"resource_label,attr" validate:"required"`
}

type PredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecificationAttributes

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

func (PredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecificationAttributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecificationAttributes) InternalTokens

func (PredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecificationAttributes) PredefinedMetricType

func (PredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecificationAttributes) ResourceLabel

type PredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecificationState

type PredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecificationState struct {
	PredefinedMetricType string `json:"predefined_metric_type"`
	ResourceLabel        string `json:"resource_label"`
}

type PredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecification

type PredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecification struct {
	// PredefinedMetricType: string, required
	PredefinedMetricType terra.StringValue `hcl:"predefined_metric_type,attr" validate:"required"`
	// ResourceLabel: string, required
	ResourceLabel terra.StringValue `hcl:"resource_label,attr" validate:"required"`
}

type PredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecificationAttributes

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

func (PredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecificationAttributes) InternalRef

func (PredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecificationAttributes) InternalTokens

func (PredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecificationAttributes) PredefinedMetricType

func (PredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecificationAttributes) ResourceLabel

type PredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecificationState

type PredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecificationState struct {
	PredefinedMetricType string `json:"predefined_metric_type"`
	ResourceLabel        string `json:"resource_label"`
}

type PredictiveScalingConfigurationMetricSpecificationState

type PredictiveScalingConfigurationMetricSpecificationState struct {
	TargetValue                           float64                                                                                       `json:"target_value"`
	CustomizedCapacityMetricSpecification []PredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationState `json:"customized_capacity_metric_specification"`
	CustomizedLoadMetricSpecification     []PredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationState     `json:"customized_load_metric_specification"`
	CustomizedScalingMetricSpecification  []PredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationState  `json:"customized_scaling_metric_specification"`
	PredefinedLoadMetricSpecification     []PredictiveScalingConfigurationMetricSpecificationPredefinedLoadMetricSpecificationState     `json:"predefined_load_metric_specification"`
	PredefinedMetricPairSpecification     []PredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecificationState     `json:"predefined_metric_pair_specification"`
	PredefinedScalingMetricSpecification  []PredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecificationState  `json:"predefined_scaling_metric_specification"`
}

type PredictiveScalingConfigurationState

type PredictiveScalingConfigurationState struct {
	MaxCapacityBreachBehavior string                                                   `json:"max_capacity_breach_behavior"`
	MaxCapacityBuffer         string                                                   `json:"max_capacity_buffer"`
	Mode                      string                                                   `json:"mode"`
	SchedulingBufferTime      string                                                   `json:"scheduling_buffer_time"`
	MetricSpecification       []PredictiveScalingConfigurationMetricSpecificationState `json:"metric_specification"`
}

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 aws_autoscaling_policy.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aap *Resource) Attributes() awsAutoscalingPolicyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (aap *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aap *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aap *Resource) State() (*awsAutoscalingPolicyState, bool)

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

func (*Resource) StateMust

func (aap *Resource) StateMust() *awsAutoscalingPolicyState

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

func (*Resource) Type

func (aap *Resource) Type() string

Type returns the Terraform object type for Resource.

type StepAdjustment

type StepAdjustment struct {
	// MetricIntervalLowerBound: string, optional
	MetricIntervalLowerBound terra.StringValue `hcl:"metric_interval_lower_bound,attr"`
	// MetricIntervalUpperBound: string, optional
	MetricIntervalUpperBound terra.StringValue `hcl:"metric_interval_upper_bound,attr"`
	// ScalingAdjustment: number, required
	ScalingAdjustment terra.NumberValue `hcl:"scaling_adjustment,attr" validate:"required"`
}

type StepAdjustmentAttributes

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

func (StepAdjustmentAttributes) InternalRef

func (sa StepAdjustmentAttributes) InternalRef() (terra.Reference, error)

func (StepAdjustmentAttributes) InternalTokens

func (sa StepAdjustmentAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StepAdjustmentAttributes) InternalWithRef

func (StepAdjustmentAttributes) MetricIntervalLowerBound

func (sa StepAdjustmentAttributes) MetricIntervalLowerBound() terra.StringValue

func (StepAdjustmentAttributes) MetricIntervalUpperBound

func (sa StepAdjustmentAttributes) MetricIntervalUpperBound() terra.StringValue

func (StepAdjustmentAttributes) ScalingAdjustment

func (sa StepAdjustmentAttributes) ScalingAdjustment() terra.NumberValue

type StepAdjustmentState

type StepAdjustmentState struct {
	MetricIntervalLowerBound string  `json:"metric_interval_lower_bound"`
	MetricIntervalUpperBound string  `json:"metric_interval_upper_bound"`
	ScalingAdjustment        float64 `json:"scaling_adjustment"`
}

type TargetTrackingConfiguration

type TargetTrackingConfiguration struct {
	// DisableScaleIn: bool, optional
	DisableScaleIn terra.BoolValue `hcl:"disable_scale_in,attr"`
	// TargetValue: number, required
	TargetValue terra.NumberValue `hcl:"target_value,attr" validate:"required"`
	// TargetTrackingConfigurationCustomizedMetricSpecification: optional
	CustomizedMetricSpecification *TargetTrackingConfigurationCustomizedMetricSpecification `hcl:"customized_metric_specification,block"`
	// TargetTrackingConfigurationPredefinedMetricSpecification: optional
	PredefinedMetricSpecification *TargetTrackingConfigurationPredefinedMetricSpecification `hcl:"predefined_metric_specification,block"`
}

type TargetTrackingConfigurationAttributes

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

func (TargetTrackingConfigurationAttributes) DisableScaleIn

func (TargetTrackingConfigurationAttributes) InternalRef

func (TargetTrackingConfigurationAttributes) InternalTokens

func (TargetTrackingConfigurationAttributes) InternalWithRef

func (TargetTrackingConfigurationAttributes) TargetValue

type TargetTrackingConfigurationCustomizedMetricSpecification

type TargetTrackingConfigurationCustomizedMetricSpecification struct {
	// 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"`
	// TargetTrackingConfigurationCustomizedMetricSpecificationMetricDimension: min=0
	MetricDimension []TargetTrackingConfigurationCustomizedMetricSpecificationMetricDimension `hcl:"metric_dimension,block" validate:"min=0"`
}

type TargetTrackingConfigurationCustomizedMetricSpecificationAttributes

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

func (TargetTrackingConfigurationCustomizedMetricSpecificationAttributes) InternalRef

func (TargetTrackingConfigurationCustomizedMetricSpecificationAttributes) InternalTokens

func (TargetTrackingConfigurationCustomizedMetricSpecificationAttributes) InternalWithRef

func (TargetTrackingConfigurationCustomizedMetricSpecificationAttributes) MetricName

func (TargetTrackingConfigurationCustomizedMetricSpecificationAttributes) Namespace

func (TargetTrackingConfigurationCustomizedMetricSpecificationAttributes) Statistic

func (TargetTrackingConfigurationCustomizedMetricSpecificationAttributes) Unit

type TargetTrackingConfigurationCustomizedMetricSpecificationMetricDimension

type TargetTrackingConfigurationCustomizedMetricSpecificationMetricDimension struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type TargetTrackingConfigurationCustomizedMetricSpecificationMetricDimensionAttributes

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

func (TargetTrackingConfigurationCustomizedMetricSpecificationMetricDimensionAttributes) InternalRef

func (TargetTrackingConfigurationCustomizedMetricSpecificationMetricDimensionAttributes) InternalTokens

func (TargetTrackingConfigurationCustomizedMetricSpecificationMetricDimensionAttributes) Name

func (TargetTrackingConfigurationCustomizedMetricSpecificationMetricDimensionAttributes) Value

type TargetTrackingConfigurationCustomizedMetricSpecificationMetricDimensionState

type TargetTrackingConfigurationCustomizedMetricSpecificationMetricDimensionState struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type TargetTrackingConfigurationCustomizedMetricSpecificationState

type TargetTrackingConfigurationCustomizedMetricSpecificationState struct {
	MetricName      string                                                                         `json:"metric_name"`
	Namespace       string                                                                         `json:"namespace"`
	Statistic       string                                                                         `json:"statistic"`
	Unit            string                                                                         `json:"unit"`
	MetricDimension []TargetTrackingConfigurationCustomizedMetricSpecificationMetricDimensionState `json:"metric_dimension"`
}

type TargetTrackingConfigurationPredefinedMetricSpecification

type TargetTrackingConfigurationPredefinedMetricSpecification struct {
	// PredefinedMetricType: string, required
	PredefinedMetricType terra.StringValue `hcl:"predefined_metric_type,attr" validate:"required"`
	// ResourceLabel: string, optional
	ResourceLabel terra.StringValue `hcl:"resource_label,attr"`
}

type TargetTrackingConfigurationPredefinedMetricSpecificationAttributes

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

func (TargetTrackingConfigurationPredefinedMetricSpecificationAttributes) InternalRef

func (TargetTrackingConfigurationPredefinedMetricSpecificationAttributes) InternalTokens

func (TargetTrackingConfigurationPredefinedMetricSpecificationAttributes) InternalWithRef

func (TargetTrackingConfigurationPredefinedMetricSpecificationAttributes) PredefinedMetricType

func (TargetTrackingConfigurationPredefinedMetricSpecificationAttributes) ResourceLabel

type TargetTrackingConfigurationPredefinedMetricSpecificationState

type TargetTrackingConfigurationPredefinedMetricSpecificationState struct {
	PredefinedMetricType string `json:"predefined_metric_type"`
	ResourceLabel        string `json:"resource_label"`
}

type TargetTrackingConfigurationState

type TargetTrackingConfigurationState struct {
	DisableScaleIn                bool                                                            `json:"disable_scale_in"`
	TargetValue                   float64                                                         `json:"target_value"`
	CustomizedMetricSpecification []TargetTrackingConfigurationCustomizedMetricSpecificationState `json:"customized_metric_specification"`
	PredefinedMetricSpecification []TargetTrackingConfigurationPredefinedMetricSpecificationState `json:"predefined_metric_specification"`
}

Jump to

Keyboard shortcuts

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