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

export interface SecurityGroupArgs extends core.ResourceArgs {
  description?: string | core.StringOut;

  name: string | core.StringOut;

  securityGroupNames: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class SecurityGroup extends core.Resource<SecurityGroupArgs> {
  @core.attr(String)
  public description?: string | core.StringOut;

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

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

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

  constructor(name: string, args?: SecurityGroupArgs) {
    super(name, "aws_elasticache_security_group", args);
  }

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