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 |
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. If you are creating a schema for a dataset in a Domain dataset group, you provide the domain of the Domain dataset group. You specify a schema when you call CreateDataset.
Related APIs
Synopsis
- data CreateSchema = CreateSchema' {}
- newCreateSchema :: Text -> Text -> CreateSchema
- createSchema_domain :: Lens' CreateSchema (Maybe Domain)
- 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:
CreateSchema
, createSchema_domain
- The domain for the schema. If you are creating a schema for a dataset in
a Domain dataset group, specify the domain you chose when you created
the Domain dataset group.
CreateSchema
, createSchema_name
- The name for the schema.
CreateSchema
, createSchema_schema
- A schema in Avro JSON format.
Request Lenses
createSchema_domain :: Lens' CreateSchema (Maybe Domain) Source #
The domain for the schema. If you are creating a schema for a dataset in a Domain dataset group, specify the domain you chose when you created the Domain dataset group.
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:
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.