awsorgs

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New() Client

func (Client) CloseAccounts

func (c Client) CloseAccounts(ctx context.Context, accts []*organizations.Account) []error

func (Client) CreateAccount added in v0.3.1

func (c Client) CreateAccount(
	ctx context.Context,
	consoleUI runner.ConsoleUI,
	mgmtAcct resource.Account,
	acct *organizations.Account,
) (string, error)

func (Client) CreateOrganizationUnit added in v0.3.0

func (c Client) CreateOrganizationUnit(
	ctx context.Context,
	consoleUI runner.ConsoleUI,
	mgmtAcct resource.Account,
	ouName, newParentId string,
) (*organizations.OrganizationalUnit, error)

func (Client) CurrentAccounts

func (c Client) CurrentAccounts(ctx context.Context) ([]*organizations.Account, error)

CurrentAccounts fetches all accounts in the organization.

func (Client) CurrentAccountsForParent added in v0.3.0

func (c Client) CurrentAccountsForParent(ctx context.Context, parentID string) ([]*organizations.Account, error)

func (Client) CurrentOUsForParent added in v0.3.0

func (c Client) CurrentOUsForParent(ctx context.Context, parentID string) ([]*organizations.OrganizationalUnit, error)

func (Client) FetchManagementAccount added in v0.3.1

func (c Client) FetchManagementAccount(ctx context.Context) (*resource.Account, error)

func (Client) FetchOUAndDescendents added in v0.4.0

func (c Client) FetchOUAndDescendents(ctx context.Context, ouID, mgmtAccountID string) (resource.OrganizationUnit, error)

func (Client) GetOrganizationUnit added in v0.3.0

func (c Client) GetOrganizationUnit(ctx context.Context, OUId string) (*organizations.OrganizationalUnit, error)

func (Client) GetOrganizationUnitChildren added in v0.3.0

func (c Client) GetOrganizationUnitChildren(ctx context.Context, OUId string) ([]*organizations.OrganizationalUnit, error)

func (Client) GetRootId added in v0.3.0

func (c Client) GetRootId() (string, error)

func (Client) ListAccountsForParent added in v0.3.0

func (c Client) ListAccountsForParent(parentID string) ([]*organizations.Account, error)

func (Client) ListOrganizationalUnits added in v0.3.0

func (c Client) ListOrganizationalUnits(parentID string) ([]*organizations.OrganizationalUnit, error)

func (Client) MoveAccount added in v0.3.0

func (c Client) MoveAccount(
	ctx context.Context,
	consoleUI runner.ConsoleUI,
	mgmtAcct resource.Account,
	acctId, oldParentId, newParentId string,
) error

func (Client) RecreateOU added in v0.3.0

func (c Client) RecreateOU(
	ctx context.Context,
	consoleUI runner.ConsoleUI,
	mgmtAcct resource.Account,
	ouID, ouName, newParentId string,
) error

func (Client) UpdateOrganizationUnit added in v0.3.0

func (c Client) UpdateOrganizationUnit(ctx context.Context, ouID, newName string) error

Jump to

Keyboard shortcuts

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