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 |
Creates an analytics category. Amazon Transcribe applies the conditions specified by your analytics categories to your call analytics jobs. For each analytics category, you specify one or more rules. For example, you can specify a rule that the customer sentiment was neutral or negative within that category. If you start a call analytics job, Amazon Transcribe applies the category to the analytics job that you've specified.
Synopsis
- data CreateCallAnalyticsCategory = CreateCallAnalyticsCategory' {
- categoryName :: Text
- rules :: NonEmpty Rule
- newCreateCallAnalyticsCategory :: Text -> NonEmpty Rule -> CreateCallAnalyticsCategory
- createCallAnalyticsCategory_categoryName :: Lens' CreateCallAnalyticsCategory Text
- createCallAnalyticsCategory_rules :: Lens' CreateCallAnalyticsCategory (NonEmpty Rule)
- data CreateCallAnalyticsCategoryResponse = CreateCallAnalyticsCategoryResponse' {}
- newCreateCallAnalyticsCategoryResponse :: Int -> CreateCallAnalyticsCategoryResponse
- createCallAnalyticsCategoryResponse_categoryProperties :: Lens' CreateCallAnalyticsCategoryResponse (Maybe CategoryProperties)
- createCallAnalyticsCategoryResponse_httpStatus :: Lens' CreateCallAnalyticsCategoryResponse Int
Creating a Request
data CreateCallAnalyticsCategory Source #
See: newCreateCallAnalyticsCategory
smart constructor.
CreateCallAnalyticsCategory' | |
|
Instances
newCreateCallAnalyticsCategory Source #
Create a value of CreateCallAnalyticsCategory
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:categoryName:CreateCallAnalyticsCategory'
, createCallAnalyticsCategory_categoryName
- The name that you choose for your category when you create it.
$sel:rules:CreateCallAnalyticsCategory'
, createCallAnalyticsCategory_rules
- To create a category, you must specify between 1 and 20 rules. For each
rule, you specify a filter to be applied to the attributes of the call.
For example, you can specify a sentiment filter to detect if the
customer's sentiment was negative or neutral.
Request Lenses
createCallAnalyticsCategory_categoryName :: Lens' CreateCallAnalyticsCategory Text Source #
The name that you choose for your category when you create it.
createCallAnalyticsCategory_rules :: Lens' CreateCallAnalyticsCategory (NonEmpty Rule) Source #
To create a category, you must specify between 1 and 20 rules. For each rule, you specify a filter to be applied to the attributes of the call. For example, you can specify a sentiment filter to detect if the customer's sentiment was negative or neutral.
Destructuring the Response
data CreateCallAnalyticsCategoryResponse Source #
See: newCreateCallAnalyticsCategoryResponse
smart constructor.
CreateCallAnalyticsCategoryResponse' | |
|
Instances
newCreateCallAnalyticsCategoryResponse Source #
Create a value of CreateCallAnalyticsCategoryResponse
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:categoryProperties:CreateCallAnalyticsCategoryResponse'
, createCallAnalyticsCategoryResponse_categoryProperties
- The rules and associated metadata used to create a category.
$sel:httpStatus:CreateCallAnalyticsCategoryResponse'
, createCallAnalyticsCategoryResponse_httpStatus
- The response's http status code.
Response Lenses
createCallAnalyticsCategoryResponse_categoryProperties :: Lens' CreateCallAnalyticsCategoryResponse (Maybe CategoryProperties) Source #
The rules and associated metadata used to create a category.
createCallAnalyticsCategoryResponse_httpStatus :: Lens' CreateCallAnalyticsCategoryResponse Int Source #
The response's http status code.