OpenSearchService / Client / get_capability
get_capability¶
- OpenSearchService.Client.get_capability(**kwargs)¶
Retrieves information about a registered capability for an OpenSearch UI application, including its configuration and current status.
See also: AWS API Documentation
Request Syntax
response = client.get_capability( applicationId='string', capabilityName='string' )
- Parameters:
applicationId (string) –
[REQUIRED]
The unique identifier of the OpenSearch UI application.
capabilityName (string) –
[REQUIRED]
The name of the capability to retrieve information about.
- Return type:
dict
- Returns:
Response Syntax
{ 'capabilityName': 'string', 'applicationId': 'string', 'status': 'creating'|'create_failed'|'active'|'updating'|'update_failed'|'deleting'|'delete_failed', 'capabilityConfig': { 'aiConfig': {} }, 'failures': [ { 'reason': 'KMS_KEY_INSUFFICIENT_PERMISSION', 'details': 'string' }, ] }
Response Structure
(dict) –
The result of a
GetCapabilityrequest. Contains details about the capability.capabilityName (string) –
The name of the capability.
applicationId (string) –
The unique identifier of the OpenSearch UI application.
status (string) –
The current status of the capability. Possible values:
creating,create_failed,active,updating,update_failed,deleting,delete_failed.capabilityConfig (dict) –
The configuration settings for the capability, including capability-specific settings such as AI configuration.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
aiConfig. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
aiConfig (dict) –
Configuration settings for AI-powered capabilities.
failures (list) –
A list of failures associated with the capability, if any. Each failure includes a reason and details about what went wrong.
(dict) –
Information about a capability failure.
reason (string) –
The reason for the capability failure. Possible values:
KMS_KEY_INSUFFICIENT_PERMISSION.details (string) –
Additional details about the capability failure.
Exceptions
OpenSearchService.Client.exceptions.ValidationExceptionOpenSearchService.Client.exceptions.AccessDeniedExceptionOpenSearchService.Client.exceptions.InternalExceptionOpenSearchService.Client.exceptions.ResourceNotFoundExceptionOpenSearchService.Client.exceptions.DisabledOperationException