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 |
Allows a schema to be updated using JSON upload. Only available for development schemas. See JSON Schema Format for more information.
Synopsis
- data PutSchemaFromJson = PutSchemaFromJson' {}
- newPutSchemaFromJson :: Text -> Text -> PutSchemaFromJson
- putSchemaFromJson_schemaArn :: Lens' PutSchemaFromJson Text
- putSchemaFromJson_document :: Lens' PutSchemaFromJson Text
- data PutSchemaFromJsonResponse = PutSchemaFromJsonResponse' {
- arn :: Maybe Text
- httpStatus :: Int
- newPutSchemaFromJsonResponse :: Int -> PutSchemaFromJsonResponse
- putSchemaFromJsonResponse_arn :: Lens' PutSchemaFromJsonResponse (Maybe Text)
- putSchemaFromJsonResponse_httpStatus :: Lens' PutSchemaFromJsonResponse Int
Creating a Request
data PutSchemaFromJson Source #
See: newPutSchemaFromJson
smart constructor.
Instances
Create a value of PutSchemaFromJson
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:PutSchemaFromJson'
, putSchemaFromJson_schemaArn
- The ARN of the schema to update.
$sel:document:PutSchemaFromJson'
, putSchemaFromJson_document
- The replacement JSON schema.
Request Lenses
putSchemaFromJson_schemaArn :: Lens' PutSchemaFromJson Text Source #
The ARN of the schema to update.
putSchemaFromJson_document :: Lens' PutSchemaFromJson Text Source #
The replacement JSON schema.
Destructuring the Response
data PutSchemaFromJsonResponse Source #
See: newPutSchemaFromJsonResponse
smart constructor.
PutSchemaFromJsonResponse' | |
|
Instances
newPutSchemaFromJsonResponse Source #
Create a value of PutSchemaFromJsonResponse
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:arn:PutSchemaFromJsonResponse'
, putSchemaFromJsonResponse_arn
- The ARN of the schema to update.
$sel:httpStatus:PutSchemaFromJsonResponse'
, putSchemaFromJsonResponse_httpStatus
- The response's http status code.
Response Lenses
putSchemaFromJsonResponse_arn :: Lens' PutSchemaFromJsonResponse (Maybe Text) Source #
The ARN of the schema to update.
putSchemaFromJsonResponse_httpStatus :: Lens' PutSchemaFromJsonResponse Int Source #
The response's http status code.