-
Notifications
You must be signed in to change notification settings - Fork 395
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
base: main
Are you sure you want to change the base?
elb_classic_lb_info: Refactor elb_classic_lb_info module #2139
Conversation
be26fd2
to
acc5fa8
Compare
Docs Build 📝Thank you for contribution!✨ The docsite for this PR is available for download as an artifact from this run: You can compare to the docs for the File changes:
Click to see the diff comparison.NOTE: only file modifications are shown here. New and deleted files are excluded. 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 — Ansible collections documentation</title>
+ <title>community.aws.elb_classic_lb_info module – Gather information about EC2 Classic Elastic Load Balancers in AWS — 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">"</span><span class="cp">{{</span> <span class="nv">item.dns_name</span> <span class="cp">}}</span><span class="s">"</span>
<span class="w"> </span><span class="nt">loop</span><span class="p">:</span><span class="w"> </span><span class="s">"</span><span class="cp">{{</span> <span class="nv">elb_info.elbs</span> <span class="cp">}}</span><span class="s">"</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">"</span><span class="cp">{{</span> <span class="nv">elb_info.elbs.0.dns_name</span> <span class="cp">}}</span><span class="s">"</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">{"elbs":</span> <span class="pre">[{"attributes":</span> <span class="pre">{"access_log":</span> <span class="pre">{"enabled":</span> <span class="pre">false},</span> <span class="pre">"connection_draining":</span> <span class="pre">{"enabled":</span> <span class="pre">true,</span> <span class="pre">"timeout":</span> <span class="pre">300},</span> <span class="pre">"connection_settings":</span> <span class="pre">{"idle_timeout":</span> <span class="pre">60},</span> <span class="pre">"cross_zone_load_balancing":</span> <span class="pre">{"enabled":</span> <span class="pre">true}},</span> <span class="pre">"availability_zones":</span> <span class="pre">["us-east-1a",</span> <span class="pre">"us-east-1b",</span> <span class="pre">"us-east-1c",</span> <span class="pre">"us-east-1d",</span> <span class="pre">"us-east-1e"],</span> <span class="pre">"backend_server_description":</span> <span class="pre">[],</span> <span class="pre">"canonical_hosted_zone_name":</span> <span class="pre">"test-lb-XXXXXXXXXXXX.us-east-1.elb.amazonaws.com",</span> <span class="pre">"canonical_hosted_zone_name_id":</span> <span class="pre">"XXXXXXXXXXXXXX",</span> <span class="pre">"created_time":</span> <span class="pre">"2017-08-23T18:25:03.280000+00:00",</span> <span class="pre">"dns_name":</span> <span class="pre">"test-lb-XXXXXXXXXXXX.us-east-1.elb.amazonaws.com",</span> <span class="pre">"health_check":</span> <span class="pre">{"healthy_threshold":</span> <span class="pre">10,</span> <span class="pre">"interval":</span> <span class="pre">30,</span> <span class="pre">"target":</span> <span class="pre">"HTTP:80/index.html",</span> <span class="pre">"timeout":</span> <span class="pre">5,</span> <span class="pre">"unhealthy_threshold":</span> <span class="pre">2},</span> <span class="pre">"instances":</span> <span class="pre">[],</span> <span class="pre">"instances_inservice":</span> <span class="pre">[],</span> <span class="pre">"instances_inservice_count":</span> <span class="pre">0,</span> <span class="pre">"instances_outofservice":</span> <span class="pre">[],</span> <span class="pre">"instances_outofservice_count":</span> <span class="pre">0,</span> <span class="pre">"instances_unknownservice":</span> <span class="pre">[],</span> <span class="pre">"instances_unknownservice_count":</span> <span class="pre">0,</span> <span class="pre">"listener_descriptions":</span> <span class="pre">[{"listener":</span> <span class="pre">{"instance_port":</span> <span class="pre">80,</span> <span class="pre">"instance_protocol":</span> <span class="pre">"HTTP",</span> <span class="pre">"load_balancer_port":</span> <span class="pre">80,</span> <span class="pre">"protocol":</span> <span class="pre">"HTTP"},</span> <span class="pre">"policy_names":</span> <span class="pre">[]}],</span> <span class="pre">"load_balancer_name":</span> <span class="pre">"test-lb",</span> <span class="pre">"policies":</span> <span class="pre">{"app_cookie_stickiness_policies":</span> <span class="pre">[],</span> <span class="pre">"lb_cookie_stickiness_policies":</span> <span class="pre">[],</span> <span class="pre">"other_policies":</span> <span class="pre">[]},</span> <span class="pre">"scheme":</span> <span class="pre">"internet-facing",</span> <span class="pre">"security_groups":</span> <span class="pre">["sg-29d13055"],</span> <span class="pre">"source_security_group":</span> <span class="pre">{"group_name":</span> <span class="pre">"default",</span> <span class="pre">"owner_alias":</span> <span class="pre">"XXXXXXXXXXXX"},</span> <span class="pre">"subnets":</span> <span class="pre">["subnet-XXXXXXXX",</span> <span class="pre">"subnet-XXXXXXXX"],</span> <span class="pre">"tags":</span> <span class="pre">{},</span> <span class="pre">"vpc_id":</span> <span class="pre">"vpc-c248fda4"}]}</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">{"enabled":</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">[{"key":</span> <span class="pre">"elb.http.desyncmitigationmode",</span> <span class="pre">"value":</span> <span class="pre">"defensive"}]</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">{"enabled":</span> <span class="pre">true,</span> <span class="pre">"timeout":</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">{"idle_timeout":</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">{"enabled":</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">["us-west-2a"]</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">[{"instance_port":</span> <span class="pre">8085,</span> <span class="pre">"policy_names":</span> <span class="pre">["MyPolicy1"]}]</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">"test-123456789.us-west-2.elb.amazonaws.com"</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">"Z1Z1ZZ5HABSF5"</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">"2024-09-04T17:52:22.270000+00:00"</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">"test-123456789.us-west-2.elb.amazonaws.com"</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">{"healthy_threshold":</span> <span class="pre">10,</span> <span class="pre">"interval":</span> <span class="pre">5,</span> <span class="pre">"target":</span> <span class="pre">"HTTP:80/index.html",</span> <span class="pre">"timeout":</span> <span class="pre">2,</span> <span class="pre">"unhealthy_threshold":</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">[{"instance_id":</span> <span class="pre">"i-11d1f111ea111111b"}]</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">["i-11d1f111ea111111b"]</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">["i-11d1f111ea111111b"]</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">["i-11d1f111ea111111b"]</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">[{"listener":</span> <span class="pre">{"instance_port":</span> <span class="pre">80,</span> <span class="pre">"instance_protocol":</span> <span class="pre">"HTTP",</span> <span class="pre">"load_balancer_port":</span> <span class="pre">80,</span> <span class="pre">"protocol":</span> <span class="pre">"HTTP"},</span> <span class="pre">"policy_names":</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">"MyLoadBalancer"</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">{"app_cookie_stickiness_policies":</span> <span class="pre">[],</span> <span class="pre">"lb_cookie_stickiness_policies":</span> <span class="pre">[],</span> <span class="pre">"other_policies":</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">"internet-facing"</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">["sg-111111af1111cb111"]</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">{"group_name":</span> <span class="pre">"default",</span> <span class="pre">"owner_alias":</span> <span class="pre">"721111111111"}</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>
|
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 2m 58s (non-voting) |
...things that are not touched by this PR. |
recheck |
Build succeeded. ❌ ansible-galaxy-importer FAILURE in 4m 31s (non-voting) |
Build succeeded. ❌ ansible-galaxy-importer FAILURE in 5m 12s (non-voting) |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 24s (non-voting) |
@@ -177,11 +406,30 @@ def describe_elb(connection, lb): | |||
|
|||
@AWSRetry.jittered_backoff() |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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]: |
There was a problem hiding this comment.
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?
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]: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Build succeeded. ❌ ansible-galaxy-importer FAILURE in 5m 23s (non-voting) |
SUMMARY
Added type hints and function descriptions.
Updated return block of the module.
ISSUE TYPE
COMPONENT NAME
elb_classic_lb_info
ADDITIONAL INFORMATION