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

export interface ApplicationSnapshotArgs extends core.ResourceArgs {
  applicationName: string | core.StringOut;

  snapshotName: string | core.StringOut;
}

export class ApplicationSnapshot extends core.Resource<ApplicationSnapshotArgs> {
  @core.attr(String)
  public applicationName!: string | core.StringOut;

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

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

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

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

  constructor(name: string, args?: ApplicationSnapshotArgs) {
    super(name, "aws_kinesisanalyticsv2_application_snapshot", args);
  }

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