resource

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: GPL-3.0 Imports: 2 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:"-"`
	DelegatedAdministrator bool              `yaml:"DelegatedAdministrator,omitempty"`
	Parent                 *OrganizationUnit `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

func (Account) Name added in v0.4.0

func (a Account) Name() string

func (Account) Type added in v0.4.0

func (a Account) Type() string

type OrganizationUnit added in v0.4.0

type OrganizationUnit struct {
	OUID                   *string             `yaml:"-"`
	OUName                 string              `yaml:"Name,omitempty"`
	ChildGroups            []*OrganizationUnit `yaml:"AccountGroups,omitempty"` // Deprecated. Use `OrganizationUnits`
	ChildOUs               []*OrganizationUnit `yaml:"OrganizationUnits,omitempty"`
	Tags                   []string            `yaml:"Tags,omitempty"`
	Accounts               []*Account          `yaml:"Accounts,omitempty"`
	BaselineStacks         []Stack             `yaml:"Stacks,omitempty"`
	ServiceControlPolicies []Stack             `yaml:"ServiceControlPolicies,omitempty"`
	Parent                 *OrganizationUnit   `yaml:"-"`
}

func (OrganizationUnit) AllBaselineStacks added in v0.4.0

func (grp OrganizationUnit) AllBaselineStacks() []Stack

func (OrganizationUnit) AllDescendentAccounts added in v0.4.0

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

func (OrganizationUnit) AllDescendentOUs added in v0.4.0

func (grp OrganizationUnit) AllDescendentOUs() []*OrganizationUnit

func (OrganizationUnit) AllTags added in v0.4.0

func (grp OrganizationUnit) AllTags() []string

func (OrganizationUnit) DelegatedAdministrator added in v0.5.0

func (grp OrganizationUnit) DelegatedAdministrator() *Account

This should only be called from the Root OU.

func (OrganizationUnit) ID added in v0.4.0

func (grp OrganizationUnit) ID() string

func (OrganizationUnit) ManagementAccount added in v0.5.0

func (grp OrganizationUnit) ManagementAccount() *Account

This should only be called from the Root OU.

func (OrganizationUnit) Name added in v0.4.0

func (grp OrganizationUnit) Name() string

func (OrganizationUnit) Type added in v0.4.0

func (grp OrganizationUnit) Type() string

type Resource added in v0.4.0

type Resource interface {
	ID() string
	Name() string
	Type() string
}

type Stack

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

func (Stack) AWSRegionEnv added in v0.5.4

func (s Stack) AWSRegionEnv() *string

func (Stack) WorkspaceEnabled added in v0.5.4

func (s Stack) WorkspaceEnabled() bool

Jump to

Keyboard shortcuts

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