| 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.AppSync.GetType
Description
Retrieves a Type object.
Synopsis
- data GetType = GetType' {}
- newGetType :: Text -> Text -> TypeDefinitionFormat -> GetType
- getType_apiId :: Lens' GetType Text
- getType_typeName :: Lens' GetType Text
- getType_format :: Lens' GetType TypeDefinitionFormat
- data GetTypeResponse = GetTypeResponse' {
- type' :: Maybe Type
- httpStatus :: Int
- newGetTypeResponse :: Int -> GetTypeResponse
- getTypeResponse_type :: Lens' GetTypeResponse (Maybe Type)
- getTypeResponse_httpStatus :: Lens' GetTypeResponse Int
Creating a Request
See: newGetType smart constructor.
Constructors
| GetType' | |
Instances
Create a value of GetType 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:
GetType, getType_apiId - The API ID.
GetType, getType_typeName - The type name.
GetType, getType_format - The type format: SDL or JSON.
Request Lenses
getType_format :: Lens' GetType TypeDefinitionFormat Source #
The type format: SDL or JSON.
Destructuring the Response
data GetTypeResponse Source #
See: newGetTypeResponse smart constructor.
Constructors
| GetTypeResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetTypeResponse |
Create a value of GetTypeResponse 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:
GetTypeResponse, getTypeResponse_type - The Type object.
$sel:httpStatus:GetTypeResponse', getTypeResponse_httpStatus - The response's http status code.
Response Lenses
getTypeResponse_type :: Lens' GetTypeResponse (Maybe Type) Source #
The Type object.
getTypeResponse_httpStatus :: Lens' GetTypeResponse Int Source #
The response's http status code.