libZSservicesZSamazonka-opsworks-cmZSamazonka-opsworks-cm
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.OpsWorksCM.DeleteServer

Description

Deletes the server and the underlying AWS CloudFormation stacks (including the server's EC2 instance). When you run this command, the server state is updated to DELETING. After the server is deleted, it is no longer returned by DescribeServer requests. If the AWS CloudFormation stack cannot be deleted, the server cannot be deleted.

This operation is asynchronous.

An InvalidStateException is thrown when a server deletion is already in progress. A ResourceNotFoundException is thrown when the server does not exist. A ValidationException is raised when parameters of the request are not valid.

Synopsis

Creating a Request

data DeleteServer Source #

See: newDeleteServer smart constructor.

Constructors

DeleteServer' 

Fields

Instances

Instances details
Eq DeleteServer Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

Read DeleteServer Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

Show DeleteServer Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

Generic DeleteServer Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

Associated Types

type Rep DeleteServer :: Type -> Type #

NFData DeleteServer Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

Methods

rnf :: DeleteServer -> () #

Hashable DeleteServer Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

ToJSON DeleteServer Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

AWSRequest DeleteServer Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

Associated Types

type AWSResponse DeleteServer #

ToHeaders DeleteServer Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

ToPath DeleteServer Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

ToQuery DeleteServer Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

type Rep DeleteServer Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

type Rep DeleteServer = D1 ('MetaData "DeleteServer" "Amazonka.OpsWorksCM.DeleteServer" "libZSservicesZSamazonka-opsworks-cmZSamazonka-opsworks-cm" 'False) (C1 ('MetaCons "DeleteServer'" 'PrefixI 'True) (S1 ('MetaSel ('Just "serverName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteServer Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

newDeleteServer Source #

Create a value of DeleteServer 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:serverName:DeleteServer', deleteServer_serverName - The ID of the server to delete.

Request Lenses

deleteServer_serverName :: Lens' DeleteServer Text Source #

The ID of the server to delete.

Destructuring the Response

data DeleteServerResponse Source #

See: newDeleteServerResponse smart constructor.

Constructors

DeleteServerResponse' 

Fields

Instances

Instances details
Eq DeleteServerResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

Read DeleteServerResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

Show DeleteServerResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

Generic DeleteServerResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

Associated Types

type Rep DeleteServerResponse :: Type -> Type #

NFData DeleteServerResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

Methods

rnf :: DeleteServerResponse -> () #

type Rep DeleteServerResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteServer

type Rep DeleteServerResponse = D1 ('MetaData "DeleteServerResponse" "Amazonka.OpsWorksCM.DeleteServer" "libZSservicesZSamazonka-opsworks-cmZSamazonka-opsworks-cm" 'False) (C1 ('MetaCons "DeleteServerResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteServerResponse Source #

Create a value of DeleteServerResponse 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:httpStatus:DeleteServerResponse', deleteServerResponse_httpStatus - The response's http status code.

Response Lenses