| 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 |
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
Arguments
| :: Text | |
| -> Text | |
| -> TypeDefinitionFormat | |
| -> GetType |
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:
$sel:apiId:GetType', getType_apiId - The API ID.
$sel:typeName:GetType', getType_typeName - The type name.
$sel:format: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:
$sel:type':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.