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

Description

Updates a Model.

Synopsis

Creating a Request

data UpdateModel Source #

Updates a Model.

See: newUpdateModel smart constructor.

Constructors

UpdateModel' 

Fields

Instances

Instances details
Eq UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Read UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Show UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Generic UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Associated Types

type Rep UpdateModel :: Type -> Type #

NFData UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Methods

rnf :: UpdateModel -> () #

Hashable UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

ToJSON UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

AWSRequest UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Associated Types

type AWSResponse UpdateModel #

ToHeaders UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Methods

toHeaders :: UpdateModel -> [Header] #

ToPath UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

ToQuery UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

type Rep UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

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

Defined in Amazonka.ApiGatewayV2.UpdateModel

newUpdateModel Source #

Create a value of UpdateModel 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:schema:UpdateModel', updateModel_schema - The schema for the model. For application/json models, this should be JSON schema draft 4 model.

$sel:name:UpdateModel', updateModel_name - The name of the model.

$sel:description:UpdateModel', updateModel_description - The description of the model.

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

$sel:modelId:UpdateModel', updateModel_modelId - The model ID.

$sel:apiId:UpdateModel', updateModel_apiId - The API identifier.

Request Lenses

updateModel_schema :: Lens' UpdateModel (Maybe Text) Source #

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

updateModel_name :: Lens' UpdateModel (Maybe Text) Source #

The name of the model.

updateModel_description :: Lens' UpdateModel (Maybe Text) Source #

The description of the model.

updateModel_contentType :: Lens' UpdateModel (Maybe Text) Source #

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

Destructuring the Response

data UpdateModelResponse Source #

See: newUpdateModelResponse smart constructor.

Constructors

UpdateModelResponse' 

Fields

Instances

Instances details
Eq UpdateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Read UpdateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Show UpdateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Generic UpdateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Associated Types

type Rep UpdateModelResponse :: Type -> Type #

NFData UpdateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Methods

rnf :: UpdateModelResponse -> () #

type Rep UpdateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

type Rep UpdateModelResponse = D1 ('MetaData "UpdateModelResponse" "Amazonka.ApiGatewayV2.UpdateModel" "libZSservicesZSamazonka-apigatewayv2ZSamazonka-apigatewayv2" 'False) (C1 ('MetaCons "UpdateModelResponse'" '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)))))

newUpdateModelResponse Source #

Create a value of UpdateModelResponse 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:UpdateModel', updateModelResponse_modelId - The model identifier.

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

$sel:name:UpdateModel', updateModelResponse_name - The name of the model. Must be alphanumeric.

$sel:description:UpdateModel', updateModelResponse_description - The description of the model.

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

$sel:httpStatus:UpdateModelResponse', updateModelResponse_httpStatus - The response's http status code.

Response Lenses

updateModelResponse_schema :: Lens' UpdateModelResponse (Maybe Text) Source #

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

updateModelResponse_name :: Lens' UpdateModelResponse (Maybe Text) Source #

The name of the model. Must be alphanumeric.

updateModelResponse_contentType :: Lens' UpdateModelResponse (Maybe Text) Source #

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