Skip to content

Commit

Permalink
Update docs (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm authored Mar 18, 2022
1 parent afe4f59 commit 729a734
Show file tree
Hide file tree
Showing 18 changed files with 142 additions and 78 deletions.
3 changes: 2 additions & 1 deletion docs/_static/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- basic theme.
*
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
Expand Down Expand Up @@ -757,6 +757,7 @@ span.pre {
-ms-hyphens: none;
-webkit-hyphens: none;
hyphens: none;
white-space: nowrap;
}

div[class*="highlight-"] {
Expand Down
5 changes: 4 additions & 1 deletion docs/_static/doctools.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Sphinx JavaScript utilities for all documentation.
*
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
Expand Down Expand Up @@ -264,6 +264,9 @@ var Documentation = {
hideSearchWords : function() {
$('#searchbox .highlight-link').fadeOut(300);
$('span.highlighted').removeClass('highlighted');
var url = new URL(window.location);
url.searchParams.delete('highlight');
window.history.replaceState({}, '', url);
},

/**
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/language_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* This script contains the language-specific data used by searchtools.js,
* namely the list of stopwords, stemmer, scorer and splitter.
*
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/searchtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Sphinx JavaScript utilities for the full-text search.
*
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
Expand Down
28 changes: 17 additions & 11 deletions docs/api/auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ <h3>Navigation</h3>
To define a custom provider, use the <a class="reference internal" href="#awscrt.auth.AwsCredentialsProvider.new_delegate" title="awscrt.auth.AwsCredentialsProvider.new_delegate"><code class="xref py py-meth docutils literal notranslate"><span class="pre">new_delegate()</span></code></a> function.</p>
<dl class="py method">
<dt class="sig sig-object py" id="awscrt.auth.AwsCredentialsProvider.new_default_chain">
<em class="property"><span class="pre">classmethod</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">new_default_chain</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">client_bootstrap</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#awscrt.auth.AwsCredentialsProvider.new_default_chain" title="Permalink to this definition"></a></dt>
<em class="property"><span class="pre">classmethod</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">new_default_chain</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">client_bootstrap</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#awscrt.auth.AwsCredentialsProvider.new_default_chain" title="Permalink to this definition"></a></dt>
<dd><p>Create the default provider chain used by most AWS SDKs.</p>
<p>Generally:</p>
<ol class="arabic simple">
Expand All @@ -141,7 +141,8 @@ <h3>Navigation</h3>
</ol>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>client_bootstrap</strong> (<a class="reference internal" href="io.html#awscrt.io.ClientBootstrap" title="awscrt.io.ClientBootstrap"><em>ClientBootstrap</em></a>) – Client bootstrap to use when initiating socket connection.</p>
<dd class="field-odd"><p><strong>client_bootstrap</strong> (<em>Optional</em><em>[</em><a class="reference internal" href="io.html#awscrt.io.ClientBootstrap" title="awscrt.io.ClientBootstrap"><em>ClientBootstrap</em></a><em>]</em>) – Client bootstrap to use when initiating socket connection.
If not set, uses the default static ClientBootstrap instead.</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p><em>AwsCredentialsProvider</em></p>
Expand Down Expand Up @@ -169,13 +170,14 @@ <h3>Navigation</h3>

<dl class="py method">
<dt class="sig sig-object py" id="awscrt.auth.AwsCredentialsProvider.new_profile">
<em class="property"><span class="pre">classmethod</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">new_profile</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">client_bootstrap</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">profile_name</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">config_filepath</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">credentials_filepath</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#awscrt.auth.AwsCredentialsProvider.new_profile" title="Permalink to this definition"></a></dt>
<em class="property"><span class="pre">classmethod</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">new_profile</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">client_bootstrap</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">profile_name</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">config_filepath</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">credentials_filepath</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#awscrt.auth.AwsCredentialsProvider.new_profile" title="Permalink to this definition"></a></dt>
<dd><p>Creates a provider that sources credentials from key-value profiles
loaded from the aws credentials file.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>client_bootstrap</strong> (<a class="reference internal" href="io.html#awscrt.io.ClientBootstrap" title="awscrt.io.ClientBootstrap"><em>ClientBootstrap</em></a>) – Client bootstrap to use when initiating socket connection.</p></li>
<li><p><strong>client_bootstrap</strong> (<em>Optional</em><em>[</em><a class="reference internal" href="io.html#awscrt.io.ClientBootstrap" title="awscrt.io.ClientBootstrap"><em>ClientBootstrap</em></a><em>]</em>) – Client bootstrap to use when initiating socket connection.
If not set, uses the static default ClientBootstrap instead.</p></li>
<li><p><strong>profile_name</strong> (<em>Optional</em><em>[</em><em>str</em><em>]</em>) – Name of profile to use.
If not set, uses value from AWS_PROFILE environment variable.
If that is not set, uses value of “default”</p></li>
Expand Down Expand Up @@ -663,12 +665,16 @@ <h3>Navigation</h3>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="../index.html"
title="previous chapter">Welcome to awscrt’s documentation!</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="common.html"
title="next chapter">awscrt.common</a></p>
<div>
<h4>Previous topic</h4>
<p class="topless"><a href="../index.html"
title="previous chapter">Welcome to awscrt’s documentation!</a></p>
</div>
<div>
<h4>Next topic</h4>
<p class="topless"><a href="common.html"
title="next chapter">awscrt.common</a></p>
</div>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
Expand Down Expand Up @@ -711,7 +717,7 @@ <h3>Navigation</h3>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2020, Amazon Web Services, Inc.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.2.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.4.0.
</div>
</body>
</html>
18 changes: 11 additions & 7 deletions docs/api/common.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,16 @@ <h3>Navigation</h3>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="auth.html"
title="previous chapter">awscrt.auth</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="exceptions.html"
title="next chapter">awscrt.exceptions</a></p>
<div>
<h4>Previous topic</h4>
<p class="topless"><a href="auth.html"
title="previous chapter">awscrt.auth</a></p>
</div>
<div>
<h4>Next topic</h4>
<p class="topless"><a href="exceptions.html"
title="next chapter">awscrt.exceptions</a></p>
</div>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
Expand Down Expand Up @@ -123,7 +127,7 @@ <h3>Navigation</h3>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2020, Amazon Web Services, Inc.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.2.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.4.0.
</div>
</body>
</html>
23 changes: 14 additions & 9 deletions docs/api/eventstream.html
Original file line number Diff line number Diff line change
Expand Up @@ -484,15 +484,16 @@ <h3>Navigation</h3>

<dl class="py method">
<dt class="sig sig-object py" id="awscrt.eventstream.rpc.ClientConnection.connect">
<em class="property"><span class="pre">classmethod</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">connect</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">handler</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#awscrt.eventstream.rpc.ClientConnectionHandler" title="awscrt.eventstream.rpc.ClientConnectionHandler"><span class="pre">awscrt.eventstream.rpc.ClientConnectionHandler</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">host_name</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">port</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">bootstrap</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="io.html#awscrt.io.ClientBootstrap" title="awscrt.io.ClientBootstrap"><span class="pre">awscrt.io.ClientBootstrap</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">socket_options</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="io.html#awscrt.io.SocketOptions" title="awscrt.io.SocketOptions"><span class="pre">awscrt.io.SocketOptions</span></a><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">tls_connection_options</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="io.html#awscrt.io.TlsConnectionOptions" title="awscrt.io.TlsConnectionOptions"><span class="pre">awscrt.io.TlsConnectionOptions</span></a><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">concurrent.futures._base.Future</span></span></span><a class="headerlink" href="#awscrt.eventstream.rpc.ClientConnection.connect" title="Permalink to this definition"></a></dt>
<em class="property"><span class="pre">classmethod</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">connect</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">handler</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#awscrt.eventstream.rpc.ClientConnectionHandler" title="awscrt.eventstream.rpc.ClientConnectionHandler"><span class="pre">awscrt.eventstream.rpc.ClientConnectionHandler</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">host_name</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">port</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">bootstrap</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="io.html#awscrt.io.ClientBootstrap" title="awscrt.io.ClientBootstrap"><span class="pre">awscrt.io.ClientBootstrap</span></a><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">socket_options</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="io.html#awscrt.io.SocketOptions" title="awscrt.io.SocketOptions"><span class="pre">awscrt.io.SocketOptions</span></a><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">tls_connection_options</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="io.html#awscrt.io.TlsConnectionOptions" title="awscrt.io.TlsConnectionOptions"><span class="pre">awscrt.io.TlsConnectionOptions</span></a><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">concurrent.futures._base.Future</span></span></span><a class="headerlink" href="#awscrt.eventstream.rpc.ClientConnection.connect" title="Permalink to this definition"></a></dt>
<dd><p>Asynchronously establish a new ClientConnection.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>handler</strong> – Handler for connection events.</p></li>
<li><p><strong>host_name</strong> – Connect to host.</p></li>
<li><p><strong>port</strong> – Connect to port.</p></li>
<li><p><strong>bootstrap</strong> – Client bootstrap to use when initiating socket connection.</p></li>
<li><p><strong>bootstrap</strong> – Client bootstrap to use when initiating socket connection.
If None is provided, the default singleton is used.</p></li>
<li><p><strong>socket_options</strong> – Optional socket options.
If None is provided, then default options are used.</p></li>
<li><p><strong>tls_connection_options</strong> – Optional TLS
Expand Down Expand Up @@ -774,12 +775,16 @@ <h3>Navigation</h3>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="exceptions.html"
title="previous chapter">awscrt.exceptions</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="http.html"
title="next chapter">awscrt.http</a></p>
<div>
<h4>Previous topic</h4>
<p class="topless"><a href="exceptions.html"
title="previous chapter">awscrt.exceptions</a></p>
</div>
<div>
<h4>Next topic</h4>
<p class="topless"><a href="http.html"
title="next chapter">awscrt.http</a></p>
</div>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
Expand Down Expand Up @@ -822,7 +827,7 @@ <h3>Navigation</h3>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2020, Amazon Web Services, Inc.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.2.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.4.0.
</div>
</body>
</html>
18 changes: 11 additions & 7 deletions docs/api/exceptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,16 @@ <h3>Navigation</h3>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="common.html"
title="previous chapter">awscrt.common</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="eventstream.html"
title="next chapter">awscrt.eventstream</a></p>
<div>
<h4>Previous topic</h4>
<p class="topless"><a href="common.html"
title="previous chapter">awscrt.common</a></p>
</div>
<div>
<h4>Next topic</h4>
<p class="topless"><a href="eventstream.html"
title="next chapter">awscrt.eventstream</a></p>
</div>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
Expand Down Expand Up @@ -174,7 +178,7 @@ <h3>Navigation</h3>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2020, Amazon Web Services, Inc.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.2.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.4.0.
</div>
</body>
</html>
Loading

0 comments on commit 729a734

Please sign in to comment.