create_experience
async
¶
create_experience(
name: ExperienceName,
index_id: IndexId,
*,
config_overrides: Optional[AsynckendraClientConfig] = None,
role_arn: Optional[RoleArn] = None,
configuration: Optional[ExperienceConfiguration] = None,
description: Optional[Description] = None,
client_token: Optional[ClientTokenName] = None,
) -> CreateExperienceResponse
Creates an Amazon Kendra experience such as a search application. For more information on creating a search application experience, including using the Python and Java SDKs, see Building a search experience with no code.
Parameters:
-
name(ExperienceName) –A name for your Amazon Kendra experience.
-
index_id(IndexId) –The identifier of the index for your Amazon Kendra experience.
-
role_arn(Optional[RoleArn], default:None) –The Amazon Resource Name (ARN) of an IAM role with permission to access
QueryAPI,GetQuerySuggestionsAPI, and other required APIs. The role also must include permission to access IAM Identity Center that stores your user and group information. For more information, see IAM access roles for Amazon Kendra. -
configuration(Optional[ExperienceConfiguration], default:None) –Configuration information for your Amazon Kendra experience. This includes
ContentSourceConfiguration, which specifies the data source IDs and/or FAQ IDs, andUserIdentityConfiguration, which specifies the user or group information to grant access to your Amazon Kendra experience. -
description(Optional[Description], default:None) –A description for your Amazon Kendra experience.
-
client_token(Optional[ClientTokenName], default:None) –A token that you provide to identify the request to create your Amazon Kendra experience. Multiple calls to the
CreateExperienceAPI with the same client token creates only one Amazon Kendra experience.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.
-
ConflictException–A conflict occurred with the request. Please fix any inconsistences with your resources and try again.
-
InternalServerException–An issue occurred with the internal server used for your Amazon Kendra service. Please wait a few minutes and try again, or contact Support for help.
-
ResourceNotFoundException–The resource you want to use doesn’t exist. Please check you have provided the correct resource and try again.
-
ServiceQuotaExceededException– -
ThrottlingException–The request was denied due to request throttling. Please reduce the number of requests and try again.
-
ValidationException–The input fails to satisfy the constraints set by the Amazon Kendra service. Please provide the correct input and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kendra/_services/async_kendra.py
943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 | |