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

export interface SpotDatafeedSubscriptionArgs extends core.ResourceArgs {
  bucket: string | core.StringOut;

  prefix?: string | core.StringOut;
}

export class SpotDatafeedSubscription extends core.Resource<SpotDatafeedSubscriptionArgs> {
  @core.attr(String)
  public bucket!: string | core.StringOut;

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

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

  constructor(name: string, args?: SpotDatafeedSubscriptionArgs) {
    super(name, "aws_spot_datafeed_subscription", args);
  }

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