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

Description

Retrieves a schema by the SchemaDefinition. The schema definition is sent to the Schema Registry, canonicalized, and hashed. If the hash is matched within the scope of the SchemaName or ARN (or the default registry, if none is supplied), that schema’s metadata is returned. Otherwise, a 404 or NotFound error is returned. Schema versions in Deleted statuses will not be included in the results.

Synopsis

Creating a Request

data GetSchemaByDefinition Source #

See: newGetSchemaByDefinition smart constructor.

Constructors

GetSchemaByDefinition' 

Fields

  • 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.
  • schemaDefinition :: Text

    The definition of the schema for which schema details are required.

Instances

Instances details
Eq GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Read GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Show GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Generic GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Associated Types

type Rep GetSchemaByDefinition :: Type -> Type #

NFData GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Methods

rnf :: GetSchemaByDefinition -> () #

Hashable GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

ToJSON GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

AWSRequest GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Associated Types

type AWSResponse GetSchemaByDefinition #

ToHeaders GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

ToPath GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

ToQuery GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

type Rep GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

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

Defined in Amazonka.Glue.GetSchemaByDefinition

newGetSchemaByDefinition Source #

Create a value of GetSchemaByDefinition 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:GetSchemaByDefinition', getSchemaByDefinition_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.

$sel:schemaDefinition:GetSchemaByDefinition', getSchemaByDefinition_schemaDefinition - The definition of the schema for which schema details are required.

Request Lenses

getSchemaByDefinition_schemaId :: Lens' GetSchemaByDefinition 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.

getSchemaByDefinition_schemaDefinition :: Lens' GetSchemaByDefinition Text Source #

The definition of the schema for which schema details are required.

Destructuring the Response

data GetSchemaByDefinitionResponse Source #

See: newGetSchemaByDefinitionResponse smart constructor.

Constructors

GetSchemaByDefinitionResponse' 

Fields

Instances

Instances details
Eq GetSchemaByDefinitionResponse Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Read GetSchemaByDefinitionResponse Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Show GetSchemaByDefinitionResponse Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Generic GetSchemaByDefinitionResponse Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Associated Types

type Rep GetSchemaByDefinitionResponse :: Type -> Type #

NFData GetSchemaByDefinitionResponse Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

type Rep GetSchemaByDefinitionResponse Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

type Rep GetSchemaByDefinitionResponse = D1 ('MetaData "GetSchemaByDefinitionResponse" "Amazonka.Glue.GetSchemaByDefinition" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "GetSchemaByDefinitionResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SchemaVersionStatus)) :*: (S1 ('MetaSel ('Just "createdTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dataFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DataFormat)))) :*: (S1 ('MetaSel ('Just "schemaVersionId") '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)))))

newGetSchemaByDefinitionResponse Source #

Create a value of GetSchemaByDefinitionResponse 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:status:GetSchemaByDefinitionResponse', getSchemaByDefinitionResponse_status - The status of the schema version.

$sel:createdTime:GetSchemaByDefinitionResponse', getSchemaByDefinitionResponse_createdTime - The date and time the schema was created.

$sel:dataFormat:GetSchemaByDefinitionResponse', getSchemaByDefinitionResponse_dataFormat - The data format of the schema definition. Currently only AVRO and JSON are supported.

$sel:schemaVersionId:GetSchemaByDefinitionResponse', getSchemaByDefinitionResponse_schemaVersionId - The schema ID of the schema version.

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

$sel:httpStatus:GetSchemaByDefinitionResponse', getSchemaByDefinitionResponse_httpStatus - The response's http status code.

Response Lenses

getSchemaByDefinitionResponse_dataFormat :: Lens' GetSchemaByDefinitionResponse (Maybe DataFormat) Source #

The data format of the schema definition. Currently only AVRO and JSON are supported.