amazonka-opsworks-cm-1.6.0: Amazon OpsWorks for Chef Automate SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.OpsWorksCM.DescribeServers

Contents

Description

Lists all configuration management servers that are identified with your account. Only the stored results from Amazon DynamoDB are returned. AWS OpsWorks CM does not query other services.

This operation is synchronous.

A ResourceNotFoundException is thrown when the server does not exist. A ValidationException is raised when parameters of the request are not valid.

Synopsis

Creating a Request

describeServers :: DescribeServers Source #

Creates a value of DescribeServers with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dssServerName - Describes the server with the specified ServerName.
  • dssNextToken - NextToken is a string that is returned in some command responses. It indicates that not all entries have been returned, and that you must run at least one more request to get remaining items. To get remaining results, call DescribeServers again, and assign the token from the previous results as the value of the nextToken parameter. If there are no more results, the response object's nextToken parameter value is null . Setting a nextToken value that was not returned in your previous results causes an InvalidNextTokenException to occur.
  • dssMaxResults - To receive a paginated response, use this parameter to specify the maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.

data DescribeServers Source #

See: describeServers smart constructor.

Instances

Eq DescribeServers Source # 
Data DescribeServers Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeServers -> c DescribeServers #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeServers #

toConstr :: DescribeServers -> Constr #

dataTypeOf :: DescribeServers -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeServers) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeServers) #

gmapT :: (forall b. Data b => b -> b) -> DescribeServers -> DescribeServers #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeServers -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeServers -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeServers -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeServers -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeServers -> m DescribeServers #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeServers -> m DescribeServers #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeServers -> m DescribeServers #

Read DescribeServers Source # 
Show DescribeServers Source # 
Generic DescribeServers Source # 
Hashable DescribeServers Source # 
ToJSON DescribeServers Source # 
NFData DescribeServers Source # 

Methods

rnf :: DescribeServers -> () #

AWSRequest DescribeServers Source # 
ToHeaders DescribeServers Source # 
ToPath DescribeServers Source # 
ToQuery DescribeServers Source # 
type Rep DescribeServers Source # 
type Rep DescribeServers = D1 * (MetaData "DescribeServers" "Network.AWS.OpsWorksCM.DescribeServers" "amazonka-opsworks-cm-1.6.0-D1lLq3cpj5Y52sT2PvyDqA" False) (C1 * (MetaCons "DescribeServers'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dssServerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_dssNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_dssMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))))))
type Rs DescribeServers Source # 

Request Lenses

dssServerName :: Lens' DescribeServers (Maybe Text) Source #

Describes the server with the specified ServerName.

dssNextToken :: Lens' DescribeServers (Maybe Text) Source #

NextToken is a string that is returned in some command responses. It indicates that not all entries have been returned, and that you must run at least one more request to get remaining items. To get remaining results, call DescribeServers again, and assign the token from the previous results as the value of the nextToken parameter. If there are no more results, the response object's nextToken parameter value is null . Setting a nextToken value that was not returned in your previous results causes an InvalidNextTokenException to occur.

dssMaxResults :: Lens' DescribeServers (Maybe Natural) Source #

To receive a paginated response, use this parameter to specify the maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.

Destructuring the Response

describeServersResponse Source #

Creates a value of DescribeServersResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dssrsServers - Contains the response to a DescribeServers request. For Puppet Server: DescribeServersResponse$Servers$EngineAttributes contains PUPPET_API_CA_CERT. This is the PEM-encoded CA certificate that is used by the Puppet API over TCP port number 8140. The CA certificate is also used to sign node certificates.
  • dssrsNextToken - NextToken is a string that is returned in some command responses. It indicates that not all entries have been returned, and that you must run at least one more request to get remaining items. To get remaining results, call DescribeServers again, and assign the token from the previous results as the value of the nextToken parameter. If there are no more results, the response object's nextToken parameter value is null . Setting a nextToken value that was not returned in your previous results causes an InvalidNextTokenException to occur.
  • dssrsResponseStatus - -- | The response status code.

data DescribeServersResponse Source #

See: describeServersResponse smart constructor.

Instances

Eq DescribeServersResponse Source # 
Data DescribeServersResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeServersResponse -> c DescribeServersResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeServersResponse #

toConstr :: DescribeServersResponse -> Constr #

dataTypeOf :: DescribeServersResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeServersResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeServersResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeServersResponse -> DescribeServersResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeServersResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeServersResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeServersResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeServersResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeServersResponse -> m DescribeServersResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeServersResponse -> m DescribeServersResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeServersResponse -> m DescribeServersResponse #

Show DescribeServersResponse Source # 
Generic DescribeServersResponse Source # 
NFData DescribeServersResponse Source # 

Methods

rnf :: DescribeServersResponse -> () #

type Rep DescribeServersResponse Source # 
type Rep DescribeServersResponse = D1 * (MetaData "DescribeServersResponse" "Network.AWS.OpsWorksCM.DescribeServers" "amazonka-opsworks-cm-1.6.0-D1lLq3cpj5Y52sT2PvyDqA" False) (C1 * (MetaCons "DescribeServersResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dssrsServers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Server]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_dssrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_dssrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

dssrsServers :: Lens' DescribeServersResponse [Server] Source #

Contains the response to a DescribeServers request. For Puppet Server: DescribeServersResponse$Servers$EngineAttributes contains PUPPET_API_CA_CERT. This is the PEM-encoded CA certificate that is used by the Puppet API over TCP port number 8140. The CA certificate is also used to sign node certificates.

dssrsNextToken :: Lens' DescribeServersResponse (Maybe Text) Source #

NextToken is a string that is returned in some command responses. It indicates that not all entries have been returned, and that you must run at least one more request to get remaining items. To get remaining results, call DescribeServers again, and assign the token from the previous results as the value of the nextToken parameter. If there are no more results, the response object's nextToken parameter value is null . Setting a nextToken value that was not returned in your previous results causes an InvalidNextTokenException to occur.