

# Findings - Publication Configuration


The Publication Configuration resource for findings provides settings for publishing findings to AWS Security Hub CSPM. With these settings, you can configure Amazon Macie to automatically publish all policy findings, all sensitive data findings, or both policy and sensitive data findings to Security Hub CSPM. This doesn't include findings that were suppressed (automatically archived) by a findings filter. You can also use these settings to stop publishing any findings to Security Hub CSPM. To learn more about how Macie publishes findings to Security Hub CSPM, see [Evaluating findings with AWS Security Hub CSPM](https://docs.aws.amazon.com/macie/latest/user/securityhub-integration.html) in the *Amazon Macie User Guide*.

Security Hub CSPM is a service that provides you with a comprehensive view of your security state across your AWS environment. It also helps you check your environment against security industry standards and best practices. It does this partly by consuming, aggregating, organizing, and prioritizing findings from multiple AWS services and supported AWS Partner Network (APN) security solutions. It helps you analyze your security trends and identify the highest priority security issues. To learn more about Security Hub CSPM, see the [AWS Security Hub User Guide](https://docs.aws.amazon.com/securityhub/latest/userguide/what-is-securityhub.html).

You can use the Publication Configuration resource for findings to retrieve information about or update your configuration settings for publishing findings to Security Hub CSPM automatically. If you configure Macie to publish policy findings to Security Hub CSPM, Macie publishes updates to those findings on a recurring basis. To specify the publication frequency for these updates, use the [Account Administration](macie.md) resource. 

## URI


`/findings-publication-configuration`

## HTTP methods


### GET


**Operation ID:** `GetFindingsPublicationConfiguration`

Retrieves the configuration settings for publishing findings to AWS Security Hub CSPM.


**Responses**  

| Status code | Response model | Description | 
| --- |--- |--- |
| 200 | GetFindingsPublicationConfigurationResponse | The request succeeded. | 
| 400 | ValidationException | The request failed because the input doesn't satisfy the constraints specified by the service. | 
| 402 | ServiceQuotaExceededException | The request failed because fulfilling the request would exceed one or more service quotas for your account. | 
| 403 | AccessDeniedException | The request was denied because you don't have sufficient access to the specified resource. | 
| 404 | ResourceNotFoundException | The request failed because the specified resource wasn't found. | 
| 409 | ConflictException | The request failed because it conflicts with the current state of the specified resource. | 
| 429 | ThrottlingException | The request failed because you sent too many requests during a certain amount of time. | 
| 500 | InternalServerException | The request failed due to an unknown internal server error, exception, or failure. | 

### PUT


**Operation ID:** `PutFindingsPublicationConfiguration`

Updates the configuration settings for publishing findings to AWS Security Hub CSPM.


**Responses**  

| Status code | Response model | Description | 
| --- |--- |--- |
| 200 | None | The request succeeded and there isn't any content to include in the body of the response (No Content). | 
| 400 | ValidationException | The request failed because the input doesn't satisfy the constraints specified by the service. | 
| 402 | ServiceQuotaExceededException | The request failed because fulfilling the request would exceed one or more service quotas for your account. | 
| 403 | AccessDeniedException | The request was denied because you don't have sufficient access to the specified resource. | 
| 404 | ResourceNotFoundException | The request failed because the specified resource wasn't found. | 
| 409 | ConflictException | The request failed because it conflicts with the current state of the specified resource. | 
| 429 | ThrottlingException | The request failed because you sent too many requests during a certain amount of time. | 
| 500 | InternalServerException | The request failed due to an unknown internal server error, exception, or failure. | 

## Schemas


### Request bodies


#### PUT schema
PUT

```
{
  "clientToken": "string",
  "securityHubConfiguration": {
    "publishClassificationFindings": boolean,
    "publishPolicyFindings": boolean
  }
}
```

### Response bodies


#### GetFindingsPublicationConfigurationResponse schema
GetFindingsPublicationConfigurationResponse

```
{
  "securityHubConfiguration": {
    "publishClassificationFindings": boolean,
    "publishPolicyFindings": boolean
  }
}
```

#### ValidationException schema
ValidationException

```
{
  "message": "string"
}
```

#### ServiceQuotaExceededException schema
ServiceQuotaExceededException

```
{
  "message": "string"
}
```

#### AccessDeniedException schema
AccessDeniedException

```
{
  "message": "string"
}
```

#### ResourceNotFoundException schema
ResourceNotFoundException

```
{
  "message": "string"
}
```

#### ConflictException schema
ConflictException

```
{
  "message": "string"
}
```

#### ThrottlingException schema
ThrottlingException

```
{
  "message": "string"
}
```

#### InternalServerException schema
InternalServerException

```
{
  "message": "string"
}
```

## Properties


### AccessDeniedException


Provides information about an error that occurred due to insufficient access to a specified resource.


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | False | The explanation of the error that occurred. | 

### ConflictException


Provides information about an error that occurred due to a versioning conflict for a specified resource.


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | False | The explanation of the error that occurred. | 

### GetFindingsPublicationConfigurationResponse


Provides information about the current configuration settings for publishing findings to AWS Security Hub CSPM automatically.


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| securityHubConfiguration | [SecurityHubConfiguration](#findings-publication-configuration-model-securityhubconfiguration) | False | The configuration settings that determine which findings are published to AWS Security Hub CSPM. | 

### InternalServerException


Provides information about an error that occurred due to an unknown internal server error, exception, or failure.


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | False | The explanation of the error that occurred. | 

### PutFindingsPublicationConfigurationRequest


Specifies configuration settings for publishing findings to AWS Security Hub CSPM automatically.


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| clientToken | string | False | A unique, case-sensitive token that you provide to ensure the idempotency of the request. | 
| securityHubConfiguration | [SecurityHubConfiguration](#findings-publication-configuration-model-securityhubconfiguration) | False | The configuration settings that determine which findings to publish to AWS Security Hub CSPM. | 

### ResourceNotFoundException


Provides information about an error that occurred because a specified resource wasn't found.


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | False | The explanation of the error that occurred. | 

### SecurityHubConfiguration


Specifies configuration settings that determine which findings are published to AWS Security Hub CSPM automatically. For information about how Macie publishes findings to Security Hub CSPM, see [Evaluating findings with AWS Security Hub CSPM](https://docs.aws.amazon.com/macie/latest/user/securityhub-integration.html) in the *Amazon Macie User Guide*.


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| publishClassificationFindings | boolean | True | Specifies whether to publish sensitive data findings to AWS Security Hub CSPM. If you set this value to `true`, Amazon Macie automatically publishes all sensitive data findings that weren't suppressed by a findings filter. The default value is `false`. | 
| publishPolicyFindings | boolean | True | Specifies whether to publish policy findings to AWS Security Hub CSPM. If you set this value to `true`, Amazon Macie automatically publishes all new and updated policy findings that weren't suppressed by a findings filter. The default value is `true`. | 

### ServiceQuotaExceededException


Provides information about an error that occurred due to one or more service quotas for an account.


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | False | The explanation of the error that occurred. | 

### ThrottlingException


Provides information about an error that occurred because too many requests were sent during a certain amount of time.


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | False | The explanation of the error that occurred. | 

### ValidationException


Provides information about an error that occurred due to a syntax error in a request.


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | False | The explanation of the error that occurred. | 

## See also


For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

### GetFindingsPublicationConfiguration

+ [AWS Command Line Interface V2](/goto/cli2/macie2-2020-01-01/GetFindingsPublicationConfiguration)
+ [AWS SDK for .NET V4](/goto/DotNetSDKV4/macie2-2020-01-01/GetFindingsPublicationConfiguration)
+ [AWS SDK for C\$1\$1](/goto/SdkForCpp/macie2-2020-01-01/GetFindingsPublicationConfiguration)
+ [AWS SDK for Go v2](/goto/SdkForGoV2/macie2-2020-01-01/GetFindingsPublicationConfiguration)
+ [AWS SDK for Java V2](/goto/SdkForJavaV2/macie2-2020-01-01/GetFindingsPublicationConfiguration)
+ [AWS SDK for JavaScript V3](/goto/SdkForJavaScriptV3/macie2-2020-01-01/GetFindingsPublicationConfiguration)
+ [AWS SDK for Kotlin](/goto/SdkForKotlin/macie2-2020-01-01/GetFindingsPublicationConfiguration)
+ [AWS SDK for PHP V3](/goto/SdkForPHPV3/macie2-2020-01-01/GetFindingsPublicationConfiguration)
+ [AWS SDK for Python](/goto/boto3/macie2-2020-01-01/GetFindingsPublicationConfiguration)
+ [AWS SDK for Ruby V3](/goto/SdkForRubyV3/macie2-2020-01-01/GetFindingsPublicationConfiguration)

### PutFindingsPublicationConfiguration

+ [AWS Command Line Interface V2](/goto/cli2/macie2-2020-01-01/PutFindingsPublicationConfiguration)
+ [AWS SDK for .NET V4](/goto/DotNetSDKV4/macie2-2020-01-01/PutFindingsPublicationConfiguration)
+ [AWS SDK for C\$1\$1](/goto/SdkForCpp/macie2-2020-01-01/PutFindingsPublicationConfiguration)
+ [AWS SDK for Go v2](/goto/SdkForGoV2/macie2-2020-01-01/PutFindingsPublicationConfiguration)
+ [AWS SDK for Java V2](/goto/SdkForJavaV2/macie2-2020-01-01/PutFindingsPublicationConfiguration)
+ [AWS SDK for JavaScript V3](/goto/SdkForJavaScriptV3/macie2-2020-01-01/PutFindingsPublicationConfiguration)
+ [AWS SDK for Kotlin](/goto/SdkForKotlin/macie2-2020-01-01/PutFindingsPublicationConfiguration)
+ [AWS SDK for PHP V3](/goto/SdkForPHPV3/macie2-2020-01-01/PutFindingsPublicationConfiguration)
+ [AWS SDK for Python](/goto/boto3/macie2-2020-01-01/PutFindingsPublicationConfiguration)
+ [AWS SDK for Ruby V3](/goto/SdkForRubyV3/macie2-2020-01-01/PutFindingsPublicationConfiguration)