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

export interface HostedConfigurationVersionArgs extends core.ResourceArgs {
  applicationId: string | core.StringOut;

  configurationProfileId: string | core.StringOut;

  content: string | core.StringOut;

  contentType: string | core.StringOut;

  description?: string | core.StringOut;
}

export class HostedConfigurationVersion extends core.Resource<HostedConfigurationVersionArgs> {
  @core.attr(String)
  public applicationId!: string | core.StringOut;

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

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

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

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

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

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

  @core.attr(Number, { computed: true })
  public versionNumber!: number | core.NumberOut;

  constructor(name: string, args?: HostedConfigurationVersionArgs) {
    super(name, "aws_appconfig_hosted_configuration_version", args);
  }

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