amazonka-apigatewayv2-2.0: Amazon ApiGatewayV2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.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

AWSRequest UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Associated Types

type AWSResponse UpdateModel #

Generic UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Associated Types

type Rep UpdateModel :: Type -> Type #

Read UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Show UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

NFData UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Methods

rnf :: UpdateModel -> () #

Eq UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Hashable UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

type AWSResponse UpdateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

type Rep 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:

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

UpdateModel, updateModel_description - The description of the model.

UpdateModel, updateModel_name - The name of the model.

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

UpdateModel, updateModel_modelId - The model ID.

UpdateModel, updateModel_apiId - The API identifier.

Request Lenses

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

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

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

The description of the model.

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

The name of the model.

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

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

Destructuring the Response

data UpdateModelResponse Source #

See: newUpdateModelResponse smart constructor.

Constructors

UpdateModelResponse' 

Fields

Instances

Instances details
Generic UpdateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Associated Types

type Rep UpdateModelResponse :: Type -> Type #

Read UpdateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Show UpdateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

NFData UpdateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

Methods

rnf :: UpdateModelResponse -> () #

Eq UpdateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

type Rep UpdateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateModel

type Rep UpdateModelResponse = D1 ('MetaData "UpdateModelResponse" "Amazonka.ApiGatewayV2.UpdateModel" "amazonka-apigatewayv2-2.0-4MZ8oueToeLOWomgegceF" 'False) (C1 ('MetaCons "UpdateModelResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "contentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "modelId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "schema") '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:

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

UpdateModel, updateModelResponse_description - The description of the model.

UpdateModel, updateModelResponse_modelId - The model identifier.

UpdateModel, updateModelResponse_name - The name of the model. Must be alphanumeric.

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

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

Response Lenses

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

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

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

The name of the model. Must be alphanumeric.

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

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