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 |
Creates an Amazon Personalize schema from the specified schema string. The schema you create must be in Avro JSON format.
Amazon Personalize recognizes three schema variants. Each schema is associated with a dataset type and has a set of required field and keywords. You specify a schema when you call CreateDataset.
Related APIs
- ListSchemas
- DescribeSchema
- DeleteSchema
Synopsis
- data CreateSchema = CreateSchema' {}
- newCreateSchema :: Text -> Text -> CreateSchema
- createSchema_name :: Lens' CreateSchema Text
- createSchema_schema :: Lens' CreateSchema Text
- data CreateSchemaResponse = CreateSchemaResponse' {
- schemaArn :: Maybe Text
- httpStatus :: Int
- newCreateSchemaResponse :: Int -> CreateSchemaResponse
- createSchemaResponse_schemaArn :: Lens' CreateSchemaResponse (Maybe Text)
- createSchemaResponse_httpStatus :: Lens' CreateSchemaResponse Int
Creating a Request
data CreateSchema Source #
See: newCreateSchema
smart constructor.
Instances
Create a value of CreateSchema
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:name:CreateSchema'
, createSchema_name
- The name for the schema.
$sel:schema:CreateSchema'
, createSchema_schema
- A schema in Avro JSON format.
Request Lenses
createSchema_name :: Lens' CreateSchema Text Source #
The name for the schema.
createSchema_schema :: Lens' CreateSchema Text Source #
A schema in Avro JSON format.
Destructuring the Response
data CreateSchemaResponse Source #
See: newCreateSchemaResponse
smart constructor.
CreateSchemaResponse' | |
|
Instances
newCreateSchemaResponse Source #
Create a value of CreateSchemaResponse
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:CreateSchemaResponse'
, createSchemaResponse_schemaArn
- The Amazon Resource Name (ARN) of the created schema.
$sel:httpStatus:CreateSchemaResponse'
, createSchemaResponse_httpStatus
- The response's http status code.
Response Lenses
createSchemaResponse_schemaArn :: Lens' CreateSchemaResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the created schema.
createSchemaResponse_httpStatus :: Lens' CreateSchemaResponse Int Source #
The response's http status code.