aws_appautoscaling_scheduled_action

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 {
	// EndTime: string, optional
	EndTime terra.StringValue `hcl:"end_time,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ResourceId: string, required
	ResourceId terra.StringValue `hcl:"resource_id,attr" validate:"required"`
	// ScalableDimension: string, required
	ScalableDimension terra.StringValue `hcl:"scalable_dimension,attr" validate:"required"`
	// Schedule: string, required
	Schedule terra.StringValue `hcl:"schedule,attr" validate:"required"`
	// ServiceNamespace: string, required
	ServiceNamespace terra.StringValue `hcl:"service_namespace,attr" validate:"required"`
	// StartTime: string, optional
	StartTime terra.StringValue `hcl:"start_time,attr"`
	// Timezone: string, optional
	Timezone terra.StringValue `hcl:"timezone,attr"`
	// ScalableTargetAction: required
	ScalableTargetAction *ScalableTargetAction `hcl:"scalable_target_action,block" validate:"required"`
}

Args contains the configurations for aws_appautoscaling_scheduled_action.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aasa *Resource) Attributes() awsAppautoscalingScheduledActionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aasa *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aasa *Resource) State() (*awsAppautoscalingScheduledActionState, bool)

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

func (*Resource) StateMust

func (aasa *Resource) StateMust() *awsAppautoscalingScheduledActionState

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

func (*Resource) Type

func (aasa *Resource) Type() string

Type returns the Terraform object type for Resource.

type ScalableTargetAction

type ScalableTargetAction struct {
	// MaxCapacity: string, optional
	MaxCapacity terra.StringValue `hcl:"max_capacity,attr"`
	// MinCapacity: string, optional
	MinCapacity terra.StringValue `hcl:"min_capacity,attr"`
}

type ScalableTargetActionAttributes

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

func (ScalableTargetActionAttributes) InternalRef

func (sta ScalableTargetActionAttributes) InternalRef() (terra.Reference, error)

func (ScalableTargetActionAttributes) InternalTokens

func (sta ScalableTargetActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ScalableTargetActionAttributes) InternalWithRef

func (ScalableTargetActionAttributes) MaxCapacity

func (ScalableTargetActionAttributes) MinCapacity

type ScalableTargetActionState

type ScalableTargetActionState struct {
	MaxCapacity string `json:"max_capacity"`
	MinCapacity string `json:"min_capacity"`
}

Jump to

Keyboard shortcuts

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