<apidoc:module name="EC2Module" category="Elastic Compute Cloud" lib="ec2"  bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">

<apidoc:summary category="Elastic Compute Cloud"  bucket="XQuery Library Modules">
<p>The Elastic Compute Cloud (EC2) API module contains functions that allow you to write scripts to 
  configure EC2. </p>	
<p>EC2 is installed as the following file:</p>
<code><em>install_dir</em>/Modules/MarkLogic/ec2-2009-11-30.xqy</code> 
 
<p>where <code><em>install_dir</em></code> is the directory in which 
   MarkLogic Server is installed.</p>
<p> To use the <code>ec2-2009-11-30.xqy</code> module in your own XQuery modules, 
    include the following line in your XQuery prolog:</p>
<pre xml:space="preserve"><![CDATA[
   import module namespace ec2 = "http://marklogic.com/ec2" 
           at "/MarkLogic/ec2-2009-11-30.xqy";  ]]></pre>
<p>The library uses the <code>ec2:</code> namespace, which is 
   <em>not</em> predefined in the server.</p>
<p>MarkLogic recommends enabling the URI Lexicon when using 
    EC2; the URI lexicon will improve performance, 
   especially when the database grows to a large number of documents.</p>
</apidoc:summary>

<apidoc:function name="describe-images" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeImages.html"> DescribeImages</a> function.

</apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="image-ids" type="xs:string*" optional="true">
    Sets the ImageId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="executable-by" type="xs:string*" optional="true">
    Sets the ExecutableBy parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="owners" type="xs:string*" optional="true">
    Sets the Owner parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>

<apidoc:function name="describe-availability-zones" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
   This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeAvailabilityZones.html">DescribeAvailabilityZones</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="zone-name" type="xs:string*" optional="true">
    Sets the ZoneName parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>

<apidoc:function name="describe-regions" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
   This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeRegions.html">DescribeRegions</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="region-names" type="xs:string*" optional="true">
    Sets the RegionName.n parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>

<apidoc:function name="attach-volume" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
   This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-AttachVolume.html">AttachVolume</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="volume-id" type="xs:string">
    Sets the VolumeId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="instance-id" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="device" type="xs:string">
    Sets the Device parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="create-snapshot" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
   This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-CreateSnapshot.html">CreateSnapshot</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="volume-id" type="xs:string">
    Sets the VolumeId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="description" type="xs:string?" optional="true">
    Sets the Description parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>

<apidoc:function name="create-volume" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVolume.html">CreateVolume</a> function without a SnapshotId parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="availability-zone" type="xs:string">
    Sets the AvailabilityZone parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="size" type="xs:integer">
    Sets the Size parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="create-volume-from-snapshot" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
   This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVolume.html">CreateVolume</a> function with a <code>$snapshot-id</code> parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="availability-zone" type="xs:string">
    Sets the AvailabilityZone parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="snapshot-id" type="xs:string">
    Sets the SnapshotId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="size" type="xs:integer?" optional="true">
    Sets the Size parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>

<apidoc:function name="delete-snapshot" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DeleteSnapshot.html">DeleteSnapshot</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="snapshot-id" type="xs:string">
    Sets the SnapshotId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="delete-volume" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DeleteVolume.html">DeleteVolume</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="volume-id" type="xs:string">
    Sets the VolumeId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="describe-snapshot-create-volume-permission" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeSnapshotAttribute.html">DescribeSnapshotAttribute</a> function and passes 
  <code>createVolumePermission</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="snapshot-ids" type="xs:string*">
    Sets the SnapshotId.n parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="describe-snapshots" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeSnapshots.html">DescribeSnapshots</a> function.</apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="snapshot-ids" type="xs:string*" optional="true">
    Sets the SnapshotId.n parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="owners" type="xs:string*" optional="true">
    Sets the Owner parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="restorable-bys" type="xs:string*" optional="true">
    Sets the RestorableBy parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>

<apidoc:function name="describe-volumes" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeVolumes.html">DescribeVolumes</a> function.</apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="volume-ids" type="xs:string*" optional="true">
    Sets the VolumeId.n parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>

<apidoc:function name="detach-volume" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DetachVolume.html">DetachVolume</a> function.</apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="volume-id" type="xs:string">
    Sets the VolumeId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="instance-id" type="xs:string?" optional="true">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="device" type="xs:string?" optional="true">
    Sets the Device parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="force" type="xs:boolean?" optional="true">
    Sets the Force parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>

