ec2

package
v0.0.0-...-4263410 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAWSPermissionsMissing = errors.New("AWS permissions missing")

Functions

func NewEC2Logger

func NewEC2Logger(ctx context.Context) *ec2Logger

func NewInstanceTypes

func NewInstanceTypes(ctx context.Context, types []types.InstanceTypeInfo) ([]*clients.InstanceType, error)

Types

type Policy

type Policy struct {
	Statement []Statement `json:"Statement"`
}

Policy AWS JSON element

type Statement

type Statement struct {
	// Sid is an optional identifier of the Statement
	Sid string

	// Effect defines results outcome
	// Values: "Allow" or "Deny"
	Effect string

	// Describes the specific AWS actions for which the effect applies.
	Action []string
}

Statement is a main policy element.

Jump to

Keyboard shortcuts

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