| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.DataSync.UpdateAgent
Description
Updates the name of an agent.
Synopsis
- data UpdateAgent = UpdateAgent' {}
- newUpdateAgent :: Text -> UpdateAgent
- updateAgent_name :: Lens' UpdateAgent (Maybe Text)
- updateAgent_agentArn :: Lens' UpdateAgent Text
- data UpdateAgentResponse = UpdateAgentResponse' {
- httpStatus :: Int
- newUpdateAgentResponse :: Int -> UpdateAgentResponse
- updateAgentResponse_httpStatus :: Lens' UpdateAgentResponse Int
Creating a Request
data UpdateAgent Source #
UpdateAgentRequest
See: newUpdateAgent smart constructor.
Constructors
| UpdateAgent' | |
Instances
Arguments
| :: Text | |
| -> UpdateAgent |
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
newUpdateAgentResponse Source #
Arguments
| :: Int | |
| -> UpdateAgentResponse |
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
updateAgentResponse_httpStatus :: Lens' UpdateAgentResponse Int Source #
The response's http status code.