libZSservicesZSamazonka-apigatewayv2ZSamazonka-apigatewayv2
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ApiGatewayV2.GetModel

Description

Gets a Model.

Synopsis

Creating a Request

data GetModel Source #

See: newGetModel smart constructor.

Constructors

GetModel' 

Fields

Instances

Instances details
Eq GetModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

Read GetModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

Show GetModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

Generic GetModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

Associated Types

type Rep GetModel :: Type -> Type #

Methods

from :: GetModel -> Rep GetModel x #

to :: Rep GetModel x -> GetModel #

NFData GetModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

Methods

rnf :: GetModel -> () #

Hashable GetModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

Methods

hashWithSalt :: Int -> GetModel -> Int #

hash :: GetModel -> Int #

AWSRequest GetModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

Associated Types

type AWSResponse GetModel #

ToHeaders GetModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

Methods

toHeaders :: GetModel -> [Header] #

ToPath GetModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

ToQuery GetModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

type Rep GetModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

type Rep GetModel = D1 ('MetaData "GetModel" "Amazonka.ApiGatewayV2.GetModel" "libZSservicesZSamazonka-apigatewayv2ZSamazonka-apigatewayv2" 'False) (C1 ('MetaCons "GetModel'" 'PrefixI 'True) (S1 ('MetaSel ('Just "modelId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "apiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

newGetModel Source #

Create a value of GetModel with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:modelId:GetModel', getModel_modelId - The model ID.

$sel:apiId:GetModel', getModel_apiId - The API identifier.

Request Lenses

getModel_apiId :: Lens' GetModel Text Source #

The API identifier.

Destructuring the Response

data GetModelResponse Source #

See: newGetModelResponse smart constructor.

Constructors

GetModelResponse' 

Fields

Instances

Instances details
Eq GetModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

Read GetModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

Show GetModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

Generic GetModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

Associated Types

type Rep GetModelResponse :: Type -> Type #

NFData GetModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

Methods

rnf :: GetModelResponse -> () #

type Rep GetModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModel

type Rep GetModelResponse = D1 ('MetaData "GetModelResponse" "Amazonka.ApiGatewayV2.GetModel" "libZSservicesZSamazonka-apigatewayv2ZSamazonka-apigatewayv2" 'False) (C1 ('MetaCons "GetModelResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "modelId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "schema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "contentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newGetModelResponse Source #

Create a value of GetModelResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:modelId:GetModel', getModelResponse_modelId - The model identifier.

$sel:schema:GetModelResponse', getModelResponse_schema - The schema for the model. For application/json models, this should be JSON schema draft 4 model.

$sel:name:GetModelResponse', getModelResponse_name - The name of the model. Must be alphanumeric.

$sel:description:GetModelResponse', getModelResponse_description - The description of the model.

$sel:contentType:GetModelResponse', getModelResponse_contentType - The content-type for the model, for example, "application/json".

$sel:httpStatus:GetModelResponse', getModelResponse_httpStatus - The response's http status code.

Response Lenses

getModelResponse_schema :: Lens' GetModelResponse (Maybe Text) Source #

The schema for the model. For application/json models, this should be JSON schema draft 4 model.

getModelResponse_name :: Lens' GetModelResponse (Maybe Text) Source #

The name of the model. Must be alphanumeric.

getModelResponse_contentType :: Lens' GetModelResponse (Maybe Text) Source #

The content-type for the model, for example, "application/json".

getModelResponse_httpStatus :: Lens' GetModelResponse Int Source #

The response's http status code.