amazonka-glue-2.0: Amazon Glue SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.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

AWSRequest GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Associated Types

type AWSResponse GetSchemaByDefinition #

Generic GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Associated Types

type Rep GetSchemaByDefinition :: Type -> Type #

Read GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Show GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

NFData GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Methods

rnf :: GetSchemaByDefinition -> () #

Eq GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Hashable GetSchemaByDefinition Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

type AWSResponse 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" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" 'False) (C1 ('MetaCons "GetSchemaByDefinition'" 'PrefixI 'True) (S1 ('MetaSel ('Just "schemaId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SchemaId) :*: S1 ('MetaSel ('Just "schemaDefinition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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:

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
Generic GetSchemaByDefinitionResponse Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Associated Types

type Rep GetSchemaByDefinitionResponse :: Type -> Type #

Read GetSchemaByDefinitionResponse Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Show GetSchemaByDefinitionResponse Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

NFData GetSchemaByDefinitionResponse Source # 
Instance details

Defined in Amazonka.Glue.GetSchemaByDefinition

Eq 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" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" 'False) (C1 ('MetaCons "GetSchemaByDefinitionResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "createdTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "dataFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DataFormat)) :*: S1 ('MetaSel ('Just "schemaArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "schemaVersionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SchemaVersionStatus)) :*: 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:

GetSchemaByDefinitionResponse, getSchemaByDefinitionResponse_createdTime - The date and time the schema was created.

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

GetSchemaByDefinitionResponse, getSchemaByDefinitionResponse_schemaArn - The Amazon Resource Name (ARN) of the schema.

GetSchemaByDefinitionResponse, getSchemaByDefinitionResponse_schemaVersionId - The schema ID of the schema version.

GetSchemaByDefinitionResponse, getSchemaByDefinitionResponse_status - The status of the schema version.

$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 AVRO, JSON and PROTOBUF are supported.