Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elb_classic_lb_info: Refactor elb_classic_lb_info module #2139

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

mandar242
Copy link
Contributor

SUMMARY

Added type hints and function descriptions.
Updated return block of the module.

ISSUE TYPE
  • Docs Pull Request
COMPONENT NAME

elb_classic_lb_info

ADDITIONAL INFORMATION

Copy link

github-actions bot commented Sep 4, 2024

Docs Build 📝

Thank you for contribution!✨

The docsite for this PR is available for download as an artifact from this run:
https://github.com/ansible-collections/community.aws/actions/runs/10890360149

You can compare to the docs for the main branch here:
https://ansible-collections.github.io/community.aws/branch/main

File changes:

  • M collections/community/aws/elasticbeanstalk_app_module.html
  • M collections/community/aws/elb_classic_lb_info_module.html
  • M collections/community/aws/elb_instance_module.html
  • M collections/community/aws/index.html
  • M collections/index_module.html
Click to see the diff comparison.

NOTE: only file modifications are shown here. New and deleted files are excluded.
See the file list and check the published docs to see those files.

The diff output was truncated because it exceeded the maximum size.

diff --git a/home/runner/work/community.aws/community.aws/docsbuild/base/collections/community/aws/elasticbeanstalk_app_module.html b/home/runner/work/community.aws/community.aws/docsbuild/head/collections/community/aws/elasticbeanstalk_app_module.html
index de8a6c8..6baac28 100644
--- a/home/runner/work/community.aws/community.aws/docsbuild/base/collections/community/aws/elasticbeanstalk_app_module.html
+++ b/home/runner/work/community.aws/community.aws/docsbuild/head/collections/community/aws/elasticbeanstalk_app_module.html
@@ -24,7 +24,7 @@
         <script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
     <script src="../../../_static/js/theme.js"></script>
     <link rel="search" title="Search" href="../../../search.html" />
-    <link rel="next" title="community.aws.elb_classic_lb_info module – Gather information about EC2 Elastic Load Balancers in AWS" href="elb_classic_lb_info_module.html" />
+    <link rel="next" title="community.aws.elb_classic_lb_info module – Gather information about EC2 Classic Elastic Load Balancers in AWS" href="elb_classic_lb_info_module.html" />
     <link rel="prev" title="community.aws.elasticache_subnet_group module – manage ElastiCache subnet groups" href="elasticache_subnet_group_module.html" /><!-- extra head elements for Ansible beyond RTD Sphinx Theme -->
 
 
@@ -440,7 +440,7 @@ see <a class="reference internal" href="#ansible-collections-community-aws-elast
 
 <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
         <a href="elasticache_subnet_group_module.html" class="btn btn-neutral float-left" title="community.aws.elasticache_subnet_group module – manage ElastiCache subnet groups" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
-        <a href="elb_classic_lb_info_module.html" class="btn btn-neutral float-right" title="community.aws.elb_classic_lb_info module – Gather information about EC2 Elastic Load Balancers in AWS" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
+        <a href="elb_classic_lb_info_module.html" class="btn btn-neutral float-right" title="community.aws.elb_classic_lb_info module – Gather information about EC2 Classic Elastic Load Balancers in AWS" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
     </div>
 
   <hr/>
diff --git a/home/runner/work/community.aws/community.aws/docsbuild/base/collections/community/aws/elb_classic_lb_info_module.html b/home/runner/work/community.aws/community.aws/docsbuild/head/collections/community/aws/elb_classic_lb_info_module.html
index 9c631cd..e7b4cfe 100644
--- a/home/runner/work/community.aws/community.aws/docsbuild/base/collections/community/aws/elb_classic_lb_info_module.html
+++ b/home/runner/work/community.aws/community.aws/docsbuild/head/collections/community/aws/elb_classic_lb_info_module.html
@@ -5,7 +5,7 @@
 <meta content="2.14.0" name="antsibull-docs" />
 
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <title>community.aws.elb_classic_lb_info module – Gather information about EC2 Elastic Load Balancers in AWS &mdash; Ansible collections  documentation</title>
+  <title>community.aws.elb_classic_lb_info module – Gather information about EC2 Classic Elastic Load Balancers in AWS &mdash; Ansible collections  documentation</title>
       <link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=5707b69d" />
       <link rel="stylesheet" type="text/css" href="../../../_static/css/ansible.css?v=c5b67dd2" />
       <link rel="stylesheet" type="text/css" href="../../../_static/antsibull-minimal.css" />
