autoscaling

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LaunchConfigurationTables = []interface{}{
	&LaunchConfiguration{},
	&LaunchConfigurationBlockDeviceMapping{},
}

Functions

func NewClient

func NewClient(awsConfig aws.Config, db *database.Database, log hclog.Logger,
	accountID string, region string) resource.ClientInterface

Types

type Client

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

func (*Client) CollectResource

func (c *Client) CollectResource(resource string, config interface{}) error

type LaunchConfiguration

type LaunchConfiguration struct {
	ID uint `gorm:"primarykey"`

	// AWS account id
	AccountID string

	Region                       string
	AssociatePublicIpAddress     *bool
	BlockDeviceMappings          []*LaunchConfigurationBlockDeviceMapping `gorm:"constraint:OnDelete:CASCADE;"`
	ClassicLinkVPCId             *string
	ClassicLinkVPCSecurityGroups *string
	CreatedTime                  *time.Time
	EbsOptimized                 *bool
	IamInstanceProfile           *string
	ImageId                      *string
	InstanceMonitoringEnabled    *bool
	InstanceType                 *string
	KernelId                     *string
	KeyName                      *string

	LaunchConfigurationARN  *string `neo:"unique"`
	LaunchConfigurationName *string

	MetadataHttpEndpoint            string
	MetadataHttpPutResponseHopLimit *int32
	MetadataHttpTokens              string

	PlacementTenancy *string
	RamdiskId        *string
	SecurityGroups   *string
	SpotPrice        *string
	UserData         *string
	// contains filtered or unexported fields
}

func (LaunchConfiguration) TableName

func (LaunchConfiguration) TableName() string

type LaunchConfigurationBlockDeviceMapping

type LaunchConfigurationBlockDeviceMapping struct {
	ID                    uint `gorm:"primarykey"`
	LaunchConfigurationID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	// The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).
	// For more information, see Device Naming on Linux Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html)
	// in the Amazon EC2 User Guide for Linux Instances.
	DeviceName *string

	EbsDeleteOnTermination *bool
	EbsEncrypted           *bool
	EbsIops                *int32
	EbsSnapshotId          *string
	EbsVolumeSize          *int32
	EbsVolumeType          *string

	// If NoDevice is true for the root device, instances might fail the EC2 health
	// check. In that case, Amazon EC2 Auto Scaling launches replacement instances.
	NoDevice *bool

	// The name of the virtual device (for example, ephemeral0).
	VirtualName *string
}

func (LaunchConfigurationBlockDeviceMapping) TableName

Jump to

Keyboard shortcuts

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