import * as core from "@terrascript/core"; export interface IpSetDescriptorsArgs extends core.SchemaArgs { type: string | core.StringOut; value: string | core.StringOut; } export class IpSetDescriptors 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 format) from which web requests originate. */ ipSetDescriptors?: | 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 format) from which web requests originate. */ @core.attr(IpSetDescriptors, { kind: "array" }) public ipSetDescriptors?: | 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_waf_ipset", args); } public override getNamespace(): string { return "aws_waf"; } }