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

export interface StudioSessionMappingArgs extends core.ResourceArgs {
  identityId?: string | core.StringOut;

  identityName?: string | core.StringOut;

  identityType: string | core.StringOut;

  sessionPolicyArn: string | core.StringOut;

  studioId: string | core.StringOut;
}

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

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

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

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

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

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

  constructor(name: string, args?: StudioSessionMappingArgs) {
    super(name, "aws_emr_studio_session_mapping", args);
  }

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