import * as core from "@terrascript/core"; export interface CriterionArgs extends core.SchemaArgs { equals?: core.Array | core.ArrayOut; field: string | core.StringOut; greaterThan?: string | core.StringOut; greaterThanOrEqual?: string | core.StringOut; lessThan?: string | core.StringOut; lessThanOrEqual?: string | core.StringOut; notEquals?: core.Array | core.ArrayOut; } export class Criterion extends core.Schema { @core.attr(String, { kind: "array" }) public equals?: core.Array | core.ArrayOut; @core.attr(String) public field!: string | core.StringOut; @core.attr(String) public greaterThan?: string | core.StringOut; @core.attr(String) public greaterThanOrEqual?: string | core.StringOut; @core.attr(String) public lessThan?: string | core.StringOut; @core.attr(String) public lessThanOrEqual?: string | core.StringOut; @core.attr(String, { kind: "array" }) public notEquals?: core.Array | core.ArrayOut; } export interface FindingCriteriaArgs extends core.SchemaArgs { criterion: core.Array | core.ArrayOut; } export class FindingCriteria extends core.Schema { @core.attr(Criterion, { kind: "array" }) public criterion!: core.Array | core.ArrayOut; } export interface FilterArgs extends core.ResourceArgs { /** * (Required) Specifies the action that is to be applied to the findings that match the filter. Can be * one of `ARCHIVE` or `NOOP`. */ action: string | core.StringOut; /** * (Optional) Description of the filter. */ description?: string | core.StringOut; /** * (Required) ID of a GuardDuty detector, attached to your account. */ detectorId: string | core.StringOut; findingCriteria: FindingCriteria; /** * (Required) The name of your filter. */ name: string | core.StringOut; /** * (Required) Specifies the position of the filter in the list of current filters. Also specifies the o * rder in which this filter is applied to the findings. */ rank: number | core.NumberOut; 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 Filter extends core.Resource { /** * (Required) Specifies the action that is to be applied to the findings that match the filter. Can be * one of `ARCHIVE` or `NOOP`. */ @core.attr(String) public action!: string | core.StringOut; /** * The ARN of the GuardDuty filter. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) Description of the filter. */ @core.attr(String) public description?: string | core.StringOut; /** * (Required) ID of a GuardDuty detector, attached to your account. */ @core.attr(String) public detectorId!: string | core.StringOut; @core.attr(FindingCriteria) public findingCriteria!: FindingCriteria; /** * A compound field, consisting of the ID of the GuardDuty detector and the name of the filter. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of your filter. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) Specifies the position of the filter in the list of current filters. Also specifies the o * rder in which this filter is applied to the findings. */ @core.attr(Number) public rank!: number | core.NumberOut; @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?: FilterArgs) { super(name, "aws_guardduty_filter", args); } public override getNamespace(): string { return "aws_guardduty"; } }