import * as core from "@terrascript/core"; export interface RuleArgs extends core.SchemaArgs { attribute?: string | core.StringOut; operator?: string | core.StringOut; value?: string | core.StringOut; } export class Rule extends core.Schema { @core.attr(String) public attribute?: string | core.StringOut; @core.attr(String) public operator?: string | core.StringOut; @core.attr(String) public value?: string | core.StringOut; } export interface DevicePoolArgs extends core.ResourceArgs { /** * (Optional) The device pool's description. */ description?: string | core.StringOut; /** * (Optional) The number of devices that Device Farm can add to your device pool. */ maxDevices?: number | core.NumberOut; /** * (Required) The name of the Device Pool */ name: string | core.StringOut; /** * (Required) The ARN of the project for the device pool. */ projectArn: string | core.StringOut; /** * (Required) The device pool's rules. See [Rule](#rule). */ rule: core.Array | core.ArrayOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class DevicePool extends core.Resource { /** * The Amazon Resource Name of this Device Pool */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The device pool's description. */ @core.attr(String) public description?: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The number of devices that Device Farm can add to your device pool. */ @core.attr(Number) public maxDevices?: number | core.NumberOut; /** * (Required) The name of the Device Pool */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) The ARN of the project for the device pool. */ @core.attr(String) public projectArn!: string | core.StringOut; /** * (Required) The device pool's rules. See [Rule](#rule). */ @core.attr(Rule, { kind: "array" }) public rule!: core.Array | core.ArrayOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; @core.attr(String, { computed: true }) public type!: string | core.StringOut; constructor(name: string, args?: DevicePoolArgs) { super(name, "aws_devicefarm_device_pool", args); } public override getNamespace(): string { return "aws_devicefarm"; } }