@@ -120,7 +120,7 @@
           <li class="breadcrumb-item"><a href="../../index.html">Collection Index</a></li>
           <li class="breadcrumb-item"><a href="../index.html">Collections in the Community Namespace</a></li>
           <li class="breadcrumb-item"><a href="index.html">Community.Aws</a></li>
-      <li class="breadcrumb-item active">community.aws.elb_classic_lb_info module – Gather information about EC2 Elastic Load Balancers in AWS</li>
+      <li class="breadcrumb-item active">community.aws.elb_classic_lb_info module – Gather information about EC2 Classic Elastic Load Balancers in AWS</li>
       <li class="wy-breadcrumbs-aside">
               <!-- User defined GitHub URL -->
               <a href="https://github.com/ansible-collections/community.aws/edit/main/plugins/modules/elb_classic_lb_info.py?description=%23%23%23%23%23%20SUMMARY%0A%3C!—%20Your%20description%20here%20–%3E%0A%0A%0A%23%23%23%23%23%20ISSUE%20TYPE%0A-%20Docs%20Pull%20Request%0A%0A%2Blabel:%20docsite_pr" class="fa fa-github"> Edit on GitHub</a>
@@ -133,8 +133,8 @@
   
            <div itemprop="articleBody">
              
-  <span class="target" id="ansible-collections-community-aws-elb-classic-lb-info-module"></span><section id="community-aws-elb-classic-lb-info-module-gather-information-about-ec2-elastic-load-balancers-in-aws">
-<h1>community.aws.elb_classic_lb_info module – Gather information about EC2 Elastic Load Balancers in AWS<a class="headerlink" href="#community-aws-elb-classic-lb-info-module-gather-information-about-ec2-elastic-load-balancers-in-aws" title="Link to this heading"></a></h1>
+  <span class="target" id="ansible-collections-community-aws-elb-classic-lb-info-module"></span><section id="community-aws-elb-classic-lb-info-module-gather-information-about-ec2-classic-elastic-load-balancers-in-aws">
+<h1>community.aws.elb_classic_lb_info module – Gather information about EC2 Classic Elastic Load Balancers in AWS<a class="headerlink" href="#community-aws-elb-classic-lb-info-module-gather-information-about-ec2-classic-elastic-load-balancers-in-aws" title="Link to this heading"></a></h1>
 <div class="admonition note">
 <p class="admonition-title">Note</p>
 <p>This module is part of the <a class="reference external" href="https://galaxy.ansible.com/ui/repo/published/community/aws/">community.aws collection</a> (version 9.0.0-dev0).</p>
@@ -159,7 +159,7 @@ see <a class="reference internal" href="#ansible-collections-community-aws-elb-c
 <section id="synopsis">
 <h2><a class="toc-backref" href="#id1" role="doc-backlink">Synopsis</a><a class="headerlink" href="#synopsis" title="Link to this heading"></a></h2>
 <ul class="simple">
-<li><p>Gather information about EC2 Elastic Load Balancers in AWS</p></li>
+<li><p>Gather information about EC2 Classic Elastic Load Balancers in AWS.</p></li>
 </ul>
 </section>
 <section id="requirements">
@@ -339,26 +339,26 @@ see <a class="reference internal" href="#ansible-collections-community-aws-elb-c
 <section id="examples">
 <h2><a class="toc-backref" href="#id5" role="doc-backlink">Examples</a><a class="headerlink" href="#examples" title="Link to this heading"></a></h2>
 <div class="highlight-yaml+jinja notranslate"><div class="highlight"><pre><span></span><span class="c1"># Note: These examples do not set authentication details, see the AWS Guide for details.</span>
