libZSservicesZSamazonka-glueZSamazonka-glue
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.Glue.UpdateSchema

Description

Updates the description, compatibility setting, or version checkpoint for a schema set.

For updating the compatibility setting, the call will not validate compatibility for the entire set of schema versions with the new compatibility setting. If the value for Compatibility is provided, the VersionNumber (a checkpoint) is also required. The API will validate the checkpoint version number for consistency.

If the value for the VersionNumber (checkpoint) is provided, Compatibility is optional and this can be used to set/reset a checkpoint for the schema.

This update will happen only if the schema is in the AVAILABLE state.

Synopsis

Creating a Request

data UpdateSchema Source #

See: newUpdateSchema smart constructor.

Constructors

UpdateSchema' 

Fields

  • schemaVersionNumber :: Maybe SchemaVersionNumber

    Version number required for check pointing. One of VersionNumber or Compatibility has to be provided.

  • description :: Maybe Text

    The new description for the schema.

  • compatibility :: Maybe Compatibility

    The new compatibility setting for the schema.

  • schemaId :: SchemaId

    This is a wrapper structure to contain schema identity fields. The structure contains:

    • SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. One of SchemaArn or SchemaName has to be provided.
    • SchemaId$SchemaName: The name of the schema. One of SchemaArn or SchemaName has to be provided.

Instances

Instances details
Eq UpdateSchema Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

Read UpdateSchema Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

Show UpdateSchema Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

Generic UpdateSchema Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

Associated Types

type Rep UpdateSchema :: Type -> Type #

NFData UpdateSchema Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

Methods

rnf :: UpdateSchema -> () #

Hashable UpdateSchema Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

ToJSON UpdateSchema Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

AWSRequest UpdateSchema Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

Associated Types

type AWSResponse UpdateSchema #

ToHeaders UpdateSchema Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

ToPath UpdateSchema Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

ToQuery UpdateSchema Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

type Rep UpdateSchema Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

type Rep UpdateSchema = D1 ('MetaData "UpdateSchema" "Amazonka.Glue.UpdateSchema" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "UpdateSchema'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "schemaVersionNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SchemaVersionNumber)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "compatibility") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Compatibility)) :*: S1 ('MetaSel ('Just "schemaId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SchemaId))))
type AWSResponse UpdateSchema Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

newUpdateSchema Source #

Create a value of UpdateSchema 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:schemaVersionNumber:UpdateSchema', updateSchema_schemaVersionNumber - Version number required for check pointing. One of VersionNumber or Compatibility has to be provided.

$sel:description:UpdateSchema', updateSchema_description - The new description for the schema.

$sel:compatibility:UpdateSchema', updateSchema_compatibility - The new compatibility setting for the schema.

$sel:schemaId:UpdateSchema', updateSchema_schemaId - This is a wrapper structure to contain schema identity fields. The structure contains:

  • SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. One of SchemaArn or SchemaName has to be provided.
  • SchemaId$SchemaName: The name of the schema. One of SchemaArn or SchemaName has to be provided.

Request Lenses

updateSchema_schemaVersionNumber :: Lens' UpdateSchema (Maybe SchemaVersionNumber) Source #

Version number required for check pointing. One of VersionNumber or Compatibility has to be provided.

updateSchema_description :: Lens' UpdateSchema (Maybe Text) Source #

The new description for the schema.

updateSchema_compatibility :: Lens' UpdateSchema (Maybe Compatibility) Source #

The new compatibility setting for the schema.

updateSchema_schemaId :: Lens' UpdateSchema SchemaId Source #

This is a wrapper structure to contain schema identity fields. The structure contains:

  • SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. One of SchemaArn or SchemaName has to be provided.
  • SchemaId$SchemaName: The name of the schema. One of SchemaArn or SchemaName has to be provided.

Destructuring the Response

data UpdateSchemaResponse Source #

See: newUpdateSchemaResponse smart constructor.

Constructors

UpdateSchemaResponse' 

Fields

Instances

Instances details
Eq UpdateSchemaResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

Read UpdateSchemaResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

Show UpdateSchemaResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

Generic UpdateSchemaResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

Associated Types

type Rep UpdateSchemaResponse :: Type -> Type #

NFData UpdateSchemaResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

Methods

rnf :: UpdateSchemaResponse -> () #

type Rep UpdateSchemaResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateSchema

type Rep UpdateSchemaResponse = D1 ('MetaData "UpdateSchemaResponse" "Amazonka.Glue.UpdateSchema" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "UpdateSchemaResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "registryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "schemaName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "schemaArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newUpdateSchemaResponse Source #

Create a value of UpdateSchemaResponse 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:registryName:UpdateSchemaResponse', updateSchemaResponse_registryName - The name of the registry that contains the schema.

$sel:schemaName:UpdateSchemaResponse', updateSchemaResponse_schemaName - The name of the schema.

$sel:schemaArn:UpdateSchemaResponse', updateSchemaResponse_schemaArn - The Amazon Resource Name (ARN) of the schema.

$sel:httpStatus:UpdateSchemaResponse', updateSchemaResponse_httpStatus - The response's http status code.

Response Lenses

updateSchemaResponse_registryName :: Lens' UpdateSchemaResponse (Maybe Text) Source #

The name of the registry that contains the schema.

updateSchemaResponse_schemaArn :: Lens' UpdateSchemaResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the schema.