| 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.Schemas.GetDiscoveredSchema
Description
Get the discovered schema that was generated based on sampled events.
Synopsis
- data GetDiscoveredSchema = GetDiscoveredSchema' {}
- newGetDiscoveredSchema :: Type -> NonEmpty Text -> GetDiscoveredSchema
- getDiscoveredSchema_type :: Lens' GetDiscoveredSchema Type
- getDiscoveredSchema_events :: Lens' GetDiscoveredSchema (NonEmpty Text)
- data GetDiscoveredSchemaResponse = GetDiscoveredSchemaResponse' {
- content :: Maybe Text
- httpStatus :: Int
- newGetDiscoveredSchemaResponse :: Int -> GetDiscoveredSchemaResponse
- getDiscoveredSchemaResponse_content :: Lens' GetDiscoveredSchemaResponse (Maybe Text)
- getDiscoveredSchemaResponse_httpStatus :: Lens' GetDiscoveredSchemaResponse Int
Creating a Request
data GetDiscoveredSchema Source #
See: newGetDiscoveredSchema smart constructor.
Constructors
| GetDiscoveredSchema' | |
Instances
newGetDiscoveredSchema Source #
Arguments
| :: Type | |
| -> NonEmpty Text | |
| -> GetDiscoveredSchema |
Create a value of GetDiscoveredSchema 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:
GetDiscoveredSchema, getDiscoveredSchema_type - The type of event.
$sel:events:GetDiscoveredSchema', getDiscoveredSchema_events - An array of strings where each string is a JSON event. These are the
events that were used to generate the schema. The array includes a
single type of event and has a maximum size of 10 events.
Request Lenses
getDiscoveredSchema_type :: Lens' GetDiscoveredSchema Type Source #
The type of event.
getDiscoveredSchema_events :: Lens' GetDiscoveredSchema (NonEmpty Text) Source #
An array of strings where each string is a JSON event. These are the events that were used to generate the schema. The array includes a single type of event and has a maximum size of 10 events.
Destructuring the Response
data GetDiscoveredSchemaResponse Source #
See: newGetDiscoveredSchemaResponse smart constructor.
Constructors
| GetDiscoveredSchemaResponse' | |
Fields
| |
Instances
newGetDiscoveredSchemaResponse Source #
Create a value of GetDiscoveredSchemaResponse 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:content:GetDiscoveredSchemaResponse', getDiscoveredSchemaResponse_content - The source of the schema definition.
$sel:httpStatus:GetDiscoveredSchemaResponse', getDiscoveredSchemaResponse_httpStatus - The response's http status code.
Response Lenses
getDiscoveredSchemaResponse_content :: Lens' GetDiscoveredSchemaResponse (Maybe Text) Source #
The source of the schema definition.
getDiscoveredSchemaResponse_httpStatus :: Lens' GetDiscoveredSchemaResponse Int Source #
The response's http status code.