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 |
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_aggregator :: Lens' GetInventorySchema (Maybe Bool)
- getInventorySchema_maxResults :: Lens' GetInventorySchema (Maybe Natural)
- getInventorySchema_nextToken :: Lens' GetInventorySchema (Maybe Text)
- getInventorySchema_subType :: Lens' GetInventorySchema (Maybe Bool)
- getInventorySchema_typeName :: Lens' GetInventorySchema (Maybe Text)
- data GetInventorySchemaResponse = GetInventorySchemaResponse' {
- nextToken :: Maybe Text
- schemas :: Maybe [InventoryItemSchema]
- httpStatus :: Int
- newGetInventorySchemaResponse :: Int -> GetInventorySchemaResponse
- getInventorySchemaResponse_nextToken :: Lens' GetInventorySchemaResponse (Maybe Text)
- getInventorySchemaResponse_schemas :: Lens' GetInventorySchemaResponse (Maybe [InventoryItemSchema])
- 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: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: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.
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.
GetInventorySchema
, getInventorySchema_typeName
- The type of inventory item to return.
Request Lenses
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_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.
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_typeName :: Lens' GetInventorySchema (Maybe Text) Source #
The type of inventory item to return.
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:
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:schemas:GetInventorySchemaResponse'
, getInventorySchemaResponse_schemas
- Inventory schemas returned by the request.
$sel:httpStatus:GetInventorySchemaResponse'
, getInventorySchemaResponse_httpStatus
- The response's http status code.
Response Lenses
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_schemas :: Lens' GetInventorySchemaResponse (Maybe [InventoryItemSchema]) Source #
Inventory schemas returned by the request.
getInventorySchemaResponse_httpStatus :: Lens' GetInventorySchemaResponse Int Source #
The response's http status code.