amazonka-apigateway-1.3.7: Amazon API Gateway SDK.

Copyright(c) 2013-2015 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.CreateRestAPI

Contents

Description

Creates a new RestApi resource.

See: AWS API Reference for CreateRestAPI.

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:

Request Lenses

craCloneFrom :: Lens' CreateRestAPI (Maybe Text) Source

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

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:

Response Lenses

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.

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.