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

Description

Creates a Model for an API.

Synopsis

Creating a Request

data CreateModel Source #

Creates a new Model.

See: newCreateModel smart constructor.

Constructors

CreateModel' 

Fields

  • contentType :: Maybe Text

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

  • description :: Maybe Text

    The description of the model.

  • apiId :: Text

    The API identifier.

  • schema :: Text

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

  • name :: Text

    The name of the model. Must be alphanumeric.

Instances

Instances details
ToJSON CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

ToHeaders CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Methods

toHeaders :: CreateModel -> [Header] #

ToPath CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

ToQuery CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

AWSRequest CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Associated Types

type AWSResponse CreateModel #

Generic CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Associated Types

type Rep CreateModel :: Type -> Type #

Read CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Show CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

NFData CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Methods

rnf :: CreateModel -> () #

Eq CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Hashable CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

type AWSResponse CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

type Rep CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

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

newCreateModel Source #

Create a value of CreateModel 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:

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

CreateModel, createModel_description - The description of the model.

CreateModel, createModel_apiId - The API identifier.

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

CreateModel, createModel_name - The name of the model. Must be alphanumeric.

Request Lenses

createModel_contentType :: Lens' CreateModel (Maybe Text) Source #

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

createModel_description :: Lens' CreateModel (Maybe Text) Source #

The description of the model.

createModel_schema :: Lens' CreateModel Text Source #

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

createModel_name :: Lens' CreateModel Text Source #

The name of the model. Must be alphanumeric.

Destructuring the Response

data CreateModelResponse Source #

See: newCreateModelResponse smart constructor.

Constructors

CreateModelResponse' 

Fields

Instances

Instances details
Generic CreateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Associated Types

type Rep CreateModelResponse :: Type -> Type #

Read CreateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Show CreateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

NFData CreateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Methods

rnf :: CreateModelResponse -> () #

Eq CreateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

type Rep CreateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

type Rep CreateModelResponse = D1 ('MetaData "CreateModelResponse" "Amazonka.ApiGatewayV2.CreateModel" "amazonka-apigatewayv2-2.0-4MZ8oueToeLOWomgegceF" 'False) (C1 ('MetaCons "CreateModelResponse'" '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)))))

newCreateModelResponse Source #

Create a value of CreateModelResponse 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:

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

CreateModel, createModelResponse_description - The description of the model.

CreateModelResponse, createModelResponse_modelId - The model identifier.

CreateModel, createModelResponse_name - The name of the model. Must be alphanumeric.

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

$sel:httpStatus:CreateModelResponse', createModelResponse_httpStatus - The response's http status code.

Response Lenses

createModelResponse_contentType :: Lens' CreateModelResponse (Maybe Text) Source #

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

createModelResponse_name :: Lens' CreateModelResponse (Maybe Text) Source #

The name of the model. Must be alphanumeric.

createModelResponse_schema :: Lens' CreateModelResponse (Maybe Text) Source #

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