| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Glue.GetSchema
Description
Describes the specified schema in detail.
Synopsis
- data GetSchema = GetSchema' {}
- newGetSchema :: SchemaId -> GetSchema
- getSchema_schemaId :: Lens' GetSchema SchemaId
- data GetSchemaResponse = GetSchemaResponse' {
- compatibility :: Maybe Compatibility
- createdTime :: Maybe Text
- dataFormat :: Maybe DataFormat
- description :: Maybe Text
- latestSchemaVersion :: Maybe Natural
- nextSchemaVersion :: Maybe Natural
- registryArn :: Maybe Text
- registryName :: Maybe Text
- schemaArn :: Maybe Text
- schemaCheckpoint :: Maybe Natural
- schemaName :: Maybe Text
- schemaStatus :: Maybe SchemaStatus
- updatedTime :: Maybe Text
- httpStatus :: Int
- newGetSchemaResponse :: Int -> GetSchemaResponse
- getSchemaResponse_compatibility :: Lens' GetSchemaResponse (Maybe Compatibility)
- getSchemaResponse_createdTime :: Lens' GetSchemaResponse (Maybe Text)
- getSchemaResponse_dataFormat :: Lens' GetSchemaResponse (Maybe DataFormat)
- getSchemaResponse_description :: Lens' GetSchemaResponse (Maybe Text)
- getSchemaResponse_latestSchemaVersion :: Lens' GetSchemaResponse (Maybe Natural)
- getSchemaResponse_nextSchemaVersion :: Lens' GetSchemaResponse (Maybe Natural)
- getSchemaResponse_registryArn :: Lens' GetSchemaResponse (Maybe Text)
- getSchemaResponse_registryName :: Lens' GetSchemaResponse (Maybe Text)
- getSchemaResponse_schemaArn :: Lens' GetSchemaResponse (Maybe Text)
- getSchemaResponse_schemaCheckpoint :: Lens' GetSchemaResponse (Maybe Natural)
- getSchemaResponse_schemaName :: Lens' GetSchemaResponse (Maybe Text)
- getSchemaResponse_schemaStatus :: Lens' GetSchemaResponse (Maybe SchemaStatus)
- getSchemaResponse_updatedTime :: Lens' GetSchemaResponse (Maybe Text)
- getSchemaResponse_httpStatus :: Lens' GetSchemaResponse Int
Creating a Request
See: newGetSchema smart constructor.
Constructors
| GetSchema' | |
Fields
| |
Instances
Create a value of GetSchema 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:
GetSchema, getSchema_schemaId - This is a wrapper structure to contain schema identity fields. The
structure contains:
- SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema.
Either
SchemaArnorSchemaNameandRegistryNamehas to be provided. - SchemaId$SchemaName: The name of the schema. Either
SchemaArnorSchemaNameandRegistryNamehas to be provided.
Request Lenses
getSchema_schemaId :: Lens' GetSchema 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.
Either
SchemaArnorSchemaNameandRegistryNamehas to be provided. - SchemaId$SchemaName: The name of the schema. Either
SchemaArnorSchemaNameandRegistryNamehas to be provided.
Destructuring the Response
data GetSchemaResponse Source #
See: newGetSchemaResponse smart constructor.
Constructors
| GetSchemaResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetSchemaResponse |
Create a value of GetSchemaResponse 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:compatibility:GetSchemaResponse', getSchemaResponse_compatibility - The compatibility mode of the schema.
GetSchemaResponse, getSchemaResponse_createdTime - The date and time the schema was created.
$sel:dataFormat:GetSchemaResponse', getSchemaResponse_dataFormat - The data format of the schema definition. Currently AVRO, JSON and
PROTOBUF are supported.
GetSchemaResponse, getSchemaResponse_description - A description of schema if specified when created
$sel:latestSchemaVersion:GetSchemaResponse', getSchemaResponse_latestSchemaVersion - The latest version of the schema associated with the returned schema
definition.
$sel:nextSchemaVersion:GetSchemaResponse', getSchemaResponse_nextSchemaVersion - The next version of the schema associated with the returned schema
definition.
GetSchemaResponse, getSchemaResponse_registryArn - The Amazon Resource Name (ARN) of the registry.
GetSchemaResponse, getSchemaResponse_registryName - The name of the registry.
GetSchemaResponse, getSchemaResponse_schemaArn - The Amazon Resource Name (ARN) of the schema.
$sel:schemaCheckpoint:GetSchemaResponse', getSchemaResponse_schemaCheckpoint - The version number of the checkpoint (the last time the compatibility
mode was changed).
GetSchemaResponse, getSchemaResponse_schemaName - The name of the schema.
GetSchemaResponse, getSchemaResponse_schemaStatus - The status of the schema.
GetSchemaResponse, getSchemaResponse_updatedTime - The date and time the schema was updated.
$sel:httpStatus:GetSchemaResponse', getSchemaResponse_httpStatus - The response's http status code.
Response Lenses
getSchemaResponse_compatibility :: Lens' GetSchemaResponse (Maybe Compatibility) Source #
The compatibility mode of the schema.
getSchemaResponse_createdTime :: Lens' GetSchemaResponse (Maybe Text) Source #
The date and time the schema was created.
getSchemaResponse_dataFormat :: Lens' GetSchemaResponse (Maybe DataFormat) Source #
The data format of the schema definition. Currently AVRO, JSON and
PROTOBUF are supported.
getSchemaResponse_description :: Lens' GetSchemaResponse (Maybe Text) Source #
A description of schema if specified when created
getSchemaResponse_latestSchemaVersion :: Lens' GetSchemaResponse (Maybe Natural) Source #
The latest version of the schema associated with the returned schema definition.
getSchemaResponse_nextSchemaVersion :: Lens' GetSchemaResponse (Maybe Natural) Source #
The next version of the schema associated with the returned schema definition.
getSchemaResponse_registryArn :: Lens' GetSchemaResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the registry.
getSchemaResponse_registryName :: Lens' GetSchemaResponse (Maybe Text) Source #
The name of the registry.
getSchemaResponse_schemaArn :: Lens' GetSchemaResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the schema.
getSchemaResponse_schemaCheckpoint :: Lens' GetSchemaResponse (Maybe Natural) Source #
The version number of the checkpoint (the last time the compatibility mode was changed).
getSchemaResponse_schemaName :: Lens' GetSchemaResponse (Maybe Text) Source #
The name of the schema.
getSchemaResponse_schemaStatus :: Lens' GetSchemaResponse (Maybe SchemaStatus) Source #
The status of the schema.
getSchemaResponse_updatedTime :: Lens' GetSchemaResponse (Maybe Text) Source #
The date and time the schema was updated.
getSchemaResponse_httpStatus :: Lens' GetSchemaResponse Int Source #
The response's http status code.