Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Starts a job that terminates specific launched EC2 Test and Cutover instances. This command will not work for any Source Server with a lifecycle.state of TESTING, CUTTING_OVER, or CUTOVER.
Synopsis
- data TerminateTargetInstances = TerminateTargetInstances' {}
- newTerminateTargetInstances :: NonEmpty Text -> TerminateTargetInstances
- terminateTargetInstances_tags :: Lens' TerminateTargetInstances (Maybe (HashMap Text Text))
- terminateTargetInstances_sourceServerIDs :: Lens' TerminateTargetInstances (NonEmpty Text)
- data TerminateTargetInstancesResponse = TerminateTargetInstancesResponse' {
- job :: Maybe Job
- httpStatus :: Int
- newTerminateTargetInstancesResponse :: Int -> TerminateTargetInstancesResponse
- terminateTargetInstancesResponse_job :: Lens' TerminateTargetInstancesResponse (Maybe Job)
- terminateTargetInstancesResponse_httpStatus :: Lens' TerminateTargetInstancesResponse Int
Creating a Request
data TerminateTargetInstances Source #
See: newTerminateTargetInstances
smart constructor.
Instances
newTerminateTargetInstances Source #
Create a value of TerminateTargetInstances
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:tags:TerminateTargetInstances'
, terminateTargetInstances_tags
- Terminate Target instance by Tags.
$sel:sourceServerIDs:TerminateTargetInstances'
, terminateTargetInstances_sourceServerIDs
- Terminate Target instance by Source Server IDs.
Request Lenses
terminateTargetInstances_tags :: Lens' TerminateTargetInstances (Maybe (HashMap Text Text)) Source #
Terminate Target instance by Tags.
terminateTargetInstances_sourceServerIDs :: Lens' TerminateTargetInstances (NonEmpty Text) Source #
Terminate Target instance by Source Server IDs.
Destructuring the Response
data TerminateTargetInstancesResponse Source #
See: newTerminateTargetInstancesResponse
smart constructor.
TerminateTargetInstancesResponse' | |
|
Instances
Eq TerminateTargetInstancesResponse Source # | |
Show TerminateTargetInstancesResponse Source # | |
Defined in Amazonka.MGN.TerminateTargetInstances | |
Generic TerminateTargetInstancesResponse Source # | |
NFData TerminateTargetInstancesResponse Source # | |
Defined in Amazonka.MGN.TerminateTargetInstances rnf :: TerminateTargetInstancesResponse -> () # | |
type Rep TerminateTargetInstancesResponse Source # | |
Defined in Amazonka.MGN.TerminateTargetInstances type Rep TerminateTargetInstancesResponse = D1 ('MetaData "TerminateTargetInstancesResponse" "Amazonka.MGN.TerminateTargetInstances" "libZSservicesZSamazonka-mgnZSamazonka-mgn" 'False) (C1 ('MetaCons "TerminateTargetInstancesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "job") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Job)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newTerminateTargetInstancesResponse Source #
Create a value of TerminateTargetInstancesResponse
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:job:TerminateTargetInstancesResponse'
, terminateTargetInstancesResponse_job
- Terminate Target instance Job response.
$sel:httpStatus:TerminateTargetInstancesResponse'
, terminateTargetInstancesResponse_httpStatus
- The response's http status code.
Response Lenses
terminateTargetInstancesResponse_job :: Lens' TerminateTargetInstancesResponse (Maybe Job) Source #
Terminate Target instance Job response.
terminateTargetInstancesResponse_httpStatus :: Lens' TerminateTargetInstancesResponse Int Source #
The response's http status code.