amazonka-opsworks-1.6.1: Amazon OpsWorks 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.OpsWorks.DescribeInstances

Contents

Description

Requests a description of a set of instances.

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:

  • diInstanceIds - 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 - A stack ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified stack.
  • diLayerId - A layer ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified layer.

data DescribeInstances Source #

See: describeInstances smart constructor.

Instances
Eq DescribeInstances Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

Data DescribeInstances Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

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 # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

Show DescribeInstances Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

Generic DescribeInstances Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

Associated Types

type Rep DescribeInstances :: Type -> Type #

Hashable DescribeInstances Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

ToJSON DescribeInstances Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

AWSRequest DescribeInstances Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

Associated Types

type Rs DescribeInstances :: Type #

ToHeaders DescribeInstances Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

ToPath DescribeInstances Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

ToQuery DescribeInstances Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

NFData DescribeInstances Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

Methods

rnf :: DescribeInstances -> () #

type Rep DescribeInstances Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

type Rep DescribeInstances = D1 (MetaData "DescribeInstances" "Network.AWS.OpsWorks.DescribeInstances" "amazonka-opsworks-1.6.1-DPqCyF3LO9t3rjfO10vXJE" False) (C1 (MetaCons "DescribeInstances'" PrefixI True) (S1 (MetaSel (Just "_diInstanceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 (MetaSel (Just "_diStackId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_diLayerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Rs DescribeInstances Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

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 # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

Data DescribeInstancesResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

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 # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

Show DescribeInstancesResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

Generic DescribeInstancesResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

Associated Types

type Rep DescribeInstancesResponse :: Type -> Type #

NFData DescribeInstancesResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

type Rep DescribeInstancesResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.DescribeInstances

type Rep DescribeInstancesResponse = D1 (MetaData "DescribeInstancesResponse" "Network.AWS.OpsWorks.DescribeInstances" "amazonka-opsworks-1.6.1-DPqCyF3LO9t3rjfO10vXJE" False) (C1 (MetaCons "DescribeInstancesResponse'" PrefixI True) (S1 (MetaSel (Just "_dirsInstances") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Instance])) :*: S1 (MetaSel (Just "_dirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

dirsInstances :: Lens' DescribeInstancesResponse [Instance] Source #

An array of Instance objects that describe the instances.