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

Contents

Description

Creates a new RestApi resource.

Synopsis

Creating a Request

createRestAPI Source #

Arguments

:: Text

craName

-> CreateRestAPI 

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

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

  • craBinaryMediaTypes - The list of binary media types supported by the RestApi . By default, the RestApi supports only UTF-8-encoded text payloads.
  • craVersion - A version identifier for the API.
  • craCloneFrom - The ID of the RestApi that you want to clone from.
  • craEndpointConfiguration - The endpoint configuration of this RestApi showing the endpoint types of the API.
  • craDescription - The description of the RestApi .
  • craName - The name of the RestApi .

data CreateRestAPI Source #

The POST Request to add a new RestApi resource to your collection.

See: createRestAPI smart constructor.

Instances

Eq CreateRestAPI Source # 
Data CreateRestAPI Source # 

Methods

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

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

toConstr :: CreateRestAPI -> Constr #

dataTypeOf :: CreateRestAPI -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateRestAPI Source # 
Show CreateRestAPI Source # 
Generic CreateRestAPI Source # 

Associated Types

type Rep CreateRestAPI :: * -> * #

Hashable CreateRestAPI Source # 
ToJSON CreateRestAPI Source # 
NFData CreateRestAPI Source # 

Methods

rnf :: CreateRestAPI -> () #

AWSRequest CreateRestAPI Source # 
ToQuery CreateRestAPI Source # 
ToPath CreateRestAPI Source # 
ToHeaders CreateRestAPI Source # 
type Rep CreateRestAPI Source # 
type Rep CreateRestAPI = D1 (MetaData "CreateRestAPI" "Network.AWS.APIGateway.CreateRestAPI" "amazonka-apigateway-1.5.0-3jDq4KKltGt78uikPpOCEJ" False) (C1 (MetaCons "CreateRestAPI'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_craBinaryMediaTypes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_craVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_craCloneFrom") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_craEndpointConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe EndpointConfiguration))) ((:*:) (S1 (MetaSel (Just Symbol "_craDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_craName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs CreateRestAPI Source # 

Request Lenses

craBinaryMediaTypes :: Lens' CreateRestAPI [Text] Source #

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

craVersion :: Lens' CreateRestAPI (Maybe Text) Source #

A version identifier for the API.

craCloneFrom :: Lens' CreateRestAPI (Maybe Text) Source #

The ID of the RestApi that you want to clone from.

craEndpointConfiguration :: Lens' CreateRestAPI (Maybe EndpointConfiguration) Source #

The endpoint configuration of this RestApi showing the endpoint types of the API.

craDescription :: Lens' CreateRestAPI (Maybe Text) Source #

The description of the RestApi .

craName :: Lens' CreateRestAPI Text Source #

The name of the RestApi .

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 timestamp when the API was created.
  • 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.
  • raEndpointConfiguration - The endpoint configuration of this RestApi showing the endpoint types of the API.
  • 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 timestamp when the API was created.

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.

raEndpointConfiguration :: Lens' RestAPI (Maybe EndpointConfiguration) Source #

The endpoint configuration of this RestApi showing the endpoint types of the API.

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

The API's description.