

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# Amazon SNS에서 구독 필터 정책 제거
<a name="message-filtering-policy-remove"></a>

구독자에게 보내는 메시지의 필터링을 중지하려면 해당 구독의 필터 정책을 빈 JSON 본문으로 덮어써서 제거합니다. 정책을 제거한 뒤에도 해당 구독은 자신을 상대로 게시되는 모든 메시지를 받게 됩니다.

## 사용 AWS Management Console
<a name="message-filtering-policy-remove-console"></a>

1. [Amazon SNS 콘솔](https://console.aws.amazon.com/sns/home)에 로그인합니다.

1. 탐색 창에서 **구독**을 선택합니다.

1. 구독을 선택한 후 **편집**을 선택합니다.

1. **Edit {{EXAMPLE1-23bc-4567-d890-ef12g3hij456}}(예제 1-23bc-4567-d890-ef12g3hij456 편집)** 페이지에서 **Subscription filter policy(구독 필터 정책)** 섹션을 확장합니다.

1. **JSON 편집기** 필드에서 필터 정책의 빈 JSON 본문(`{}`)을 제공합니다.

1. **변경 사항 저장**을 선택합니다.

   Amazon SNS에서 구독에 필터 정책을 적용합니다.

## 사용 AWS CLI
<a name="message-filtering-policy-remove-cli"></a>

에서 필터 정책을 제거하려면 [https://docs.aws.amazon.com/cli/latest/reference/sns/set-subscription-attributes.html](https://docs.aws.amazon.com/cli/latest/reference/sns/set-subscription-attributes.html) 명령을 AWS CLI사용하고 `--attribute-value` 인수에 빈 JSON 본문을 제공합니다.

```
$ aws sns set-subscription-attributes --subscription-arn {{arn:aws:sns: ...}} --attribute-name FilterPolicy --attribute-value "{}"
```

## Amazon SNS API 사용
<a name="message-filtering-policy-remove-api"></a>

Amazon SNS API를 사용하여 필터 정책을 제거하려면 [https://docs.aws.amazon.com/sns/latest/api/API_SetSubscriptionAttributes.html](https://docs.aws.amazon.com/sns/latest/api/API_SetSubscriptionAttributes.html) 작업을 요청합니다. `AttributeName` 파라미터를 `FilterPolicy`로 설정하고 `AttributeValue` 파라미터에 빈 JSON 문자열을 입력합니다.