register_capability
¶
register_capability(
application_id: ApplicationId,
capability_name: CapabilityName,
capability_config: CapabilityBaseRequestConfig,
*,
config_overrides: Optional[OpenSearchClientConfig] = None,
) -> RegisterCapabilityResponse
Registers a capability for an OpenSearch UI application. Use this operation to enable specific capabilities, such as AI features, for a given application. The capability configuration defines the type and settings of the capability to register. For more information about the AI features, see Agentic AI for OpenSearch UI.
Parameters:
-
application_id(ApplicationId) –The unique identifier of the OpenSearch UI application to register the capability for.
-
capability_name(CapabilityName) –The name of the capability to register. Must be between 3 and 30 characters and contain only alphanumeric characters and hyphens. This identifies the type of capability being enabled for the application. For registering AI Assistant capability, use
ai-capability -
capability_config(CapabilityBaseRequestConfig) –The configuration settings for the capability being registered. This includes capability-specific settings such as AI configuration.
Raises:
-
AccessDeniedException–An error occurred because you don't have permissions to access the resource.
-
ConflictException–An error occurred because the client attempts to remove a resource that is currently in use.
-
DisabledOperationException–An error occured because the client wanted to access an unsupported operation.
-
InternalException–Request processing failed because of an unknown error, exception, or internal failure.
-
ResourceNotFoundException–An exception for accessing or deleting a resource that doesn't exist.
-
ServiceQuotaExceededException–An exception for when a request would cause a service quota to be exceeded.
-
ValidationException–An exception for accessing or deleting a resource that doesn't exist.
-
UnknownServiceError–The service returned an error code this client does not model.