

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::Macie::FindingsFilter
<a name="aws-resource-macie-findingsfilter"></a>

The `AWS::Macie::FindingsFilter` resource specifies a findings filter. In Amazon Macie, a *findings filter*, also referred to as a *filter rule*, is a set of custom criteria that specifies which findings to include or exclude from the results of a query for findings. The criteria can help you identify and focus on findings that have specific characteristics, such as severity, type, or the name of an affected AWS resource. You can also configure a findings filter to suppress (automatically archive) findings that match the filter's criteria. For more information, see [Filtering Macie findings](https://docs.aws.amazon.com/macie/latest/user/findings-filter-overview.html) in the *Amazon Macie User Guide*.

An `AWS::Macie::Session` resource must exist for an AWS account before you can create an `AWS::Macie::FindingsFilter` resource for the account. Use a [DependsOn attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) to ensure that an `AWS::Macie::Session` resource is created before other Macie resources are created for an account. For example, `"DependsOn": "Session"`.

## Syntax
<a name="aws-resource-macie-findingsfilter-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-resource-macie-findingsfilter-syntax.json"></a>

```
{
  "Type" : "AWS::Macie::FindingsFilter",
  "Properties" : {
      "[Action](#cfn-macie-findingsfilter-action)" : String,
      "[Description](#cfn-macie-findingsfilter-description)" : String,
      "[FindingCriteria](#cfn-macie-findingsfilter-findingcriteria)" : FindingCriteria,
      "[Name](#cfn-macie-findingsfilter-name)" : String,
      "[Position](#cfn-macie-findingsfilter-position)" : Integer,
      "[Tags](#cfn-macie-findingsfilter-tags)" : [ Tag, ... ]
    }
}
```

### YAML
<a name="aws-resource-macie-findingsfilter-syntax.yaml"></a>

```
Type: AWS::Macie::FindingsFilter
Properties:
  [Action](#cfn-macie-findingsfilter-action): String
  [Description](#cfn-macie-findingsfilter-description): String
  [FindingCriteria](#cfn-macie-findingsfilter-findingcriteria): 
    FindingCriteria
  [Name](#cfn-macie-findingsfilter-name): String
  [Position](#cfn-macie-findingsfilter-position): Integer
  [Tags](#cfn-macie-findingsfilter-tags): 
    - Tag
```

## Properties
<a name="aws-resource-macie-findingsfilter-properties"></a>

`Action`  <a name="cfn-macie-findingsfilter-action"></a>
The action to perform on findings that match the filter criteria (`FindingCriteria`). Valid values are:  
+ `ARCHIVE` - Suppress (automatically archive) the findings.
+ `NOOP` - Don't perform any action on the findings.
*Required*: No  
*Type*: String  
*Allowed values*: `ARCHIVE | NOOP`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Description`  <a name="cfn-macie-findingsfilter-description"></a>
A custom description of the findings filter. The description can contain 1-512 characters.  
Avoid including sensitive data in the description. Users of the account might be able to see the description, depending on the actions that they're allowed to perform in Amazon Macie.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`FindingCriteria`  <a name="cfn-macie-findingsfilter-findingcriteria"></a>
The criteria to use to filter findings.  
*Required*: Yes  
*Type*: [FindingCriteria](aws-properties-macie-findingsfilter-findingcriteria.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Name`  <a name="cfn-macie-findingsfilter-name"></a>
A custom name for the findings filter. The name can contain 3-64 characters.  
Avoid including sensitive data in the name. Users of the account might be able to see the name, depending on the actions that they're allowed to perform in Amazon Macie.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Position`  <a name="cfn-macie-findingsfilter-position"></a>
The position of the findings filter in the list of saved filter rules on the Amazon Macie console. This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to findings.  
*Required*: No  
*Type*: Integer  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Tags`  <a name="cfn-macie-findingsfilter-tags"></a>
An array of key-value pairs to apply to the findings filter.  
For more information, see [Resource tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).  
*Required*: No  
*Type*: Array of [Tag](aws-properties-macie-findingsfilter-tag.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-macie-findingsfilter-return-values"></a>

### Ref
<a name="aws-resource-macie-findingsfilter-return-values-ref"></a>

When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the ID of the `FindingsFilter`. For example, `{ "Ref": "FindingsFilter" }`.

### Fn::GetAtt
<a name="aws-resource-macie-findingsfilter-return-values-fn--getatt"></a>

The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the `Fn::GetAtt` intrinsic function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html).

#### 
<a name="aws-resource-macie-findingsfilter-return-values-fn--getatt-fn--getatt"></a>

`Arn`  <a name="Arn-fn::getatt"></a>
The Amazon Resource Name (ARN) of the findings filter.

`Id`  <a name="Id-fn::getatt"></a>
The unique identifier for the findings filter.

## Examples
<a name="aws-resource-macie-findingsfilter--examples"></a>

The following example demonstrates how to declare an `AWS::Macie::FindingsFilter` resource.

### Creating a findings filter that filters by account ID
<a name="aws-resource-macie-findingsfilter--examples--Creating_a_findings_filter_that_filters_by_account_ID"></a>

This example creates a findings filter that suppresses (automatically archives) findings for AWS resources that are owned by a specific account (`123456789012`).

#### JSON
<a name="aws-resource-macie-findingsfilter--examples--Creating_a_findings_filter_that_filters_by_account_ID--json"></a>

```
{
    "Type": "AWS::Macie::FindingsFilter",
    "DependsOn": "Session",
    "Properties": {
        "Action": "ARCHIVE",
        "Description": "My custom findings filter",
        "FindingCriteria": {
            "Criterion": {
                "accountId": {
                    "eq": [
                        "123456789012"
                    ]
                }
            }
        },
        "Name": "MyFilterName",
        "Position": 1,
        "Tags": [
            {
                "Key": "CostCenter",
                "Value": "CC12345"
            }
        ]

    }
}
```

#### YAML
<a name="aws-resource-macie-findingsfilter--examples--Creating_a_findings_filter_that_filters_by_account_ID--yaml"></a>

```
Type: 'AWS::Macie::FindingsFilter'
DependsOn: Session
Properties:
  Action: ARCHIVE
  Description: My custom findings filter
  FindingCriteria:
    Criterion:
      accountId:
        eq:
          - '123456789012'
  Name: MyFilterName
  Position: 1
  Tags:
    - Key: CostCenter
      Value: CC12345
