ec2

package
v0.75.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 2 Imported by: 3

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 {
	defsecTypes.Metadata
	Encrypted defsecTypes.BoolValue
}

type EC2

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

type Encryption added in v0.69.0

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

type Instance

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

func NewInstance added in v0.69.0

func NewInstance(metadata defsecTypes.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 added in v0.69.0

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

func (*LaunchConfiguration) HasHTTPEndpointDisabled added in v0.69.0

func (i *LaunchConfiguration) HasHTTPEndpointDisabled() bool

func (*LaunchConfiguration) RequiresIMDSToken added in v0.69.0

func (i *LaunchConfiguration) RequiresIMDSToken() bool

type LaunchTemplate added in v0.69.0

type LaunchTemplate struct {
	defsecTypes.Metadata
	Instance
}

type MetadataOptions

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

type NetworkACL added in v0.69.0

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

type NetworkACLRule added in v0.69.0

type SecurityGroup added in v0.69.0

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

type SecurityGroupRule added in v0.69.0

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

type Subnet added in v0.73.0

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

type VPC added in v0.74.0

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

type Volume added in v0.69.0

type Volume struct {
	defsecTypes.Metadata
	Encryption Encryption
}

Jump to

Keyboard shortcuts

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