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 |
Retrieves a JSON representation of the schema. See JSON Schema Format for more information.
Synopsis
- data GetSchemaAsJson = GetSchemaAsJson' {}
- newGetSchemaAsJson :: Text -> GetSchemaAsJson
- getSchemaAsJson_schemaArn :: Lens' GetSchemaAsJson Text
- data GetSchemaAsJsonResponse = GetSchemaAsJsonResponse' {}
- newGetSchemaAsJsonResponse :: Int -> GetSchemaAsJsonResponse
- getSchemaAsJsonResponse_document :: Lens' GetSchemaAsJsonResponse (Maybe Text)
- getSchemaAsJsonResponse_name :: Lens' GetSchemaAsJsonResponse (Maybe Text)
- getSchemaAsJsonResponse_httpStatus :: Lens' GetSchemaAsJsonResponse Int
Creating a Request
data GetSchemaAsJson Source #
See: newGetSchemaAsJson
smart constructor.
Instances
Create a value of GetSchemaAsJson
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:schemaArn:GetSchemaAsJson'
, getSchemaAsJson_schemaArn
- The ARN of the schema to retrieve.
Request Lenses
getSchemaAsJson_schemaArn :: Lens' GetSchemaAsJson Text Source #
The ARN of the schema to retrieve.
Destructuring the Response
data GetSchemaAsJsonResponse Source #
See: newGetSchemaAsJsonResponse
smart constructor.
Instances
newGetSchemaAsJsonResponse Source #
Create a value of GetSchemaAsJsonResponse
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:document:GetSchemaAsJsonResponse'
, getSchemaAsJsonResponse_document
- The JSON representation of the schema document.
$sel:name:GetSchemaAsJsonResponse'
, getSchemaAsJsonResponse_name
- The name of the retrieved schema.
$sel:httpStatus:GetSchemaAsJsonResponse'
, getSchemaAsJsonResponse_httpStatus
- The response's http status code.
Response Lenses
getSchemaAsJsonResponse_document :: Lens' GetSchemaAsJsonResponse (Maybe Text) Source #
The JSON representation of the schema document.
getSchemaAsJsonResponse_name :: Lens' GetSchemaAsJsonResponse (Maybe Text) Source #
The name of the retrieved schema.
getSchemaAsJsonResponse_httpStatus :: Lens' GetSchemaAsJsonResponse Int Source #
The response's http status code.