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 DsRegionsArgs { /** * (Optional) If true the source will query all regions regardless of availability. */ allRegions?: boolean | core.BooleanOut; /** * (Optional) Configuration block(s) to use as filters. Detailed below. */ filter?: core.Array | core.ArrayOut; } export class DsRegions extends core.Data { /** * (Optional) If true the source will query all regions regardless of availability. */ @core.attr(Boolean) public allRegions?: boolean | core.BooleanOut; /** * (Optional) Configuration block(s) to use as filters. Detailed below. */ @core.attr(Filter, { kind: "array" }) public filter?: core.Array | core.ArrayOut; /** * Identifier of the current partition (e.g., `aws` in AWS Commercial, `aws-cn` in AWS China). */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * Names of regions that meets the criteria. */ @core.attr(String, { computed: true, kind: "array" }) public names!: core.Array | core.ArrayOut; constructor(name: string, args?: DsRegionsArgs) { super(name, "aws_regions", args); } public override getNamespace(): string { return "aws_meta_data_sources"; } }