amazonka-apigateway-1.3.6: 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.CreateModel

Contents

Description

Adds a new Model resource to an existing RestApi resource.

See: AWS API Reference for CreateModel.

Synopsis

Creating a Request

createModel Source

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

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

Request Lenses

cmSchema :: Lens' CreateModel (Maybe Text) Source

The schema for the model. For 'application\/json' models, this should be JSON-schema draft v4 model.

cmDescription :: Lens' CreateModel (Maybe Text) Source

The description of the model.

cmRestAPIId :: Lens' CreateModel Text Source

The RestApi identifier under which the Model will be created.

cmName :: Lens' CreateModel Text Source

The name of the model.

cmContentType :: Lens' CreateModel Text Source

The content-type for the model.

Destructuring the Response

model :: Model Source

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

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

data Model Source

Represents the structure of a request or response payload for a method.

See: model smart constructor.

Response Lenses

mSchema :: Lens' Model (Maybe Text) Source

The schema for the model. For 'application\/json' models, this should be JSON-schema draft v4 model.

mName :: Lens' Model (Maybe Text) Source

The name of the model.

mId :: Lens' Model (Maybe Text) Source

The identifier for the model resource.

mDescription :: Lens' Model (Maybe Text) Source

The description of the model.

mContentType :: Lens' Model (Maybe Text) Source

The content-type for the model.