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.GetModel

Contents

Description

Describes an existing model defined for a RestApi resource.

See: AWS API Reference for GetModel.

Synopsis

Creating a Request

getModel Source

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

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

data GetModel Source

Request to list information about a model in an existing RestApi resource.

See: getModel smart constructor.

Request Lenses

ggFlatten :: Lens' GetModel (Maybe Bool) Source

Resolves all external model references and returns a flattened model schema.

ggRestAPIId :: Lens' GetModel Text Source

The RestApi identifier under which the Model exists.

ggModelName :: Lens' GetModel Text Source

The name of the model as an identifier.

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.