Hierarchy

  • AccountsConfig

Implements

Constructors

  • Parameters

    • props: {
          auditAccountEmail: string;
          logArchiveAccountEmail: string;
          managementAccountEmail: string;
      }
      • auditAccountEmail: string
      • logArchiveAccountEmail: string
      • managementAccountEmail: string
    • Optional values: IAccountsConfig

    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
    • Optional managementAccountCredentials: Credentials

      Management account credential when deployed from external account, otherwise this should remain undefined

    Returns Promise<void>

Generated using TypeDoc