Documentation ¶
Index ¶
- type Account
- func (a Account) AllAWSTags() []string
- func (a Account) AllBaselineStacks() ([]Stack, error)
- func (a Account) AllTags() []string
- func (a Account) AssumeRoleARN() string
- func (a Account) CurrentTags() []string
- func (a Account) FilterBaselineStacks(stackNames string) ([]Stack, error)
- func (a Account) FilterServiceControlPolicies(stackNames string) []Stack
- func (a Account) GenerateStacks(stack Stack) ([]Stack, error)
- func (a Account) ID() string
- func (a Account) IsAWS() bool
- func (a Account) IsProvisioned() bool
- func (a Account) Name() string
- func (a Account) Type() string
- type OrganizationUnit
- func (grp OrganizationUnit) AllAWSTags() []string
- func (grp OrganizationUnit) AllBaselineStacks() []Stack
- func (grp OrganizationUnit) AllDescendentAccounts() []*Account
- func (grp OrganizationUnit) AllDescendentOUs() []*OrganizationUnit
- func (grp OrganizationUnit) AllTags() []string
- func (grp OrganizationUnit) DelegatedAdministrator() *Account
- func (grp OrganizationUnit) ID() string
- func (grp OrganizationUnit) ManagementAccount() *Account
- func (grp OrganizationUnit) Name() string
- func (grp OrganizationUnit) Type() string
- type Resource
- type Stack
- func (s Stack) AWSRegionEnv() *string
- func (s Stack) ChangeSetName() *string
- func (s Stack) CloudformationCapabilitiesArg() []*string
- func (s Stack) CloudformationParametersType() ([]*cloudformation.Parameter, error)
- func (s Stack) CloudformationStackName() *string
- func (s Stack) NewForRegion(region string) Stack
- func (s Stack) RoleARN(acct Account) *string
- func (s Stack) ValidCloudformationCapabilities() bool
- func (s Stack) Validate() error
- func (s Stack) WorkspaceEnabled() bool
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 (Account) AllBaselineStacks ¶
func (Account) AssumeRoleARN ¶
func (Account) CurrentTags ¶ added in v0.7.1
func (Account) FilterBaselineStacks ¶
func (Account) FilterServiceControlPolicies ¶
func (Account) GenerateStacks ¶ added in v0.6.0
func (Account) IsProvisioned ¶
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:"-"` OUFilepath *string `yaml:"OUFilepath,omitempty"` }
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 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"` CloudformationCapabilities []string `yaml:"CloudformationCapabilities,omitempty"` }
func (Stack) AWSRegionEnv ¶ added in v0.5.4
func (Stack) ChangeSetName ¶ added in v0.7.2
func (Stack) CloudformationCapabilitiesArg ¶ added in v0.7.6
func (Stack) CloudformationParametersType ¶ added in v0.7.2
func (s Stack) CloudformationParametersType() ([]*cloudformation.Parameter, error)
func (Stack) CloudformationStackName ¶ added in v0.7.2
CloudformationStackName returns the corresponding stack name to create in cloudformation.
The name needs to match [a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/._+]*
func (Stack) NewForRegion ¶ added in v0.6.0
func (Stack) ValidCloudformationCapabilities ¶ added in v0.7.6
func (Stack) WorkspaceEnabled ¶ added in v0.5.4
Click to show internal directories.
Click to hide internal directories.