| 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 |
Amazonka.Wisdom.NotifyRecommendationsReceived
Description
Removes the specified recommendations from the specified assistant's
queue of newly available recommendations. You can use this API in
conjunction with
GetRecommendations
and a waitTimeSeconds input for long-polling behavior and avoiding
duplicate recommendations.
Synopsis
- data NotifyRecommendationsReceived = NotifyRecommendationsReceived' {
- assistantId :: Text
- recommendationIds :: [Text]
- sessionId :: Text
- newNotifyRecommendationsReceived :: Text -> Text -> NotifyRecommendationsReceived
- notifyRecommendationsReceived_assistantId :: Lens' NotifyRecommendationsReceived Text
- notifyRecommendationsReceived_recommendationIds :: Lens' NotifyRecommendationsReceived [Text]
- notifyRecommendationsReceived_sessionId :: Lens' NotifyRecommendationsReceived Text
- data NotifyRecommendationsReceivedResponse = NotifyRecommendationsReceivedResponse' {}
- newNotifyRecommendationsReceivedResponse :: Int -> NotifyRecommendationsReceivedResponse
- notifyRecommendationsReceivedResponse_errors :: Lens' NotifyRecommendationsReceivedResponse (Maybe [NotifyRecommendationsReceivedError])
- notifyRecommendationsReceivedResponse_recommendationIds :: Lens' NotifyRecommendationsReceivedResponse (Maybe [Text])
- notifyRecommendationsReceivedResponse_httpStatus :: Lens' NotifyRecommendationsReceivedResponse Int
Creating a Request
data NotifyRecommendationsReceived Source #
See: newNotifyRecommendationsReceived smart constructor.
Constructors
| NotifyRecommendationsReceived' | |
Fields
| |
Instances
newNotifyRecommendationsReceived Source #
Arguments
| :: Text | |
| -> Text | |
| -> NotifyRecommendationsReceived |
Create a value of NotifyRecommendationsReceived 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:
NotifyRecommendationsReceived, notifyRecommendationsReceived_assistantId - The identifier of the Wisdom assistant. Can be either the ID or the ARN.
URLs cannot contain the ARN.
NotifyRecommendationsReceived, notifyRecommendationsReceived_recommendationIds - The identifiers of the recommendations.
NotifyRecommendationsReceived, notifyRecommendationsReceived_sessionId - The identifier of the session. Can be either the ID or the ARN. URLs
cannot contain the ARN.
Request Lenses
notifyRecommendationsReceived_assistantId :: Lens' NotifyRecommendationsReceived Text Source #
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
notifyRecommendationsReceived_recommendationIds :: Lens' NotifyRecommendationsReceived [Text] Source #
The identifiers of the recommendations.
notifyRecommendationsReceived_sessionId :: Lens' NotifyRecommendationsReceived Text Source #
The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
Destructuring the Response
data NotifyRecommendationsReceivedResponse Source #
See: newNotifyRecommendationsReceivedResponse smart constructor.
Constructors
| NotifyRecommendationsReceivedResponse' | |
Fields
| |
Instances
newNotifyRecommendationsReceivedResponse Source #
Arguments
| :: Int | |
| -> NotifyRecommendationsReceivedResponse |
Create a value of NotifyRecommendationsReceivedResponse 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:errors:NotifyRecommendationsReceivedResponse', notifyRecommendationsReceivedResponse_errors - The identifiers of recommendations that are causing errors.
NotifyRecommendationsReceived, notifyRecommendationsReceivedResponse_recommendationIds - The identifiers of the recommendations.
$sel:httpStatus:NotifyRecommendationsReceivedResponse', notifyRecommendationsReceivedResponse_httpStatus - The response's http status code.
Response Lenses
notifyRecommendationsReceivedResponse_errors :: Lens' NotifyRecommendationsReceivedResponse (Maybe [NotifyRecommendationsReceivedError]) Source #
The identifiers of recommendations that are causing errors.
notifyRecommendationsReceivedResponse_recommendationIds :: Lens' NotifyRecommendationsReceivedResponse (Maybe [Text]) Source #
The identifiers of the recommendations.
notifyRecommendationsReceivedResponse_httpStatus :: Lens' NotifyRecommendationsReceivedResponse Int Source #
The response's http status code.