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

********************************
modify_instance_event_start_time
********************************



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

  

  Modifies the start time for a scheduled Amazon EC2 instance event.

  

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


  **Request Syntax**
  ::

    response = client.modify_instance_event_start_time(
        DryRun=True|False,
        InstanceId='string',
        InstanceEventId='string',
        NotBefore=datetime(2015, 1, 1)
    )
    
  :type DryRun: boolean
  :param DryRun: 

    Checks whether you have the required permissions for the operation, 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 InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The ID of the instance with the scheduled event.

    

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

    The ID of the event whose date and time you are modifying.

    

  
  :type NotBefore: datetime
  :param NotBefore: **[REQUIRED]** 

    The new date and time when the event will take place.

    

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

    
    ::

      {
          'Event': {
              'InstanceEventId': 'string',
              'Code': 'instance-reboot'|'system-reboot'|'system-maintenance'|'instance-retirement'|'instance-stop',
              'Description': 'string',
              'NotAfter': datetime(2015, 1, 1),
              'NotBefore': datetime(2015, 1, 1),
              'NotBeforeDeadline': datetime(2015, 1, 1)
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Event** *(dict) --* 

        Information about the event.

        
        

        - **InstanceEventId** *(string) --* 

          The ID of the event.

          
        

        - **Code** *(string) --* 

          The event code.

          
        

        - **Description** *(string) --* 

          A description of the event.

           

          After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].

          
        

        - **NotAfter** *(datetime) --* 

          The latest scheduled end time for the event.

          
        

        - **NotBefore** *(datetime) --* 

          The earliest scheduled start time for the event.

          
        

        - **NotBeforeDeadline** *(datetime) --* 

          The deadline for starting the event.

          
    
  