Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns metadata such as the name, the network interfaces, and the status (that is, whether the agent is running or not) for an agent. To specify which agent to describe, use the Amazon Resource Name (ARN) of the agent in your request.
Synopsis
- data DescribeAgent = DescribeAgent' {}
- newDescribeAgent :: Text -> DescribeAgent
- describeAgent_agentArn :: Lens' DescribeAgent Text
- data DescribeAgentResponse = DescribeAgentResponse' {}
- newDescribeAgentResponse :: Int -> DescribeAgentResponse
- describeAgentResponse_creationTime :: Lens' DescribeAgentResponse (Maybe UTCTime)
- describeAgentResponse_status :: Lens' DescribeAgentResponse (Maybe AgentStatus)
- describeAgentResponse_privateLinkConfig :: Lens' DescribeAgentResponse (Maybe PrivateLinkConfig)
- describeAgentResponse_endpointType :: Lens' DescribeAgentResponse (Maybe EndpointType)
- describeAgentResponse_lastConnectionTime :: Lens' DescribeAgentResponse (Maybe UTCTime)
- describeAgentResponse_agentArn :: Lens' DescribeAgentResponse (Maybe Text)
- describeAgentResponse_name :: Lens' DescribeAgentResponse (Maybe Text)
- describeAgentResponse_httpStatus :: Lens' DescribeAgentResponse Int
Creating a Request
data DescribeAgent Source #
DescribeAgent
See: newDescribeAgent
smart constructor.
Instances
Create a value of DescribeAgent
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:DescribeAgent'
, describeAgent_agentArn
- The Amazon Resource Name (ARN) of the agent to describe.
Request Lenses
describeAgent_agentArn :: Lens' DescribeAgent Text Source #
The Amazon Resource Name (ARN) of the agent to describe.
Destructuring the Response
data DescribeAgentResponse Source #
DescribeAgentResponse
See: newDescribeAgentResponse
smart constructor.
DescribeAgentResponse' | |
|
Instances
newDescribeAgentResponse Source #
Create a value of DescribeAgentResponse
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:creationTime:DescribeAgentResponse'
, describeAgentResponse_creationTime
- The time that the agent was activated (that is, created in your
account).
$sel:status:DescribeAgentResponse'
, describeAgentResponse_status
- The status of the agent. If the status is ONLINE, then the agent is
configured properly and is available to use. The Running status is the
normal running status for an agent. If the status is OFFLINE, the
agent's VM is turned off or the agent is in an unhealthy state. When
the issue that caused the unhealthy state is resolved, the agent returns
to ONLINE status.
$sel:privateLinkConfig:DescribeAgentResponse'
, describeAgentResponse_privateLinkConfig
- The subnet and the security group that DataSync used to access a VPC
endpoint.
$sel:endpointType:DescribeAgentResponse'
, describeAgentResponse_endpointType
- The type of endpoint that your agent is connected to. If the endpoint is
a VPC endpoint, the agent is not accessible over the public internet.
$sel:lastConnectionTime:DescribeAgentResponse'
, describeAgentResponse_lastConnectionTime
- The time that the agent last connected to DataSync.
$sel:agentArn:DescribeAgent'
, describeAgentResponse_agentArn
- The Amazon Resource Name (ARN) of the agent.
$sel:name:DescribeAgentResponse'
, describeAgentResponse_name
- The name of the agent.
$sel:httpStatus:DescribeAgentResponse'
, describeAgentResponse_httpStatus
- The response's http status code.
Response Lenses
describeAgentResponse_creationTime :: Lens' DescribeAgentResponse (Maybe UTCTime) Source #
The time that the agent was activated (that is, created in your account).
describeAgentResponse_status :: Lens' DescribeAgentResponse (Maybe AgentStatus) Source #
The status of the agent. If the status is ONLINE, then the agent is configured properly and is available to use. The Running status is the normal running status for an agent. If the status is OFFLINE, the agent's VM is turned off or the agent is in an unhealthy state. When the issue that caused the unhealthy state is resolved, the agent returns to ONLINE status.
describeAgentResponse_privateLinkConfig :: Lens' DescribeAgentResponse (Maybe PrivateLinkConfig) Source #
The subnet and the security group that DataSync used to access a VPC endpoint.
describeAgentResponse_endpointType :: Lens' DescribeAgentResponse (Maybe EndpointType) Source #
The type of endpoint that your agent is connected to. If the endpoint is a VPC endpoint, the agent is not accessible over the public internet.
describeAgentResponse_lastConnectionTime :: Lens' DescribeAgentResponse (Maybe UTCTime) Source #
The time that the agent last connected to DataSync.
describeAgentResponse_agentArn :: Lens' DescribeAgentResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the agent.
describeAgentResponse_name :: Lens' DescribeAgentResponse (Maybe Text) Source #
The name of the agent.
describeAgentResponse_httpStatus :: Lens' DescribeAgentResponse Int Source #
The response's http status code.