:doc:`ElasticLoadBalancingv2 <../../elbv2>` / Client / create_trust_store

******************
create_trust_store
******************



.. py:method:: ElasticLoadBalancingv2.Client.create_trust_store(**kwargs)

  

  Creates a trust store.

   

  For more information, see `Mutual TLS for Application Load Balancers <https://docs.aws.amazon.com/elasticloadbalancing/latest/application/mutual-authentication.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateTrustStore>`_  


  **Request Syntax**
  ::

    response = client.create_trust_store(
        Name='string',
        CaCertificatesBundleS3Bucket='string',
        CaCertificatesBundleS3Key='string',
        CaCertificatesBundleS3ObjectVersion='string',
        Tags=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    )
    
  :type Name: string
  :param Name: **[REQUIRED]** 

    The name of the trust store.

     

    This name must be unique per region and can't be changed after creation.

    

  
  :type CaCertificatesBundleS3Bucket: string
  :param CaCertificatesBundleS3Bucket: **[REQUIRED]** 

    The Amazon S3 bucket for the ca certificates bundle.

    

  
  :type CaCertificatesBundleS3Key: string
  :param CaCertificatesBundleS3Key: **[REQUIRED]** 

    The Amazon S3 path for the ca certificates bundle.

    

  
  :type CaCertificatesBundleS3ObjectVersion: string
  :param CaCertificatesBundleS3ObjectVersion: 

    The Amazon S3 object version for the ca certificates bundle. If undefined the current version is used.

    

  
  :type Tags: list
  :param Tags: 

    The tags to assign to the trust store.

    

  
    - *(dict) --* 

      Information about a tag.

      

    
      - **Key** *(string) --* **[REQUIRED]** 

        The key of the tag.

        

      
      - **Value** *(string) --* 

        The value of the tag.

        

      
    

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

    
    ::

      {
          'TrustStores': [
              {
                  'Name': 'string',
                  'TrustStoreArn': 'string',
                  'Status': 'ACTIVE'|'CREATING',
                  'NumberOfCaCertificates': 123,
                  'TotalRevokedEntries': 123
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **TrustStores** *(list) --* 

        Information about the trust store created.

        
        

        - *(dict) --* 

          Information about a trust store.

          
          

          - **Name** *(string) --* 

            The name of the trust store.

            
          

          - **TrustStoreArn** *(string) --* 

            The Amazon Resource Name (ARN) of the trust store.

            
          

          - **Status** *(string) --* 

            The current status of the trust store.

            
          

          - **NumberOfCaCertificates** *(integer) --* 

            The number of ca certificates in the trust store.

            
          

          - **TotalRevokedEntries** *(integer) --* 

            The number of revoked certificates in the trust store.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`ElasticLoadBalancingv2.Client.exceptions.DuplicateTrustStoreNameException`

  
  *   :py:class:`ElasticLoadBalancingv2.Client.exceptions.TooManyTrustStoresException`

  
  *   :py:class:`ElasticLoadBalancingv2.Client.exceptions.InvalidCaCertificatesBundleException`

  
  *   :py:class:`ElasticLoadBalancingv2.Client.exceptions.CaCertificatesBundleNotFoundException`

  
  *   :py:class:`ElasticLoadBalancingv2.Client.exceptions.TooManyTagsException`

  
  *   :py:class:`ElasticLoadBalancingv2.Client.exceptions.DuplicateTagKeysException`

  