:doc:`ElasticLoadBalancing <../../elb>` / Client / describe_load_balancer_policies

*******************************
describe_load_balancer_policies
*******************************



.. py:method:: ElasticLoadBalancing.Client.describe_load_balancer_policies(**kwargs)

  

  Describes the specified policies.

   

  If you specify a load balancer name, the action returns the descriptions of all policies created for the load balancer. If you specify a policy name associated with your load balancer, the action returns the description of that policy. If you don't specify a load balancer name, the action returns descriptions of the specified sample policies, or descriptions of all sample policies. The names of the sample policies have the ``ELBSample-`` prefix.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicies>`_  


  **Request Syntax**
  ::

    response = client.describe_load_balancer_policies(
        LoadBalancerName='string',
        PolicyNames=[
            'string',
        ]
    )
    
  :type LoadBalancerName: string
  :param LoadBalancerName: 

    The name of the load balancer.

    

  
  :type PolicyNames: list
  :param PolicyNames: 

    The names of the policies.

    

  
    - *(string) --* 

    

  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'PolicyDescriptions': [
              {
                  'PolicyName': 'string',
                  'PolicyTypeName': 'string',
                  'PolicyAttributeDescriptions': [
                      {
                          'AttributeName': 'string',
                          'AttributeValue': 'string'
                      },
                  ]
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Contains the output of DescribeLoadBalancerPolicies.

      
      

      - **PolicyDescriptions** *(list) --* 

        Information about the policies.

        
        

        - *(dict) --* 

          Information about a policy.

          
          

          - **PolicyName** *(string) --* 

            The name of the policy.

            
          

          - **PolicyTypeName** *(string) --* 

            The name of the policy type.

            
          

          - **PolicyAttributeDescriptions** *(list) --* 

            The policy attributes.

            
            

            - *(dict) --* 

              Information about a policy attribute.

              
              

              - **AttributeName** *(string) --* 

                The name of the attribute.

                
              

              - **AttributeValue** *(string) --* 

                The value of the attribute.

                
          
        
      
    
  
  **Exceptions**
  
  *   :py:class:`ElasticLoadBalancing.Client.exceptions.AccessPointNotFoundException`

  
  *   :py:class:`ElasticLoadBalancing.Client.exceptions.PolicyNotFoundException`

  

  **Examples**

  This example describes the specified policy associated with the specified load balancer.
  ::

    response = client.describe_load_balancer_policies(
        LoadBalancerName='my-load-balancer',
        PolicyNames=[
            'my-authentication-policy',
        ],
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'PolicyDescriptions': [
            {
                'PolicyAttributeDescriptions': [
                    {
                        'AttributeName': 'PublicKeyPolicyName',
                        'AttributeValue': 'my-PublicKey-policy',
                    },
                ],
                'PolicyName': 'my-authentication-policy',
                'PolicyTypeName': 'BackendServerAuthenticationPolicyType',
            },
        ],
        'ResponseMetadata': {
            '...': '...',
        },
    }

  