amazonka-datasync-2.0: Amazon DataSync 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.DataSync.UpdateAgent

Description

Updates the name of an agent.

Synopsis

Creating a Request

data UpdateAgent Source #

UpdateAgentRequest

See: newUpdateAgent smart constructor.

Constructors

UpdateAgent' 

Fields

  • name :: Maybe Text

    The name that you want to use to configure the agent.

  • agentArn :: Text

    The Amazon Resource Name (ARN) of the agent to update.

Instances

Instances details
ToJSON UpdateAgent Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

ToHeaders UpdateAgent Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

Methods

toHeaders :: UpdateAgent -> [Header] #

ToPath UpdateAgent Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

ToQuery UpdateAgent Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

AWSRequest UpdateAgent Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

Associated Types

type AWSResponse UpdateAgent #

Generic UpdateAgent Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

Associated Types

type Rep UpdateAgent :: Type -> Type #

Read UpdateAgent Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

Show UpdateAgent Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

NFData UpdateAgent Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

Methods

rnf :: UpdateAgent -> () #

Eq UpdateAgent Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

Hashable UpdateAgent Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

type AWSResponse UpdateAgent Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

type Rep UpdateAgent Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

type Rep UpdateAgent = D1 ('MetaData "UpdateAgent" "Amazonka.DataSync.UpdateAgent" "amazonka-datasync-2.0-LCcm4ddRe2z4CES4wun76Z" 'False) (C1 ('MetaCons "UpdateAgent'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "agentArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newUpdateAgent Source #

Create a value of UpdateAgent 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:

UpdateAgent, updateAgent_name - The name that you want to use to configure the agent.

UpdateAgent, updateAgent_agentArn - The Amazon Resource Name (ARN) of the agent to update.

Request Lenses

updateAgent_name :: Lens' UpdateAgent (Maybe Text) Source #

The name that you want to use to configure the agent.

updateAgent_agentArn :: Lens' UpdateAgent Text Source #

The Amazon Resource Name (ARN) of the agent to update.

Destructuring the Response

data UpdateAgentResponse Source #

See: newUpdateAgentResponse smart constructor.

Constructors

UpdateAgentResponse' 

Fields

Instances

Instances details
Generic UpdateAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

Associated Types

type Rep UpdateAgentResponse :: Type -> Type #

Read UpdateAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

Show UpdateAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

NFData UpdateAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

Methods

rnf :: UpdateAgentResponse -> () #

Eq UpdateAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

type Rep UpdateAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.UpdateAgent

type Rep UpdateAgentResponse = D1 ('MetaData "UpdateAgentResponse" "Amazonka.DataSync.UpdateAgent" "amazonka-datasync-2.0-LCcm4ddRe2z4CES4wun76Z" 'False) (C1 ('MetaCons "UpdateAgentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateAgentResponse Source #

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

Response Lenses