:doc:`odb <../../odb>` / Client / associate_iam_role_to_resource

******************************
associate_iam_role_to_resource
******************************



.. py:method:: odb.Client.associate_iam_role_to_resource(**kwargs)

  

  Associates an Amazon Web Services Identity and Access Management (IAM) service role with a specified resource to enable Amazon Web Services service integration.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/odb-2024-08-20/AssociateIamRoleToResource>`_  


  **Request Syntax**
  ::

    response = client.associate_iam_role_to_resource(
        iamRoleArn='string',
        awsIntegration='KmsTde',
        resourceArn='string'
    )
    
  :type iamRoleArn: string
  :param iamRoleArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) service role to associate with the resource.

    

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

    The Amazon Web Services integration configuration settings for the Amazon Web Services Identity and Access Management (IAM) service role association.

    

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

    The Amazon Resource Name (ARN) of the target resource to associate with the Amazon Web Services Identity and Access Management (IAM) service role.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`odb.Client.exceptions.ThrottlingException`

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

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

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

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

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

  