resource

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: GPL-3.0 Imports: 8 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"`
	AWSTags                []string          `yaml:"-"`
	BaselineStacks         []Stack           `yaml:"Stacks,omitempty"`
	ServiceControlPolicies []Stack           `yaml:"ServiceControlPolicies,omitempty"`
	ManagementAccount      bool              `yaml:"-"`
	DelegatedAdministrator bool              `yaml:"DelegatedAdministrator,omitempty"`
	Parent                 *OrganizationUnit `yaml:"-"`
}

func (Account) AllAWSTags added in v0.7.1

func (a Account) AllAWSTags() []string

func (Account) AllBaselineStacks

func (a Account) AllBaselineStacks() ([]Stack, error)

func (Account) AllTags

func (a Account) AllTags() []string

func (Account) AssumeRoleARN

func (a Account) AssumeRoleARN() string

func (Account) CurrentTags added in v0.7.1

func (a Account) CurrentTags() []string

func (Account) FilterBaselineStacks

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

func (Account) FilterServiceControlPolicies

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

func (Account) GenerateStacks added in v0.6.0

func (a Account) GenerateStacks(stack Stack) ([]Stack, error)

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"`
	AWSTags                []string            `yaml:"-"`
	Accounts               []*Account          `yaml:"Accounts,omitempty"`
	BaselineStacks         []Stack             `yaml:"Stacks,omitempty"`
	ServiceControlPolicies []Stack             `yaml:"ServiceControlPolicies,omitempty"`
	Parent                 *OrganizationUnit   `yaml:"-"`
}

func (OrganizationUnit) AllAWSTags added in v0.7.1

func (grp OrganizationUnit) AllAWSTags() []string

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 {
	// When adding a new type to the struct, make sure you add it to the `NewForRegion` method.
	Name                      string `yaml:"Name"`
	Type                      string `yaml:"Type"`
	Path                      string `yaml:"Path"`
	Region                    string `yaml:"Region,omitempty"`
	RoleOverrideARNDeprecated string `yaml:"RoleOverrideARN,omitempty"` // Deprecated
	AssumeRoleName            string `yaml:"AssumeRoleName,omitempty"`
	Workspace                 string `yaml:"Workspace,omitempty"`

	CloudformationParameters []string `yaml:"CloudformationParameters,omitempty"`
}

func (Stack) AWSRegionEnv added in v0.5.4

func (s Stack) AWSRegionEnv() *string

func (Stack) ChangeSetName added in v0.7.2

func (s Stack) ChangeSetName() *string

func (Stack) CloudformationParametersType added in v0.7.2

func (s Stack) CloudformationParametersType() ([]*cloudformation.Parameter, error)

func (Stack) CloudformationStackName added in v0.7.2

func (s Stack) CloudformationStackName() *string

func (Stack) NewForRegion added in v0.6.0

func (s Stack) NewForRegion(region string) Stack

func (Stack) RoleARN added in v0.7.0

func (s Stack) RoleARN(acct Account) *string

func (Stack) Validate added in v0.6.0

func (s Stack) Validate() error

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