resource

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Email       string `yaml:"Email"`
	AccountName string `yaml:"AccountName"`
	State       string `yaml:"State,omitempty"`
	AccountID   string `yaml:"-"`

	AssumeRoleName         string        `yaml:"AssumeRoleName,omitempty"`
	Tags                   []string      `yaml:"Tags,omitempty"`
	BaselineStacks         []Stack       `yaml:"Stacks,omitempty"`
	ServiceControlPolicies []Stack       `yaml:"ServiceControlPolicies,omitempty"`
	ManagementAccount      bool          `yaml:"ManagementAccount,omitempty"`
	Parent                 *AccountGroup `yaml:"-"`
}

func (Account) AllBaselineStacks

func (a Account) AllBaselineStacks() []Stack

func (Account) AllTags

func (a Account) AllTags() []string

func (Account) AssumeRoleARN

func (a Account) AssumeRoleARN() string

func (Account) FilterBaselineStacks

func (a Account) FilterBaselineStacks(stackNames string) []Stack

func (Account) FilterServiceControlPolicies

func (a Account) FilterServiceControlPolicies(stackNames string) []Stack

func (Account) ID

func (a Account) ID() string

func (Account) IsAWS

func (a Account) IsAWS() bool

func (Account) IsProvisioned

func (a Account) IsProvisioned() bool

type AccountGroup

type AccountGroup struct {
	ID                     *string         `yaml:"-"`
	Name                   string          `yaml:"Name,omitempty"`
	ChildGroups            []*AccountGroup `yaml:"AccountGroups,omitempty"`
	Tags                   []string        `yaml:"Tags,omitempty"`
	Accounts               []*Account      `yaml:"Accounts,omitempty"`
	BaselineStacks         []Stack         `yaml:"Stacks,omitempty"`
	ServiceControlPolicies []Stack         `yaml:"ServiceControlPolicies,omitempty"`
	Parent                 *AccountGroup   `yaml:"-"`
}

func (AccountGroup) AllBaselineStacks

func (grp AccountGroup) AllBaselineStacks() []Stack

func (AccountGroup) AllDescendentAccounts

func (grp AccountGroup) AllDescendentAccounts() []*Account

func (AccountGroup) AllDescendentGroups

func (grp AccountGroup) AllDescendentGroups() []*AccountGroup

func (AccountGroup) AllTags

func (grp AccountGroup) AllTags() []string

type Stack

type Stack struct {
	Name            string `yaml:"Name"`
	Type            string `yaml:"Type"`
	Path            string `yaml:"Path"`
	RoleOverrideARN string `yaml:"RoleOverrideARN,omitempty"`
}

Jump to

Keyboard shortcuts

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