EC2.Client.
modify_instance_event_start_time
(**kwargs)¶Modifies the start time for a scheduled Amazon EC2 instance event.
See also: AWS API Documentation
Request Syntax
response = client.modify_instance_event_start_time(
DryRun=True|False,
InstanceId='string',
InstanceEventId='string',
NotBefore=datetime(2015, 1, 1)
)
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.[REQUIRED]
The ID of the instance with the scheduled event.
[REQUIRED]
The ID of the event whose date and time you are modifying.
[REQUIRED]
The new date and time when the event will take place.
dict
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.