import * as core from "@terrascript/core"; export interface RulesArgs extends core.SchemaArgs { description?: string | core.StringOut; source: string | core.StringOut; } export class Rules extends core.Schema { @core.attr(String) public description?: string | core.StringOut; @core.attr(String) public source!: string | core.StringOut; } export interface IpGroupArgs extends core.ResourceArgs { /** * (Optional) The description of the IP group. */ description?: string | core.StringOut; /** * (Required) The name of the IP group. */ name: string | core.StringOut; /** * (Optional) One or more pairs specifying the IP group rule (in CIDR format) from which web requests o * riginate. */ rules?: core.Array | core.ArrayOut; 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 IpGroup extends core.Resource { /** * (Optional) The description of the IP group. */ @core.attr(String) public description?: string | core.StringOut; /** * The IP group identifier. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the IP group. */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) One or more pairs specifying the IP group rule (in CIDR format) from which web requests o * riginate. */ @core.attr(Rules, { kind: "array" }) public rules?: core.Array | core.ArrayOut; @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; constructor(name: string, args?: IpGroupArgs) { super(name, "aws_workspaces_ip_group", args); } public override getNamespace(): string { return "aws_workspaces"; } }