updateReceiptRule
inline suspend fun SesClient.updateReceiptRule(crossinline block: UpdateReceiptRuleRequest.Builder.() -> Unit): UpdateReceiptRuleResponse
Updates a receipt rule.
For information about managing receipt rules, see the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
Samples
import aws.sdk.kotlin.services.ses.model.ReceiptAction
fun main() {
//sampleStart
// The following example updates a receipt rule to use an Amazon S3 action
sesClient.updateReceiptRule {
ruleSetName = "MyRuleSet"
rule = ReceiptRule {
tlsPolicy = TlsPolicy.fromValue("Optional")
enabled = true
name = "MyRule"
actions = listOf<ReceiptAction>(
ReceiptAction {
s3Action = S3Action {
objectKeyPrefix = "email"
bucketName = "MyBucket"
}
}
)
scanEnabled = true
}
}
//sampleEnd
}