```

# AWS::Macie::FindingsFilter CriterionAdditionalProperties
<a name="aws-properties-macie-findingsfilter-criterionadditionalproperties"></a>

Specifies a condition that defines the property, operator, and one or more values to use in a findings filter. A *findings filter*, also referred to as a *filter rule*, is a set of custom criteria that specifies which findings to include or exclude from the results of a query for findings. You can also configure a findings filter to suppress (automatically archive) findings that match the filter's criteria. For more information, see [Filtering Macie findings](https://docs.aws.amazon.com/macie/latest/user/findings-filter-overview.html) in the *Amazon Macie User Guide*.

## Syntax
<a name="aws-properties-macie-findingsfilter-criterionadditionalproperties-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-macie-findingsfilter-criterionadditionalproperties-syntax.json"></a>

```
{
  "[eq](#cfn-macie-findingsfilter-criterionadditionalproperties-eq)" : [ String, ... ],
  "[gt](#cfn-macie-findingsfilter-criterionadditionalproperties-gt)" : Integer,
  "[gte](#cfn-macie-findingsfilter-criterionadditionalproperties-gte)" : Integer,
  "[lt](#cfn-macie-findingsfilter-criterionadditionalproperties-lt)" : Integer,
  "[lte](#cfn-macie-findingsfilter-criterionadditionalproperties-lte)" : Integer,
  "[neq](#cfn-macie-findingsfilter-criterionadditionalproperties-neq)" : [ String, ... ]
}
```

### YAML
<a name="aws-properties-macie-findingsfilter-criterionadditionalproperties-syntax.yaml"></a>

```
  [eq](#cfn-macie-findingsfilter-criterionadditionalproperties-eq): 
    - String
  [gt](#cfn-macie-findingsfilter-criterionadditionalproperties-gt): Integer
  [gte](#cfn-macie-findingsfilter-criterionadditionalproperties-gte): Integer
  [lt](#cfn-macie-findingsfilter-criterionadditionalproperties-lt): Integer
  [lte](#cfn-macie-findingsfilter-criterionadditionalproperties-lte): Integer
  [neq](#cfn-macie-findingsfilter-criterionadditionalproperties-neq): 
    - String
```

## Properties
<a name="aws-properties-macie-findingsfilter-criterionadditionalproperties-properties"></a>

`eq`  <a name="cfn-macie-findingsfilter-criterionadditionalproperties-eq"></a>
The value for the specified property matches (equals) the specified value. If you specify multiple values, Amazon Macie uses OR logic to join the values.  
*Required*: No  
*Type*: Array of String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`gt`  <a name="cfn-macie-findingsfilter-criterionadditionalproperties-gt"></a>
The value for the specified property is greater than the specified value.  
*Required*: No  
*Type*: Integer  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`gte`  <a name="cfn-macie-findingsfilter-criterionadditionalproperties-gte"></a>
The value for the specified property is greater than or equal to the specified value.  
*Required*: No  
*Type*: Integer  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`lt`  <a name="cfn-macie-findingsfilter-criterionadditionalproperties-lt"></a>
The value for the specified property is less than the specified value.  
*Required*: No  
*Type*: Integer  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`lte`  <a name="cfn-macie-findingsfilter-criterionadditionalproperties-lte"></a>
The value for the specified property is less than or equal to the specified value.  
*Required*: No  
*Type*: Integer  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`neq`  <a name="cfn-macie-findingsfilter-criterionadditionalproperties-neq"></a>
The value for the specified property doesn't match (doesn't equal) the specified value. If you specify multiple values, Amazon Macie uses OR logic to join the values.  
*Required*: No  
*Type*: Array of String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::Macie::FindingsFilter FindingCriteria
<a name="aws-properties-macie-findingsfilter-findingcriteria"></a>

Specifies, as a map, one or more property-based conditions for a findings filter. A *findings filter*, also referred to as a *filter rule*, is a set of custom criteria that specifies which findings to include or exclude from the results of a query for findings. You can also configure a findings filter to suppress (automatically archive) findings that match the filter's criteria. For more information, see [Filtering Macie findings](https://docs.aws.amazon.com/macie/latest/user/findings-filter-overview.html) in the *Amazon Macie User Guide*.

## Syntax
<a name="aws-properties-macie-findingsfilter-findingcriteria-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-macie-findingsfilter-findingcriteria-syntax.json"></a>

```
{
  "[Criterion](#cfn-macie-findingsfilter-findingcriteria-criterion)" : {Key: Value, ...}
}
```

### YAML
<a name="aws-properties-macie-findingsfilter-findingcriteria-syntax.yaml"></a>

```
  [Criterion](#cfn-macie-findingsfilter-findingcriteria-criterion): 
    Key: Value
```

## Properties
<a name="aws-properties-macie-findingsfilter-findingcriteria-properties"></a>

`Criterion`  <a name="cfn-macie-findingsfilter-findingcriteria-criterion"></a>
Specifies a condition that defines the property, operator, and one or more values to use to filter the results.  
*Required*: No  
*Type*: Object of [CriterionAdditionalProperties](aws-properties-macie-findingsfilter-criterionadditionalproperties.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::Macie::FindingsFilter Tag
<a name="aws-properties-macie-findingsfilter-tag"></a>

Specifies a tag (key-value pair) to apply to a findings filter. A *tag* is a label that you can define and associate with AWS resources, including certain types of Amazon Macie resources. Each tag consists of a *tag key* and an associated *tag value*. A *tag key* is a general label that acts as a category for a more specific tag value. Each tag key must be unique and it can have only one tag value. A *tag value* acts as a descriptor for a tag key. Tag keys and values are case sensitive. They can contain letters, numbers, spaces, or the following symbols: \$1 . : / = \$1 - @

For more information, see [Tagging Macie resources](https://docs.aws.amazon.com/macie/latest/user/tagging-resources.html) in the *Amazon Macie User Guide*.

## Syntax
<a name="aws-properties-macie-findingsfilter-tag-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-macie-findingsfilter-tag-syntax.json"></a>

```
{
  "[Key](#cfn-macie-findingsfilter-tag-key)" : String,
  "[Value](#cfn-macie-findingsfilter-tag-value)" : String
}
```

### YAML
<a name="aws-properties-macie-findingsfilter-tag-syntax.yaml"></a>

```
  [Key](#cfn-macie-findingsfilter-tag-key): String
  [Value](#cfn-macie-findingsfilter-tag-value): String
```

## Properties
<a name="aws-properties-macie-findingsfilter-tag-properties"></a>

`Key`  <a name="cfn-macie-findingsfilter-tag-key"></a>
The name of the tag key. A tag key can contain up to 128 UTF-8 characters.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Value`  <a name="cfn-macie-findingsfilter-tag-value"></a>
The tag value to associate with the specified tag key (`Key`). A tag value can contain up to 256 UTF-8 characters. A tag value cannot be null, but it can be an empty string.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)