libZSservicesZSamazonka-datasyncZSamazonka-datasync
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.DataSync.DeleteAgent

Description

Deletes an agent. To specify which agent to delete, use the Amazon Resource Name (ARN) of the agent in your request. The operation disassociates the agent from your Amazon Web Services account. However, it doesn't delete the agent virtual machine (VM) from your on-premises environment.

Synopsis

Creating a Request

data DeleteAgent Source #

DeleteAgentRequest

See: newDeleteAgent smart constructor.

Constructors

DeleteAgent' 

Fields

  • agentArn :: Text

    The Amazon Resource Name (ARN) of the agent to delete. Use the ListAgents operation to return a list of agents for your account and Amazon Web Services Region.

Instances

Instances details
Eq DeleteAgent Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

Read DeleteAgent Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

Show DeleteAgent Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

Generic DeleteAgent Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

Associated Types

type Rep DeleteAgent :: Type -> Type #

NFData DeleteAgent Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

Methods

rnf :: DeleteAgent -> () #

Hashable DeleteAgent Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

ToJSON DeleteAgent Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

AWSRequest DeleteAgent Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

Associated Types

type AWSResponse DeleteAgent #

ToHeaders DeleteAgent Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

Methods

toHeaders :: DeleteAgent -> [Header] #

ToPath DeleteAgent Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

ToQuery DeleteAgent Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

type Rep DeleteAgent Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

type Rep DeleteAgent = D1 ('MetaData "DeleteAgent" "Amazonka.DataSync.DeleteAgent" "libZSservicesZSamazonka-datasyncZSamazonka-datasync" 'False) (C1 ('MetaCons "DeleteAgent'" 'PrefixI 'True) (S1 ('MetaSel ('Just "agentArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteAgent Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

newDeleteAgent Source #

Create a value of DeleteAgent 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:agentArn:DeleteAgent', deleteAgent_agentArn - The Amazon Resource Name (ARN) of the agent to delete. Use the ListAgents operation to return a list of agents for your account and Amazon Web Services Region.

Request Lenses

deleteAgent_agentArn :: Lens' DeleteAgent Text Source #

The Amazon Resource Name (ARN) of the agent to delete. Use the ListAgents operation to return a list of agents for your account and Amazon Web Services Region.

Destructuring the Response

data DeleteAgentResponse Source #

See: newDeleteAgentResponse smart constructor.

Constructors

DeleteAgentResponse' 

Fields

Instances

Instances details
Eq DeleteAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

Read DeleteAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

Show DeleteAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

Generic DeleteAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

Associated Types

type Rep DeleteAgentResponse :: Type -> Type #

NFData DeleteAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

Methods

rnf :: DeleteAgentResponse -> () #

type Rep DeleteAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.DeleteAgent

type Rep DeleteAgentResponse = D1 ('MetaData "DeleteAgentResponse" "Amazonka.DataSync.DeleteAgent" "libZSservicesZSamazonka-datasyncZSamazonka-datasync" 'False) (C1 ('MetaCons "DeleteAgentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteAgentResponse Source #

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

Response Lenses