Skip to content

Commit

Permalink
Isolate cloudfront operations to dedicated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Aug 15, 2024
1 parent f1fd5e9 commit b51ed4c
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ logging.ini
*.db

!samples/*
ngrok.yml
cloudfront_*.yaml
*.yaml
*.yml
!.github/*
13 changes: 12 additions & 1 deletion docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ <h1 id="index">Index</h1>
| <a href="#N"><strong>N</strong></a>
| <a href="#P"><strong>P</strong></a>
| <a href="#R"><strong>R</strong></a>
| <a href="#S"><strong>S</strong></a>
| <a href="#T"><strong>T</strong></a>
| <a href="#U"><strong>U</strong></a>
| <a href="#W"><strong>W</strong></a>
Expand All @@ -66,10 +67,12 @@ <h2 id="A">A</h2>
</li>
<li><a href="index.html#nctl.models.Concurrency.Config.arbitrary_types_allowed">arbitrary_types_allowed (nctl.models.Concurrency.Config attribute)</a>
</li>
<li><a href="index.html#nctl.models.EnvConfig.aws_access_key_id">aws_access_key_id (nctl.models.EnvConfig attribute)</a>
<li><a href="index.html#nctl.aws.CloudFront.await_update">await_update() (nctl.aws.CloudFront method)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#nctl.models.EnvConfig.aws_access_key_id">aws_access_key_id (nctl.models.EnvConfig attribute)</a>
</li>
<li><a href="index.html#nctl.models.EnvConfig.aws_default_region">aws_default_region (nctl.models.EnvConfig attribute)</a>
</li>
<li><a href="index.html#nctl.models.EnvConfig.aws_profile_name">aws_profile_name (nctl.models.EnvConfig attribute)</a>
Expand Down Expand Up @@ -283,6 +286,14 @@ <h2 id="R">R</h2>
</ul></td>
</tr></table>

<h2 id="S">S</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#nctl.aws.CloudFront.store_config">store_config() (nctl.aws.CloudFront method)</a>
</li>
</ul></td>
</tr></table>

<h2 id="T">T</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
Expand Down
14 changes: 13 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ <h1>Welcome to NCTL’s documentation!<a class="headerlink" href="#welcome-to-nc

<dl class="py method">
<dt class="sig sig-object py" id="nctl.aws.CloudFront.update_distribution">
<span class="sig-name descname"><span class="pre">update_distribution</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">origin_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><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#nctl.aws.CloudFront.update_distribution" title="Permalink to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">update_distribution</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">current_config</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">dict</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">origin_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><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#nctl.aws.CloudFront.update_distribution" title="Permalink to this definition"></a></dt>
<dd><p>Updates a cloudfront distribution.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
Expand All @@ -147,6 +147,18 @@ <h1>Welcome to NCTL’s documentation!<a class="headerlink" href="#welcome-to-nc
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="nctl.aws.CloudFront.store_config">
<span class="sig-name descname"><span class="pre">store_config</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">configuration</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">dict</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">None</span></span></span><a class="headerlink" href="#nctl.aws.CloudFront.store_config" title="Permalink to this definition"></a></dt>
<dd><p>Stores the cloudfront distribution config in a YAML file locally.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="nctl.aws.CloudFront.await_update">
<span class="sig-name descname"><span class="pre">await_update</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">distribution_id</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</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">None</span></span></span><a class="headerlink" href="#nctl.aws.CloudFront.await_update" title="Permalink to this definition"></a></dt>
<dd><p>Awaits the distribution update.</p>
</dd></dl>

</dd></dl>

</section>
Expand Down
Binary file modified docs/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b51ed4c

Please sign in to comment.