amazonka-apigateway-1.4.5: Amazon API Gateway 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.APIGateway.UpdateRestAPI

Contents

Description

Changes information about the specified API.

Synopsis

Creating a Request

updateRestAPI Source #

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

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

  • uraPatchOperations - A list of update operations to be applied to the specified resource and in the order specified in this list.
  • uraRestAPIId - The ID of the RestApi you want to update.

data UpdateRestAPI Source #

Request to update an existing RestApi resource in your collection.

See: updateRestAPI smart constructor.

Instances

Eq UpdateRestAPI Source # 
Data UpdateRestAPI Source # 

Methods

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

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

toConstr :: UpdateRestAPI -> Constr #

dataTypeOf :: UpdateRestAPI -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateRestAPI Source # 
Show UpdateRestAPI Source # 
Generic UpdateRestAPI Source # 

Associated Types

type Rep UpdateRestAPI :: * -> * #

Hashable UpdateRestAPI Source # 
ToJSON UpdateRestAPI Source # 
NFData UpdateRestAPI Source # 

Methods

rnf :: UpdateRestAPI -> () #

AWSRequest UpdateRestAPI Source # 
ToPath UpdateRestAPI Source # 
ToHeaders UpdateRestAPI Source # 
ToQuery UpdateRestAPI Source # 
type Rep UpdateRestAPI Source # 
type Rep UpdateRestAPI = D1 (MetaData "UpdateRestAPI" "Network.AWS.APIGateway.UpdateRestAPI" "amazonka-apigateway-1.4.5-BIK2fycuXdJFBbWQ9Hqf16" False) (C1 (MetaCons "UpdateRestAPI'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_uraPatchOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PatchOperation]))) (S1 (MetaSel (Just Symbol "_uraRestAPIId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs UpdateRestAPI Source # 

Request Lenses

uraPatchOperations :: Lens' UpdateRestAPI [PatchOperation] Source #

A list of update operations to be applied to the specified resource and in the order specified in this list.

uraRestAPIId :: Lens' UpdateRestAPI Text Source #

The ID of the RestApi you want to update.

Destructuring the Response

restAPI :: RestAPI Source #

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

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

  • raBinaryMediaTypes - The list of binary media types supported by the RestApi . By default, the RestApi supports only UTF-8-encoded text payloads.
  • raWarnings - The warning messages reported when failonwarnings is turned on during API import.
  • raCreatedDate - The date when the API was created, in ISO 8601 format .
  • raName - The API's name.
  • raVersion - A version identifier for the API.
  • raId - The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.
  • raDescription - The API's description.

data RestAPI Source #

Represents a REST API.

Create an API

See: restAPI smart constructor.

Instances

Eq RestAPI Source # 

Methods

(==) :: RestAPI -> RestAPI -> Bool #

(/=) :: RestAPI -> RestAPI -> Bool #

Data RestAPI Source # 

Methods

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

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

toConstr :: RestAPI -> Constr #

dataTypeOf :: RestAPI -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RestAPI Source # 
Show RestAPI Source # 
Generic RestAPI Source # 

Associated Types

type Rep RestAPI :: * -> * #

Methods

from :: RestAPI -> Rep RestAPI x #

to :: Rep RestAPI x -> RestAPI #

Hashable RestAPI Source # 

Methods

hashWithSalt :: Int -> RestAPI -> Int #

hash :: RestAPI -> Int #

FromJSON RestAPI Source # 
NFData RestAPI Source # 

Methods

rnf :: RestAPI -> () #

type Rep RestAPI Source # 

Response Lenses

raBinaryMediaTypes :: Lens' RestAPI [Text] Source #

The list of binary media types supported by the RestApi . By default, the RestApi supports only UTF-8-encoded text payloads.

raWarnings :: Lens' RestAPI [Text] Source #

The warning messages reported when failonwarnings is turned on during API import.

raCreatedDate :: Lens' RestAPI (Maybe UTCTime) Source #

The date when the API was created, in ISO 8601 format .

raName :: Lens' RestAPI (Maybe Text) Source #

The API's name.

raVersion :: Lens' RestAPI (Maybe Text) Source #

A version identifier for the API.

raId :: Lens' RestAPI (Maybe Text) Source #

The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.

raDescription :: Lens' RestAPI (Maybe Text) Source #

The API's description.