-<span class="c1"># Output format tries to match amazon.aws.ec2_elb_lb module input parameters</span>
+<span class="c1"># Output format tries to match amazon.aws.elb_classic_lb module input parameters</span>
 
-<span class="c1"># Gather information about all ELBs</span>
-<span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">community.aws.elb_classic_lb_info</span><span class="p">:</span>
+<span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Gather information about all ELBs</span>
+<span class="w">  </span><span class="nt">community.aws.elb_classic_lb_info</span><span class="p">:</span>
 <span class="w">  </span><span class="nt">register</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">elb_info</span>
 
 <span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">ansible.builtin.debug</span><span class="p">:</span>
 <span class="w">    </span><span class="nt">msg</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;</span><span class="cp">{{</span> <span class="nv">item.dns_name</span> <span class="cp">}}</span><span class="s">&quot;</span>
 <span class="w">  </span><span class="nt">loop</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;</span><span class="cp">{{</span> <span class="nv">elb_info.elbs</span> <span class="cp">}}</span><span class="s">&quot;</span>
 
-<span class="c1"># Gather information about a particular ELB</span>
-<span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">community.aws.elb_classic_lb_info</span><span class="p">:</span>
+<span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Gather information about a particular ELB</span>
+<span class="w">  </span><span class="nt">community.aws.elb_classic_lb_info</span><span class="p">:</span>
 <span class="w">    </span><span class="nt">names</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">frontend-prod-elb</span>
 <span class="w">  </span><span class="nt">register</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">elb_info</span>
 
 <span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">ansible.builtin.debug</span><span class="p">:</span>
 <span class="w">    </span><span class="nt">msg</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;</span><span class="cp">{{</span> <span class="nv">elb_info.elbs.0.dns_name</span> <span class="cp">}}</span><span class="s">&quot;</span>
 
-<span class="c1"># Gather information about a set of ELBs</span>
-<span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">community.aws.elb_classic_lb_info</span><span class="p">:</span>
+<span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Gather information about a set of ELBs</span>
+<span class="w">  </span><span class="nt">community.aws.elb_classic_lb_info</span><span class="p">:</span>
 <span class="w">    </span><span class="nt">names</span><span class="p">:</span>
 <span class="w">      </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">frontend-prod-elb</span>
 <span class="w">      </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">backend-prod-elb</span>
@@ -382,11 +382,366 @@ see <a class="reference internal" href="#ansible-collections-community-aws-elb-c
 <tbody>
 <tr class="row-even"><td><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="return-elbs"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs"><strong>elbs</strong></p>
-<a class="ansibleOptionLink" href="#return-elbs" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
+<a class="ansibleOptionLink" href="#return-elbs" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=dictionary</span></p>
 </div></td>
-<td><div class="ansible-option-cell"><p>a list of load balancers</p>
+<td><div class="ansible-option-cell"><p>A list of load balancers.</p>
 <p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
