Skip to main content

data_accessors

Creates, updates, deletes or gets a data_accessor resource or lists data_accessors in a region

Overview

Namedata_accessors
TypeResource
DescriptionDefinition of AWS::QBusiness::DataAccessor Resource Type
Idawscc.qbusiness.data_accessors

Fields

NameDatatypeDescription
action_configurationsarray
application_idstring
authentication_detailobject
created_atstring
data_accessor_arnstring
data_accessor_idstring
display_namestring
idc_application_arnstring
principalstring
tagsarray
updated_atstring
regionstringAWS region.

For more information, see AWS::QBusiness::DataAccessor.

Methods

NameResourceAccessible byRequired Params
create_resourcedata_accessorsINSERTApplicationId, ActionConfigurations, DisplayName, Principal, region
delete_resourcedata_accessorsDELETEIdentifier, region
update_resourcedata_accessorsUPDATEIdentifier, PatchDocument, region
list_resourcesdata_accessors_list_onlySELECTregion
get_resourcedata_accessorsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual data_accessor.

SELECT
region,
action_configurations,
application_id,
authentication_detail,
created_at,
data_accessor_arn,
data_accessor_id,
display_name,
idc_application_arn,
principal,
tags,
updated_at
FROM awscc.qbusiness.data_accessors
WHERE
region = '{{ region }}' AND
Identifier = '{{ application_id }}|{{ data_accessor_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new data_accessor resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.qbusiness.data_accessors (
ActionConfigurations,
ApplicationId,
DisplayName,
Principal,
region
)
SELECT
'{{ action_configurations }}',
'{{ application_id }}',
'{{ display_name }}',
'{{ principal }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a data_accessor resource, using stack-deploy.

/*+ update */
UPDATE awscc.qbusiness.data_accessors
SET PatchDocument = string('{{ {
"ActionConfigurations": action_configurations,
"AuthenticationDetail": authentication_detail,
"DisplayName": display_name,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ application_id }}|{{ data_accessor_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.qbusiness.data_accessors
WHERE
Identifier = '{{ application_id }}|{{ data_accessor_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the data_accessors resource, the following permissions are required:

qbusiness:CreateDataAccessor,
qbusiness:GetDataAccessor,
qbusiness:ListTagsForResource,
qbusiness:CreateDataAccessorWithTti,
qbusiness:TagResource,
sso:CreateApplication,
sso:PutApplicationAuthenticationMethod,
sso:PutApplicationGrant,
sso:PutApplicationAccessScope,
sso:DescribeTrustedTokenIssuer