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 |
Returns a list of the profiles for your system. If you want to limit the
results to a certain number, supply a value for the MaxResults
parameter. If you ran the command previously and received a value for
NextToken
, you can supply that value to continue listing profiles from
where you left off.
This operation returns paginated results.
Synopsis
- data ListProfiles = ListProfiles' {}
- newListProfiles :: ListProfiles
- listProfiles_maxResults :: Lens' ListProfiles (Maybe Natural)
- listProfiles_nextToken :: Lens' ListProfiles (Maybe Text)
- listProfiles_profileType :: Lens' ListProfiles (Maybe ProfileType)
- data ListProfilesResponse = ListProfilesResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- profiles :: [ListedProfile]
- newListProfilesResponse :: Int -> ListProfilesResponse
- listProfilesResponse_nextToken :: Lens' ListProfilesResponse (Maybe Text)
- listProfilesResponse_httpStatus :: Lens' ListProfilesResponse Int
- listProfilesResponse_profiles :: Lens' ListProfilesResponse [ListedProfile]
Creating a Request
data ListProfiles Source #
See: newListProfiles
smart constructor.
ListProfiles' | |
|
Instances
newListProfiles :: ListProfiles Source #
Create a value of ListProfiles
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:maxResults:ListProfiles'
, listProfiles_maxResults
- The maximum number of profiles to return.
ListProfiles
, listProfiles_nextToken
- When there are additional results that were not returned, a NextToken
parameter is returned. You can use that value for a subsequent call to
ListProfiles
to continue listing results.
ListProfiles
, listProfiles_profileType
- Indicates whether to list only LOCAL
type profiles or only PARTNER
type profiles. If not supplied in the request, the command lists all
types of profiles.
Request Lenses
listProfiles_maxResults :: Lens' ListProfiles (Maybe Natural) Source #
The maximum number of profiles to return.
listProfiles_nextToken :: Lens' ListProfiles (Maybe Text) Source #
When there are additional results that were not returned, a NextToken
parameter is returned. You can use that value for a subsequent call to
ListProfiles
to continue listing results.
listProfiles_profileType :: Lens' ListProfiles (Maybe ProfileType) Source #
Indicates whether to list only LOCAL
type profiles or only PARTNER
type profiles. If not supplied in the request, the command lists all
types of profiles.
Destructuring the Response
data ListProfilesResponse Source #
See: newListProfilesResponse
smart constructor.
ListProfilesResponse' | |
|
Instances
newListProfilesResponse Source #
Create a value of ListProfilesResponse
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:
ListProfiles
, listProfilesResponse_nextToken
- Returns a token that you can use to call ListProfiles
again and
receive additional results, if there are any.
$sel:httpStatus:ListProfilesResponse'
, listProfilesResponse_httpStatus
- The response's http status code.
$sel:profiles:ListProfilesResponse'
, listProfilesResponse_profiles
- Returns an array, where each item contains the details of a profile.
Response Lenses
listProfilesResponse_nextToken :: Lens' ListProfilesResponse (Maybe Text) Source #
Returns a token that you can use to call ListProfiles
again and
receive additional results, if there are any.
listProfilesResponse_httpStatus :: Lens' ListProfilesResponse Int Source #
The response's http status code.
listProfilesResponse_profiles :: Lens' ListProfilesResponse [ListedProfile] Source #
Returns an array, where each item contains the details of a profile.