ec2

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TypeIngress = "ingress"
	TypeEgress  = "egress"
)
View Source
const (
	ActionAllow = "allow"
	ActionDeny  = "deny"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockDevice

type BlockDevice struct {
	Metadata  iacTypes.Metadata
	Encrypted iacTypes.BoolValue
}

type EC2

type EC2 struct {
	Instances            []Instance
	LaunchConfigurations []LaunchConfiguration
	LaunchTemplates      []LaunchTemplate
	VPCs                 []VPC
	SecurityGroups       []SecurityGroup
	NetworkACLs          []NetworkACL
	Subnets              []Subnet
	Volumes              []Volume
}

type Encryption

type Encryption struct {
	Metadata iacTypes.Metadata
	Enabled  iacTypes.BoolValue
	KMSKeyID iacTypes.StringValue
}

type Instance

type Instance struct {
	Metadata        iacTypes.Metadata
	MetadataOptions MetadataOptions
	UserData        iacTypes.StringValue
	SecurityGroups  []SecurityGroup
	RootBlockDevice *BlockDevice
	EBSBlockDevices []*BlockDevice
}

func NewInstance

func NewInstance(metadata iacTypes.Metadata) *Instance

func (*Instance) HasHTTPEndpointDisabled

func (i *Instance) HasHTTPEndpointDisabled() bool

func (*Instance) HasSensitiveInformationInUserData

func (i *Instance) HasSensitiveInformationInUserData() bool

func (*Instance) RequiresIMDSToken

func (i *Instance) RequiresIMDSToken() bool

type LaunchConfiguration

type LaunchConfiguration struct {
	Metadata          iacTypes.Metadata
	Name              iacTypes.StringValue
	AssociatePublicIP iacTypes.BoolValue
	RootBlockDevice   *BlockDevice
	EBSBlockDevices   []*BlockDevice
	MetadataOptions   MetadataOptions
	UserData          iacTypes.StringValue
}

func (*LaunchConfiguration) HasHTTPEndpointDisabled

func (i *LaunchConfiguration) HasHTTPEndpointDisabled() bool

func (*LaunchConfiguration) RequiresIMDSToken

func (i *LaunchConfiguration) RequiresIMDSToken() bool

type LaunchTemplate

type LaunchTemplate struct {
	Metadata iacTypes.Metadata
	Name     iacTypes.StringValue
	Instance
}

type MetadataOptions

type MetadataOptions struct {
	Metadata     iacTypes.Metadata
	HttpTokens   iacTypes.StringValue
	HttpEndpoint iacTypes.StringValue
}

type NetworkACL

type NetworkACL struct {
	Metadata      iacTypes.Metadata
	Rules         []NetworkACLRule
	IsDefaultRule iacTypes.BoolValue
}

type NetworkACLRule

type NetworkACLRule struct {
	Metadata iacTypes.Metadata
	Type     iacTypes.StringValue
	Action   iacTypes.StringValue
	Protocol iacTypes.StringValue
	CIDRs    []iacTypes.StringValue
}

type SecurityGroup

type SecurityGroup struct {
	Metadata     iacTypes.Metadata
	IsDefault    iacTypes.BoolValue
	Description  iacTypes.StringValue
	IngressRules []SecurityGroupRule
	EgressRules  []SecurityGroupRule
	VPCID        iacTypes.StringValue
}

type SecurityGroupRule

type SecurityGroupRule struct {
	Metadata    iacTypes.Metadata
	Description iacTypes.StringValue
	CIDRs       []iacTypes.StringValue
}

type Subnet

type Subnet struct {
	Metadata            iacTypes.Metadata
	MapPublicIpOnLaunch iacTypes.BoolValue
}

type VPC

type VPC struct {
	Metadata        iacTypes.Metadata
	ID              iacTypes.StringValue
	IsDefault       iacTypes.BoolValue
	SecurityGroups  []SecurityGroup
	FlowLogsEnabled iacTypes.BoolValue
}

type Volume

type Volume struct {
	Metadata   iacTypes.Metadata
	Encryption Encryption
}

Jump to

Keyboard shortcuts

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