libZSservicesZSamazonka-opsworksZSamazonka-opsworks
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.OpsWorks.DeleteInstance

Description

Deletes a specified instance, which terminates the associated Amazon EC2 instance. You must stop an instance before you can delete it.

For more information, see Deleting Instances.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

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.OpsWorks.DeleteInstance

Read DeleteInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

Show DeleteInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

Generic DeleteInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

Associated Types

type Rep DeleteInstance :: Type -> Type #

NFData DeleteInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

Methods

rnf :: DeleteInstance -> () #

Hashable DeleteInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

ToJSON DeleteInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

AWSRequest DeleteInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

Associated Types

type AWSResponse DeleteInstance #

ToHeaders DeleteInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

ToPath DeleteInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

ToQuery DeleteInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

type Rep DeleteInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

type Rep DeleteInstance = D1 ('MetaData "DeleteInstance" "Amazonka.OpsWorks.DeleteInstance" "libZSservicesZSamazonka-opsworksZSamazonka-opsworks" 'False) (C1 ('MetaCons "DeleteInstance'" 'PrefixI 'True) (S1 ('MetaSel ('Just "deleteVolumes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "deleteElasticIp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse DeleteInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.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:deleteVolumes:DeleteInstance', deleteInstance_deleteVolumes - Whether to delete the instance's Amazon EBS volumes.

$sel:deleteElasticIp:DeleteInstance', deleteInstance_deleteElasticIp - Whether to delete the instance Elastic IP address.

$sel:instanceId:DeleteInstance', deleteInstance_instanceId - The instance ID.

Request Lenses

deleteInstance_deleteVolumes :: Lens' DeleteInstance (Maybe Bool) Source #

Whether to delete the instance's Amazon EBS volumes.

deleteInstance_deleteElasticIp :: Lens' DeleteInstance (Maybe Bool) Source #

Whether to delete the instance Elastic IP address.

Destructuring the Response

data DeleteInstanceResponse Source #

See: newDeleteInstanceResponse smart constructor.

Instances

Instances details
Eq DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

Read DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

Show DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

Generic DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

Associated Types

type Rep DeleteInstanceResponse :: Type -> Type #

NFData DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

Methods

rnf :: DeleteInstanceResponse -> () #

type Rep DeleteInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DeleteInstance

type Rep DeleteInstanceResponse = D1 ('MetaData "DeleteInstanceResponse" "Amazonka.OpsWorks.DeleteInstance" "libZSservicesZSamazonka-opsworksZSamazonka-opsworks" 'False) (C1 ('MetaCons "DeleteInstanceResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteInstanceResponse :: DeleteInstanceResponse Source #

Create a value of DeleteInstanceResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.