aws_lightsail_instance

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 AddOn

type AddOn struct {
	// SnapshotTime: string, required
	SnapshotTime terra.StringValue `hcl:"snapshot_time,attr" validate:"required"`
	// Status: string, required
	Status terra.StringValue `hcl:"status,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type AddOnAttributes

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

func (AddOnAttributes) InternalRef

func (ao AddOnAttributes) InternalRef() (terra.Reference, error)

func (AddOnAttributes) InternalTokens

func (ao AddOnAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AddOnAttributes) InternalWithRef

func (ao AddOnAttributes) InternalWithRef(ref terra.Reference) AddOnAttributes

func (AddOnAttributes) SnapshotTime

func (ao AddOnAttributes) SnapshotTime() terra.StringValue

func (AddOnAttributes) Status

func (ao AddOnAttributes) Status() terra.StringValue

func (AddOnAttributes) Type

func (ao AddOnAttributes) Type() terra.StringValue

type AddOnState

type AddOnState struct {
	SnapshotTime string `json:"snapshot_time"`
	Status       string `json:"status"`
	Type         string `json:"type"`
}

type Args

type Args struct {
	// AvailabilityZone: string, required
	AvailabilityZone terra.StringValue `hcl:"availability_zone,attr" validate:"required"`
	// BlueprintId: string, required
	BlueprintId terra.StringValue `hcl:"blueprint_id,attr" validate:"required"`
	// BundleId: string, required
	BundleId terra.StringValue `hcl:"bundle_id,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// IpAddressType: string, optional
	IpAddressType terra.StringValue `hcl:"ip_address_type,attr"`
	// KeyPairName: string, optional
	KeyPairName terra.StringValue `hcl:"key_pair_name,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// UserData: string, optional
	UserData terra.StringValue `hcl:"user_data,attr"`
	// AddOn: optional
	AddOn *AddOn `hcl:"add_on,block"`
}

Args contains the configurations for aws_lightsail_instance.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (ali *Resource) Attributes() awsLightsailInstanceAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (ali *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (ali *Resource) State() (*awsLightsailInstanceState, bool)

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

func (*Resource) StateMust

func (ali *Resource) StateMust() *awsLightsailInstanceState

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

func (*Resource) Type

func (ali *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

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