import * as core from "@terrascript/core"; export interface AccountsArgs extends core.SchemaArgs { arn: string | core.StringOut; email: string | core.StringOut; id: string | core.StringOut; name: string | core.StringOut; } export class Accounts extends core.Schema { @core.attr(String, { computed: true }) public arn!: string | core.StringOut; @core.attr(String, { computed: true }) public email!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; @core.attr(String, { computed: true }) public name!: string | core.StringOut; } export interface OrganizationalUnitArgs extends core.ResourceArgs { /** * The name for the organizational unit */ name: string | core.StringOut; /** * ID of the parent organizational unit, which may be the root */ parentId: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class OrganizationalUnit extends core.Resource { /** * List of child accounts for this Organizational Unit. Does not return account information for child O * rganizational Units. All elements have these attributes: */ @core.attr(Accounts, { computed: true, kind: "array" }) public accounts!: core.Array | core.ArrayOut; /** * ARN of the account */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * Identifier of the account */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The name for the organizational unit */ @core.attr(String) public name!: string | core.StringOut; /** * ID of the parent organizational unit, which may be the root */ @core.attr(String) public parentId!: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: OrganizationalUnitArgs) { super(name, "aws_organizations_organizational_unit", args); } public override getNamespace(): string { return "aws_organizations"; } }