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 |
Deletes an Amazon Lightsail instance.
The delete instance
operation supports tag-based access control via
resource tags applied to the resource identified by instance name
. For
more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data DeleteInstance = DeleteInstance' {}
- newDeleteInstance :: Text -> DeleteInstance
- deleteInstance_forceDeleteAddOns :: Lens' DeleteInstance (Maybe Bool)
- deleteInstance_instanceName :: Lens' DeleteInstance Text
- data DeleteInstanceResponse = DeleteInstanceResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newDeleteInstanceResponse :: Int -> DeleteInstanceResponse
- deleteInstanceResponse_operations :: Lens' DeleteInstanceResponse (Maybe [Operation])
- deleteInstanceResponse_httpStatus :: Lens' DeleteInstanceResponse Int
Creating a Request
data DeleteInstance Source #
See: newDeleteInstance
smart constructor.
DeleteInstance' | |
|
Instances
Create a value of DeleteInstance
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:forceDeleteAddOns:DeleteInstance'
, deleteInstance_forceDeleteAddOns
- A Boolean value to indicate whether to delete the enabled add-ons for
the disk.
$sel:instanceName:DeleteInstance'
, deleteInstance_instanceName
- The name of the instance to delete.
Request Lenses
deleteInstance_forceDeleteAddOns :: Lens' DeleteInstance (Maybe Bool) Source #
A Boolean value to indicate whether to delete the enabled add-ons for the disk.
deleteInstance_instanceName :: Lens' DeleteInstance Text Source #
The name of the instance to delete.
Destructuring the Response
data DeleteInstanceResponse Source #
See: newDeleteInstanceResponse
smart constructor.
DeleteInstanceResponse' | |
|
Instances
newDeleteInstanceResponse Source #
Create a value of DeleteInstanceResponse
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:operations:DeleteInstanceResponse'
, deleteInstanceResponse_operations
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:DeleteInstanceResponse'
, deleteInstanceResponse_httpStatus
- The response's http status code.
Response Lenses
deleteInstanceResponse_operations :: Lens' DeleteInstanceResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
deleteInstanceResponse_httpStatus :: Lens' DeleteInstanceResponse Int Source #
The response's http status code.