import * as core from "@terrascript/core"; export interface ActionArgs extends core.SchemaArgs { type: string | core.StringOut; } export class Action extends core.Schema { @core.attr(String) public type!: string | core.StringOut; } export interface ActivatedRuleArgs extends core.SchemaArgs { action: Action; priority: number | core.NumberOut; ruleId: string | core.StringOut; type?: string | core.StringOut; } export class ActivatedRule extends core.Schema { @core.attr(Action) public action!: Action; @core.attr(Number) public priority!: number | core.NumberOut; @core.attr(String) public ruleId!: string | core.StringOut; @core.attr(String) public type?: string | core.StringOut; } export interface RuleGroupArgs extends core.ResourceArgs { /** * (Optional) A list of activated rules, see below */ activatedRule?: core.Array | core.ArrayOut; /** * (Required) A friendly name for the metrics from the rule group */ metricName: string | core.StringOut; /** * (Required) A friendly name of the rule group */ name: string | core.StringOut; /** * (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 RuleGroup extends core.Resource { /** * (Optional) A list of activated rules, see below */ @core.attr(ActivatedRule, { kind: "array" }) public activatedRule?: | core.Array | core.ArrayOut; /** * The ARN of the WAF Regional Rule Group. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The ID of the WAF Regional Rule Group. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) A friendly name for the metrics from the rule group */ @core.attr(String) public metricName!: string | core.StringOut; /** * (Required) A friendly name of the rule group */ @core.attr(String) public name!: string | core.StringOut; /** * (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?: RuleGroupArgs) { super(name, "aws_wafregional_rule_group", args); } public override getNamespace(): string { return "aws_wafregional"; } }