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

export interface ProvisioningParameterArgs extends core.SchemaArgs {
  key: string | core.StringOut;

  value?: string | core.StringOut;
}

export class ProvisioningParameter extends core.Schema<ProvisioningParameterArgs> {
  @core.attr(String)
  public key!: string | core.StringOut;

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

export interface ServiceCatalogProvisioningDetailsArgs extends core.SchemaArgs {
  pathId?: string | core.StringOut;

  productId: string | core.StringOut;

  provisioningArtifactId?: string | core.StringOut;

  provisioningParameter?:
    | core.Array<ProvisioningParameter>
    | core.ArrayOut<ProvisioningParameter>;
}

export class ServiceCatalogProvisioningDetails extends core.Schema<ServiceCatalogProvisioningDetailsArgs> {
  @core.attr(String)
  public pathId?: string | core.StringOut;

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

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

  @core.attr(ProvisioningParameter, { kind: "array" })
  public provisioningParameter?:
    | core.Array<ProvisioningParameter>
    | core.ArrayOut<ProvisioningParameter>;
}

export interface ProjectArgs extends core.ResourceArgs {
  projectDescription?: string | core.StringOut;

  projectName: string | core.StringOut;

  serviceCatalogProvisioningDetails: ServiceCatalogProvisioningDetails;

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

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

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

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

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

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

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

  @core.attr(ServiceCatalogProvisioningDetails)
  public serviceCatalogProvisioningDetails!: ServiceCatalogProvisioningDetails;

  @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?: ProjectArgs) {
    super(name, "aws_sagemaker_project", args);
  }

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