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.DeleteSchemaVersions

Description

Remove versions from the specified schema. A version number or range may be supplied. If the compatibility mode forbids deleting of a version that is necessary, such as BACKWARDS_FULL, an error is returned. Calling the GetSchemaVersions API after this call will list the status of the deleted versions.

When the range of version numbers contain check pointed version, the API will return a 409 conflict and will not proceed with the deletion. You have to remove the checkpoint first using the DeleteSchemaCheckpoint API before using this API.

You cannot use the DeleteSchemaVersions API to delete the first schema version in the schema set. The first schema version can only be deleted by the DeleteSchema API. This operation will also delete the attached SchemaVersionMetadata under the schema versions. Hard deletes will be enforced on the database.

If the compatibility mode forbids deleting of a version that is necessary, such as BACKWARDS_FULL, an error is returned.

Synopsis

Creating a Request

data DeleteSchemaVersions Source #

See: newDeleteSchemaVersions smart constructor.

Constructors

DeleteSchemaVersions' 

Fields

  • schemaId :: SchemaId

    This is a wrapper structure that may contain the schema name and Amazon Resource Name (ARN).

  • versions :: Text

    A version range may be supplied which may be of the format:

    • a single version number, 5
    • a range, 5-8 : deletes versions 5, 6, 7, 8

Instances

Instances details
Eq DeleteSchemaVersions Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

Read DeleteSchemaVersions Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

Show DeleteSchemaVersions Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

Generic DeleteSchemaVersions Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

Associated Types

type Rep DeleteSchemaVersions :: Type -> Type #

NFData DeleteSchemaVersions Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

Methods

rnf :: DeleteSchemaVersions -> () #

Hashable DeleteSchemaVersions Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

ToJSON DeleteSchemaVersions Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

AWSRequest DeleteSchemaVersions Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

Associated Types

type AWSResponse DeleteSchemaVersions #

ToHeaders DeleteSchemaVersions Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

ToPath DeleteSchemaVersions Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

ToQuery DeleteSchemaVersions Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

type Rep DeleteSchemaVersions Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

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

Defined in Amazonka.Glue.DeleteSchemaVersions

newDeleteSchemaVersions Source #

Create a value of DeleteSchemaVersions 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:schemaId:DeleteSchemaVersions', deleteSchemaVersions_schemaId - This is a wrapper structure that may contain the schema name and Amazon Resource Name (ARN).

$sel:versions:DeleteSchemaVersions', deleteSchemaVersions_versions - A version range may be supplied which may be of the format:

  • a single version number, 5
  • a range, 5-8 : deletes versions 5, 6, 7, 8

Request Lenses

deleteSchemaVersions_schemaId :: Lens' DeleteSchemaVersions SchemaId Source #

This is a wrapper structure that may contain the schema name and Amazon Resource Name (ARN).

deleteSchemaVersions_versions :: Lens' DeleteSchemaVersions Text Source #

A version range may be supplied which may be of the format:

  • a single version number, 5
  • a range, 5-8 : deletes versions 5, 6, 7, 8

Destructuring the Response

data DeleteSchemaVersionsResponse Source #

See: newDeleteSchemaVersionsResponse smart constructor.

Constructors

DeleteSchemaVersionsResponse' 

Fields

Instances

Instances details
Eq DeleteSchemaVersionsResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

Read DeleteSchemaVersionsResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

Show DeleteSchemaVersionsResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

Generic DeleteSchemaVersionsResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

Associated Types

type Rep DeleteSchemaVersionsResponse :: Type -> Type #

NFData DeleteSchemaVersionsResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

type Rep DeleteSchemaVersionsResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteSchemaVersions

type Rep DeleteSchemaVersionsResponse = D1 ('MetaData "DeleteSchemaVersionsResponse" "Amazonka.Glue.DeleteSchemaVersions" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "DeleteSchemaVersionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "schemaVersionErrors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SchemaVersionErrorItem])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteSchemaVersionsResponse Source #

Create a value of DeleteSchemaVersionsResponse 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:schemaVersionErrors:DeleteSchemaVersionsResponse', deleteSchemaVersionsResponse_schemaVersionErrors - A list of SchemaVersionErrorItem objects, each containing an error and schema version.

$sel:httpStatus:DeleteSchemaVersionsResponse', deleteSchemaVersionsResponse_httpStatus - The response's http status code.

Response Lenses

deleteSchemaVersionsResponse_schemaVersionErrors :: Lens' DeleteSchemaVersionsResponse (Maybe [SchemaVersionErrorItem]) Source #

A list of SchemaVersionErrorItem objects, each containing an error and schema version.