import * as core from "@terrascript/core";

export interface OrganizationConfigurationArgs extends core.ResourceArgs {
  /**
   * (Required) Whether to automatically enable Security Hub for new accounts in the organization.
   */
  autoEnable: boolean | core.BooleanOut;
}

export class OrganizationConfiguration extends core.Resource<OrganizationConfigurationArgs> {
  /**
   * (Required) Whether to automatically enable Security Hub for new accounts in the organization.
   */
  @core.attr(Boolean)
  public autoEnable!: boolean | core.BooleanOut;

  /**
   * AWS Account ID.
   */
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  constructor(name: string, args?: OrganizationConfigurationArgs) {
    super(name, "aws_securityhub_organization_configuration", args);
  }

  public override getNamespace(): string {
    return "aws_securityhub";
  }
}
