| 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.CloudDirectory.PutSchemaFromJson
Description
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.
Constructors
| PutSchemaFromJson' | |
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:
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.
Constructors
| PutSchemaFromJsonResponse' | |
Fields
| |
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.