-<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">{&quot;elbs&quot;:</span> <span class="pre">[{&quot;attributes&quot;:</span> <span class="pre">{&quot;access_log&quot;:</span> <span class="pre">{&quot;enabled&quot;:</span> <span class="pre">false},</span> <span class="pre">&quot;connection_draining&quot;:</span> <span class="pre">{&quot;enabled&quot;:</span> <span class="pre">true,</span> <span class="pre">&quot;timeout&quot;:</span> <span class="pre">300},</span> <span class="pre">&quot;connection_settings&quot;:</span> <span class="pre">{&quot;idle_timeout&quot;:</span> <span class="pre">60},</span> <span class="pre">&quot;cross_zone_load_balancing&quot;:</span> <span class="pre">{&quot;enabled&quot;:</span> <span class="pre">true}},</span> <span class="pre">&quot;availability_zones&quot;:</span> <span class="pre">[&quot;us-east-1a&quot;,</span> <span class="pre">&quot;us-east-1b&quot;,</span> <span class="pre">&quot;us-east-1c&quot;,</span> <span class="pre">&quot;us-east-1d&quot;,</span> <span class="pre">&quot;us-east-1e&quot;],</span> <span class="pre">&quot;backend_server_description&quot;:</span> <span class="pre">[],</span> <span class="pre">&quot;canonical_hosted_zone_name&quot;:</span> <span class="pre">&quot;test-lb-XXXXXXXXXXXX.us-east-1.elb.amazonaws.com&quot;,</span> <span class="pre">&quot;canonical_hosted_zone_name_id&quot;:</span> <span class="pre">&quot;XXXXXXXXXXXXXX&quot;,</span> <span class="pre">&quot;created_time&quot;:</span> <span class="pre">&quot;2017-08-23T18:25:03.280000+00:00&quot;,</span> <span class="pre">&quot;dns_name&quot;:</span> <span class="pre">&quot;test-lb-XXXXXXXXXXXX.us-east-1.elb.amazonaws.com&quot;,</span> <span class="pre">&quot;health_check&quot;:</span> <span class="pre">{&quot;healthy_threshold&quot;:</span> <span class="pre">10,</span> <span class="pre">&quot;interval&quot;:</span> <span class="pre">30,</span> <span class="pre">&quot;target&quot;:</span> <span class="pre">&quot;HTTP:80/index.html&quot;,</span> <span class="pre">&quot;timeout&quot;:</span> <span class="pre">5,</span> <span class="pre">&quot;unhealthy_threshold&quot;:</span> <span class="pre">2},</span> <span class="pre">&quot;instances&quot;:</span> <span class="pre">[],</span> <span class="pre">&quot;instances_inservice&quot;:</span> <span class="pre">[],</span> <span class="pre">&quot;instances_inservice_count&quot;:</span> <span class="pre">0,</span> <span class="pre">&quot;instances_outofservice&quot;:</span> <span class="pre">[],</span> <span class="pre">&quot;instances_outofservice_count&quot;:</span> <span class="pre">0,</span> <span class="pre">&quot;instances_unknownservice&quot;:</span> <span class="pre">[],</span> <span class="pre">&quot;instances_unknownservice_count&quot;:</span> <span class="pre">0,</span> <span class="pre">&quot;listener_descriptions&quot;:</span> <span class="pre">[{&quot;listener&quot;:</span> <span class="pre">{&quot;instance_port&quot;:</span> <span class="pre">80,</span> <span class="pre">&quot;instance_protocol&quot;:</span> <span class="pre">&quot;HTTP&quot;,</span> <span class="pre">&quot;load_balancer_port&quot;:</span> <span class="pre">80,</span> <span class="pre">&quot;protocol&quot;:</span> <span class="pre">&quot;HTTP&quot;},</span> <span class="pre">&quot;policy_names&quot;:</span> <span class="pre">[]}],</span> <span class="pre">&quot;load_balancer_name&quot;:</span> <span class="pre">&quot;test-lb&quot;,</span> <span class="pre">&quot;policies&quot;:</span> <span class="pre">{&quot;app_cookie_stickiness_policies&quot;:</span> <span class="pre">[],</span> <span class="pre">&quot;lb_cookie_stickiness_policies&quot;:</span> <span class="pre">[],</span> <span class="pre">&quot;other_policies&quot;:</span> <span class="pre">[]},</span> <span class="pre">&quot;scheme&quot;:</span> <span class="pre">&quot;internet-facing&quot;,</span> <span class="pre">&quot;security_groups&quot;:</span> <span class="pre">[&quot;sg-29d13055&quot;],</span> <span class="pre">&quot;source_security_group&quot;:</span> <span class="pre">{&quot;group_name&quot;:</span> <span class="pre">&quot;default&quot;,</span> <span class="pre">&quot;owner_alias&quot;:</span> <span class="pre">&quot;XXXXXXXXXXXX&quot;},</span> <span class="pre">&quot;subnets&quot;:</span> <span class="pre">[&quot;subnet-XXXXXXXX&quot;,</span> <span class="pre">&quot;subnet-XXXXXXXX&quot;],</span> <span class="pre">&quot;tags&quot;:</span> <span class="pre">{},</span> <span class="pre">&quot;vpc_id&quot;:</span> <span class="pre">&quot;vpc-c248fda4&quot;}]}</span></code></p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/attributes"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-attributes"><strong>attributes</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/attributes" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">dictionary</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Information about the load balancer attributes.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/attributes/access_log"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-attributes-access-log"><strong>access_log</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/attributes/access_log" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">dictionary</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Information on whether access logs are enabled or not.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> success</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">{&quot;enabled&quot;:</span> <span class="pre">false}</span></code></p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/attributes/additional_attributes"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-attributes-additional-attributes"><strong>additional_attributes</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/attributes/additional_attributes" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=dictionary</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Information about additional load balancer attributes.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> success</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">[{&quot;key&quot;:</span> <span class="pre">&quot;elb.http.desyncmitigationmode&quot;,</span> <span class="pre">&quot;value&quot;:</span> <span class="pre">&quot;defensive&quot;}]</span></code></p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/attributes/connection_draining"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-attributes-connection-draining"><strong>connection_draining</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/attributes/connection_draining" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">dictionary</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Information on connection draining configuration of elastic load balancer.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> success</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">{&quot;enabled&quot;:</span> <span class="pre">true,</span> <span class="pre">&quot;timeout&quot;:</span> <span class="pre">300}</span></code></p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/attributes/connection_draining/enabled"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-attributes-connection-draining-enabled"><strong>enabled</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/attributes/connection_draining/enabled" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">boolean</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Whether connection draining is enabled.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/attributes/connection_draining/timeout"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-attributes-connection-draining-timeout"><strong>timeout</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/attributes/connection_draining/timeout" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The maximum time, in seconds, to keep the existing connections open before deregistering the instances.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/attributes/connection_settings"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-attributes-connection-settings"><strong>connection_settings</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/attributes/connection_settings" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">dictionary</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Information on connection settings.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> success</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">{&quot;idle_timeout&quot;:</span> <span class="pre">60}</span></code></p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/attributes/cross_zone_load_balancing"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-attributes-cross-zone-load-balancing"><strong>cross_zone_load_balancing</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/attributes/cross_zone_load_balancing" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">dictionary</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Information on whether cross zone load balancing is enabled or not.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> success</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">{&quot;enabled&quot;:</span> <span class="pre">true}</span></code></p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/availability_zones"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-availability-zones"><strong>availability_zones</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/availability_zones" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The Availability Zones for the load balancer.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">[&quot;us-west-2a&quot;]</span></code></p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/backend_server_descriptions"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-backend-server-descriptions"><strong>backend_server_descriptions</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/backend_server_descriptions" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=dictionary</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Information about your EC2 instances.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">[{&quot;instance_port&quot;:</span> <span class="pre">8085,</span> <span class="pre">&quot;policy_names&quot;:</span> <span class="pre">[&quot;MyPolicy1&quot;]}]</span></code></p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/canonical_hosted_zone_name"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-canonical-hosted-zone-name"><strong>canonical_hosted_zone_name</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/canonical_hosted_zone_name" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The DNS name of the load balancer.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">&quot;test-123456789.us-west-2.elb.amazonaws.com&quot;</span></code></p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/canonical_hosted_zone_name_id"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-canonical-hosted-zone-name-id"><strong>canonical_hosted_zone_name_id</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/canonical_hosted_zone_name_id" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The ID of the Amazon Route 53 hosted zone for the load balancer.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">&quot;Z1Z1ZZ5HABSF5&quot;</span></code></p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/created_time"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-created-time"><strong>created_time</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/created_time" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The date and time the load balancer was created.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">&quot;2024-09-04T17:52:22.270000+00:00&quot;</span></code></p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/dns_name"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-dns-name"><strong>dns_name</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/dns_name" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The DNS name of the load balancer.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">&quot;test-123456789.us-west-2.elb.amazonaws.com&quot;</span></code></p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/health_check"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-health-check"><strong>health_check</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/health_check" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">dictionary</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Information about the health checks conducted on the load balancer.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">{&quot;healthy_threshold&quot;:</span> <span class="pre">10,</span> <span class="pre">&quot;interval&quot;:</span> <span class="pre">5,</span> <span class="pre">&quot;target&quot;:</span> <span class="pre">&quot;HTTP:80/index.html&quot;,</span> <span class="pre">&quot;timeout&quot;:</span> <span class="pre">2,</span> <span class="pre">&quot;unhealthy_threshold&quot;:</span> <span class="pre">2}</span></code></p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/health_check/healthy_threshold"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-health-check-healthy-threshold"><strong>healthy_threshold</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/health_check/healthy_threshold" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The number of consecutive health checks successes required before moving the instance to the Healthy state.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/health_check/interval"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-health-check-interval"><strong>interval</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/health_check/interval" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The approximate interval, in seconds, between health checks of an individual instance.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/health_check/target"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-health-check-target"><strong>target</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/health_check/target" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL. The range of valid ports is one (1) through 65535.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/health_check/timeout"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-health-check-timeout"><strong>timeout</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/health_check/timeout" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The amount of time, in seconds, during which no response means a failed health check.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/health_check/unhealthy_threshold"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-health-check-unhealthy-threshold"><strong>unhealthy_threshold</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/health_check/unhealthy_threshold" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The number of consecutive health checks successes required before moving the instance to the Unhealthy state.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/instances"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-instances"><strong>instances</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/instances" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=dictionary</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The IDs of the instances for the load balancer.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">[{&quot;instance_id&quot;:</span> <span class="pre">&quot;i-11d1f111ea111111b&quot;}]</span></code></p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/instances_inservice"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-instances-inservice"><strong>instances_inservice</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/instances_inservice" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Information about instances for load balancer in state “InService”.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">[&quot;i-11d1f111ea111111b&quot;]</span></code></p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/instances_inservice_count"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-instances-inservice-count"><strong>instances_inservice_count</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/instances_inservice_count" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Total number of instances for load balancer with state “InService”.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">1</span></code></p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/instances_outofservice"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-instances-outofservice"><strong>instances_outofservice</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/instances_outofservice" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Information about instances for load balancer in state “OutOfService”.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">[&quot;i-11d1f111ea111111b&quot;]</span></code></p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/instances_outofservice_count"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-instances-outofservice-count"><strong>instances_outofservice_count</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/instances_outofservice_count" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Total number of instances for load balancer with state “OutOfService”.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">0</span></code></p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/instances_unknownservice"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-instances-unknownservice"><strong>instances_unknownservice</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/instances_unknownservice" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Information about instances for load balancer in state “Unknown”.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">[&quot;i-11d1f111ea111111b&quot;]</span></code></p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/instances_unknownservice_count"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-instances-unknownservice-count"><strong>instances_unknownservice_count</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/instances_unknownservice_count" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Total number of instances for load balancer with state “Unknown”.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">1</span></code></p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/listener_descriptions"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-listener-descriptions"><strong>listener_descriptions</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/listener_descriptions" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=dictionary</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Information about the listeners for the load balancer.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">[{&quot;listener&quot;:</span> <span class="pre">{&quot;instance_port&quot;:</span> <span class="pre">80,</span> <span class="pre">&quot;instance_protocol&quot;:</span> <span class="pre">&quot;HTTP&quot;,</span> <span class="pre">&quot;load_balancer_port&quot;:</span> <span class="pre">80,</span> <span class="pre">&quot;protocol&quot;:</span> <span class="pre">&quot;HTTP&quot;},</span> <span class="pre">&quot;policy_names&quot;:</span> <span class="pre">[]}]</span></code></p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/load_balancer_name"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-load-balancer-name"><strong>load_balancer_name</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/load_balancer_name" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The name of the elastic load balancer.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">&quot;MyLoadBalancer&quot;</span></code></p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/policies"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-policies"><strong>policies</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/policies" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">dictionary</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Information about the policies defined for the load balancer.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">{&quot;app_cookie_stickiness_policies&quot;:</span> <span class="pre">[],</span> <span class="pre">&quot;lb_cookie_stickiness_policies&quot;:</span> <span class="pre">[],</span> <span class="pre">&quot;other_policies&quot;:</span> <span class="pre">[]}</span></code></p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/policies/app_cookie_stickiness_policies"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-policies-app-cookie-stickiness-policies"><strong>app_cookie_stickiness_policies</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/policies/app_cookie_stickiness_policies" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The stickiness policies created using CreateAppCookieStickinessPolicy.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/policies/lb_cookie_stickiness_policies"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-policies-lb-cookie-stickiness-policies"><strong>lb_cookie_stickiness_policies</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/policies/lb_cookie_stickiness_policies" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The stickiness policies created using CreateLBCookieStickinessPolicy.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/policies/other_policies"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-policies-other-policies"><strong>other_policies</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/policies/other_policies" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The policies other than the stickiness policies.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/scheme"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-scheme"><strong>scheme</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/scheme" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The type of load balancer.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">&quot;internet-facing&quot;</span></code></p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/security_groups"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-security-groups"><strong>security_groups</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/security_groups" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The security groups for the load balancer.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">[&quot;sg-111111af1111cb111&quot;]</span></code></p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/source_security_group"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-source-security-group"><strong>source_security_group</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/source_security_group" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">dictionary</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The security group for the load balancer, which are used as part of inbound rules for registered instances.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">{&quot;group_name&quot;:</span> <span class="pre">&quot;default&quot;,</span> <span class="pre">&quot;owner_alias&quot;:</span> <span class="pre">&quot;721111111111&quot;}</span></code></p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/source_security_group/group_name"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-source-security-group-group-name"><strong>group_name</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/source_security_group/group_name" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The name of the security group.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/source_security_group/owner_alias"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-source-security-group-owner-alias"><strong>owner_alias</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/source_security_group/owner_alias" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The owner of the security group.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-elbs/subnets"></div><p class="ansible-option-title" id="ansible-collections-community-aws-elb-classic-lb-info-module-return-elbs-subnets"><strong>subnets</strong></p>
+<a class="ansibleOptionLink" href="#return-elbs/subnets" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
+</div></td>

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/ad051fbc29bb4b739f166502c72ac2e8

