import * as core from "@terrascript/core"; export interface IpSetDescriptorArgs extends core.SchemaArgs { type: string | core.StringOut; value: string | core.StringOut; } export class IpSetDescriptor extends core.Schema { @core.attr(String) public type!: string | core.StringOut; @core.attr(String) public value!: string | core.StringOut; } export interface IpsetArgs extends core.ResourceArgs { /** * (Optional) One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range * (in CIDR notation) from which web requests originate. */ ipSetDescriptor?: | core.Array | core.ArrayOut; /** * (Required) The name or description of the IPSet. */ name: string | core.StringOut; } export class Ipset extends core.Resource { /** * The ARN of the WAF IPSet. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The ID of the WAF IPSet. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range * (in CIDR notation) from which web requests originate. */ @core.attr(IpSetDescriptor, { kind: "array" }) public ipSetDescriptor?: | core.Array | core.ArrayOut; /** * (Required) The name or description of the IPSet. */ @core.attr(String) public name!: string | core.StringOut; constructor(name: string, args?: IpsetArgs) { super(name, "aws_wafregional_ipset", args); } public override getNamespace(): string { return "aws_wafregional"; } }