| 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.GetModel
Description
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_contentType :: Lens' GetModelResponse (Maybe Text)
- getModelResponse_description :: Lens' GetModelResponse (Maybe Text)
- getModelResponse_modelId :: Lens' GetModelResponse (Maybe Text)
- getModelResponse_name :: Lens' GetModelResponse (Maybe Text)
- getModelResponse_schema :: 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:
GetModel, getModel_modelId - The model ID.
GetModel, getModel_apiId - The API identifier.
Request Lenses
Destructuring the Response
data GetModelResponse Source #
See: newGetModelResponse smart constructor.
Constructors
| GetModelResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetModelResponse |
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:
GetModelResponse, getModelResponse_contentType - The content-type for the model, for example, "application/json".
GetModelResponse, getModelResponse_description - The description of the model.
GetModel, getModelResponse_modelId - The model identifier.
GetModelResponse, getModelResponse_name - The name of the model. Must be alphanumeric.
GetModelResponse, getModelResponse_schema - The schema for the model. For application/json models, this should be
JSON schema draft 4 model.
$sel:httpStatus:GetModelResponse', getModelResponse_httpStatus - The response's http status code.
Response Lenses
getModelResponse_contentType :: Lens' GetModelResponse (Maybe Text) Source #
The content-type for the model, for example, "application/json".
getModelResponse_description :: Lens' GetModelResponse (Maybe Text) Source #
The description of the model.
getModelResponse_modelId :: Lens' GetModelResponse (Maybe Text) Source #
The model identifier.
getModelResponse_name :: Lens' GetModelResponse (Maybe Text) Source #
The name of the model. Must be alphanumeric.
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_httpStatus :: Lens' GetModelResponse Int Source #
The response's http status code.