✔️ ansible-galaxy-importer SUCCESS in 2m 58s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 32s
✔️ ansible-test-splitter SUCCESS in 4m 17s
✔️ integration-community.aws-1 SUCCESS in 13m 24s
✔️ integration-community.aws-2 SUCCESS in 5m 02s
Skipped 20 jobs

@mandar242 mandar242 changed the title [WIP] elb_classic_lb_info: Refactor elb_classic_lb_info module elb_classic_lb_info: Refactor elb_classic_lb_info module Sep 5, 2024
@markuman
Copy link
Member

markuman commented Sep 5, 2024

ERROR: Found 5 pylint issue(s) which need to be resolved:
ERROR: plugins/modules/ec2_vpc_vgw.py:504:13: used-before-assignment: Using variable 'deleted_vgw' before assignment
ERROR: plugins/modules/ecs_cluster.py:342:12: unreachable: Unreachable code
ERROR: plugins/modules/ecs_cluster.py:364:12: unreachable: Unreachable code
ERROR: plugins/modules/ecs_service.py:1251:12: unreachable: Unreachable code
ERROR: plugins/modules/ecs_service.py:1266:12: unreachable: Unreachable code

...things that are not touched by this PR.

@markuman
Copy link
Member

markuman commented Sep 5, 2024

