MarkLogic 12 EA 1 Product Documentation
sec.credentialsGetAws

sec.credentialsGetAws() as Sequence

Summary

Returns the Amazon Web Services access key, secret key, and session token (if one exists) used to access the Amazon Simple Storage Service.

Required Privileges

http://marklogic.com/xdmp/privileges/credentials-get-aws

Usage Notes

This function must be executed against the security database.

Example


(: 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. :)
  

Example


    // execute this against the security database
    const sec = require('/MarkLogic/security.xqy');

    sec.credentialsGetAws();
    // Returns the access-key and secret-key as two strings.
      
Powered by MarkLogic Server | Terms of Use | Privacy Policy