amazonka-ec2-1.5.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2017 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 Source #

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 Source #

See: describeElasticGpus smart constructor.

Instances

Eq DescribeElasticGpus Source # 
Data DescribeElasticGpus Source # 

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 Source # 
Show DescribeElasticGpus Source # 
Generic DescribeElasticGpus Source # 
Hashable DescribeElasticGpus Source # 
NFData DescribeElasticGpus Source # 

Methods

rnf :: DescribeElasticGpus -> () #

AWSRequest DescribeElasticGpus Source # 
ToQuery DescribeElasticGpus Source # 
ToPath DescribeElasticGpus Source # 
ToHeaders DescribeElasticGpus Source # 
type Rep DescribeElasticGpus Source # 
type Rep DescribeElasticGpus = D1 (MetaData "DescribeElasticGpus" "Network.AWS.EC2.DescribeElasticGpus" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "DescribeElasticGpus'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_degFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter]))) (S1 (MetaSel (Just Symbol "_degNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_degDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_degMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_degElasticGpuIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))))))
type Rs DescribeElasticGpus Source # 

Request Lenses

degFilters :: Lens' DescribeElasticGpus [Filter] Source #

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) Source #

The token to request the next page of results.

degDryRun :: Lens' DescribeElasticGpus (Maybe Bool) Source #

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) Source #

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] Source #

One or more Elastic GPU IDs.

Destructuring the Response

describeElasticGpusResponse Source #

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 Source #

See: describeElasticGpusResponse smart constructor.

Instances

Eq DescribeElasticGpusResponse Source # 
Data DescribeElasticGpusResponse Source # 

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 Source # 
Show DescribeElasticGpusResponse Source # 
Generic DescribeElasticGpusResponse Source # 
NFData DescribeElasticGpusResponse Source # 
type Rep DescribeElasticGpusResponse Source # 
type Rep DescribeElasticGpusResponse = D1 (MetaData "DescribeElasticGpusResponse" "Network.AWS.EC2.DescribeElasticGpus" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "DescribeElasticGpusResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_degrsElasticGpuSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ElasticGpus]))) (S1 (MetaSel (Just Symbol "_degrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_degrsMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_degrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

degrsNextToken :: Lens' DescribeElasticGpusResponse (Maybe Text) Source #

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) Source #

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.