libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data DeleteInstance Source #

See: newDeleteInstance smart constructor.

Constructors

DeleteInstance' 

Fields

Instances

Instances details
Eq DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Read DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Show DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Generic DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Associated Types

type Rep DeleteInstance :: Type -> Type #

NFData DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Methods

rnf :: DeleteInstance -> () #

Hashable DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

ToJSON DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

AWSRequest DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Associated Types

type AWSResponse DeleteInstance #

ToHeaders DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

ToPath DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

ToQuery DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

type Rep DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

type Rep DeleteInstance = D1 ('MetaData "DeleteInstance" "Amazonka.Lightsail.DeleteInstance" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "DeleteInstance'" 'PrefixI 'True) (S1 ('MetaSel ('Just "forceDeleteAddOns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "instanceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

newDeleteInstance Source #

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.

Constructors

DeleteInstanceResponse' 

Fields

  • operations :: Maybe [Operation]

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Read DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Show DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Generic DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Associated Types

type Rep DeleteInstanceResponse :: Type -> Type #

NFData DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Methods

rnf :: DeleteInstanceResponse -> () #

type Rep DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

type Rep DeleteInstanceResponse = D1 ('MetaData "DeleteInstanceResponse" "Amazonka.Lightsail.DeleteInstance" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "DeleteInstanceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.