Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Gets usage information for an identity, including number of datasets and data usage.
This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.
- describeIdentityUsage :: Text -> Text -> DescribeIdentityUsage
- data DescribeIdentityUsage
- diuIdentityPoolId :: Lens' DescribeIdentityUsage Text
- diuIdentityId :: Lens' DescribeIdentityUsage Text
- describeIdentityUsageResponse :: Int -> DescribeIdentityUsageResponse
- data DescribeIdentityUsageResponse
- diursIdentityUsage :: Lens' DescribeIdentityUsageResponse (Maybe IdentityUsage)
- diursResponseStatus :: Lens' DescribeIdentityUsageResponse Int
Creating a Request
Creates a value of DescribeIdentityUsage
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeIdentityUsage Source
A request for information about the usage of an identity pool.
See: describeIdentityUsage
smart constructor.
Request Lenses
diuIdentityPoolId :: Lens' DescribeIdentityUsage Text Source
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
diuIdentityId :: Lens' DescribeIdentityUsage Text Source
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
Destructuring the Response
describeIdentityUsageResponse Source
Creates a value of DescribeIdentityUsageResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeIdentityUsageResponse Source
The response to a successful DescribeIdentityUsage request.
See: describeIdentityUsageResponse
smart constructor.
Response Lenses
diursIdentityUsage :: Lens' DescribeIdentityUsageResponse (Maybe IdentityUsage) Source
Usage information for the identity.
diursResponseStatus :: Lens' DescribeIdentityUsageResponse Int Source
The response status code.