Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
A feature of the Amazon API Gateway control service for creating a new API from an external API definition file.
- importRestAPI :: HashMap Text Value -> ImportRestAPI
- data ImportRestAPI
- iraFailOnWarnings :: Lens' ImportRestAPI (Maybe Bool)
- iraParameters :: Lens' ImportRestAPI (HashMap Text Text)
- iraBody :: Lens' ImportRestAPI (HashMap Text Value)
- restAPI :: RestAPI
- data RestAPI
- raWarnings :: Lens' RestAPI [Text]
- raCreatedDate :: Lens' RestAPI (Maybe UTCTime)
- raName :: Lens' RestAPI (Maybe Text)
- raId :: Lens' RestAPI (Maybe Text)
- raDescription :: Lens' RestAPI (Maybe Text)
Creating a Request
Creates a value of ImportRestAPI
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ImportRestAPI Source #
A POST request to import an API to Amazon API Gateway using an input of an API definition file.
See: importRestAPI
smart constructor.
Request Lenses
iraFailOnWarnings :: Lens' ImportRestAPI (Maybe Bool) Source #
A query parameter to indicate whether to rollback the API creation (true
) or not (false
) when a warning is encountered. The default value is false
.
iraParameters :: Lens' ImportRestAPI (HashMap Text Text) Source #
Custom header parameters as part of the request.
iraBody :: Lens' ImportRestAPI (HashMap Text Value) Source #
The POST request body containing external API definitions. Currently, only Swagger definition JSON files are supported.
Destructuring the Response
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:
Represents a REST API.
See: restAPI
smart constructor.
Response Lenses
raCreatedDate :: Lens' RestAPI (Maybe UTCTime) Source #
The date when the API was created, in ISO 8601 format.