<apidoc:function name="add-snapshot-create-volume-permission-users" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ModifySnapshotAttribute.html">ModifySnapshotAttribute</a> 
  function and passes the IDs of the users
  to be given permission to create the snapshot.  This function sets <code>add</code> as 
    the OperationType parameter and 
  <code>createVolumePermission</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="snapshot-ids" type="xs:string*">
    Sets the SnapshotId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="user-ids" type="xs:string*">
    Sets the UserId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="add-snapshot-create-volume-permission-groups" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
    This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ModifySnapshotAttribute.html">ModifySnapshotAttribute</a> function 
    and passes the the names of
    the groups to be given permission to create the snapshot.  
    This function sets <code>add</code> as 
    the OperationType parameter and 
  <code>createVolumePermission</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="snapshot-ids" type="xs:string*">
    Sets the SnapshotId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="user-groups" type="xs:string*">
    Sets the UserGroup parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="remove-snapshot-create-volume-permission-users" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
    This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ModifySnapshotAttribute.html">ModifySnapshotAttribute</a> function and passes the IDs of the users
  to be denied permission to create the snapshot.  This function sets <code>remove</code> as 
    the OperationType parameter and 
  <code>createVolumePermission</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="snapshot-ids" type="xs:string*">
    Sets the SnapshotId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="user-ids" type="xs:string*">
    Sets the UserId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="remove-snapshot-create-volume-permission-groups" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
      This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ModifySnapshotAttribute.html">ModifySnapshotAttribute</a> function and passes the the names of
    the groups to be denied permission to create the snapshot.  
    This function sets <code>remove</code> as 
    the OperationType parameter and 
  <code>createVolumePermission</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="snapshot-ids" type="xs:string*">
    Sets the SnapshotId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="user-groups" type="xs:string*">
    Sets the UserGroup parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="reset-snapshot-create-volume-permission" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ResetSnapshotAttribute.html">ResetSnapshotAttribute</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="snapshot-ids" type="xs:string*">
    Sets the SnapshotId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="allocate-address" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-AllocateAddress.html">AllocateAddress</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="associate-address" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-AssociateAddress.html">AssociateAddress</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="public-ip" type="xs:string">
    Sets the PublicIp parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="instance-id" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="describe-addresses" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeAddresses.html">DescribeAddresses</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="public-ips" type="xs:string*" optional="true">
    Sets the PublicIp.n parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>

<apidoc:function name="disassociate-address" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DisassociateAddress.html">DisassociateAddress</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="public-ip" type="xs:string">
    Sets the PublicIp parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="release-address" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ReleaseAddress.html">ReleaseAddress</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="public-ip" type="xs:string">
    Sets the PublicIp parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="get-console-output" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-GetConsoleOutput.html">GetConsoleOutput</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-id" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="describe-instance-block-device-mapping" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInstanceAttribute.html">DescribeInstanceAttribute</a> function 
  and passes <code>blockDeviceMapping</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="describe-instance-disable-api-termination" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
    This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInstanceAttribute.html">DescribeInstanceAttribute</a> function and passes 
  <code>disableApiTermination</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="describe-instance-initiated-shutdown-behavior" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
      This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInstanceAttribute.html">DescribeInstanceAttribute</a> function and passes 
  <code>instanceInitiatedShutdownBehavior</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="describe-instance-kernel" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
        This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInstanceAttribute.html">DescribeInstanceAttribute</a> function and passes 
  <code>kernel</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="describe-instance-ramdisk" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
        This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInstanceAttribute.html">DescribeInstanceAttribute</a> function and passes 
  <code>ramdisk</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="describe-instance-root-device-name" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
        This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInstanceAttribute.html">DescribeInstanceAttribute</a> function and passes 
  <code>rootDeviceName</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>
 
</apidoc:function>
<apidoc:function name="describe-instance-type" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
        This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInstanceAttribute.html">DescribeInstanceAttribute</a> function and passes 
  <code>instanceType</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="describe-instance-user-data" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
        This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInstanceAttribute.html">DescribeInstanceAttribute</a> function and passes 
  <code>userData</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="describe-instances" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInstances.html">DescribeInstances</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string*" optional="true">
    Sets the InstanceId.n parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>

