Loading TOC...

MarkLogic 10 Product Documentation
sec.credentialsSetAws

sec.credentialsSetAws(
   access-key as String,
   secret-key as String,
   [session-token as String]
) as null

Summary

Sets the Amazon Web Services credentials. Thse are used when accessing files on the simple storage service. If you set both $access-key and $secret-key to the empty string, then the credentials are deleted from the security database.

Parameters
access-key An Amazon Web Services access key.
secret-key An Amazon Web Services secret key.
session-token An Amazon Web Services session token.

Required Privileges

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

Example


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

    sec.credentialsSetAws("myaccesskey","mysecretkey");
      

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.