String indexable, which permits the inclusion of any additional data the AWS API might give us when we merge results in
Creates a new instance of AwsOrgNode
The Id property for this AwsOrgNode. Optional. Defaults to special string 'Root'A
The nodetype property for this AwsOrgNode. Optional. Defaults to 'ROOT'
A placeholder AwsOrgNode object
Amazon Resource Name (ARN) of this node
Array of Child AwsOrgNode Objects that are direct descendants
ID of the Node: [ 'Root', 'r-0abc', 'ou-0abc-abcdefgh', '123456789012' ]
Name of this node
The result of Organizations.describeOrganization, when this is a ROOT node
Type of this node
Type of AWS Organizations node: [ 'ROOT', 'ORGANIZATIONAL_UNIT', 'ACCOUNT' ]
Add a child AwsOrgNode to the Children Array property
An AwsOrgNode
Get an ACCOUNT AwsOrgNode Object that is a child of this AwsOrgNode, or optionally of any descendants as well
The ID of an ACCOUNT AwsOrgNode to search for in the tree below this node
If true, search the whole tree. If false, only search immediate child accounts of this node
An AwsOrgNode object if one is found, or undefined if not
Get an Array of all ACCOUNT AwsOrgNode Objects that are children of this AwsOrgNode, or optionally of any descendants as well
If true, get all accounts in the tree below this nose, if false only get immediate child accounts of this node
An Array of ACCOUNT AwsOrgNode objects
Get an AwsOrgNode Object that is a direct child of this AwsOrgNode by it's Id property
The Id of the Child node to find
The AwsOrgNode Object with the provided Id, or undefined if it doesn't exist
Get an Array of AwsOrgNode Objects that are ancestors of the AwsOrgNode, identified by it's Id property, within the tree below this AwsOrgNode - except any that are ROOT nodes.
The Id of the AwsOrgNode to get the Parents OUs for
An Array of ORGANIZATIONAL_UNIT AwsOrgNode objects that are antecedent to the object with the Id provided
Get an Array of AwsOrgNode Objects that are ancestors of the AwsOrgNode within the tree below this AwsOrgNode
The Id of the AwsOrgNode to get the Parents for
An Array of AwsOrgNode objects that are antecedent to the object with the Id provided
Determine if this AwsOrgNode Object is an ACCOUNT
True if the nodetype property is ACCOUNT
Determine if this AwsOrgNode Object is an ORGANIZATIONAL_UNIT
True if the nodetype property is ORGANIZATIONAL_UNIT
Determine if this AwsOrgNode Object is a ROOT
True if the nodetype property is ROOT
Override of toString inherited from Object: "name (id)"
"this.name (this.id)"
A string representation of the tree of AwsOrgNodes beneath this one
A private recursion-control parameter
A string representation of the AwsOrgNode tree
Creates an initialised instance of an AwsOrgNode
An AwsOrgNode object to initialise. Optional. Defaults to an empty Root node
Whether to include AWS Accounts in a SUSPENDED state. Optional. Defaults to false
The output from org.listAccounts(). Optional. Performed once per tree initialisation, all children are passed the list generated in the parent's initialisation.
A Promise to return the fully initialised AwsOrgNode Object, with all populated Children
Generated using TypeDoc
A class implementing an AwsOrgNode Interface
This Class does not expect to be instantiated through its constructor as it needs to be initialised through async AWS API calls Therefore, it must be created through the static function init which will return a new AwsOrgNode: AwsOrgNode.init