Describes the specified policies or all policies used for SSL negotiation.
For more information, see Security policies in the Application Load Balancers Guide and Security policies in the Network Load Balancers Guide.
Parameters:
-
names
(Optional[SslPolicyNames], default:
None
)
–
The names of the policies.
-
marker
(Optional[Marker], default:
None
)
–
The marker for the next set of results. (You received this marker from a previous call.)
-
page_size
(Optional[PageSize], default:
None
)
–
The maximum number of results to return with this call.
-
load_balancer_type
(Optional[LoadBalancerTypeEnum], default:
None
)
–
The type of load balancer. The default lists the SSL policies for all load balancers.
Raises:
Examples:
To describe a policy used for SSL negotiation
This example describes the specified policy used for SSL negotiation.
>>> client.describe_ssl_policies(names=['ELBSecurityPolicy-2015-05'])
Source code in docs_src/capo_elastic_load_balancing_v2/_services/elastic_load_balancingv2.py
| def describe_ssl_policies(
self,
*,
config_overrides: Optional[ElasticLoadBalancingv2ClientConfig] = None,
names: Optional[
"capo_elastic_load_balancing_v2.types.ssl_policy_names.SslPolicyNames"
] = None,
marker: Optional["capo_elastic_load_balancing_v2.types.marker.Marker"] = None,
page_size: Optional[
"capo_elastic_load_balancing_v2.types.page_size.PageSize"
] = None,
load_balancer_type: Optional[
"capo_elastic_load_balancing_v2.types.load_balancer_type_enum.LoadBalancerTypeEnum"
] = None,
) -> "capo_elastic_load_balancing_v2.types.describe_ssl_policies_output.DescribeSSLPoliciesOutput":
"""<p>Describes the specified policies or all policies used for SSL negotiation.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/application/describe-ssl-policies.html">Security policies</a> in the <i>Application Load Balancers Guide</i> and <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/network/describe-ssl-policies.html">Security policies</a> in the <i>Network Load Balancers Guide</i>.</p>
Args:
names: <p>The names of the policies.</p>
marker: <p>The marker for the next set of results. (You received this marker from a previous call.)</p>
page_size: <p>The maximum number of results to return with this call.</p>
load_balancer_type: <p> The type of load balancer. The default lists the SSL policies for all load balancers.</p>
Raises:
capo_elastic_load_balancing_v2.errors.ssl_policy_not_found_exception.SSLPolicyNotFoundException: <p>The specified SSL policy does not exist.</p>
capo_elastic_load_balancing_v2.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
To describe a policy used for SSL negotiation
This example describes the specified policy used for SSL negotiation.
>>> client.describe_ssl_policies(names=['ELBSecurityPolicy-2015-05'])
"""
def _handler(
req: "OperationRequest[capo_elastic_load_balancing_v2.types.describe_ssl_policies_input.DescribeSSLPoliciesInput]",
) -> OperationResponse[
"capo_elastic_load_balancing_v2.types.describe_ssl_policies_output.DescribeSSLPoliciesOutput"
]:
import capo_elastic_load_balancing_v2._operations.elastic_load_balancing_v10.describe_ssl_policies
output, http_response = (
capo_elastic_load_balancing_v2._operations.elastic_load_balancing_v10.describe_ssl_policies.describe_ssl_policies(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeSSLPolicies")
)
input_: capo_elastic_load_balancing_v2.types.describe_ssl_policies_input.DescribeSSLPoliciesInput = {}
if names is not None:
input_["names"] = names
if marker is not None:
input_["marker"] = marker
if page_size is not None:
input_["page_size"] = page_size
if load_balancer_type is not None:
input_["load_balancer_type"] = load_balancer_type
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|