asWriteToS3

Casts this RuleAction as a WriteToS3 and retrieves its aws.sdk.kotlin.services.mailmanager.model.S3Action value. Throws an exception if the RuleAction is not a WriteToS3.