Loading

How to Grant Access Control List (ACL) Permissions for an Object That Already Exists in Amazon S3 Bucket

Veröffentlichungsdatum: Jul 25, 2025
Aufgabe

GOAL

You already have an object in Amazon S3 bucket and now the Access Control List (ACL) permission needs to be set for the object. 

Schritte

In order to grant ACL permission for an object in Amazon S3 bucket, Set Object Acl operation from Amazon S3 connector needs to be used.
Generate the dataweave mapping by dragging a Transform Message component in front of the connector component. Once you select the attributes (double click) from the generated mapping, sample dataweave code is generated in Anypoint Studio.
Error message image

The sample code will be in the following format:
%dw 2.0
output application/java
---
[
   {
      grantee: {
         identifier: <your-identifier>,
         typeIdentifier: <your-typeidentifier>
      },
      permission: <your-permission>
   } as Object {
      class : "org.mule.extension.s3.api.model.Grant"
   }
]
Nummer des Knowledge-Artikels

001116764

 
Laden
Salesforce Help | Article