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

export interface FileSystemConfigArgs extends core.SchemaArgs {
  defaultGid?: number | core.NumberOut;

  defaultUid?: number | core.NumberOut;

  mountPath?: string | core.StringOut;
}

export class FileSystemConfig extends core.Schema<FileSystemConfigArgs> {
  @core.attr(Number)
  public defaultGid?: number | core.NumberOut;

  @core.attr(Number)
  public defaultUid?: number | core.NumberOut;

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

export interface KernelSpecArgs extends core.SchemaArgs {
  displayName?: string | core.StringOut;

  name: string | core.StringOut;
}

export class KernelSpec extends core.Schema<KernelSpecArgs> {
  @core.attr(String)
  public displayName?: string | core.StringOut;

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

export interface KernelGatewayImageConfigArgs extends core.SchemaArgs {
  fileSystemConfig?: FileSystemConfig;

  kernelSpec: KernelSpec;
}

export class KernelGatewayImageConfig extends core.Schema<KernelGatewayImageConfigArgs> {
  @core.attr(FileSystemConfig)
  public fileSystemConfig?: FileSystemConfig;

  @core.attr(KernelSpec)
  public kernelSpec!: KernelSpec;
}

export interface AppImageConfigArgs extends core.ResourceArgs {
  appImageConfigName: string | core.StringOut;

  kernelGatewayImageConfig?: KernelGatewayImageConfig;

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

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

export class AppImageConfig extends core.Resource<AppImageConfigArgs> {
  @core.attr(String)
  public appImageConfigName!: string | core.StringOut;

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

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

  @core.attr(KernelGatewayImageConfig)
  public kernelGatewayImageConfig?: KernelGatewayImageConfig;

  @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>;

  constructor(name: string, args?: AppImageConfigArgs) {
    super(name, "aws_sagemaker_app_image_config", args);
  }

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