Skip to main content

data_accessors

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

Overview

Namedata_accessors
TypeResource
Idaws.qbusiness.data_accessors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
action_configurationsarrayThe list of action configurations specifying the allowed actions and any associated filters.
application_idstringThe unique identifier of the Amazon Q Business application associated with this data accessor. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9-]{35}</code>)
authentication_detailobjectContains the authentication configuration details for a data accessor. This structure defines how the ISV authenticates when accessing data through the data accessor.
created_atstring (date-time)The timestamp when the data accessor was created.
data_accessor_arnstringThe Amazon Resource Name (ARN) of the data accessor. (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>)
data_accessor_idstringThe unique identifier of the data accessor. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9-]{35}</code>)
display_namestringThe friendly name of the data accessor. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9_-]*</code>)
idc_application_arnstringThe Amazon Resource Name (ARN) of the IAM Identity Center application associated with this data accessor. (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>)
principalstringThe Amazon Resource Name (ARN) of the IAM role for the ISV associated with this data accessor. (pattern: <code>arn:[a-z0-9-.]{1,63}:iam::[0-9]{12}:role/[a-zA-Z0-9_/+=,.@-]+</code>)
updated_atstring (date-time)The timestamp when the data accessor was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_data_accessorselectapplication_id, data_accessor_id, regionRetrieves information about a specified data accessor. This operation returns details about the data accessor, including its display name, unique identifier, Amazon Resource Name (ARN), the associated Amazon Q Business application and IAM Identity Center application, the IAM role for the ISV, the action configurations, and the timestamps for when the data accessor was created and last updated.
list_data_accessorsselectapplication_id, regionnextToken, maxResultsLists the data accessors for a Amazon Q Business application. This operation returns a paginated list of data accessor summaries, including the friendly name, unique identifier, ARN, associated IAM role, and creation/update timestamps for each data accessor.
create_data_accessorinsertapplication_id, region, principal, actionConfigurations, displayNameCreates a new data accessor for an ISV to access data from a Amazon Q Business application. The data accessor is an entity that represents the ISV's access to the Amazon Q Business application's data. It includes the IAM role ARN for the ISV, a friendly name, and a set of action configurations that define the specific actions the ISV is allowed to perform and any associated data filters. When the data accessor is created, an IAM Identity Center application is also created to manage the ISV's identity and authentication for accessing the Amazon Q Business application.
update_data_accessorupdateapplication_id, data_accessor_id, region, actionConfigurationsUpdates an existing data accessor. This operation allows modifying the action configurations (the allowed actions and associated filters) and the display name of the data accessor. It does not allow changing the IAM role associated with the data accessor or other core properties of the data accessor.
delete_data_accessordeleteapplication_id, data_accessor_id, regionDeletes a specified data accessor. This operation permanently removes the data accessor and its associated IAM Identity Center application. Any access granted to the ISV through this data accessor will be revoked.

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 Amazon Q Business application.
data_accessor_idstringThe unique identifier of the data accessor to delete.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in a single call.
nextTokenstringThe token for the next set of results. (You received this token from a previous call.)

SELECT examples

Retrieves information about a specified data accessor. This operation returns details about the data accessor, including its display name, unique identifier, Amazon Resource Name (ARN), the associated Amazon Q Business application and IAM Identity Center application, the IAM role for the ISV, the action configurations, and the timestamps for when the data accessor was created and last updated.

SELECT
action_configurations,
application_id,
authentication_detail,
created_at,
data_accessor_arn,
data_accessor_id,
display_name,
idc_application_arn,
principal,
updated_at
FROM aws.qbusiness.data_accessors
WHERE application_id = '{{ application_id }}' -- required
AND data_accessor_id = '{{ data_accessor_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new data accessor for an ISV to access data from a Amazon Q Business application. The data accessor is an entity that represents the ISV's access to the Amazon Q Business application's data. It includes the IAM role ARN for the ISV, a friendly name, and a set of action configurations that define the specific actions the ISV is allowed to perform and any associated data filters. When the data accessor is created, an IAM Identity Center application is also created to manage the ISV's identity and authentication for accessing the Amazon Q Business application.

INSERT INTO aws.qbusiness.data_accessors (
principal,
actionConfigurations,
clientToken,
displayName,
authenticationDetail,
tags,
application_id,
region
)
SELECT
'{{ principal }}' /* required */,
'{{ actionConfigurations }}' /* required */,
'{{ clientToken }}',
'{{ displayName }}' /* required */,
'{{ authenticationDetail }}',
'{{ tags }}',
'{{ application_id }}',
'{{ region }}'
RETURNING
data_accessor_arn,
data_accessor_id,
idc_application_arn
;

UPDATE examples

Updates an existing data accessor. This operation allows modifying the action configurations (the allowed actions and associated filters) and the display name of the data accessor. It does not allow changing the IAM role associated with the data accessor or other core properties of the data accessor.

UPDATE aws.qbusiness.data_accessors
SET
actionConfigurations = '{{ actionConfigurations }}',
authenticationDetail = '{{ authenticationDetail }}',
displayName = '{{ displayName }}'
WHERE
application_id = '{{ application_id }}' --required
AND data_accessor_id = '{{ data_accessor_id }}' --required
AND region = '{{ region }}' --required
AND actionConfigurations = '{{ actionConfigurations }}' --required;

DELETE examples

Deletes a specified data accessor. This operation permanently removes the data accessor and its associated IAM Identity Center application. Any access granted to the ISV through this data accessor will be revoked.

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