Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns a list of schema versions that you have created, with minimal information. Schema versions in Deleted status will not be included in the results. Empty results will be returned if there are no schema versions available.
This operation returns paginated results.
Synopsis
- data ListSchemaVersions = ListSchemaVersions' {}
- newListSchemaVersions :: SchemaId -> ListSchemaVersions
- listSchemaVersions_nextToken :: Lens' ListSchemaVersions (Maybe Text)
- listSchemaVersions_maxResults :: Lens' ListSchemaVersions (Maybe Natural)
- listSchemaVersions_schemaId :: Lens' ListSchemaVersions SchemaId
- data ListSchemaVersionsResponse = ListSchemaVersionsResponse' {
- schemas :: Maybe [SchemaVersionListItem]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListSchemaVersionsResponse :: Int -> ListSchemaVersionsResponse
- listSchemaVersionsResponse_schemas :: Lens' ListSchemaVersionsResponse (Maybe [SchemaVersionListItem])
- listSchemaVersionsResponse_nextToken :: Lens' ListSchemaVersionsResponse (Maybe Text)
- listSchemaVersionsResponse_httpStatus :: Lens' ListSchemaVersionsResponse Int
Creating a Request
data ListSchemaVersions Source #
See: newListSchemaVersions
smart constructor.
ListSchemaVersions' | |
|
Instances
newListSchemaVersions Source #
Create a value of ListSchemaVersions
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:nextToken:ListSchemaVersions'
, listSchemaVersions_nextToken
- A continuation token, if this is a continuation call.
$sel:maxResults:ListSchemaVersions'
, listSchemaVersions_maxResults
- Maximum number of results required per page. If the value is not
supplied, this will be defaulted to 25 per page.
$sel:schemaId:ListSchemaVersions'
, listSchemaVersions_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
SchemaArn
orSchemaName
andRegistryName
has to be provided. - SchemaId$SchemaName: The name of the schema. Either
SchemaArn
orSchemaName
andRegistryName
has to be provided.
Request Lenses
listSchemaVersions_nextToken :: Lens' ListSchemaVersions (Maybe Text) Source #
A continuation token, if this is a continuation call.
listSchemaVersions_maxResults :: Lens' ListSchemaVersions (Maybe Natural) Source #
Maximum number of results required per page. If the value is not supplied, this will be defaulted to 25 per page.
listSchemaVersions_schemaId :: Lens' ListSchemaVersions 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
SchemaArn
orSchemaName
andRegistryName
has to be provided. - SchemaId$SchemaName: The name of the schema. Either
SchemaArn
orSchemaName
andRegistryName
has to be provided.
Destructuring the Response
data ListSchemaVersionsResponse Source #
See: newListSchemaVersionsResponse
smart constructor.
ListSchemaVersionsResponse' | |
|
Instances
newListSchemaVersionsResponse Source #
Create a value of ListSchemaVersionsResponse
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:schemas:ListSchemaVersionsResponse'
, listSchemaVersionsResponse_schemas
- An array of SchemaVersionList
objects containing details of each
schema version.
$sel:nextToken:ListSchemaVersions'
, listSchemaVersionsResponse_nextToken
- A continuation token for paginating the returned list of tokens,
returned if the current segment of the list is not the last.
$sel:httpStatus:ListSchemaVersionsResponse'
, listSchemaVersionsResponse_httpStatus
- The response's http status code.
Response Lenses
listSchemaVersionsResponse_schemas :: Lens' ListSchemaVersionsResponse (Maybe [SchemaVersionListItem]) Source #
An array of SchemaVersionList
objects containing details of each
schema version.
listSchemaVersionsResponse_nextToken :: Lens' ListSchemaVersionsResponse (Maybe Text) Source #
A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.
listSchemaVersionsResponse_httpStatus :: Lens' ListSchemaVersionsResponse Int Source #
The response's http status code.