amazonka-devicefarm-1.4.5: Amazon Device Farm 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.DeviceFarm.GetOfferingStatus

Contents

Description

Gets the current status and future status of all offerings purchased by an AWS account. The response indicates how many offerings are currently available and the offerings that will be available in the next period. The API returns a NotEligible error if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com if you believe that you should be able to invoke this operation.

Synopsis

Creating a Request

getOfferingStatus :: GetOfferingStatus #

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

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

  • gosNextToken - An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

data GetOfferingStatus #

Represents the request to retrieve the offering status for the specified customer or account.

See: getOfferingStatus smart constructor.

Instances

Eq GetOfferingStatus # 
Data GetOfferingStatus # 

Methods

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

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

toConstr :: GetOfferingStatus -> Constr #

dataTypeOf :: GetOfferingStatus -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetOfferingStatus # 
Show GetOfferingStatus # 
Generic GetOfferingStatus # 
Hashable GetOfferingStatus # 
ToJSON GetOfferingStatus # 
NFData GetOfferingStatus # 

Methods

rnf :: GetOfferingStatus -> () #

AWSRequest GetOfferingStatus # 
ToQuery GetOfferingStatus # 
ToPath GetOfferingStatus # 
ToHeaders GetOfferingStatus # 
type Rep GetOfferingStatus # 
type Rep GetOfferingStatus = D1 (MetaData "GetOfferingStatus" "Network.AWS.DeviceFarm.GetOfferingStatus" "amazonka-devicefarm-1.4.5-Kd08QioxBZU9BqkZYEEvYe" True) (C1 (MetaCons "GetOfferingStatus'" PrefixI True) (S1 (MetaSel (Just Symbol "_gosNextToken") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))
type Rs GetOfferingStatus # 

Request Lenses

gosNextToken :: Lens' GetOfferingStatus (Maybe Text) #

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

Destructuring the Response

getOfferingStatusResponse #

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

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

  • gosrsNextPeriod - When specified, gets the offering status for the next period.
  • gosrsCurrent - When specified, gets the offering status for the current period.
  • gosrsNextToken - An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
  • gosrsResponseStatus - -- | The response status code.

data GetOfferingStatusResponse #

Returns the status result for a device offering.

See: getOfferingStatusResponse smart constructor.

Instances

Eq GetOfferingStatusResponse # 
Data GetOfferingStatusResponse # 

Methods

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

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

toConstr :: GetOfferingStatusResponse -> Constr #

dataTypeOf :: GetOfferingStatusResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetOfferingStatusResponse # 
Show GetOfferingStatusResponse # 
Generic GetOfferingStatusResponse # 
NFData GetOfferingStatusResponse # 
type Rep GetOfferingStatusResponse # 
type Rep GetOfferingStatusResponse = D1 (MetaData "GetOfferingStatusResponse" "Network.AWS.DeviceFarm.GetOfferingStatus" "amazonka-devicefarm-1.4.5-Kd08QioxBZU9BqkZYEEvYe" False) (C1 (MetaCons "GetOfferingStatusResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gosrsNextPeriod") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text OfferingStatus)))) (S1 (MetaSel (Just Symbol "_gosrsCurrent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text OfferingStatus))))) ((:*:) (S1 (MetaSel (Just Symbol "_gosrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gosrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

gosrsNextPeriod :: Lens' GetOfferingStatusResponse (HashMap Text OfferingStatus) #

When specified, gets the offering status for the next period.

gosrsCurrent :: Lens' GetOfferingStatusResponse (HashMap Text OfferingStatus) #

When specified, gets the offering status for the current period.

gosrsNextToken :: Lens' GetOfferingStatusResponse (Maybe Text) #

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

gosrsResponseStatus :: Lens' GetOfferingStatusResponse Int #

  • - | The response status code.