Skip to content

EC2  >  Operations  >  modify_instance_event_start_time

modify_instance_event_start_time

Operation

modify_instance_event_start_time async

modify_instance_event_start_time(request: ModifyInstanceEventStartTimeInput | ModifyInstanceEventStartTimeInputDict, /, *, plugins: list[Plugin] | None = None) -> ModifyInstanceEventStartTimeOutput
modify_instance_event_start_time(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[ModifyInstanceEventStartTimeInputDict]) -> ModifyInstanceEventStartTimeOutput

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

Parameters:

Name Type Description Default
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
ModifyInstanceEventStartTimeOutput

An instance of ModifyInstanceEventStartTimeOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

ModifyInstanceEventStartTimeInput dataclass

Bases: _SerdeShape

Dataclass for ModifyInstanceEventStartTimeInput structure.

Attributes
dry_run class-attribute instance-attribute
dry_run: bool | None = ...

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.

instance_event_id class-attribute instance-attribute
instance_event_id: str | None = ...

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

instance_id class-attribute instance-attribute
instance_id: str | None = ...

The ID of the instance with the scheduled event.

not_before class-attribute instance-attribute
not_before: datetime | None = ...

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

Dictionaries

ModifyInstanceEventStartTimeInputDict

Bases: TypedDict

Dictionary form of ModifyInstanceEventStartTimeInput.

Attributes
dry_run instance-attribute
dry_run: bool | None

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.

instance_event_id instance-attribute
instance_event_id: Required[str]

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

instance_id instance-attribute
instance_id: Required[str]

The ID of the instance with the scheduled event.

not_before instance-attribute
not_before: Required[datetime]

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

Output

ModifyInstanceEventStartTimeOutput dataclass

Bases: _SerdeShape

Dataclass for ModifyInstanceEventStartTimeOutput structure.

Attributes

event class-attribute instance-attribute
event: InstanceStatusEvent | None = ...

Information about the event.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.