aws_redshift_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 {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Enable: bool, optional
	Enable terra.BoolValue `hcl:"enable,attr"`
	// EndTime: string, optional
	EndTime terra.StringValue `hcl:"end_time,attr"`
	// IamRole: string, required
	IamRole terra.StringValue `hcl:"iam_role,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Schedule: string, required
	Schedule terra.StringValue `hcl:"schedule,attr" validate:"required"`
	// StartTime: string, optional
	StartTime terra.StringValue `hcl:"start_time,attr"`
	// TargetAction: required
	TargetAction *TargetAction `hcl:"target_action,block" validate:"required"`
}

Args contains the configurations for aws_redshift_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_redshift_scheduled_action.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (arsa *Resource) Attributes() awsRedshiftScheduledActionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (arsa *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (arsa *Resource) State() (*awsRedshiftScheduledActionState, bool)

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

func (*Resource) StateMust

func (arsa *Resource) StateMust() *awsRedshiftScheduledActionState

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

func (*Resource) Type

func (arsa *Resource) Type() string

Type returns the Terraform object type for Resource.

type TargetAction

type TargetAction struct {
	// TargetActionPauseCluster: optional
	PauseCluster *TargetActionPauseCluster `hcl:"pause_cluster,block"`
	// TargetActionResizeCluster: optional
	ResizeCluster *TargetActionResizeCluster `hcl:"resize_cluster,block"`
	// TargetActionResumeCluster: optional
	ResumeCluster *TargetActionResumeCluster `hcl:"resume_cluster,block"`
}

type TargetActionAttributes

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

func (TargetActionAttributes) InternalRef

func (ta TargetActionAttributes) InternalRef() (terra.Reference, error)

func (TargetActionAttributes) InternalTokens

func (ta TargetActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TargetActionAttributes) InternalWithRef

func (TargetActionAttributes) PauseCluster

func (TargetActionAttributes) ResizeCluster

func (TargetActionAttributes) ResumeCluster

type TargetActionPauseCluster

type TargetActionPauseCluster struct {
	// ClusterIdentifier: string, required
	ClusterIdentifier terra.StringValue `hcl:"cluster_identifier,attr" validate:"required"`
}

type TargetActionPauseClusterAttributes

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

func (TargetActionPauseClusterAttributes) ClusterIdentifier

func (pc TargetActionPauseClusterAttributes) ClusterIdentifier() terra.StringValue

func (TargetActionPauseClusterAttributes) InternalRef

func (TargetActionPauseClusterAttributes) InternalTokens

func (TargetActionPauseClusterAttributes) InternalWithRef

type TargetActionPauseClusterState

type TargetActionPauseClusterState struct {
	ClusterIdentifier string `json:"cluster_identifier"`
}

type TargetActionResizeCluster

type TargetActionResizeCluster struct {
	// Classic: bool, optional
	Classic terra.BoolValue `hcl:"classic,attr"`
	// ClusterIdentifier: string, required
	ClusterIdentifier terra.StringValue `hcl:"cluster_identifier,attr" validate:"required"`
	// ClusterType: string, optional
	ClusterType terra.StringValue `hcl:"cluster_type,attr"`
	// NodeType: string, optional
	NodeType terra.StringValue `hcl:"node_type,attr"`
	// NumberOfNodes: number, optional
	NumberOfNodes terra.NumberValue `hcl:"number_of_nodes,attr"`
}

type TargetActionResizeClusterAttributes

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

func (TargetActionResizeClusterAttributes) Classic

func (TargetActionResizeClusterAttributes) ClusterIdentifier

func (rc TargetActionResizeClusterAttributes) ClusterIdentifier() terra.StringValue

func (TargetActionResizeClusterAttributes) ClusterType

func (TargetActionResizeClusterAttributes) InternalRef

func (TargetActionResizeClusterAttributes) InternalTokens

func (TargetActionResizeClusterAttributes) InternalWithRef

func (TargetActionResizeClusterAttributes) NodeType

func (TargetActionResizeClusterAttributes) NumberOfNodes

type TargetActionResizeClusterState

type TargetActionResizeClusterState struct {
	Classic           bool    `json:"classic"`
	ClusterIdentifier string  `json:"cluster_identifier"`
	ClusterType       string  `json:"cluster_type"`
	NodeType          string  `json:"node_type"`
	NumberOfNodes     float64 `json:"number_of_nodes"`
}

type TargetActionResumeCluster

type TargetActionResumeCluster struct {
	// ClusterIdentifier: string, required
	ClusterIdentifier terra.StringValue `hcl:"cluster_identifier,attr" validate:"required"`
}

type TargetActionResumeClusterAttributes

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

func (TargetActionResumeClusterAttributes) ClusterIdentifier

func (rc TargetActionResumeClusterAttributes) ClusterIdentifier() terra.StringValue

func (TargetActionResumeClusterAttributes) InternalRef

func (TargetActionResumeClusterAttributes) InternalTokens

func (TargetActionResumeClusterAttributes) InternalWithRef

type TargetActionResumeClusterState

type TargetActionResumeClusterState struct {
	ClusterIdentifier string `json:"cluster_identifier"`
}

type TargetActionState

type TargetActionState struct {
	PauseCluster  []TargetActionPauseClusterState  `json:"pause_cluster"`
	ResizeCluster []TargetActionResizeClusterState `json:"resize_cluster"`
	ResumeCluster []TargetActionResumeClusterState `json:"resume_cluster"`
}

Jump to

Keyboard shortcuts

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