amazonka-ec2-1.6.1: Amazon Elastic Compute Cloud 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.EC2.DescribeElasticGpus

Contents

Description

Describes the Elastic GPUs associated with your instances. For more information about Elastic GPUs, see Amazon EC2 Elastic GPUs .

Synopsis

Creating a Request

describeElasticGpus :: DescribeElasticGpus #

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

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

  • degFilters - One or more filters. * availability-zone - The Availability Zone in which the Elastic GPU resides. * elastic-gpu-health - The status of the Elastic GPU (OK | IMPAIRED ). * elastic-gpu-state - The state of the Elastic GPU (ATTACHED ). * elastic-gpu-type - The type of Elastic GPU; for example, eg1.medium . * instance-id - The ID of the instance to which the Elastic GPU is associated.
  • degNextToken - The token to request the next page of results.
  • degDryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .
  • degMaxResults - The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 5 and 1000.
  • degElasticGpuIds - One or more Elastic GPU IDs.

data DescribeElasticGpus #

See: describeElasticGpus smart constructor.

Instances
Eq DescribeElasticGpus # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

Data DescribeElasticGpus # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

Methods

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

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

toConstr :: DescribeElasticGpus -> Constr #

dataTypeOf :: DescribeElasticGpus -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeElasticGpus # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

Show DescribeElasticGpus # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

Generic DescribeElasticGpus # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

Associated Types

type Rep DescribeElasticGpus :: Type -> Type #

Hashable DescribeElasticGpus # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

AWSRequest DescribeElasticGpus # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

Associated Types

type Rs DescribeElasticGpus :: Type #

ToHeaders DescribeElasticGpus # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

ToPath DescribeElasticGpus # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

ToQuery DescribeElasticGpus # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

NFData DescribeElasticGpus # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

Methods

rnf :: DescribeElasticGpus -> () #

type Rep DescribeElasticGpus # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

type Rep DescribeElasticGpus = D1 (MetaData "DescribeElasticGpus" "Network.AWS.EC2.DescribeElasticGpus" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "DescribeElasticGpus'" PrefixI True) ((S1 (MetaSel (Just "_degFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter])) :*: S1 (MetaSel (Just "_degNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_degDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_degMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "_degElasticGpuIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))))))
type Rs DescribeElasticGpus # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

Request Lenses

degFilters :: Lens' DescribeElasticGpus [Filter] #

One or more filters. * availability-zone - The Availability Zone in which the Elastic GPU resides. * elastic-gpu-health - The status of the Elastic GPU (OK | IMPAIRED ). * elastic-gpu-state - The state of the Elastic GPU (ATTACHED ). * elastic-gpu-type - The type of Elastic GPU; for example, eg1.medium . * instance-id - The ID of the instance to which the Elastic GPU is associated.

degNextToken :: Lens' DescribeElasticGpus (Maybe Text) #

The token to request the next page of results.

degDryRun :: Lens' DescribeElasticGpus (Maybe Bool) #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

degMaxResults :: Lens' DescribeElasticGpus (Maybe Int) #

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 5 and 1000.

degElasticGpuIds :: Lens' DescribeElasticGpus [Text] #

One or more Elastic GPU IDs.

Destructuring the Response

describeElasticGpusResponse #

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

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

  • degrsElasticGpuSet - Information about the Elastic GPUs.
  • degrsNextToken - The token to use to retrieve the next page of results. This value is null when there are no more results to return.
  • degrsMaxResults - The total number of items to return. If the total number of items available is more than the value specified in max-items then a Next-Token will be provided in the output that you can use to resume pagination.
  • degrsResponseStatus - -- | The response status code.

data DescribeElasticGpusResponse #

See: describeElasticGpusResponse smart constructor.

Instances
Eq DescribeElasticGpusResponse # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

Data DescribeElasticGpusResponse # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

Methods

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

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

toConstr :: DescribeElasticGpusResponse -> Constr #

dataTypeOf :: DescribeElasticGpusResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeElasticGpusResponse # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

Show DescribeElasticGpusResponse # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

Generic DescribeElasticGpusResponse # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

Associated Types

type Rep DescribeElasticGpusResponse :: Type -> Type #

NFData DescribeElasticGpusResponse # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

type Rep DescribeElasticGpusResponse # 
Instance details

Defined in Network.AWS.EC2.DescribeElasticGpus

type Rep DescribeElasticGpusResponse = D1 (MetaData "DescribeElasticGpusResponse" "Network.AWS.EC2.DescribeElasticGpus" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "DescribeElasticGpusResponse'" PrefixI True) ((S1 (MetaSel (Just "_degrsElasticGpuSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ElasticGpus])) :*: S1 (MetaSel (Just "_degrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_degrsMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "_degrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

degrsElasticGpuSet :: Lens' DescribeElasticGpusResponse [ElasticGpus] #

Information about the Elastic GPUs.

degrsNextToken :: Lens' DescribeElasticGpusResponse (Maybe Text) #

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

degrsMaxResults :: Lens' DescribeElasticGpusResponse (Maybe Int) #

The total number of items to return. If the total number of items available is more than the value specified in max-items then a Next-Token will be provided in the output that you can use to resume pagination.