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 |
Return a list of inventory type names for the account, or return a list of attribute names for a specific Inventory item type.
This operation returns paginated results.
Synopsis
- data GetInventorySchema = GetInventorySchema' {}
- newGetInventorySchema :: GetInventorySchema
- getInventorySchema_typeName :: Lens' GetInventorySchema (Maybe Text)
- getInventorySchema_aggregator :: Lens' GetInventorySchema (Maybe Bool)
- getInventorySchema_nextToken :: Lens' GetInventorySchema (Maybe Text)
- getInventorySchema_subType :: Lens' GetInventorySchema (Maybe Bool)
- getInventorySchema_maxResults :: Lens' GetInventorySchema (Maybe Natural)
- data GetInventorySchemaResponse = GetInventorySchemaResponse' {
- schemas :: Maybe [InventoryItemSchema]
- nextToken :: Maybe Text
- httpStatus :: Int
- newGetInventorySchemaResponse :: Int -> GetInventorySchemaResponse
- getInventorySchemaResponse_schemas :: Lens' GetInventorySchemaResponse (Maybe [InventoryItemSchema])
- getInventorySchemaResponse_nextToken :: Lens' GetInventorySchemaResponse (Maybe Text)
- getInventorySchemaResponse_httpStatus :: Lens' GetInventorySchemaResponse Int
Creating a Request
data GetInventorySchema Source #
See: newGetInventorySchema
smart constructor.
GetInventorySchema' | |
|
Instances
newGetInventorySchema :: GetInventorySchema Source #
Create a value of GetInventorySchema
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:typeName:GetInventorySchema'
, getInventorySchema_typeName
- The type of inventory item to return.
$sel:aggregator:GetInventorySchema'
, getInventorySchema_aggregator
- Returns inventory schemas that support aggregation. For example, this
call returns the AWS:InstanceInformation
type, because it supports
aggregation based on the PlatformName
, PlatformType
, and
PlatformVersion
attributes.
$sel:nextToken:GetInventorySchema'
, getInventorySchema_nextToken
- The token for the next set of items to return. (You received this token
from a previous call.)
$sel:subType:GetInventorySchema'
, getInventorySchema_subType
- Returns the sub-type schema for a specified inventory type.
$sel:maxResults:GetInventorySchema'
, getInventorySchema_maxResults
- The maximum number of items to return for this call. The call also
returns a token that you can specify in a subsequent call to get the
next set of results.
Request Lenses
getInventorySchema_typeName :: Lens' GetInventorySchema (Maybe Text) Source #
The type of inventory item to return.
getInventorySchema_aggregator :: Lens' GetInventorySchema (Maybe Bool) Source #
Returns inventory schemas that support aggregation. For example, this
call returns the AWS:InstanceInformation
type, because it supports
aggregation based on the PlatformName
, PlatformType
, and
PlatformVersion
attributes.
getInventorySchema_nextToken :: Lens' GetInventorySchema (Maybe Text) Source #
The token for the next set of items to return. (You received this token from a previous call.)
getInventorySchema_subType :: Lens' GetInventorySchema (Maybe Bool) Source #
Returns the sub-type schema for a specified inventory type.
getInventorySchema_maxResults :: Lens' GetInventorySchema (Maybe Natural) Source #
The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
Destructuring the Response
data GetInventorySchemaResponse Source #
See: newGetInventorySchemaResponse
smart constructor.
GetInventorySchemaResponse' | |
|
Instances
newGetInventorySchemaResponse Source #
Create a value of GetInventorySchemaResponse
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:GetInventorySchemaResponse'
, getInventorySchemaResponse_schemas
- Inventory schemas returned by the request.
$sel:nextToken:GetInventorySchema'
, getInventorySchemaResponse_nextToken
- The token to use when requesting the next set of items. If there are no
additional items to return, the string is empty.
$sel:httpStatus:GetInventorySchemaResponse'
, getInventorySchemaResponse_httpStatus
- The response's http status code.
Response Lenses
getInventorySchemaResponse_schemas :: Lens' GetInventorySchemaResponse (Maybe [InventoryItemSchema]) Source #
Inventory schemas returned by the request.
getInventorySchemaResponse_nextToken :: Lens' GetInventorySchemaResponse (Maybe Text) Source #
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
getInventorySchemaResponse_httpStatus :: Lens' GetInventorySchemaResponse Int Source #
The response's http status code.