recheck

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/2206868602384bd6b087b3544a2a21a3

ansible-galaxy-importer FAILURE in 4m 31s (non-voting)
✔️ build-ansible-collection SUCCESS in 11m 34s
✔️ ansible-test-splitter SUCCESS in 4m 19s
✔️ integration-community.aws-1 SUCCESS in 14m 41s
✔️ integration-community.aws-2 SUCCESS in 7m 10s
Skipped 20 jobs

plugins/modules/elb_classic_lb_info.py Outdated Show resolved Hide resolved
plugins/modules/elb_classic_lb_info.py Outdated Show resolved Hide resolved
plugins/modules/elb_classic_lb_info.py Show resolved Hide resolved
plugins/modules/elb_classic_lb_info.py Show resolved Hide resolved
plugins/modules/elb_classic_lb_info.py Show resolved Hide resolved
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/cbf36a484f864eacad49fa8ae73ae092

ansible-galaxy-importer FAILURE in 5m 12s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 36s
✔️ ansible-test-splitter SUCCESS in 4m 25s
✔️ integration-community.aws-1 SUCCESS in 13m 10s
✔️ integration-community.aws-2 SUCCESS in 5m 12s
Skipped 20 jobs

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/8c8cb8855d094137a3740e78b4dda90e

✔️ ansible-galaxy-importer SUCCESS in 3m 24s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 34s
✔️ ansible-test-splitter SUCCESS in 4m 21s
✔️ integration-community.aws-1 SUCCESS in 13m 22s
✔️ integration-community.aws-2 SUCCESS in 5m 11s
Skipped 20 jobs

