amazonka-opsworks-1.4.2: Amazon OpsWorks SDK.

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

Network.AWS.OpsWorks.DescribeInstances

Contents

Description

Requests a description of a set of instances.

You must specify at least one of the parameters.

Required Permissions: To use this action, an IAM user must have a Show, Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

Synopsis

Creating a Request

describeInstances :: DescribeInstances Source #

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

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

data DescribeInstances Source #

See: describeInstances smart constructor.

Instances

Eq DescribeInstances Source # 
Data DescribeInstances Source # 

Methods

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

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

toConstr :: DescribeInstances -> Constr #

dataTypeOf :: DescribeInstances -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: DescribeInstances -> () #

AWSRequest DescribeInstances Source # 
ToPath DescribeInstances Source # 
ToHeaders DescribeInstances Source # 
ToQuery DescribeInstances Source # 
type Rep DescribeInstances Source # 
type Rep DescribeInstances = D1 (MetaData "DescribeInstances" "Network.AWS.OpsWorks.DescribeInstances" "amazonka-opsworks-1.4.2-H1NWw2Q6WTvKlcJsv19jGW" False) (C1 (MetaCons "DescribeInstances'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_diInstanceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_diStackId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_diLayerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Rs DescribeInstances Source # 

Request Lenses

diInstanceIds :: Lens' DescribeInstances [Text] Source #

An array of instance IDs to be described. If you use this parameter, DescribeInstances returns a description of the specified instances. Otherwise, it returns a description of every instance.

diStackId :: Lens' DescribeInstances (Maybe Text) Source #

A stack ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified stack.

diLayerId :: Lens' DescribeInstances (Maybe Text) Source #

A layer ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified layer.

Destructuring the Response

describeInstancesResponse Source #

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

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

data DescribeInstancesResponse Source #

Contains the response to a DescribeInstances request.

See: describeInstancesResponse smart constructor.

Instances

Eq DescribeInstancesResponse Source # 
Data DescribeInstancesResponse Source # 

Methods

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

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

toConstr :: DescribeInstancesResponse -> Constr #

dataTypeOf :: DescribeInstancesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeInstancesResponse Source # 
Show DescribeInstancesResponse Source # 
Generic DescribeInstancesResponse Source # 
NFData DescribeInstancesResponse Source # 
type Rep DescribeInstancesResponse Source # 
type Rep DescribeInstancesResponse = D1 (MetaData "DescribeInstancesResponse" "Network.AWS.OpsWorks.DescribeInstances" "amazonka-opsworks-1.4.2-H1NWw2Q6WTvKlcJsv19jGW" False) (C1 (MetaCons "DescribeInstancesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dirsInstances") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Instance]))) (S1 (MetaSel (Just Symbol "_dirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

dirsInstances :: Lens' DescribeInstancesResponse [Instance] Source #

An array of Instance objects that describe the instances.