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 schemas with minimal details. Schemas in Deleting status will not be included in the results. Empty results will be returned if there are no schemas available.
When the RegistryId
is not provided, all the schemas across registries
will be part of the API response.
This operation returns paginated results.
Synopsis
- data ListSchemas = ListSchemas' {}
- newListSchemas :: ListSchemas
- listSchemas_registryId :: Lens' ListSchemas (Maybe RegistryId)
- listSchemas_nextToken :: Lens' ListSchemas (Maybe Text)
- listSchemas_maxResults :: Lens' ListSchemas (Maybe Natural)
- data ListSchemasResponse = ListSchemasResponse' {
- schemas :: Maybe [SchemaListItem]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListSchemasResponse :: Int -> ListSchemasResponse
- listSchemasResponse_schemas :: Lens' ListSchemasResponse (Maybe [SchemaListItem])
- listSchemasResponse_nextToken :: Lens' ListSchemasResponse (Maybe Text)
- listSchemasResponse_httpStatus :: Lens' ListSchemasResponse Int
Creating a Request
data ListSchemas Source #
See: newListSchemas
smart constructor.
ListSchemas' | |
|
Instances
newListSchemas :: ListSchemas Source #
Create a value of ListSchemas
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:registryId:ListSchemas'
, listSchemas_registryId
- A wrapper structure that may contain the registry name and Amazon
Resource Name (ARN).
$sel:nextToken:ListSchemas'
, listSchemas_nextToken
- A continuation token, if this is a continuation call.
$sel:maxResults:ListSchemas'
, listSchemas_maxResults
- Maximum number of results required per page. If the value is not
supplied, this will be defaulted to 25 per page.
Request Lenses
listSchemas_registryId :: Lens' ListSchemas (Maybe RegistryId) Source #
A wrapper structure that may contain the registry name and Amazon Resource Name (ARN).
listSchemas_nextToken :: Lens' ListSchemas (Maybe Text) Source #
A continuation token, if this is a continuation call.
listSchemas_maxResults :: Lens' ListSchemas (Maybe Natural) Source #
Maximum number of results required per page. If the value is not supplied, this will be defaulted to 25 per page.
Destructuring the Response
data ListSchemasResponse Source #
See: newListSchemasResponse
smart constructor.
ListSchemasResponse' | |
|
Instances
newListSchemasResponse Source #
Create a value of ListSchemasResponse
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:ListSchemasResponse'
, listSchemasResponse_schemas
- An array of SchemaListItem
objects containing details of each schema.
$sel:nextToken:ListSchemas'
, listSchemasResponse_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:ListSchemasResponse'
, listSchemasResponse_httpStatus
- The response's http status code.
Response Lenses
listSchemasResponse_schemas :: Lens' ListSchemasResponse (Maybe [SchemaListItem]) Source #
An array of SchemaListItem
objects containing details of each schema.
listSchemasResponse_nextToken :: Lens' ListSchemasResponse (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.
listSchemasResponse_httpStatus :: Lens' ListSchemasResponse Int Source #
The response's http status code.