import * as core from "@terrascript/core"; export interface FieldToMatchArgs extends core.SchemaArgs { data?: string | core.StringOut; type: string | core.StringOut; } export class FieldToMatch extends core.Schema { @core.attr(String) public data?: string | core.StringOut; @core.attr(String) public type!: string | core.StringOut; } export interface SizeConstraintsArgs extends core.SchemaArgs { comparisonOperator: string | core.StringOut; fieldToMatch: FieldToMatch; size: number | core.NumberOut; textTransformation: string | core.StringOut; } export class SizeConstraints extends core.Schema { @core.attr(String) public comparisonOperator!: string | core.StringOut; @core.attr(FieldToMatch) public fieldToMatch!: FieldToMatch; @core.attr(Number) public size!: number | core.NumberOut; @core.attr(String) public textTransformation!: string | core.StringOut; } export interface SizeConstraintSetArgs extends core.ResourceArgs { /** * (Required) The name or description of the Size Constraint Set. */ name: string | core.StringOut; /** * (Optional) Specifies the parts of web requests that you want to inspect the size of. */ sizeConstraints?: | core.Array | core.ArrayOut; } export class SizeConstraintSet extends core.Resource { @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The ID of the WAF Size Constraint Set. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name or description of the Size Constraint Set. */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) Specifies the parts of web requests that you want to inspect the size of. */ @core.attr(SizeConstraints, { kind: "array" }) public sizeConstraints?: | core.Array | core.ArrayOut; constructor(name: string, args?: SizeConstraintSetArgs) { super(name, "aws_wafregional_size_constraint_set", args); } public override getNamespace(): string { return "aws_wafregional"; } }