| 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 |
Amazonka.Lightsail.DeleteInstance
Description
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.
Constructors
| DeleteInstance' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteInstance |
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 all add-ons for the
instance.
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 all add-ons for the instance.
deleteInstance_instanceName :: Lens' DeleteInstance Text Source #
The name of the instance to delete.
Destructuring the Response
data DeleteInstanceResponse Source #
See: newDeleteInstanceResponse smart constructor.
Constructors
| DeleteInstanceResponse' | |
Fields
| |
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.