:doc:`EC2 <../../ec2>` / Client / register_instance_event_notification_attributes

***********************************************
register_instance_event_notification_attributes
***********************************************



.. py:method:: EC2.Client.register_instance_event_notification_attributes(**kwargs)

  

  Registers a set of tag keys to include in scheduled event notifications for your resources.

   

  To remove tags, use `DeregisterInstanceEventNotificationAttributes <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeregisterInstanceEventNotificationAttributes.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterInstanceEventNotificationAttributes>`_  


  **Request Syntax**
  ::

    response = client.register_instance_event_notification_attributes(
        DryRun=True|False,
        InstanceTagAttribute={
            'IncludeAllTagsOfInstance': True|False,
            'InstanceTagKeys': [
                'string',
            ]
        }
    )
    
  :type DryRun: boolean
  :param DryRun: 

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is ``DryRunOperation``. Otherwise, it is ``UnauthorizedOperation``.

    

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

    Information about the tag keys to register.

    

  
    - **IncludeAllTagsOfInstance** *(boolean) --* 

      Indicates whether to register all tag keys in the current Region. Specify ``true`` to register all tag keys.

      

    
    - **InstanceTagKeys** *(list) --* 

      The tag keys to register.

      

    
      - *(string) --* 

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

    
    ::

      {
          'InstanceTagAttribute': {
              'InstanceTagKeys': [
                  'string',
              ],
              'IncludeAllTagsOfInstance': True|False
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **InstanceTagAttribute** *(dict) --* 

        The resulting set of tag keys.

        
        

        - **InstanceTagKeys** *(list) --* 

          The registered tag keys.

          
          

          - *(string) --* 
      
        

        - **IncludeAllTagsOfInstance** *(boolean) --* 

          Indicates wheter all tag keys in the current Region are registered to appear in scheduled event notifications. ``true`` indicates that all tag keys in the current Region are registered.

          
    
  