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

export interface KeyGroupArgs extends core.ResourceArgs {
  comment?: string | core.StringOut;

  items: core.Array<string> | core.ArrayOut<core.StringOut>;

  name: string | core.StringOut;
}

export class KeyGroup extends core.Resource<KeyGroupArgs> {
  @core.attr(String)
  public comment?: string | core.StringOut;

  @core.attr(String, { computed: true })
  public etag!: string | core.StringOut;

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

  @core.attr(String, { kind: "array" })
  public items!: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String)
  public name!: string | core.StringOut;

  constructor(name: string, args?: KeyGroupArgs) {
    super(name, "aws_cloudfront_key_group", args);
  }

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