:doc:`Glue <../../glue>` / Client / create_integration_resource_property

************************************
create_integration_resource_property
************************************



.. py:method:: Glue.Client.create_integration_resource_property(**kwargs)

  

  This API can be used for setting up the ``ResourceProperty`` of the Glue connection (for the source) or Glue database ARN (for the target). These properties can include the role to access the connection or database. To set both source and target properties the same API needs to be invoked with the Glue connection ARN as ``ResourceArn`` with ``SourceProcessingProperties`` and the Glue database ARN as ``ResourceArn`` with ``TargetProcessingProperties`` respectively.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateIntegrationResourceProperty>`_  


  **Request Syntax**
  ::

    response = client.create_integration_resource_property(
        ResourceArn='string',
        SourceProcessingProperties={
            'RoleArn': 'string'
        },
        TargetProcessingProperties={
            'RoleArn': 'string',
            'KmsArn': 'string',
            'ConnectionName': 'string',
            'EventBusArn': 'string'
        },
        Tags=[
            {
                'key': 'string',
                'value': 'string'
            },
        ]
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    The connection ARN of the source, or the database ARN of the target.

    

  
  :type SourceProcessingProperties: dict
  :param SourceProcessingProperties: 

    The resource properties associated with the integration source.

    

  
    - **RoleArn** *(string) --* 

      The IAM role to access the Glue connection.

      

    
  
  :type TargetProcessingProperties: dict
  :param TargetProcessingProperties: 

    The resource properties associated with the integration target.

    

  
    - **RoleArn** *(string) --* 

      The IAM role to access the Glue database.

      

    
    - **KmsArn** *(string) --* 

      The ARN of the KMS key used for encryption.

      

    
    - **ConnectionName** *(string) --* 

      The Glue network connection to configure the Glue job running in the customer VPC.

      

    
    - **EventBusArn** *(string) --* 

      The ARN of an Eventbridge event bus to receive the integration status notification.

      

    
  
  :type Tags: list
  :param Tags: 

    Metadata assigned to the resource consisting of a list of key-value pairs.

    

  
    - *(dict) --* 

      The ``Tag`` object represents a label that you can assign to an Amazon Web Services resource. Each tag consists of a key and an optional value, both of which you define.

       

      For more information about tags, and controlling access to resources in Glue, see `Amazon Web Services Tags in Glue <https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html>`__ and `Specifying Glue Resource ARNs <https://docs.aws.amazon.com/glue/latest/dg/glue-specifying-resource-arns.html>`__ in the developer guide.

      

    
      - **key** *(string) --* 

        The tag key. The key is required when you create a tag on an object. The key is case-sensitive, and must not contain the prefix aws.

        

      
      - **value** *(string) --* 

        The tag value. The value is optional when you create a tag on an object. The value is case-sensitive, and must not contain the prefix aws.

        

      
    

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

    
    ::

      {
          'ResourceArn': 'string',
          'ResourcePropertyArn': 'string',
          'SourceProcessingProperties': {
              'RoleArn': 'string'
          },
          'TargetProcessingProperties': {
              'RoleArn': 'string',
              'KmsArn': 'string',
              'ConnectionName': 'string',
              'EventBusArn': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ResourceArn** *(string) --* 

        The connection ARN of the source, or the database ARN of the target.

        
      

      - **ResourcePropertyArn** *(string) --* 

        The resource ARN created through this create API. The format is something like arn:aws:glue:<region>:<account_id>:integrationresourceproperty/*

        
      

      - **SourceProcessingProperties** *(dict) --* 

        The resource properties associated with the integration source.

        
        

        - **RoleArn** *(string) --* 

          The IAM role to access the Glue connection.

          
    
      

      - **TargetProcessingProperties** *(dict) --* 

        The resource properties associated with the integration target.

        
        

        - **RoleArn** *(string) --* 

          The IAM role to access the Glue database.

          
        

        - **KmsArn** *(string) --* 

          The ARN of the KMS key used for encryption.

          
        

        - **ConnectionName** *(string) --* 

          The Glue network connection to configure the Glue job running in the customer VPC.

          
        

        - **EventBusArn** *(string) --* 

          The ARN of an Eventbridge event bus to receive the integration status notification.

          
    
  
  **Exceptions**
  
  *   :py:class:`Glue.Client.exceptions.ValidationException`

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

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

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

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

  
  *   :py:class:`Glue.Client.exceptions.EntityNotFoundException`

  
  *   :py:class:`Glue.Client.exceptions.InternalServiceException`

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

  