Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Gets a Model.
Synopsis
- data GetModel = GetModel' {}
- newGetModel :: Text -> Text -> GetModel
- getModel_modelId :: Lens' GetModel Text
- getModel_apiId :: Lens' GetModel Text
- data GetModelResponse = GetModelResponse' {}
- newGetModelResponse :: Int -> GetModelResponse
- getModelResponse_modelId :: Lens' GetModelResponse (Maybe Text)
- getModelResponse_schema :: Lens' GetModelResponse (Maybe Text)
- getModelResponse_name :: Lens' GetModelResponse (Maybe Text)
- getModelResponse_description :: Lens' GetModelResponse (Maybe Text)
- getModelResponse_contentType :: Lens' GetModelResponse (Maybe Text)
- getModelResponse_httpStatus :: Lens' GetModelResponse Int
Creating a Request
See: newGetModel
smart constructor.
Instances
Create a value of GetModel
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:GetModel'
, getModel_modelId
- The model ID.
$sel:apiId:GetModel'
, getModel_apiId
- The API identifier.
Request Lenses
Destructuring the Response
data GetModelResponse Source #
See: newGetModelResponse
smart constructor.
GetModelResponse' | |
|
Instances
Create a value of GetModelResponse
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:GetModel'
, getModelResponse_modelId
- The model identifier.
$sel:schema:GetModelResponse'
, getModelResponse_schema
- The schema for the model. For application/json models, this should be
JSON schema draft 4 model.
$sel:name:GetModelResponse'
, getModelResponse_name
- The name of the model. Must be alphanumeric.
$sel:description:GetModelResponse'
, getModelResponse_description
- The description of the model.
$sel:contentType:GetModelResponse'
, getModelResponse_contentType
- The content-type for the model, for example, "application/json".
$sel:httpStatus:GetModelResponse'
, getModelResponse_httpStatus
- The response's http status code.
Response Lenses
getModelResponse_modelId :: Lens' GetModelResponse (Maybe Text) Source #
The model identifier.
getModelResponse_schema :: Lens' GetModelResponse (Maybe Text) Source #
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
getModelResponse_name :: Lens' GetModelResponse (Maybe Text) Source #
The name of the model. Must be alphanumeric.
getModelResponse_description :: Lens' GetModelResponse (Maybe Text) Source #
The description of the model.
getModelResponse_contentType :: Lens' GetModelResponse (Maybe Text) Source #
The content-type for the model, for example, "application/json".
getModelResponse_httpStatus :: Lens' GetModelResponse Int Source #
The response's http status code.