plugins/modules/elb_classic_lb_info.py Outdated Show resolved Hide resolved
plugins/modules/elb_classic_lb_info.py Show resolved Hide resolved
plugins/modules/elb_classic_lb_info.py Outdated Show resolved Hide resolved
plugins/modules/elb_classic_lb_info.py Outdated Show resolved Hide resolved
plugins/modules/elb_classic_lb_info.py Outdated Show resolved Hide resolved
plugins/modules/elb_classic_lb_info.py Outdated Show resolved Hide resolved
plugins/modules/elb_classic_lb_info.py Outdated Show resolved Hide resolved
@@ -177,11 +406,30 @@ def describe_elb(connection, lb):

@AWSRetry.jittered_backoff()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tremble @mandar242 @markuman What do you think about moving some of these utilities to a module_utils folder in community.aws and calling it probably module_utils/elb.py or module_utils/elb_utils.py (I have a proposal to rename the actual elb_utils.py to elbv2_utils.py ansible-collections/amazon.aws#2285)? This will give a good start that can be further explored once the module and utility are migrated to amazon.aws and will ease the testing process, since we do not need cross-repo testing for the time being. I would like us to follow a similar pattern to what we have in amazon.aws.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I'd do the move after we've moved the code to amazon.aws, cleaning up both the elb_classic_lb and elb_classic_lb_info modules at the same time.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alinabuzachis , I agree with @tremble, once elb_classic_lb_info.py is moved to amazon.aws then module_utils for both elb_classic_lb and elb_classic_lb_info can be refactored in a better way in my opinion.


MAX_AWS_RETRIES = 5
MAX_AWS_DELAY = 5
def list_elbs(connection: Any, load_balancer_names: List[str]) -> List[Dict]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tried using botocore.client.BaseClient for connection type hinting?

Suggested change
def list_elbs(connection: Any, load_balancer_names: List[str]) -> List[Dict]:
def list_elbs(connection: botocore.client.BaseClient, load_balancer_names: List[str]) -> List[Dict]:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a retry decorator applied to connection, it's not a BaseClient. Technically it's a RetryingBotoClientWrapper.

We should probably discuss how to handle type hints for botocore clients/resources in a broader forum.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keeping it Any for now.

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/e298f5973b9345e489a624cc7570fb8f

ansible-galaxy-importer FAILURE in 5m 23s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 42s
✔️ ansible-test-splitter SUCCESS in 4m 15s
✔️ integration-community.aws-1 SUCCESS in 13m 52s
✔️ integration-community.aws-2 SUCCESS in 7m 25s
Skipped 20 jobs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants