:doc:`SSOAdmin <../../sso-admin>` / Client / put_application_authentication_method

*************************************
put_application_authentication_method
*************************************



.. py:method:: SSOAdmin.Client.put_application_authentication_method(**kwargs)

  

  Adds or updates an authentication method for an application.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sso-admin-2020-07-20/PutApplicationAuthenticationMethod>`_  


  **Request Syntax**
  ::

    response = client.put_application_authentication_method(
        ApplicationArn='string',
        AuthenticationMethodType='IAM',
        AuthenticationMethod={
            'Iam': {
                'ActorPolicy': {...}|[...]|123|123.4|'string'|True|None
            }
        }
    )
    
  :type ApplicationArn: string
  :param ApplicationArn: **[REQUIRED]** 

    Specifies the ARN of the application with the authentication method to add or update.

    

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

    Specifies the type of the authentication method that you want to add or update.

    

  
  :type AuthenticationMethod: dict
  :param AuthenticationMethod: **[REQUIRED]** 

    Specifies a structure that describes the authentication method to add or update. The structure type you provide is determined by the ``AuthenticationMethodType`` parameter.

    .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``Iam``. 

  
    - **Iam** *(dict) --* 

      A structure that describes details for IAM authentication.

      

    
      - **ActorPolicy** (:ref:`document<document>`) -- **[REQUIRED]** 

        An IAM policy document in JSON.

        

      
    
  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`SSOAdmin.Client.exceptions.ThrottlingException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.InternalServerException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.ValidationException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.ConflictException`

  