amazonka-lightsail-2.0: Amazon Lightsail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.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

AWSRequest DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Associated Types

type AWSResponse DeleteInstance #

Generic DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Associated Types

type Rep DeleteInstance :: Type -> Type #

Read DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Show DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

NFData DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Methods

rnf :: DeleteInstance -> () #

Eq DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Hashable DeleteInstance Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

type AWSResponse 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" '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)))

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 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

  • 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
Generic DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Associated Types

type Rep DeleteInstanceResponse :: Type -> Type #

Read DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Show DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

NFData DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

Methods

rnf :: DeleteInstanceResponse -> () #

Eq DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

type Rep DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteInstance

type Rep DeleteInstanceResponse = D1 ('MetaData "DeleteInstanceResponse" "Amazonka.Lightsail.DeleteInstance" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" '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.