aws_autoscalingplans_scaling_plan

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationSource

type ApplicationSource struct {
	// CloudformationStackArn: string, optional
	CloudformationStackArn terra.StringValue `hcl:"cloudformation_stack_arn,attr"`
	// ApplicationSourceTagFilter: min=0,max=50
	TagFilter []ApplicationSourceTagFilter `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              []ApplicationSourceTagFilterState `json:"tag_filter"`
}

type ApplicationSourceTagFilter

type ApplicationSourceTagFilter 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 ApplicationSourceTagFilterAttributes

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

func (ApplicationSourceTagFilterAttributes) InternalRef

func (ApplicationSourceTagFilterAttributes) InternalTokens

func (ApplicationSourceTagFilterAttributes) InternalWithRef

func (ApplicationSourceTagFilterAttributes) Key

func (ApplicationSourceTagFilterAttributes) Values

type ApplicationSourceTagFilterState

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

type Args

type Args struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ApplicationSource: required
	ApplicationSource *ApplicationSource `hcl:"application_source,block" validate:"required"`
	// ScalingInstruction: min=1
	ScalingInstruction []ScalingInstruction `hcl:"scaling_instruction,block" validate:"min=1"`
}

Args contains the configurations for aws_autoscalingplans_scaling_plan.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aasp *Resource) Attributes() awsAutoscalingplansScalingPlanAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aasp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aasp *Resource) State() (*awsAutoscalingplansScalingPlanState, bool)

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

func (*Resource) StateMust

func (aasp *Resource) StateMust() *awsAutoscalingplansScalingPlanState

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

func (*Resource) Type

func (aasp *Resource) Type() string

Type returns the Terraform object type for Resource.

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"`
	// ScalingInstructionCustomizedLoadMetricSpecification: optional
	CustomizedLoadMetricSpecification *ScalingInstructionCustomizedLoadMetricSpecification `hcl:"customized_load_metric_specification,block"`
	// ScalingInstructionPredefinedLoadMetricSpecification: optional
	PredefinedLoadMetricSpecification *ScalingInstructionPredefinedLoadMetricSpecification `hcl:"predefined_load_metric_specification,block"`
	// ScalingInstructionTargetTrackingConfiguration: min=1,max=10
	TargetTrackingConfiguration []ScalingInstructionTargetTrackingConfiguration `hcl:"target_tracking_configuration,block" validate:"min=1,max=10"`
}

type ScalingInstructionAttributes

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

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

type ScalingInstructionCustomizedLoadMetricSpecification 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 ScalingInstructionCustomizedLoadMetricSpecificationAttributes

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

func (ScalingInstructionCustomizedLoadMetricSpecificationAttributes) Dimensions

func (ScalingInstructionCustomizedLoadMetricSpecificationAttributes) InternalRef

func (ScalingInstructionCustomizedLoadMetricSpecificationAttributes) InternalTokens

func (ScalingInstructionCustomizedLoadMetricSpecificationAttributes) InternalWithRef

func (ScalingInstructionCustomizedLoadMetricSpecificationAttributes) MetricName

func (ScalingInstructionCustomizedLoadMetricSpecificationAttributes) Namespace

func (ScalingInstructionCustomizedLoadMetricSpecificationAttributes) Statistic

func (ScalingInstructionCustomizedLoadMetricSpecificationAttributes) Unit

type ScalingInstructionCustomizedLoadMetricSpecificationState

type ScalingInstructionCustomizedLoadMetricSpecificationState 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 ScalingInstructionPredefinedLoadMetricSpecification

type ScalingInstructionPredefinedLoadMetricSpecification 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 ScalingInstructionPredefinedLoadMetricSpecificationAttributes

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

func (ScalingInstructionPredefinedLoadMetricSpecificationAttributes) InternalRef

func (ScalingInstructionPredefinedLoadMetricSpecificationAttributes) InternalTokens

func (ScalingInstructionPredefinedLoadMetricSpecificationAttributes) InternalWithRef

func (ScalingInstructionPredefinedLoadMetricSpecificationAttributes) PredefinedLoadMetricType

func (ScalingInstructionPredefinedLoadMetricSpecificationAttributes) ResourceLabel

type ScalingInstructionPredefinedLoadMetricSpecificationState

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

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    []ScalingInstructionCustomizedLoadMetricSpecificationState `json:"customized_load_metric_specification"`
	PredefinedLoadMetricSpecification    []ScalingInstructionPredefinedLoadMetricSpecificationState `json:"predefined_load_metric_specification"`
	TargetTrackingConfiguration          []ScalingInstructionTargetTrackingConfigurationState       `json:"target_tracking_configuration"`
}

type ScalingInstructionTargetTrackingConfiguration

type ScalingInstructionTargetTrackingConfiguration 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"`
	// ScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification: optional
	CustomizedScalingMetricSpecification *ScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification `hcl:"customized_scaling_metric_specification,block"`
	// ScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification: optional
	PredefinedScalingMetricSpecification *ScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification `hcl:"predefined_scaling_metric_specification,block"`
}

type ScalingInstructionTargetTrackingConfigurationAttributes

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

func (ScalingInstructionTargetTrackingConfigurationAttributes) DisableScaleIn

func (ScalingInstructionTargetTrackingConfigurationAttributes) EstimatedInstanceWarmup

func (ScalingInstructionTargetTrackingConfigurationAttributes) InternalRef

func (ScalingInstructionTargetTrackingConfigurationAttributes) InternalTokens

func (ScalingInstructionTargetTrackingConfigurationAttributes) InternalWithRef

func (ScalingInstructionTargetTrackingConfigurationAttributes) ScaleInCooldown

func (ScalingInstructionTargetTrackingConfigurationAttributes) ScaleOutCooldown

func (ScalingInstructionTargetTrackingConfigurationAttributes) TargetValue

type ScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification

type ScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification 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 ScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationAttributes

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

func (ScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationAttributes) Dimensions

func (ScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationAttributes) InternalRef

func (ScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationAttributes) InternalTokens

func (ScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationAttributes) MetricName

func (ScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationAttributes) Namespace

func (ScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationAttributes) Statistic

func (ScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationAttributes) Unit

type ScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationState

type ScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationState 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 ScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification

type ScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification 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 ScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecificationAttributes

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

func (ScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecificationAttributes) InternalRef

func (ScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecificationAttributes) InternalTokens

func (ScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecificationAttributes) PredefinedScalingMetricType

func (ScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecificationAttributes) ResourceLabel

type ScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecificationState

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

type ScalingInstructionTargetTrackingConfigurationState

type ScalingInstructionTargetTrackingConfigurationState 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 []ScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationState `json:"customized_scaling_metric_specification"`
	PredefinedScalingMetricSpecification []ScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecificationState `json:"predefined_scaling_metric_specification"`
}

Jump to

Keyboard shortcuts

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