Skip to main content

applications

Creates, updates, deletes, gets or lists an applications resource.

Overview

Nameapplications
TypeResource
Idaws.qbusiness.applications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_arnstringThe Amazon Resource Name (ARN) of the Amazon Q Business application. (pattern: <code>arn:[a-z0-9-.]{1,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[^/].{0,1023}</code>)
application_idstringThe identifier of the Amazon Q Business application. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9-]{35}</code>)
attachments_configurationobjectSettings for whether end users can upload files directly during chat.
auto_subscription_configurationobjectSettings for auto-subscription behavior for this application. This is only applicable to SAML and OIDC applications.
client_ids_for_oidcarrayThe OIDC client ID for a Amazon Q Business application.
created_atstring (date-time)The Unix timestamp when the Amazon Q Business application was last updated.
descriptionstringA description for the Amazon Q Business application. (pattern: <code>[\s\S]*</code>)
display_namestringThe name of the Amazon Q Business application. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9_-]*</code>)
encryption_configurationobjectProvides the identifier of the KMS key used to encrypt data indexed by Amazon Q Business. Amazon Q Business doesn't support asymmetric keys.
errorobjectIf the Status field is set to ERROR, the ErrorMessage field contains a description of the error that caused the synchronization to fail.
iam_identity_provider_arnstringThe Amazon Resource Name (ARN) of an identity provider being used by an Amazon Q Business application. (pattern: <code>arn:[a-z0-9-.]{1,63}:iam::\d{12}:(oidc-provider|saml-provider)/[a-zA-Z0-9_./@-]+</code>)
identity_center_application_arnstringThe Amazon Resource Name (ARN) of the AWS IAM Identity Center instance attached to your Amazon Q Business application. (pattern: <code>arn:[a-z0-9-.]{1,63}:sso::\d{12}:application/(sso)?ins-[a-zA-Z0-9-.]{16}/apl-[a-zA-Z0-9]{16}</code>)
identity_typestringThe authentication type being used by a Amazon Q Business application. (AWS_IAM_IDP_SAML, AWS_IAM_IDP_OIDC, AWS_IAM_IDC, AWS_QUICKSIGHT_IDP, ANONYMOUS)
personalization_configurationobjectConfiguration information about chat response personalization. For more information, see Personalizing chat responses.
q_apps_configurationobjectConfiguration information about Amazon Q Apps.
quick_sight_configurationobjectThe Amazon Quick Suite configuration for an Amazon Q Business application that uses Quick Suite as the identity provider. For more information, see Creating an Amazon Quick Suite integrated application.
role_arnstringThe Amazon Resource Name (ARN) of the IAM with permissions to access your CloudWatch logs and metrics. (pattern: <code>arn:[a-z0-9-.]{1,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[^/].{0,1023}</code>)
statusstringThe status of the Amazon Q Business application. (CREATING, ACTIVE, DELETING, FAILED, UPDATING)
updated_atstring (date-time)The Unix timestamp when the Amazon Q Business application was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_applicationselectapplication_id, regionGets information about an existing Amazon Q Business application.
list_applicationsselectregionnextToken, maxResultsLists Amazon Q Business applications. Amazon Q Business applications may securely transmit data for processing across Amazon Web Services Regions within your geography. For more information, see Cross region inference in Amazon Q Business.
create_applicationinsertregion, displayNameCreates an Amazon Q Business application. There are new tiers for Amazon Q Business. Not all features in Amazon Q Business Pro are also available in Amazon Q Business Lite. For information on what's included in Amazon Q Business Lite and what's included in Amazon Q Business Pro, see Amazon Q Business tiers. You must use the Amazon Q Business console to assign subscription tiers to users. An Amazon Q Apps service linked role will be created if it's absent in the Amazon Web Services account when QAppsConfiguration is enabled in the request. For more information, see Using service-linked roles for Q Apps. When you create an application, Amazon Q Business may securely transmit data for processing from your selected Amazon Web Services region, but within your geography. For more information, see Cross region inference in Amazon Q Business.
associate_permissionupdateapplication_id, region, statementId, actions, principalAdds or updates a permission policy for a Amazon Q Business application, allowing cross-account access for an ISV. This operation creates a new policy statement for the specified Amazon Q Business application. The policy statement defines the IAM actions that the ISV is allowed to perform on the Amazon Q Business application's resources.
disassociate_permissionupdateapplication_id, statement_id, regionRemoves a permission policy from a Amazon Q Business application, revoking the cross-account access that was previously granted to an ISV. This operation deletes the specified policy statement from the application's permission policy.
update_applicationupdateapplication_id, regionUpdates an existing Amazon Q Business application. Amazon Q Business applications may securely transmit data for processing across Amazon Web Services Regions within your geography. For more information, see Cross region inference in Amazon Q Business. An Amazon Q Apps service-linked role will be created if it's absent in the Amazon Web Services account when QAppsConfiguration is enabled in the request. For more information, see Using service-linked roles for Q Apps.
delete_applicationdeleteapplication_id, regionDeletes an Amazon Q Business application.
batch_delete_documentexecapplication_id, index_id, region, documentsAsynchronously deletes one or more documents added using the BatchPutDocument API from an Amazon Q Business index. You can see the progress of the deletion, and any error messages related to the process, by using CloudWatch.
batch_put_documentexecapplication_id, index_id, region, documentsAdds one or more documents to an Amazon Q Business index. You use this API to: ingest your structured and unstructured documents and documents stored in an Amazon S3 bucket into an Amazon Q Business index. add custom attributes to documents in an Amazon Q Business index. attach an access control list to the documents added to an Amazon Q Business index. You can see the progress of the deletion, and any error messages related to the process, by using CloudWatch.
chatexecapplication_id, regionuserId, userGroups, conversationId, parentMessageId, clientTokenStarts or continues a streaming Amazon Q Business conversation.
chat_syncexecapplication_id, regionuserId, userGroupsStarts or continues a non-streaming Amazon Q Business conversation.
check_document_accessexecapplication_id, index_id, user_id, document_id, regiondataSourceIdVerifies if a user has access permissions for a specified document and returns the actual ACL attached to the document. Resolves user access on the document via user aliases and groups when verifying user access.

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
application_idstringThe unique identifier of the application. This is required to identify the specific Amazon Q Business application context for the document access check.
document_idstringThe unique identifier of the document. Specifies which document's access permissions are being checked.
index_idstringThe unique identifier of the index. Used to locate the correct index within the application where the document is stored.
regionstringAWS region (default: us-east-1)
statement_idstringThe statement ID of the permission to remove.
user_idstringThe unique identifier of the user. Used to check the access permissions for this specific user against the document's ACL.
clientTokenstringA token that you provide to identify the chat input.
conversationIdstringThe identifier of the Amazon Q Business conversation.
dataSourceIdstringThe unique identifier of the data source. Identifies the specific data source from which the document originates. Should not be used when a document is uploaded directly with BatchPutDocument, as no dataSourceId is available or necessary.
maxResultsintegerThe maximum number of Amazon Q Business applications to return.
nextTokenstringIf the maxResults response was incomplete because there is more data to retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of Amazon Q Business applications.
parentMessageIdstringThe identifier used to associate a user message with a AI generated response.
userGroupsarrayThe group names that a user associated with the chat input belongs to.
userIdstringThe identifier of the user attached to the chat input.

SELECT examples

Gets information about an existing Amazon Q Business application.

SELECT
application_arn,
application_id,
attachments_configuration,
auto_subscription_configuration,
client_ids_for_oidc,
created_at,
description,
display_name,
encryption_configuration,
error,
iam_identity_provider_arn,
identity_center_application_arn,
identity_type,
personalization_configuration,
q_apps_configuration,
quick_sight_configuration,
role_arn,
status,
updated_at
FROM aws.qbusiness.applications
WHERE application_id = '{{ application_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon Q Business application. There are new tiers for Amazon Q Business. Not all features in Amazon Q Business Pro are also available in Amazon Q Business Lite. For information on what's included in Amazon Q Business Lite and what's included in Amazon Q Business Pro, see Amazon Q Business tiers. You must use the Amazon Q Business console to assign subscription tiers to users. An Amazon Q Apps service linked role will be created if it's absent in the Amazon Web Services account when QAppsConfiguration is enabled in the request. For more information, see Using service-linked roles for Q Apps. When you create an application, Amazon Q Business may securely transmit data for processing from your selected Amazon Web Services region, but within your geography. For more information, see Cross region inference in Amazon Q Business.

INSERT INTO aws.qbusiness.applications (
displayName,
roleArn,
identityType,
iamIdentityProviderArn,
identityCenterInstanceArn,
clientIdsForOIDC,
description,
encryptionConfiguration,
tags,
clientToken,
attachmentsConfiguration,
qAppsConfiguration,
personalizationConfiguration,
quickSightConfiguration,
region
)
SELECT
'{{ displayName }}' /* required */,
'{{ roleArn }}',
'{{ identityType }}',
'{{ iamIdentityProviderArn }}',
'{{ identityCenterInstanceArn }}',
'{{ clientIdsForOIDC }}',
'{{ description }}',
'{{ encryptionConfiguration }}',
'{{ tags }}',
'{{ clientToken }}',
'{{ attachmentsConfiguration }}',
'{{ qAppsConfiguration }}',
'{{ personalizationConfiguration }}',
'{{ quickSightConfiguration }}',
'{{ region }}'
RETURNING
application_arn,
application_id
;

UPDATE examples

Adds or updates a permission policy for a Amazon Q Business application, allowing cross-account access for an ISV. This operation creates a new policy statement for the specified Amazon Q Business application. The policy statement defines the IAM actions that the ISV is allowed to perform on the Amazon Q Business application's resources.

UPDATE aws.qbusiness.applications
SET
statementId = '{{ statementId }}',
actions = '{{ actions }}',
conditions = '{{ conditions }}',
principal = '{{ principal }}'
WHERE
application_id = '{{ application_id }}' --required
AND region = '{{ region }}' --required
AND statementId = '{{ statementId }}' --required
AND actions = '{{ actions }}' --required
AND principal = '{{ principal }}' --required
RETURNING
statement;

DELETE examples

Deletes an Amazon Q Business application.

DELETE FROM aws.qbusiness.applications
WHERE application_id = '{{ application_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Asynchronously deletes one or more documents added using the BatchPutDocument API from an Amazon Q Business index. You can see the progress of the deletion, and any error messages related to the process, by using CloudWatch.

EXEC aws.qbusiness.applications.batch_delete_document
@application_id='{{ application_id }}' --required,
@index_id='{{ index_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"documents": "{{ documents }}",
"dataSourceSyncId": "{{ dataSourceSyncId }}"
}'
;