Skip to main content

call_analytics_categories

Creates, updates, deletes, gets or lists a call_analytics_categories resource.

Overview

Namecall_analytics_categories
TypeResource
Idaws.transcribe.call_analytics_categories

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
category_namestringThe name of the Call Analytics category. Category names are case sensitive and must be unique within an Amazon Web Services account. (pattern: <code>^[0-9a-zA-Z._-]+</code>)
create_timestring (date-time)The date and time the specified Call Analytics category was created. Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC. For example, 2022-05-04T12:32:58.761000-07:00 represents 12:32 PM UTC-7 on May 4, 2022.
input_typestringThe input type associated with the specified category. POST_CALL refers to a category that is applied to batch transcriptions; REAL_TIME refers to a category that is applied to streaming transcriptions. (REAL_TIME, POST_CALL)
last_update_timestring (date-time)The date and time the specified Call Analytics category was last updated. Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC. For example, 2022-05-05T12:45:32.691000-07:00 represents 12:45 PM UTC-7 on May 5, 2022.
rulesarrayThe rules used to define a Call Analytics category. Each category can have between 1 and 20 rules.
tagsarrayThe tags, each in the form of a key:value pair, assigned to the specified call analytics category.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_call_analytics_categoryselectregionProvides information about the specified Call Analytics category. To get a list of your Call Analytics categories, use the operation.
list_call_analytics_categoriesselectregionProvides a list of Call Analytics categories, including all rules that make up each category. To get detailed information about a specific Call Analytics category, use the operation.
create_call_analytics_categoryinsertregion, CategoryName, RulesCreates a new Call Analytics category. All categories are automatically applied to your Call Analytics transcriptions. Note that in order to apply categories to your transcriptions, you must create them before submitting your transcription request, as categories cannot be applied retroactively. When creating a new category, you can use the InputType parameter to label the category as a POST_CALL or a REAL_TIME category. POST_CALL categories can only be applied to post-call transcriptions and REAL_TIME categories can only be applied to real-time transcriptions. If you do not include InputType, your category is created as a POST_CALL category by default. Call Analytics categories are composed of rules. For each category, you must create between 1 and 20 rules. Rules can include these parameters: , , , and . To update an existing category, see . To learn more about Call Analytics categories, see Creating categories for post-call transcriptions and Creating categories for real-time transcriptions.
update_call_analytics_categoryupdateregion, CategoryName, RulesUpdates the specified Call Analytics category with new rules. Note that the UpdateCallAnalyticsCategory operation overwrites all existing rules contained in the specified category. You cannot append additional rules onto an existing category. To create a new category, see .
delete_call_analytics_categorydeleteregionDeletes a Call Analytics category. To use this operation, specify the name of the category you want to delete using CategoryName. Category names are case sensitive.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Provides information about the specified Call Analytics category. To get a list of your Call Analytics categories, use the operation.

SELECT
category_name,
create_time,
input_type,
last_update_time,
rules,
tags
FROM aws.transcribe.call_analytics_categories
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new Call Analytics category. All categories are automatically applied to your Call Analytics transcriptions. Note that in order to apply categories to your transcriptions, you must create them before submitting your transcription request, as categories cannot be applied retroactively. When creating a new category, you can use the InputType parameter to label the category as a POST_CALL or a REAL_TIME category. POST_CALL categories can only be applied to post-call transcriptions and REAL_TIME categories can only be applied to real-time transcriptions. If you do not include InputType, your category is created as a POST_CALL category by default. Call Analytics categories are composed of rules. For each category, you must create between 1 and 20 rules. Rules can include these parameters: , , , and . To update an existing category, see . To learn more about Call Analytics categories, see Creating categories for post-call transcriptions and Creating categories for real-time transcriptions.

INSERT INTO aws.transcribe.call_analytics_categories (
CategoryName,
Rules,
Tags,
InputType,
region
)
SELECT
'{{ CategoryName }}' /* required */,
'{{ Rules }}' /* required */,
'{{ Tags }}',
'{{ InputType }}',
'{{ region }}'
RETURNING
category_properties
;

UPDATE examples

Updates the specified Call Analytics category with new rules. Note that the UpdateCallAnalyticsCategory operation overwrites all existing rules contained in the specified category. You cannot append additional rules onto an existing category. To create a new category, see .

UPDATE aws.transcribe.call_analytics_categories
SET
CategoryName = '{{ CategoryName }}',
Rules = '{{ Rules }}',
InputType = '{{ InputType }}'
WHERE
region = '{{ region }}' --required
AND CategoryName = '{{ CategoryName }}' --required
AND Rules = '{{ Rules }}' --required
RETURNING
category_properties;

DELETE examples

Deletes a Call Analytics category. To use this operation, specify the name of the category you want to delete using CategoryName. Category names are case sensitive.

DELETE FROM aws.transcribe.call_analytics_categories
WHERE region = '{{ region }}' --required
;