Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Modifies the start time for a scheduled Amazon EC2 instance event.
Synopsis
- data ModifyInstanceEventStartTime = ModifyInstanceEventStartTime' {
- dryRun :: Maybe Bool
- instanceId :: Text
- instanceEventId :: Text
- notBefore :: ISO8601
- newModifyInstanceEventStartTime :: Text -> Text -> UTCTime -> ModifyInstanceEventStartTime
- modifyInstanceEventStartTime_dryRun :: Lens' ModifyInstanceEventStartTime (Maybe Bool)
- modifyInstanceEventStartTime_instanceId :: Lens' ModifyInstanceEventStartTime Text
- modifyInstanceEventStartTime_instanceEventId :: Lens' ModifyInstanceEventStartTime Text
- modifyInstanceEventStartTime_notBefore :: Lens' ModifyInstanceEventStartTime UTCTime
- data ModifyInstanceEventStartTimeResponse = ModifyInstanceEventStartTimeResponse' {}
- newModifyInstanceEventStartTimeResponse :: Int -> ModifyInstanceEventStartTimeResponse
- modifyInstanceEventStartTimeResponse_event :: Lens' ModifyInstanceEventStartTimeResponse (Maybe InstanceStatusEvent)
- modifyInstanceEventStartTimeResponse_httpStatus :: Lens' ModifyInstanceEventStartTimeResponse Int
Creating a Request
data ModifyInstanceEventStartTime Source #
See: newModifyInstanceEventStartTime
smart constructor.
ModifyInstanceEventStartTime' | |
|
Instances
newModifyInstanceEventStartTime Source #
:: Text | |
-> Text | |
-> UTCTime | |
-> ModifyInstanceEventStartTime |
Create a value of ModifyInstanceEventStartTime
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:ModifyInstanceEventStartTime'
, modifyInstanceEventStartTime_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
.
ModifyInstanceEventStartTime
, modifyInstanceEventStartTime_instanceId
- The ID of the instance with the scheduled event.
ModifyInstanceEventStartTime
, modifyInstanceEventStartTime_instanceEventId
- The ID of the event whose date and time you are modifying.
ModifyInstanceEventStartTime
, modifyInstanceEventStartTime_notBefore
- The new date and time when the event will take place.
Request Lenses
modifyInstanceEventStartTime_dryRun :: Lens' ModifyInstanceEventStartTime (Maybe Bool) Source #
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
.
modifyInstanceEventStartTime_instanceId :: Lens' ModifyInstanceEventStartTime Text Source #
The ID of the instance with the scheduled event.
modifyInstanceEventStartTime_instanceEventId :: Lens' ModifyInstanceEventStartTime Text Source #
The ID of the event whose date and time you are modifying.
modifyInstanceEventStartTime_notBefore :: Lens' ModifyInstanceEventStartTime UTCTime Source #
The new date and time when the event will take place.
Destructuring the Response
data ModifyInstanceEventStartTimeResponse Source #
See: newModifyInstanceEventStartTimeResponse
smart constructor.
ModifyInstanceEventStartTimeResponse' | |
|
Instances
Generic ModifyInstanceEventStartTimeResponse Source # | |
Read ModifyInstanceEventStartTimeResponse Source # | |
Show ModifyInstanceEventStartTimeResponse Source # | |
NFData ModifyInstanceEventStartTimeResponse Source # | |
Defined in Amazonka.EC2.ModifyInstanceEventStartTime rnf :: ModifyInstanceEventStartTimeResponse -> () # | |
Eq ModifyInstanceEventStartTimeResponse Source # | |
type Rep ModifyInstanceEventStartTimeResponse Source # | |
Defined in Amazonka.EC2.ModifyInstanceEventStartTime type Rep ModifyInstanceEventStartTimeResponse = D1 ('MetaData "ModifyInstanceEventStartTimeResponse" "Amazonka.EC2.ModifyInstanceEventStartTime" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyInstanceEventStartTimeResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "event") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceStatusEvent)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newModifyInstanceEventStartTimeResponse Source #
Create a value of ModifyInstanceEventStartTimeResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:event:ModifyInstanceEventStartTimeResponse'
, modifyInstanceEventStartTimeResponse_event
- Information about the event.
$sel:httpStatus:ModifyInstanceEventStartTimeResponse'
, modifyInstanceEventStartTimeResponse_httpStatus
- The response's http status code.
Response Lenses
modifyInstanceEventStartTimeResponse_event :: Lens' ModifyInstanceEventStartTimeResponse (Maybe InstanceStatusEvent) Source #
Information about the event.
modifyInstanceEventStartTimeResponse_httpStatus :: Lens' ModifyInstanceEventStartTimeResponse Int Source #
The response's http status code.