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.DescribeAgent

Description

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

Creating a Request

data DescribeAgent Source #

DescribeAgent

See: newDescribeAgent smart constructor.

Constructors

DescribeAgent' 

Fields

  • agentArn :: Text

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

Instances

Instances details
Eq DescribeAgent Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

Read DescribeAgent Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

Show DescribeAgent Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

Generic DescribeAgent Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

Associated Types

type Rep DescribeAgent :: Type -> Type #

NFData DescribeAgent Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

Methods

rnf :: DescribeAgent -> () #

Hashable DescribeAgent Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

ToJSON DescribeAgent Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

AWSRequest DescribeAgent Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

Associated Types

type AWSResponse DescribeAgent #

ToHeaders DescribeAgent Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

ToPath DescribeAgent Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

ToQuery DescribeAgent Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

type Rep DescribeAgent Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

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

Defined in Amazonka.DataSync.DescribeAgent

newDescribeAgent Source #

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.

Constructors

DescribeAgentResponse' 

Fields

  • creationTime :: Maybe POSIX

    The time that the agent was activated (that is, created in your account).

  • status :: Maybe AgentStatus

    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.

  • privateLinkConfig :: Maybe PrivateLinkConfig

    The subnet and the security group that DataSync used to access a VPC endpoint.

  • endpointType :: Maybe 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.

  • lastConnectionTime :: Maybe POSIX

    The time that the agent last connected to DataSync.

  • agentArn :: Maybe Text

    The Amazon Resource Name (ARN) of the agent.

  • name :: Maybe Text

    The name of the agent.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

Read DescribeAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

Show DescribeAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

Generic DescribeAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

Associated Types

type Rep DescribeAgentResponse :: Type -> Type #

NFData DescribeAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

Methods

rnf :: DescribeAgentResponse -> () #

type Rep DescribeAgentResponse Source # 
Instance details

Defined in Amazonka.DataSync.DescribeAgent

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.