libZSservicesZSamazonka-personalizeZSamazonka-personalize
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Personalize.CreateSchema

Description

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

Creating a Request

data CreateSchema Source #

See: newCreateSchema smart constructor.

Constructors

CreateSchema' 

Fields

Instances

Instances details
Eq CreateSchema Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

Read CreateSchema Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

Show CreateSchema Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

Generic CreateSchema Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

Associated Types

type Rep CreateSchema :: Type -> Type #

NFData CreateSchema Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

Methods

rnf :: CreateSchema -> () #

Hashable CreateSchema Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

ToJSON CreateSchema Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

AWSRequest CreateSchema Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

Associated Types

type AWSResponse CreateSchema #

ToHeaders CreateSchema Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

ToPath CreateSchema Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

ToQuery CreateSchema Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

type Rep CreateSchema Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

type Rep CreateSchema = D1 ('MetaData "CreateSchema" "Amazonka.Personalize.CreateSchema" "libZSservicesZSamazonka-personalizeZSamazonka-personalize" 'False) (C1 ('MetaCons "CreateSchema'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "schema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse CreateSchema Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

newCreateSchema Source #

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.

Constructors

CreateSchemaResponse' 

Fields

Instances

Instances details
Eq CreateSchemaResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

Read CreateSchemaResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

Show CreateSchemaResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

Generic CreateSchemaResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

Associated Types

type Rep CreateSchemaResponse :: Type -> Type #

NFData CreateSchemaResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

Methods

rnf :: CreateSchemaResponse -> () #

type Rep CreateSchemaResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateSchema

type Rep CreateSchemaResponse = D1 ('MetaData "CreateSchemaResponse" "Amazonka.Personalize.CreateSchema" "libZSservicesZSamazonka-personalizeZSamazonka-personalize" 'False) (C1 ('MetaCons "CreateSchemaResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "schemaArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.