I want to use object-acl-expression in s3-outbound-gateway as mentioned below configuration but, its throwing "Illegal state Exception" due to null value in else section.I dont want to set any other access controll in else section. Could you please suggest some solution on this ?.
<int-aws:s3-outbound-gateway
id="id" request-channel="requestChannelId"
reply-channel="replayChannelId"
transfer-manager="tm"
bucket-expression="bucketName"
object-acl-expression="headers.S3_FULL_ACCESS_OWNER_ENABLED == 'Y' ? T(com.amazonaws.services.s3.model.CannedAccessControlList).BucketOwnerFullControl : null
key-expression="headers.file_name"
command="UPLOAD">
</int-aws:s3-outbound-gateway>
expected : object-acl-expression should be as default provided in the bucket Actual : Throwing "Illegal state exception"