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

  • description :: Maybe Text

    The description of the model.

  • contentType :: Maybe Text

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

  • 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
Eq CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Read CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Show CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Generic CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Associated Types

type Rep CreateModel :: Type -> Type #

NFData CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Methods

rnf :: CreateModel -> () #

Hashable CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

ToJSON CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

AWSRequest CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Associated Types

type AWSResponse 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

type Rep CreateModel Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

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

Defined in Amazonka.ApiGatewayV2.CreateModel

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:

$sel:description:CreateModel', createModel_description - The description of the model.

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

$sel:apiId:CreateModel', createModel_apiId - The API identifier.

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

$sel:name:CreateModel', createModel_name - The name of the model. Must be alphanumeric.

Request Lenses

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

The description of the model.

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

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

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
Eq CreateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Read CreateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Show CreateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Generic CreateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Associated Types

type Rep CreateModelResponse :: Type -> Type #

NFData CreateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

Methods

rnf :: CreateModelResponse -> () #

type Rep CreateModelResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateModel

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

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:

$sel:modelId:CreateModelResponse', createModelResponse_modelId - The model identifier.

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

$sel:name:CreateModel', createModelResponse_name - The name of the model. Must be alphanumeric.

$sel:description:CreateModel', createModelResponse_description - The description of the model.

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

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

Response Lenses

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

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

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

The name of the model. Must be alphanumeric.

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

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