<apidoc:function name="modify-instance-block-device-mapping" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ModifyInstanceAttribute.html">ModifyInstanceAttribute</a> function and passes 
  <code>blockDeviceMapping</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-id" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="value" type="xs:string">
    Sets the Value parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="modify-instance-disable-api-termination" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
    This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ModifyInstanceAttribute.html">ModifyInstanceAttribute</a> function and passes 
  <code>disableApiTermination</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-id" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="value" type="xs:boolean">
    Sets the Value parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="modify-instance-initiated-shutdown-behavior" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
    This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ModifyInstanceAttribute.html">ModifyInstanceAttribute</a> function and passes 
  <code>instanceInitiatedShutdownBehavior</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-id" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="value" type="xs:string">
    Sets the Value parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="modify-instance-kernel" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
    This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ModifyInstanceAttribute.html">ModifyInstanceAttribute</a> function and passes 
  <code>kernel</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-id" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="value" type="xs:string">
    Sets the Value parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="modify-instance-ramdisk" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
    This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ModifyInstanceAttribute.html">ModifyInstanceAttribute</a> function and passes 
  <code>ramdisk</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-id" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="value" type="xs:string">
    Sets the Value parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="modify-instance-root-device-name" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
    This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ModifyInstanceAttribute.html">ModifyInstanceAttribute</a> function and passes 
  <code>rootDeviceName</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-id" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="value" type="xs:string">
    Sets the Value parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="modify-instance-type" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
    This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ModifyInstanceAttribute.html">ModifyInstanceAttribute</a> function and passes 
  <code>instanceType</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-id" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="value" type="xs:string">
    Sets the Value parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="modify-instance-user-data" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
    This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ModifyInstanceAttribute.html">ModifyInstanceAttribute</a> function and passes 
  <code>userData</code> as the Attribute parameter.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-id" type="xs:string">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="value" type="xs:string">
    Sets the Value parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="reboot-instances" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-RebootInstances.html">RebootInstances</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string+">
    Sets the InstanceId.n parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="reset-instance-kernel" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ResetInstanceAttribute.html">ResetInstanceAttribute</a> function and passes 
  <code>kernel</code> as the Attribute parameter.  
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string*">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="reset-instance-ramdisk" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
    This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ResetInstanceAttribute.html">ResetInstanceAttribute</a> function  and passes 
  <code>ramdisk</code> as the Attribute parameter.  
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string*">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="run-instances" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-RunInstances.html">RunInstances</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="image-id" type="xs:string">
    Sets the ImageId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="min-count" type="xs:integer">
    Sets the MinCount parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="max-count" type="xs:integer">
    Sets the MaxCount parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="instance-type" type="xs:string?">
    Sets the InstanceType parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="key-pair" type="xs:string?">
    Sets the KeyName parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="security-group" type="xs:string*">
    Sets the SecurityGroup.n parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="instance-options" type="xs:string*">
    Sets the any number of optional parameters on the Amazon function. 
    Specify using the form: ("name=value", "name=value").
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="start-instances" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-StartInstances.html">StartInstances</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string+">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="stop-instances" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-StopInstances.html">StopInstances</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string+">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="force" type="xs:boolean">
    Sets the Force parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="terminate-instances" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-TerminateInstances.html">TerminateInstances</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string+">
    Sets the InstanceId parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="create-key-pair" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-CreateKeyPair.html">CreateKeyPair</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="key-name" type="xs:string">
    Sets the KeyName parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="delete-key-pair" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DeleteKeyPair.html">DeleteKeyPair</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="key-name" type="xs:string">
    Sets the KeyName parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="describe-key-pairs" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeKeyPairs.html">DescribeKeyPairs</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="key-names" type="xs:string*" optional="true">
    Sets the KeyName.n parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>

