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

export interface ProvisioningArtifactParametersArgs extends core.SchemaArgs {
  description?: string | core.StringOut;

  disableTemplateValidation?: boolean | core.BooleanOut;

  name?: string | core.StringOut;

  templatePhysicalId?: string | core.StringOut;

  templateUrl?: string | core.StringOut;

  type?: string | core.StringOut;
}

export class ProvisioningArtifactParameters extends core.Schema<ProvisioningArtifactParametersArgs> {
  @core.attr(String)
  public description?: string | core.StringOut;

  @core.attr(Boolean)
  public disableTemplateValidation?: boolean | core.BooleanOut;

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

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

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

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

export interface ProductArgs extends core.ResourceArgs {
  acceptLanguage?: string | core.StringOut;

  description?: string | core.StringOut;

  distributor?: string | core.StringOut;

  name: string | core.StringOut;

  owner: string | core.StringOut;

  provisioningArtifactParameters: ProvisioningArtifactParameters;

  supportDescription?: string | core.StringOut;

  supportEmail?: string | core.StringOut;

  supportUrl?: string | core.StringOut;

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

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

  type: string | core.StringOut;
}

export class Product extends core.Resource<ProductArgs> {
  @core.attr(String)
  public acceptLanguage?: string | core.StringOut;

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

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

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

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

  @core.attr(Boolean, { computed: true })
  public hasDefaultPath!: boolean | core.BooleanOut;

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

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

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

  @core.attr(ProvisioningArtifactParameters)
  public provisioningArtifactParameters!: ProvisioningArtifactParameters;

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

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

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

  @core.attr(String, { computed: true })
  public supportUrl?: 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)
  public type!: string | core.StringOut;

  constructor(name: string, args?: ProductArgs) {
    super(name, "aws_servicecatalog_product", args);
  }

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