Copyright | (c) 2013-2015 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 |
Creates a new RestApi resource.
See: AWS API Reference for CreateRestAPI.
- createRestAPI :: Text -> CreateRestAPI
- data CreateRestAPI
- craCloneFrom :: Lens' CreateRestAPI (Maybe Text)
- craDescription :: Lens' CreateRestAPI (Maybe Text)
- craName :: Lens' CreateRestAPI Text
- restAPI :: RestAPI
- data RestAPI
- raCreatedDate :: Lens' RestAPI (Maybe UTCTime)
- raName :: Lens' RestAPI (Maybe Text)
- raId :: Lens' RestAPI (Maybe Text)
- raDescription :: Lens' RestAPI (Maybe Text)
Creating a Request
:: Text | |
-> 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:
data CreateRestAPI Source
Request to add a new RestApi resource to your collection.
See: createRestAPI
smart constructor.
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
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.