| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ApiGatewayV2.CreateModel
Description
Creates a Model for an API.
Synopsis
- data CreateModel = CreateModel' {}
- newCreateModel :: Text -> Text -> Text -> CreateModel
- createModel_contentType :: Lens' CreateModel (Maybe Text)
- createModel_description :: Lens' CreateModel (Maybe Text)
- createModel_apiId :: Lens' CreateModel Text
- createModel_schema :: Lens' CreateModel Text
- createModel_name :: Lens' CreateModel Text
- data CreateModelResponse = CreateModelResponse' {}
- newCreateModelResponse :: Int -> CreateModelResponse
- createModelResponse_contentType :: Lens' CreateModelResponse (Maybe Text)
- createModelResponse_description :: Lens' CreateModelResponse (Maybe Text)
- createModelResponse_modelId :: Lens' CreateModelResponse (Maybe Text)
- createModelResponse_name :: Lens' CreateModelResponse (Maybe Text)
- createModelResponse_schema :: Lens' CreateModelResponse (Maybe Text)
- createModelResponse_httpStatus :: Lens' CreateModelResponse Int
Creating a Request
data CreateModel Source #
Creates a new Model.
See: newCreateModel smart constructor.
Constructors
| CreateModel' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateModel |
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_apiId :: Lens' CreateModel Text Source #
The API identifier.
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
newCreateModelResponse Source #
Arguments
| :: Int | |
| -> CreateModelResponse |
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_description :: Lens' CreateModelResponse (Maybe Text) Source #
The description of the model.
createModelResponse_modelId :: Lens' CreateModelResponse (Maybe Text) Source #
The model identifier.
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.
createModelResponse_httpStatus :: Lens' CreateModelResponse Int Source #
The response's http status code.