:doc:`IAM <../../iam>` / Client / add_client_id_to_open_id_connect_provider

*****************************************
add_client_id_to_open_id_connect_provider
*****************************************



.. py:method:: IAM.Client.add_client_id_to_open_id_connect_provider(**kwargs)

  

  Adds a new client ID (also known as audience) to the list of client IDs already registered for the specified IAM OpenID Connect (OIDC) provider resource.

   

  This operation is idempotent; it does not fail or return an error if you add an existing client ID to the provider.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddClientIDToOpenIDConnectProvider>`_  


  **Request Syntax**
  ::

    response = client.add_client_id_to_open_id_connect_provider(
        OpenIDConnectProviderArn='string',
        ClientID='string'
    )
    
  :type OpenIDConnectProviderArn: string
  :param OpenIDConnectProviderArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the IAM OpenID Connect (OIDC) provider resource to add the client ID to. You can get a list of OIDC provider ARNs by using the `ListOpenIDConnectProviders <https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListOpenIDConnectProviders.html>`__ operation.

    

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

    The client ID (also known as audience) to add to the IAM OpenID Connect provider resource.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`IAM.Client.exceptions.ConcurrentModificationException`

  
  *   :py:class:`IAM.Client.exceptions.InvalidInputException`

  
  *   :py:class:`IAM.Client.exceptions.NoSuchEntityException`

  
  *   :py:class:`IAM.Client.exceptions.LimitExceededException`

  
  *   :py:class:`IAM.Client.exceptions.ServiceFailureException`

  

  **Examples**

  The following add-client-id-to-open-id-connect-provider command adds the client ID my-application-ID to the OIDC provider named server.example.com:
  ::

    response = client.add_client_id_to_open_id_connect_provider(
        ClientID='my-application-ID',
        OpenIDConnectProviderArn='arn:aws:iam::123456789012:oidc-provider/server.example.com',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  