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

export interface FirewallRuleGroupArgs extends core.ResourceArgs {
  /**
   * (Required) A name that lets you identify the rule group, to manage and use it.
   */
  name: string | core.StringOut;

  /**
   * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co
   * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co
   * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev
   * el.
   */
  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  /**
   * 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<string, string> | core.MapOut<core.StringOut>;
}

export class FirewallRuleGroup extends core.Resource<FirewallRuleGroupArgs> {
  /**
   * The ARN (Amazon Resource Name) of the rule group.
   */
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

  /**
   * The ID of the rule group.
   */
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  /**
   * (Required) A name that lets you identify the rule group, to manage and use it.
   */
  @core.attr(String)
  public name!: string | core.StringOut;

  /**
   * The AWS account ID for the account that created the rule group. When a rule group is shared with you
   * r account, this is the account that has shared the rule group with you.
   */
  @core.attr(String, { computed: true })
  public ownerId!: string | core.StringOut;

  /**
   * Whether the rule group is shared with other AWS accounts, or was shared with the current account by
   * another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM). Valid valu
   * es: `NOT_SHARED`, `SHARED_BY_ME`, `SHARED_WITH_ME`
   */
  @core.attr(String, { computed: true })
  public shareStatus!: string | core.StringOut;

  /**
   * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co
   * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co
   * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev
   * el.
   */
  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  /**
   * 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<string, string> | core.MapOut<core.StringOut>;

  constructor(name: string, args?: FirewallRuleGroupArgs) {
    super(name, "aws_route53_resolver_firewall_rule_group", args);
  }

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