
sec.credentialsGetAws() as Sequence
Returns the Amazon Web Services access key, secret key, and session token (if one exists) used to access the Amazon Simple Storage Service.
http://marklogic.com/xdmp/privileges/credentials-get-awsThis function must be executed against the security database.
(: execute this against the security database :)
xquery version "1.0-ml";
import module namespace sec="http://marklogic.com/xdmp/security" at 
     "/MarkLogic/security.xqy";
sec:credentials-get-aws()
(: Returns the access-key and secret-key as two strings. :)
  
  
    // execute this against the security database
    const sec = require('/MarkLogic/security.xqy');
    sec.credentialsGetAws();
    // Returns the access-key and secret-key as two strings.
      
  
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.