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 |
Gets the name and additional information about a celebrity based on their Amazon Rekognition ID. The additional information is returned as an array of URLs. If there is no additional information about the celebrity, this list is empty.
For more information, see Recognizing Celebrities in an Image in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the
rekognition:GetCelebrityInfo
action.
Synopsis
- data GetCelebrityInfo = GetCelebrityInfo' {}
- newGetCelebrityInfo :: Text -> GetCelebrityInfo
- getCelebrityInfo_id :: Lens' GetCelebrityInfo Text
- data GetCelebrityInfoResponse = GetCelebrityInfoResponse' {
- urls :: Maybe [Text]
- knownGender :: Maybe KnownGender
- name :: Maybe Text
- httpStatus :: Int
- newGetCelebrityInfoResponse :: Int -> GetCelebrityInfoResponse
- getCelebrityInfoResponse_urls :: Lens' GetCelebrityInfoResponse (Maybe [Text])
- getCelebrityInfoResponse_knownGender :: Lens' GetCelebrityInfoResponse (Maybe KnownGender)
- getCelebrityInfoResponse_name :: Lens' GetCelebrityInfoResponse (Maybe Text)
- getCelebrityInfoResponse_httpStatus :: Lens' GetCelebrityInfoResponse Int
Creating a Request
data GetCelebrityInfo Source #
See: newGetCelebrityInfo
smart constructor.
Instances
Create a value of GetCelebrityInfo
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:id:GetCelebrityInfo'
, getCelebrityInfo_id
- The ID for the celebrity. You get the celebrity ID from a call to the
RecognizeCelebrities operation, which recognizes celebrities in an
image.
Request Lenses
getCelebrityInfo_id :: Lens' GetCelebrityInfo Text Source #
The ID for the celebrity. You get the celebrity ID from a call to the RecognizeCelebrities operation, which recognizes celebrities in an image.
Destructuring the Response
data GetCelebrityInfoResponse Source #
See: newGetCelebrityInfoResponse
smart constructor.
GetCelebrityInfoResponse' | |
|
Instances
newGetCelebrityInfoResponse Source #
Create a value of GetCelebrityInfoResponse
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:urls:GetCelebrityInfoResponse'
, getCelebrityInfoResponse_urls
- An array of URLs pointing to additional celebrity information.
$sel:knownGender:GetCelebrityInfoResponse'
, getCelebrityInfoResponse_knownGender
- Retrieves the known gender for the celebrity.
$sel:name:GetCelebrityInfoResponse'
, getCelebrityInfoResponse_name
- The name of the celebrity.
$sel:httpStatus:GetCelebrityInfoResponse'
, getCelebrityInfoResponse_httpStatus
- The response's http status code.
Response Lenses
getCelebrityInfoResponse_urls :: Lens' GetCelebrityInfoResponse (Maybe [Text]) Source #
An array of URLs pointing to additional celebrity information.
getCelebrityInfoResponse_knownGender :: Lens' GetCelebrityInfoResponse (Maybe KnownGender) Source #
Retrieves the known gender for the celebrity.
getCelebrityInfoResponse_name :: Lens' GetCelebrityInfoResponse (Maybe Text) Source #
The name of the celebrity.
getCelebrityInfoResponse_httpStatus :: Lens' GetCelebrityInfoResponse Int Source #
The response's http status code.