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

export interface StudioArgs extends core.ResourceArgs {
  authMode: string | core.StringOut;

  defaultS3Location: string | core.StringOut;

  description?: string | core.StringOut;

  engineSecurityGroupId: string | core.StringOut;

  idpAuthUrl?: string | core.StringOut;

  idpRelayStateParameterName?: string | core.StringOut;

  name: string | core.StringOut;

  serviceRole: string | core.StringOut;

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

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  userRole?: string | core.StringOut;

  vpcId: string | core.StringOut;

  workspaceSecurityGroupId: string | core.StringOut;
}

export class Studio extends core.Resource<StudioArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

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

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

  @core.attr(String)
  public description?: string | core.StringOut;

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

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

  @core.attr(String)
  public idpAuthUrl?: string | core.StringOut;

  @core.attr(String)
  public idpRelayStateParameterName?: string | core.StringOut;

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

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

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

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

  @core.attr(String)
  public userRole?: string | core.StringOut;

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

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

  constructor(name: string, args?: StudioArgs) {
    super(name, "aws_emr_studio", args);
  }

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