<apidoc:function name="monitor-instances" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-MonitorInstances.html">MonitorInstances</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string+">
    Sets the InstanceId.n parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="unmonitor-instances" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-UnmonitorInstances.html">UnmonitorInstances</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="instance-ids" type="xs:string+">
    Sets the InstanceId.n parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="authorize-group-ingress" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-AuthorizeSecurityGroupIngress.html">AuthorizeSecurityGroupIngress</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="group-name" type="xs:string">
    Sets the GroupName parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="source-group-owner-id" type="xs:string">
    Sets the IpPermissions.n.Groups.m.UserId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="source-group-name" type="xs:string">
    Sets the IpPermissions.n.Groups.m.GroupName parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="authorize-icmp-ingress" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
    This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-AuthorizeSecurityGroupIngress.html">AuthorizeSecurityGroupIngress</a> function and passes 
    <code>icmp</code> as the IpPermissions.n.IpProtocol parameter.  
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="group-name" type="xs:string">
    Sets the GroupName parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="icmp-type" type="xs:integer">
    Sets the IpPermissions.n.FromPort parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="icmp-code" type="xs:integer">
    Sets the IpPermissions.n.ToPort parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="cidr-ip" type="xs:string">
    Sets the IpPermissions.n.IpRanges.m.CidrIp parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="authorize-tcp-ingress" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
      This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-AuthorizeSecurityGroupIngress.html">AuthorizeSecurityGroupIngress</a> 
      function and passes 
    <code>tcp</code> as the IpPermissions.n.IpProtocol parameter.  
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="group-name" type="xs:string">
    Sets the GroupName parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="port-range" type="xs:integer+">
    Sets both the IpPermissions.n.FromPort and IpPermissions.n.ToPort parameters on 
    the Amazon function.  Specify value as (FromPort, ToPort).
    </apidoc:param>
    <apidoc:param name="cidr-ip" type="xs:string">
    Sets the CidrIp parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="authorize-udp-ingress" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
        This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-AuthorizeSecurityGroupIngress.html">AuthorizeSecurityGroupIngress</a> 
        function and passes 
    <code>udp</code> as the IpPermissions.n.IpProtocol parameter.  
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="group-name" type="xs:string">
    Sets the GroupName parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="port-range" type="xs:integer+">
    Sets both the IpPermissions.n.FromPort and IpPermissions.n.ToPort parameters on 
    the Amazon function.  Specify value as (FromPort, ToPort).
    </apidoc:param>
    <apidoc:param name="cidr-ip" type="xs:string">
    Sets the CidrIp parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="create-security-group" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-CreateSecurityGroup.html">CreateSecurityGroup</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="group-name" type="xs:string">
    Sets the GroupName parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="group-description" type="xs:string">
    Sets the GroupDescription parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="delete-security-group" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DeleteSecurityGroup.html">DeleteSecurityGroup</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="group-name" type="xs:string">
    Sets the GroupName parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="describe-security-groups" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeSecurityGroups.html">DescribeSecurityGroups</a> function.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="group-names" type="xs:string*" optional="true">
    Sets the GroupName.n parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>

<apidoc:function name="revoke-group-ingress" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
  This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-RevokeSecurityGroupIngress.html">RevokeSecurityGroupIngress</a> function 
  and sets the UserId 
  and GroupName parameters.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="group-name" type="xs:string">
    Sets the GroupName parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="source-group-owner-id" type="xs:string">
    Sets the UserId parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="source-group-name" type="xs:string">
    Sets the GroupName parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="revoke-icmp-ingress" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
    This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-RevokeSecurityGroupIngress.html">RevokeSecurityGroupIngress</a> function, 
    passes <code>icmp</code> as the IpProtocol parameter, and sets the FromPort, ToPort,  
  and CidrIp parameters.
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="group-name" type="xs:string">
    Sets the GroupName parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="icmp-type" type="xs:integer">
    Sets the FromPort parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="icmp-code" type="xs:integer">
    Sets the ToPort parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="cidr-ip" type="xs:string">
    Sets the CidrIp parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="revoke-tcp-ingress" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
      This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-RevokeSecurityGroupIngress.html">RevokeSecurityGroupIngress</a> function, passes 
    <code>tcp</code> as the IpProtocol parameter. 
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="group-name" type="xs:string">
    Sets the GroupName parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="port-range" type="xs:integer+">
    Sets both the FromPort and ToPort parametersr on the Amazon function. 
    Specify value as (FromPort, ToPort).
    </apidoc:param>
    <apidoc:param name="cidr-ip" type="xs:string">
    Sets the CidrIp parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>

</apidoc:function>
<apidoc:function name="revoke-udp-ingress" lib="ec2" category="Elastic Compute Cloud" bucket="XQuery Library Modules" xmlns:apidoc="http://marklogic.com/xdmp/apidoc">
  <apidoc:summary>
        This function calls the Amazon <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-RevokeSecurityGroupIngress.html">RevokeSecurityGroupIngress</a> function, passes 
    <code>udp</code> as the IpProtocol parameter.  
  </apidoc:summary>
  <apidoc:params>
    <apidoc:param name="access-key" type="xs:string">
    Your Amazon Access Key ID obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="secret-key" type="xs:string">
    Your Amazon Secret Access Key obtained from your account's Security Credentials.
    </apidoc:param>
    <apidoc:param name="ec2-region" type="xs:string">
    The EC2 region you wish to manage.  Determines the web service endpoint to be used.  Example: "us-east-1"
    </apidoc:param>
    <apidoc:param name="group-name" type="xs:string">
    Sets the GroupName parameter on the Amazon function.
    </apidoc:param>
    <apidoc:param name="port-range" type="xs:integer+">
    Sets both the FromPort and ToPort parameters on the Amazon function.
    Specify value as (FromPort, ToPort).
    </apidoc:param>
    <apidoc:param name="cidr-ip" type="xs:string">
    Sets the CidrIp parameter on the Amazon function.
    </apidoc:param>
  </apidoc:params>
  <apidoc:return>node()</apidoc:return>
 
</apidoc:function>



</apidoc:module>
