Copyright | (c) 2013-2018 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 |
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.
Synopsis
- 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
describeIdentityUsage Source #
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:
diuIdentityPoolId
- 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
- 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.
data DescribeIdentityUsage Source #
A request for information about the usage of an identity pool.
See: describeIdentityUsage
smart constructor.
Instances
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:
diursIdentityUsage
- Usage information for the identity.diursResponseStatus
- -- | The response status code.
data DescribeIdentityUsageResponse Source #
The response to a successful DescribeIdentityUsage request.
See: describeIdentityUsageResponse
smart constructor.
Instances
Response Lenses
diursIdentityUsage :: Lens' DescribeIdentityUsageResponse (Maybe IdentityUsage) Source #
Usage information for the identity.
diursResponseStatus :: Lens' DescribeIdentityUsageResponse Int Source #
- - | The response status code.