| Copyright | (c) 2013-2017 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.APIGateway.UpdateRestAPI
Description
Changes information about the specified API.
- updateRestAPI :: Text -> UpdateRestAPI
- data UpdateRestAPI
- uraPatchOperations :: Lens' UpdateRestAPI [PatchOperation]
- uraRestAPIId :: Lens' UpdateRestAPI Text
- restAPI :: RestAPI
- data RestAPI
- raBinaryMediaTypes :: Lens' RestAPI [Text]
- raWarnings :: Lens' RestAPI [Text]
- raCreatedDate :: Lens' RestAPI (Maybe UTCTime)
- raName :: Lens' RestAPI (Maybe Text)
- raVersion :: Lens' RestAPI (Maybe Text)
- raId :: Lens' RestAPI (Maybe Text)
- raEndpointConfiguration :: Lens' RestAPI (Maybe EndpointConfiguration)
- raDescription :: Lens' RestAPI (Maybe Text)
Creating a Request
Arguments
| :: Text | |
| -> UpdateRestAPI |
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 string identifier of the associatedRestApi.
data UpdateRestAPI Source #
Request to update an existing RestApi resource in your collection.
See: updateRestAPI smart constructor.
Instances
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 string identifier of the associated 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:
raBinaryMediaTypes- The list of binary media types supported by theRestApi. By default, theRestApisupports only UTF-8-encoded text payloads.raWarnings- The warning messages reported whenfailonwarningsis 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 thisRestApishowing the endpoint types of the API.raDescription- The API's description.
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.
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.