Hierarchy

  • AccountsConfig

Implements

Constructors

  • Parameters

    • props: {
          auditAccountEmail: string;
          logArchiveAccountEmail: string;
          managementAccountEmail: string;
      }
      • auditAccountEmail: string
      • logArchiveAccountEmail: string
      • managementAccountEmail: string
    • Optional values: {
          accountIds: undefined | ({ email: string; accountId: string; })[];
          mandatoryAccounts: (({ name: string; description: string | undefined; email: string; organizationalUnit: string | undefined; warm: boolean | undefined; }) | ({ name: string; description: string | undefined; email: string; organizationalUnit: string | undefined; enableGovCloud: boolean | undefined; }))[];
          workloadAccounts: (({ name: string; description: string | undefined; email: string; organizationalUnit: string | undefined; warm: boolean | undefined; }) | ({ name: string; description: string | undefined; email: string; organizationalUnit: string | undefined; enableGovCloud: boolean | undefined; }))[];
      }
      • accountIds: undefined | ({ email: string; accountId: string; })[]
      • mandatoryAccounts: (({ name: string; description: string | undefined; email: string; organizationalUnit: string | undefined; warm: boolean | undefined; }) | ({ name: string; description: string | undefined; email: string; organizationalUnit: string | undefined; enableGovCloud: boolean | undefined; }))[]
      • workloadAccounts: (({ name: string; description: string | undefined; email: string; organizationalUnit: string | undefined; warm: boolean | undefined; }) | ({ name: string; description: string | undefined; email: string; organizationalUnit: string | undefined; enableGovCloud: boolean | undefined; }))[]

    Returns AccountsConfig

Properties

accountIds: undefined | AccountIdConfig[] = undefined

Optionally provide a list of AWS Account IDs to bypass the usage of the AWS Organizations Client lookup. This is not a readonly member since we will initialize it with values if it is not provided

mandatoryAccounts: AccountConfig[] | GovCloudAccountConfig[] = []
workloadAccounts: AccountConfig[] | GovCloudAccountConfig[] = []
AUDIT_ACCOUNT: "Audit" = 'Audit'
FILENAME: "accounts-config.yaml" = 'accounts-config.yaml'
LOG_ARCHIVE_ACCOUNT: "LogArchive" = 'LogArchive'
MANAGEMENT_ACCOUNT: "Management" = 'Management'

Methods

  • Parameters

    • ids: string[]
    • accountId: string

    Returns void

  • Returns boolean

  • Parameters

    • name: string

    Returns boolean

  • Parameters

    • name: string

    Returns string

  • Returns string[]

  • Parameters

    • accountId: string

    Returns undefined | string

  • Returns string

  • Returns string

  • Returns string

  • Loads account ids by utilizing the organizations client if account ids are not provided in the config.

    Parameters

    • partition: string
    • enableSingleAccountMode: boolean
    • isOrgsEnabled: boolean
    • accountsConfig: AccountsConfig

    Returns Promise<void>

Generated using TypeDoc