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

export interface InstanceMetadataServiceConfigurationArgs
  extends core.SchemaArgs {
  minimumInstanceMetadataServiceVersion?: string | core.StringOut;
}

export class InstanceMetadataServiceConfiguration extends core.Schema<InstanceMetadataServiceConfigurationArgs> {
  @core.attr(String, { computed: true })
  public minimumInstanceMetadataServiceVersion?: string | core.StringOut;
}

export interface NotebookInstanceArgs extends core.ResourceArgs {
  acceleratorTypes?: core.Array<string> | core.ArrayOut<core.StringOut>;

  additionalCodeRepositories?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  defaultCodeRepository?: string | core.StringOut;

  directInternetAccess?: string | core.StringOut;

  instanceMetadataServiceConfiguration?: InstanceMetadataServiceConfiguration;

  instanceType: string | core.StringOut;

  kmsKeyId?: string | core.StringOut;

  lifecycleConfigName?: string | core.StringOut;

  name: string | core.StringOut;

  platformIdentifier?: string | core.StringOut;

  roleArn: string | core.StringOut;

  rootAccess?: string | core.StringOut;

  securityGroups?: core.Array<string> | core.ArrayOut<core.StringOut>;

  subnetId?: string | core.StringOut;

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

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

  volumeSize?: number | core.NumberOut;
}

export class NotebookInstance extends core.Resource<NotebookInstanceArgs> {
  @core.attr(String, { kind: "array" })
  public acceleratorTypes?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

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

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

  @core.attr(InstanceMetadataServiceConfiguration)
  public instanceMetadataServiceConfiguration?: InstanceMetadataServiceConfiguration;

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

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

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

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

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

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

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

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

  @core.attr(String, { computed: true, kind: "array" })
  public securityGroups?: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String)
  public subnetId?: string | 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(Number)
  public volumeSize?: number | core.NumberOut;

  constructor(name: string, args?: NotebookInstanceArgs) {
    super(name, "aws_sagemaker_notebook_instance", args);
  }

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