organization

package
v0.0.0-...-1687775 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package organization provides functionality for managing AWS Organizations. Version: 1.0.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetryWithBackoff

func RetryWithBackoff(operation func() error, config RetryConfig) error

RetryWithBackoff implements exponential backoff retry logic

Types

type Organization

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

Organization represents an AWS Organization

func NewOrganization

func NewOrganization(ctx *pulumi.Context, cfg *config.OrganizationConfig) (*Organization, error)

NewOrganization creates a new AWS Organization with the specified configuration

func (*Organization) Backup

func (o *Organization) Backup(ctx context.Context) error

Backup creates a backup of the organization state

func (*Organization) Cleanup

func (o *Organization) Cleanup() error

Cleanup performs cleanup operations

func (*Organization) Restore

func (o *Organization) Restore(ctx context.Context, backupId string) error

Restore restores the organization state from a backup

type OrganizationService

type OrganizationService interface {
	CreateOU(ctx *pulumi.Context, name string, parentId pulumi.StringInput, tags pulumi.StringMap) (*organizations.OrganizationalUnit, error)
	CreateOUHierarchy(ctx *pulumi.Context, parent pulumi.StringInput, ouConfig *config.OUConfig, tags pulumi.StringMap) (*organizations.OrganizationalUnit, map[string]*organizations.OrganizationalUnit, error)
	Backup(ctx context.Context) error
	Restore(ctx context.Context, backupId string) error
}

OrganizationService defines the interface for organization operations

type RetryConfig

type RetryConfig struct {
	MaxAttempts int
	Delay       time.Duration
}

RetryConfig defines the configuration for retry operations

Jump to

Keyboard shortcuts

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