import * as core from "@terrascript/core"; export interface PredicatesArgs extends core.SchemaArgs { dataId: string | core.StringOut; negated: boolean | core.BooleanOut; type: string | core.StringOut; } export class Predicates extends core.Schema { @core.attr(String) public dataId!: string | core.StringOut; @core.attr(Boolean) public negated!: boolean | core.BooleanOut; @core.attr(String) public type!: string | core.StringOut; } export interface RuleArgs extends core.ResourceArgs { /** * (Required) The name or description for the Amazon CloudWatch metric of this rule. The name can conta * in only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. */ metricName: string | core.StringOut; /** * (Required) The name or description of the rule. */ name: string | core.StringOut; /** * (Optional) The objects to include in a rule (documented below). */ predicates?: core.Array | core.ArrayOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ 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 Rule extends core.Resource { /** * The ARN of the WAF rule. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The ID of the WAF rule. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name or description for the Amazon CloudWatch metric of this rule. The name can conta * in only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. */ @core.attr(String) public metricName!: string | core.StringOut; /** * (Required) The name or description of the rule. */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) The objects to include in a rule (documented below). */ @core.attr(Predicates, { kind: "array" }) public predicates?: core.Array | core.ArrayOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ @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?: RuleArgs) { super(name, "aws_waf_rule", args); } public override getNamespace(): string { return "aws_waf"; } }