sec.credentialsSetAws( access-key as String, secret-key as String, [session-token as String] ) as null
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. |
http://marklogic.com/xdmp/privileges/credentials-set-aws
(: 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-set-aws("myaccesskey","mysecretkey")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.