1. Packages
  2. AWS Classic
  3. API Docs
  4. guardduty
  5. Filter

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

aws.guardduty.Filter

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

    Provides a resource to manage a GuardDuty filter.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const myFilter = new aws.guardduty.Filter("MyFilter", {
        name: "MyFilter",
        action: "ARCHIVE",
        detectorId: example.id,
        rank: 1,
        findingCriteria: {
            criterions: [
                {
                    field: "region",
                    equals: ["eu-west-1"],
                },
                {
                    field: "service.additionalInfo.threatListName",
                    notEquals: [
                        "some-threat",
                        "another-threat",
                    ],
                },
                {
                    field: "updatedAt",
                    greaterThan: "2020-01-01T00:00:00Z",
                    lessThan: "2020-02-01T00:00:00Z",
                },
                {
                    field: "severity",
                    greaterThanOrEqual: "4",
                },
            ],
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    my_filter = aws.guardduty.Filter("MyFilter",
        name="MyFilter",
        action="ARCHIVE",
        detector_id=example["id"],
        rank=1,
        finding_criteria=aws.guardduty.FilterFindingCriteriaArgs(
            criterions=[
                aws.guardduty.FilterFindingCriteriaCriterionArgs(
                    field="region",
                    equals=["eu-west-1"],
                ),
                aws.guardduty.FilterFindingCriteriaCriterionArgs(
                    field="service.additionalInfo.threatListName",
                    not_equals=[
                        "some-threat",
                        "another-threat",
                    ],
                ),
                aws.guardduty.FilterFindingCriteriaCriterionArgs(
                    field="updatedAt",
                    greater_than="2020-01-01T00:00:00Z",
                    less_than="2020-02-01T00:00:00Z",
                ),
                aws.guardduty.FilterFindingCriteriaCriterionArgs(
                    field="severity",
                    greater_than_or_equal="4",
                ),
            ],
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/guardduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := guardduty.NewFilter(ctx, "MyFilter", &guardduty.FilterArgs{
    			Name:       pulumi.String("MyFilter"),
    			Action:     pulumi.String("ARCHIVE"),
    			DetectorId: pulumi.Any(example.Id),
    			Rank:       pulumi.Int(1),
    			FindingCriteria: &guardduty.FilterFindingCriteriaArgs{
    				Criterions: guardduty.FilterFindingCriteriaCriterionArray{
    					&guardduty.FilterFindingCriteriaCriterionArgs{
    						Field: pulumi.String("region"),
    						Equals: pulumi.StringArray{
    							pulumi.String("eu-west-1"),
    						},
    					},
    					&guardduty.FilterFindingCriteriaCriterionArgs{
    						Field: pulumi.String("service.additionalInfo.threatListName"),
    						NotEquals: pulumi.StringArray{
    							pulumi.String("some-threat"),
    							pulumi.String("another-threat"),
    						},
    					},
    					&guardduty.FilterFindingCriteriaCriterionArgs{
    						Field:       pulumi.String("updatedAt"),
    						GreaterThan: pulumi.String("2020-01-01T00:00:00Z"),
    						LessThan:    pulumi.String("2020-02-01T00:00:00Z"),
    					},
    					&guardduty.FilterFindingCriteriaCriterionArgs{
    						Field:              pulumi.String("severity"),
    						GreaterThanOrEqual: pulumi.String("4"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var myFilter = new Aws.GuardDuty.Filter("MyFilter", new()
        {
            Name = "MyFilter",
            Action = "ARCHIVE",
            DetectorId = example.Id,
            Rank = 1,
            FindingCriteria = new Aws.GuardDuty.Inputs.FilterFindingCriteriaArgs
            {
                Criterions = new[]
                {
                    new Aws.GuardDuty.Inputs.FilterFindingCriteriaCriterionArgs
                    {
                        Field = "region",
                        Equals = new[]
                        {
                            "eu-west-1",
                        },
                    },
                    new Aws.GuardDuty.Inputs.FilterFindingCriteriaCriterionArgs
                    {
                        Field = "service.additionalInfo.threatListName",
                        NotEquals = new[]
                        {
                            "some-threat",
                            "another-threat",
                        },
                    },
                    new Aws.GuardDuty.Inputs.FilterFindingCriteriaCriterionArgs
                    {
                        Field = "updatedAt",
                        GreaterThan = "2020-01-01T00:00:00Z",
                        LessThan = "2020-02-01T00:00:00Z",
                    },
                    new Aws.GuardDuty.Inputs.FilterFindingCriteriaCriterionArgs
                    {
                        Field = "severity",
                        GreaterThanOrEqual = "4",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.guardduty.Filter;
    import com.pulumi.aws.guardduty.FilterArgs;
    import com.pulumi.aws.guardduty.inputs.FilterFindingCriteriaArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var myFilter = new Filter("myFilter", FilterArgs.builder()        
                .name("MyFilter")
                .action("ARCHIVE")
                .detectorId(example.id())
                .rank(1)
                .findingCriteria(FilterFindingCriteriaArgs.builder()
                    .criterions(                
                        FilterFindingCriteriaCriterionArgs.builder()
                            .field("region")
                            .equals("eu-west-1")
                            .build(),
                        FilterFindingCriteriaCriterionArgs.builder()
                            .field("service.additionalInfo.threatListName")
                            .notEquals(                        
                                "some-threat",
                                "another-threat")
                            .build(),
                        FilterFindingCriteriaCriterionArgs.builder()
                            .field("updatedAt")
                            .greaterThan("2020-01-01T00:00:00Z")
                            .lessThan("2020-02-01T00:00:00Z")
                            .build(),
                        FilterFindingCriteriaCriterionArgs.builder()
                            .field("severity")
                            .greaterThanOrEqual("4")
                            .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      myFilter:
        type: aws:guardduty:Filter
        name: MyFilter
        properties:
          name: MyFilter
          action: ARCHIVE
          detectorId: ${example.id}
          rank: 1
          findingCriteria:
            criterions:
              - field: region
                equals:
                  - eu-west-1
              - field: service.additionalInfo.threatListName
                notEquals:
                  - some-threat
                  - another-threat
              - field: updatedAt
                greaterThan: 2020-01-01T00:00:00Z
                lessThan: 2020-02-01T00:00:00Z
              - field: severity
                greaterThanOrEqual: '4'
    

    Create Filter Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Filter(name: string, args: FilterArgs, opts?: CustomResourceOptions);
    @overload
    def Filter(resource_name: str,
               args: FilterArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Filter(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               action: Optional[str] = None,
               detector_id: Optional[str] = None,
               finding_criteria: Optional[FilterFindingCriteriaArgs] = None,
               rank: Optional[int] = None,
               description: Optional[str] = None,
               name: Optional[str] = None,
               tags: Optional[Mapping[str, str]] = None)
    func NewFilter(ctx *Context, name string, args FilterArgs, opts ...ResourceOption) (*Filter, error)
    public Filter(string name, FilterArgs args, CustomResourceOptions? opts = null)
    public Filter(String name, FilterArgs args)
    public Filter(String name, FilterArgs args, CustomResourceOptions options)
    
    type: aws:guardduty:Filter
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args FilterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args FilterArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args FilterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FilterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FilterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var filterResource = new Aws.GuardDuty.Filter("filterResource", new()
    {
        Action = "string",
        DetectorId = "string",
        FindingCriteria = new Aws.GuardDuty.Inputs.FilterFindingCriteriaArgs
        {
            Criterions = new[]
            {
                new Aws.GuardDuty.Inputs.FilterFindingCriteriaCriterionArgs
                {
                    Field = "string",
                    Equals = new[]
                    {
                        "string",
                    },
                    GreaterThan = "string",
                    GreaterThanOrEqual = "string",
                    LessThan = "string",
                    LessThanOrEqual = "string",
                    NotEquals = new[]
                    {
                        "string",
                    },
                },
            },
        },
        Rank = 0,
        Description = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := guardduty.NewFilter(ctx, "filterResource", &guardduty.FilterArgs{
    	Action:     pulumi.String("string"),
    	DetectorId: pulumi.String("string"),
    	FindingCriteria: &guardduty.FilterFindingCriteriaArgs{
    		Criterions: guardduty.FilterFindingCriteriaCriterionArray{
    			&guardduty.FilterFindingCriteriaCriterionArgs{
    				Field: pulumi.String("string"),
    				Equals: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				GreaterThan:        pulumi.String("string"),
    				GreaterThanOrEqual: pulumi.String("string"),
    				LessThan:           pulumi.String("string"),
    				LessThanOrEqual:    pulumi.String("string"),
    				NotEquals: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Rank:        pulumi.Int(0),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var filterResource = new Filter("filterResource", FilterArgs.builder()        
        .action("string")
        .detectorId("string")
        .findingCriteria(FilterFindingCriteriaArgs.builder()
            .criterions(FilterFindingCriteriaCriterionArgs.builder()
                .field("string")
                .equals("string")
                .greaterThan("string")
                .greaterThanOrEqual("string")
                .lessThan("string")
                .lessThanOrEqual("string")
                .notEquals("string")
                .build())
            .build())
        .rank(0)
        .description("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    filter_resource = aws.guardduty.Filter("filterResource",
        action="string",
        detector_id="string",
        finding_criteria=aws.guardduty.FilterFindingCriteriaArgs(
            criterions=[aws.guardduty.FilterFindingCriteriaCriterionArgs(
                field="string",
                equals=["string"],
                greater_than="string",
                greater_than_or_equal="string",
                less_than="string",
                less_than_or_equal="string",
                not_equals=["string"],
            )],
        ),
        rank=0,
        description="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const filterResource = new aws.guardduty.Filter("filterResource", {
        action: "string",
        detectorId: "string",
        findingCriteria: {
            criterions: [{
                field: "string",
                equals: ["string"],
                greaterThan: "string",
                greaterThanOrEqual: "string",
                lessThan: "string",
                lessThanOrEqual: "string",
                notEquals: ["string"],
            }],
        },
        rank: 0,
        description: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:guardduty:Filter
    properties:
        action: string
        description: string
        detectorId: string
        findingCriteria:
            criterions:
                - equals:
                    - string
                  field: string
                  greaterThan: string
                  greaterThanOrEqual: string
                  lessThan: string
                  lessThanOrEqual: string
                  notEquals:
                    - string
        name: string
        rank: 0
        tags:
            string: string
    

    Filter Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Filter resource accepts the following input properties:

    Action string
    Specifies the action that is to be applied to the findings that match the filter. Can be one of ARCHIVE or NOOP.
    DetectorId string
    ID of a GuardDuty detector, attached to your account.
    FindingCriteria FilterFindingCriteria
    Represents the criteria to be used in the filter for querying findings. Contains one or more criterion blocks, documented below.
    Rank int
    Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
    Description string
    Description of the filter.
    Name string
    The name of your filter.
    Tags Dictionary<string, string>
    The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Action string
    Specifies the action that is to be applied to the findings that match the filter. Can be one of ARCHIVE or NOOP.
    DetectorId string
    ID of a GuardDuty detector, attached to your account.
    FindingCriteria FilterFindingCriteriaArgs
    Represents the criteria to be used in the filter for querying findings. Contains one or more criterion blocks, documented below.
    Rank int
    Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
    Description string
    Description of the filter.
    Name string
    The name of your filter.
    Tags map[string]string
    The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    action String
    Specifies the action that is to be applied to the findings that match the filter. Can be one of ARCHIVE or NOOP.
    detectorId String
    ID of a GuardDuty detector, attached to your account.
    findingCriteria FilterFindingCriteria
    Represents the criteria to be used in the filter for querying findings. Contains one or more criterion blocks, documented below.
    rank Integer
    Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
    description String
    Description of the filter.
    name String
    The name of your filter.
    tags Map<String,String>
    The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    action string
    Specifies the action that is to be applied to the findings that match the filter. Can be one of ARCHIVE or NOOP.
    detectorId string
    ID of a GuardDuty detector, attached to your account.
    findingCriteria FilterFindingCriteria
    Represents the criteria to be used in the filter for querying findings. Contains one or more criterion blocks, documented below.
    rank number
    Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
    description string
    Description of the filter.
    name string
    The name of your filter.
    tags {[key: string]: string}
    The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    action str
    Specifies the action that is to be applied to the findings that match the filter. Can be one of ARCHIVE or NOOP.
    detector_id str
    ID of a GuardDuty detector, attached to your account.
    finding_criteria FilterFindingCriteriaArgs
    Represents the criteria to be used in the filter for querying findings. Contains one or more criterion blocks, documented below.
    rank int
    Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
    description str
    Description of the filter.
    name str
    The name of your filter.
    tags Mapping[str, str]
    The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    action String
    Specifies the action that is to be applied to the findings that match the filter. Can be one of ARCHIVE or NOOP.
    detectorId String
    ID of a GuardDuty detector, attached to your account.
    findingCriteria Property Map
    Represents the criteria to be used in the filter for querying findings. Contains one or more criterion blocks, documented below.
    rank Number
    Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
    description String
    Description of the filter.
    name String
    The name of your filter.
    tags Map<String>
    The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Filter resource produces the following output properties:

    Arn string
    The ARN of the GuardDuty filter.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    The ARN of the GuardDuty filter.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The ARN of the GuardDuty filter.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    The ARN of the GuardDuty filter.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    The ARN of the GuardDuty filter.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The ARN of the GuardDuty filter.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing Filter Resource

    Get an existing Filter resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: FilterState, opts?: CustomResourceOptions): Filter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            arn: Optional[str] = None,
            description: Optional[str] = None,
            detector_id: Optional[str] = None,
            finding_criteria: Optional[FilterFindingCriteriaArgs] = None,
            name: Optional[str] = None,
            rank: Optional[int] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> Filter
    func GetFilter(ctx *Context, name string, id IDInput, state *FilterState, opts ...ResourceOption) (*Filter, error)
    public static Filter Get(string name, Input<string> id, FilterState? state, CustomResourceOptions? opts = null)
    public static Filter get(String name, Output<String> id, FilterState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Action string
    Specifies the action that is to be applied to the findings that match the filter. Can be one of ARCHIVE or NOOP.
    Arn string
    The ARN of the GuardDuty filter.
    Description string
    Description of the filter.
    DetectorId string
    ID of a GuardDuty detector, attached to your account.
    FindingCriteria FilterFindingCriteria
    Represents the criteria to be used in the filter for querying findings. Contains one or more criterion blocks, documented below.
    Name string
    The name of your filter.
    Rank int
    Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
    Tags Dictionary<string, string>
    The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Action string
    Specifies the action that is to be applied to the findings that match the filter. Can be one of ARCHIVE or NOOP.
    Arn string
    The ARN of the GuardDuty filter.
    Description string
    Description of the filter.
    DetectorId string
    ID of a GuardDuty detector, attached to your account.
    FindingCriteria FilterFindingCriteriaArgs
    Represents the criteria to be used in the filter for querying findings. Contains one or more criterion blocks, documented below.
    Name string
    The name of your filter.
    Rank int
    Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
    Tags map[string]string
    The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    action String
    Specifies the action that is to be applied to the findings that match the filter. Can be one of ARCHIVE or NOOP.
    arn String
    The ARN of the GuardDuty filter.
    description String
    Description of the filter.
    detectorId String
    ID of a GuardDuty detector, attached to your account.
    findingCriteria FilterFindingCriteria
    Represents the criteria to be used in the filter for querying findings. Contains one or more criterion blocks, documented below.
    name String
    The name of your filter.
    rank Integer
    Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
    tags Map<String,String>
    The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    action string
    Specifies the action that is to be applied to the findings that match the filter. Can be one of ARCHIVE or NOOP.
    arn string
    The ARN of the GuardDuty filter.
    description string
    Description of the filter.
    detectorId string
    ID of a GuardDuty detector, attached to your account.
    findingCriteria FilterFindingCriteria
    Represents the criteria to be used in the filter for querying findings. Contains one or more criterion blocks, documented below.
    name string
    The name of your filter.
    rank number
    Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
    tags {[key: string]: string}
    The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    action str
    Specifies the action that is to be applied to the findings that match the filter. Can be one of ARCHIVE or NOOP.
    arn str
    The ARN of the GuardDuty filter.
    description str
    Description of the filter.
    detector_id str
    ID of a GuardDuty detector, attached to your account.
    finding_criteria FilterFindingCriteriaArgs
    Represents the criteria to be used in the filter for querying findings. Contains one or more criterion blocks, documented below.
    name str
    The name of your filter.
    rank int
    Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
    tags Mapping[str, str]
    The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    action String
    Specifies the action that is to be applied to the findings that match the filter. Can be one of ARCHIVE or NOOP.
    arn String
    The ARN of the GuardDuty filter.
    description String
    Description of the filter.
    detectorId String
    ID of a GuardDuty detector, attached to your account.
    findingCriteria Property Map
    Represents the criteria to be used in the filter for querying findings. Contains one or more criterion blocks, documented below.
    name String
    The name of your filter.
    rank Number
    Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
    tags Map<String>
    The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Supporting Types

    FilterFindingCriteria, FilterFindingCriteriaArgs

    FilterFindingCriteriaCriterion, FilterFindingCriteriaCriterionArgs

    Field string
    The name of the field to be evaluated. The full list of field names can be found in AWS documentation.
    Equals List<string>
    List of string values to be evaluated.
    GreaterThan string
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    GreaterThanOrEqual string
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    LessThan string
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    LessThanOrEqual string
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    NotEquals List<string>
    List of string values to be evaluated.
    Field string
    The name of the field to be evaluated. The full list of field names can be found in AWS documentation.
    Equals []string
    List of string values to be evaluated.
    GreaterThan string
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    GreaterThanOrEqual string
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    LessThan string
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    LessThanOrEqual string
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    NotEquals []string
    List of string values to be evaluated.
    field String
    The name of the field to be evaluated. The full list of field names can be found in AWS documentation.
    equals_ List<String>
    List of string values to be evaluated.
    greaterThan String
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    greaterThanOrEqual String
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    lessThan String
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    lessThanOrEqual String
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    notEquals List<String>
    List of string values to be evaluated.
    field string
    The name of the field to be evaluated. The full list of field names can be found in AWS documentation.
    equals string[]
    List of string values to be evaluated.
    greaterThan string
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    greaterThanOrEqual string
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    lessThan string
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    lessThanOrEqual string
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    notEquals string[]
    List of string values to be evaluated.
    field str
    The name of the field to be evaluated. The full list of field names can be found in AWS documentation.
    equals Sequence[str]
    List of string values to be evaluated.
    greater_than str
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    greater_than_or_equal str
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    less_than str
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    less_than_or_equal str
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    not_equals Sequence[str]
    List of string values to be evaluated.
    field String
    The name of the field to be evaluated. The full list of field names can be found in AWS documentation.
    equals List<String>
    List of string values to be evaluated.
    greaterThan String
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    greaterThanOrEqual String
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    lessThan String
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    lessThanOrEqual String
    A value to be evaluated. Accepts either an integer or a date in RFC 3339 format.
    notEquals List<String>
    List of string values to be evaluated.

    Import

    Using pulumi import, import GuardDuty filters using the detector ID and filter’s name separated by a colon. For example:

    $ pulumi import aws:guardduty/filter:Filter MyFilter 00b00fd5aecc0ab60a708659477e9617:MyFilter
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi