awsclient

package
v0.0.0-...-18bb2fd Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(ctx context.Context, accessKeyID, secretAccessKey, region string) (aws.Config, error)

Types

type OrganizationsClient

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

func NewOrganizationsClient

func NewOrganizationsClient(cfg aws.Config) *OrganizationsClient

func (*OrganizationsClient) ListAccounts

func (o *OrganizationsClient) ListAccounts(ctx context.Context) ([]types.Account, error)

func (*OrganizationsClient) ListTagsForAccount

func (o *OrganizationsClient) ListTagsForAccount(ctx context.Context, accountID string) ([]types.Tag, error)

func (*OrganizationsClient) SyncTags

func (o *OrganizationsClient) SyncTags(ctx context.Context, input SyncTagsInput) (map[string]string, error)

func (*OrganizationsClient) TagAccount

func (o *OrganizationsClient) TagAccount(ctx context.Context, accountID string, tags []types.Tag) error

func (*OrganizationsClient) UntagAccount

func (o *OrganizationsClient) UntagAccount(ctx context.Context, accountID string, tagKeys []string) error

type SyncTagsInput

type SyncTagsInput struct {
	AccountID string
	TenantID  string
}

Jump to

Keyboard shortcuts

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