Closed10
API から見た SES Email Receiving 設定の構造を調べる
Receipt Rule Set の一覧を取得する
aws ses list-receipt-rule-sets
実行結果:
{
"RuleSets": [
{
"Name": "foo.example.com",
"CreatedTimestamp": "2024-01-01T00:00:00.000000+00:00"
}
]
}
Receipt Rule Set の内容を確認する
aws ses describe-receipt-rule-set --rule-set-name <value>
実行結果:
{
"Metadata": {
"Name": "foo.example.com",
"CreatedTimestamp": "2024-05-05T03:22:59.216000+00:00"
},
"Rules": [
{
"Name": "store-received-mail-to-s3",
"Enabled": true,
"TlsPolicy": "Optional",
"Recipients": [],
"Actions": [
{
"S3Action": {
"BucketName": "mailbox-foo-example-com",
"KmsKeyArn": "arn:aws:kms:ap-northeast-1:xxxxxxxxxxxx:alias/aws/ses"
}
},
{
"LambdaAction": {
"FunctionArn": "arn:aws:lambda:ap-northeast-1:xxxxxxxxxxxx:function:FooBarFunction",
"InvocationType": "Event"
}
}
],
"ScanEnabled": true
}
]
}
Receipt Rule の内容を確認する
aws ses describe-receipt-rule --rule-set-name <value> --rule-name <value>
実行結果:
{
"Rule": {
"Name": "store-received-mail-to-s3",
"Enabled": true,
"TlsPolicy": "Optional",
"Recipients": [],
"Actions": [
{
"S3Action": {
"BucketName": "mailbox-foo-example-com",
"KmsKeyArn": "arn:aws:kms:ap-northeast-1:xxxxxxxxxxxx:alias/aws/ses"
}
},
{
"LambdaAction": {
"FunctionArn": "arn:aws:lambda:ap-northeast-1:xxxxxxxxxxxx:function:TestLambdaRuby",
"InvocationType": "Event"
}
}
],
"ScanEnabled": true
}
}
このスクラップは6ヶ月前にクローズされました