import * as core from "@terrascript/core"; export interface FilterArgs extends core.SchemaArgs { name: string | core.StringOut; values: core.Array | core.ArrayOut; } export class Filter extends core.Schema { @core.attr(String) public name!: string | core.StringOut; @core.attr(String, { kind: "array" }) public values!: core.Array | core.ArrayOut; } export interface DsSpotPriceArgs { /** * (Optional) The availability zone in which to query Spot price information. */ availabilityZone?: string | core.StringOut; /** * (Optional) One or more configuration blocks containing name-values filters. See the [EC2 API Referen * ce](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSpotPriceHistory.html) for su * pported filters. Detailed below. */ filter?: core.Array | core.ArrayOut; /** * (Optional) The type of instance for which to query Spot Price information. */ instanceType?: string | core.StringOut; } export class DsSpotPrice extends core.Data { /** * (Optional) The availability zone in which to query Spot price information. */ @core.attr(String) public availabilityZone?: string | core.StringOut; /** * (Optional) One or more configuration blocks containing name-values filters. See the [EC2 API Referen * ce](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSpotPriceHistory.html) for su * pported filters. Detailed below. */ @core.attr(Filter, { kind: "array" }) public filter?: core.Array | core.ArrayOut; /** * AWS Region. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The type of instance for which to query Spot Price information. */ @core.attr(String) public instanceType?: string | core.StringOut; /** * The most recent Spot Price value for the given instance type and AZ. */ @core.attr(String, { computed: true }) public spotPrice!: string | core.StringOut; /** * The timestamp at which the Spot Price value was published. */ @core.attr(String, { computed: true }) public spotPriceTimestamp!: string | core.StringOut; constructor(name: string, args?: DsSpotPriceArgs) { super(name, "aws_ec2_spot_price", args); } public override getNamespace(): string { return "aws_ec2"; } }