

 Amazon Redshift는 패치 198부터 새 Python UDF 생성을 더 이상 지원하지 않습니다. 기존 Python UDF는 2026년 6월 30일까지 계속 작동합니다. 자세한 내용은 [블로그 게시물](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)을 참조하세요.

# 예약된 쿼리 모니터링
<a name="query-editor-v2-schedule-query-sns"></a>

이메일 알림을 보내도록 지정한 Amazon SNS 주의 경우 쿼리 편집기 v2에서 **SNS 알림** 섹션으로 이동하여 모니터링을 **켜고** **SNS 주제 생성**으로 주제를 생성하여 Amazon SNS 주제를 생성합니다. 쿼리 편집기 v2가 Amazon SNS 주제를 생성하고 Amazon EventBridge에 대한 액세스 정책에 서비스 주체를 추가합니다. 다음은 Amazon SNS 주제에 생성된 **액세스 정책** 예입니다. 이 예제에서는 AWS 리전 {{us-west-2}}, AWS 계정 {{123456789012}}, Amazon SNS 주제 {{select-version-pdx-testunload}}가 사용되었습니다.

------
#### [ JSON ]

****  

```
{
  "Version":"2012-10-17",		 	 	 
  "Id": "__default_policy_ID",
  "Statement": [
    {
      "Sid": "Allow_Publish_Events",
      "Effect": "Allow",
      "Principal": {
        "Service": "events.amazonaws.com"
      },
      "Action": "sns:Publish",
      "Resource": "arn:aws:sns:{{us-west-2}}:{{123456789012}}:{{select-version-pdx-testunload}}"
    }
  ]
}
```

------

예약된 쿼리가 실행되면 Amazon SNS에서 AWS 알림 이메일을 보냅니다. 다음 예는 Amazon SNS 알림 주제 {{may25a-SNS}}를 사용하여 AWS 계정 {{123456789012}} 내 AWS 리전 {{eu-north-1}}에서 실행된 예약된 쿼리 {{QS2-may25a}}에 대해 {{myemail@example.com}}으로 보낸 이메일을 보여줍니다.

```
{"version":"0","id":"8e4323ec-5258-7138-181b-91290e30ff9b","detail-type":"Scheduled Event","source":"aws.events","account":"{{123456789012}}","time":"2023-05-25T15:22:00Z",
                    "region":"{{eu-north-1}}","resources":["arn:aws:events:{{eu-north-1}}:{{123456789012}}:rule/{{QS2-may25a}}"],"detail":{}}

--
If you wish to stop receiving notifications from this topic, please click or visit the link below to unsubscribe:
https://sns.{{eu-north-1}}.amazonaws.com/unsubscribe.html?SubscriptionArn=arn:aws:sns:{{eu-north-1}}:{{123456789012}}:{{may25a-SNS}}:0c1a3d05-39c2-4507-bc3d-47250513d7b0&Endpoint={{myemail@example.com}}

Please do not reply directly to this email. If you have any questions or comments regarding this email, please contact us at https://aws.amazon.com/support
```