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 |
Cancels one or more Spot Instance requests.
Canceling a Spot Instance request does not terminate running Spot Instances associated with the request.
Synopsis
- data CancelSpotInstanceRequests = CancelSpotInstanceRequests' {
- dryRun :: Maybe Bool
- spotInstanceRequestIds :: [Text]
- newCancelSpotInstanceRequests :: CancelSpotInstanceRequests
- cancelSpotInstanceRequests_dryRun :: Lens' CancelSpotInstanceRequests (Maybe Bool)
- cancelSpotInstanceRequests_spotInstanceRequestIds :: Lens' CancelSpotInstanceRequests [Text]
- data CancelSpotInstanceRequestsResponse = CancelSpotInstanceRequestsResponse' {}
- newCancelSpotInstanceRequestsResponse :: Int -> CancelSpotInstanceRequestsResponse
- cancelSpotInstanceRequestsResponse_cancelledSpotInstanceRequests :: Lens' CancelSpotInstanceRequestsResponse (Maybe [CancelledSpotInstanceRequest])
- cancelSpotInstanceRequestsResponse_httpStatus :: Lens' CancelSpotInstanceRequestsResponse Int
Creating a Request
data CancelSpotInstanceRequests Source #
Contains the parameters for CancelSpotInstanceRequests.
See: newCancelSpotInstanceRequests
smart constructor.
CancelSpotInstanceRequests' | |
|
Instances
newCancelSpotInstanceRequests :: CancelSpotInstanceRequests Source #
Create a value of CancelSpotInstanceRequests
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:CancelSpotInstanceRequests'
, cancelSpotInstanceRequests_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
.
$sel:spotInstanceRequestIds:CancelSpotInstanceRequests'
, cancelSpotInstanceRequests_spotInstanceRequestIds
- One or more Spot Instance request IDs.
Request Lenses
cancelSpotInstanceRequests_dryRun :: Lens' CancelSpotInstanceRequests (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
.
cancelSpotInstanceRequests_spotInstanceRequestIds :: Lens' CancelSpotInstanceRequests [Text] Source #
One or more Spot Instance request IDs.
Destructuring the Response
data CancelSpotInstanceRequestsResponse Source #
Contains the output of CancelSpotInstanceRequests.
See: newCancelSpotInstanceRequestsResponse
smart constructor.
CancelSpotInstanceRequestsResponse' | |
|
Instances
Generic CancelSpotInstanceRequestsResponse Source # | |
Read CancelSpotInstanceRequestsResponse Source # | |
Show CancelSpotInstanceRequestsResponse Source # | |
NFData CancelSpotInstanceRequestsResponse Source # | |
Defined in Amazonka.EC2.CancelSpotInstanceRequests rnf :: CancelSpotInstanceRequestsResponse -> () # | |
Eq CancelSpotInstanceRequestsResponse Source # | |
type Rep CancelSpotInstanceRequestsResponse Source # | |
Defined in Amazonka.EC2.CancelSpotInstanceRequests type Rep CancelSpotInstanceRequestsResponse = D1 ('MetaData "CancelSpotInstanceRequestsResponse" "Amazonka.EC2.CancelSpotInstanceRequests" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CancelSpotInstanceRequestsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cancelledSpotInstanceRequests") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CancelledSpotInstanceRequest])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCancelSpotInstanceRequestsResponse Source #
Create a value of CancelSpotInstanceRequestsResponse
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:cancelledSpotInstanceRequests:CancelSpotInstanceRequestsResponse'
, cancelSpotInstanceRequestsResponse_cancelledSpotInstanceRequests
- One or more Spot Instance requests.
$sel:httpStatus:CancelSpotInstanceRequestsResponse'
, cancelSpotInstanceRequestsResponse_httpStatus
- The response's http status code.
Response Lenses
cancelSpotInstanceRequestsResponse_cancelledSpotInstanceRequests :: Lens' CancelSpotInstanceRequestsResponse (Maybe [CancelledSpotInstanceRequest]) Source #
One or more Spot Instance requests.
cancelSpotInstanceRequestsResponse_httpStatus :: Lens' CancelSpotInstanceRequestsResponse Int Source #
The response's http status code.