
sec:credentials-set-aws( $access-key as xs:string, $secret-key as xs:string, [$session-token as xs:string] ) as empty-sequence()
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")