data_accessors
Creates, updates, deletes or gets a data_accessor resource or lists data_accessors in a region
Overview
| Name | data_accessors |
| Type | Resource |
| Description | Definition of AWS::QBusiness::DataAccessor Resource Type |
| Id | awscc.qbusiness.data_accessors |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
action_configurations | array | |
application_id | string | |
authentication_detail | object | |
created_at | string | |
data_accessor_arn | string | |
data_accessor_id | string | |
display_name | string | |
idc_application_arn | string | |
principal | string | |
tags | array | |
updated_at | string | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
application_id | string | |
data_accessor_id | string | |
region | string | AWS region. |
For more information, see AWS::QBusiness::DataAccessor.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | data_accessors | INSERT | ApplicationId, ActionConfigurations, DisplayName, Principal, region |
delete_resource | data_accessors | DELETE | Identifier, region |
update_resource | data_accessors | UPDATE | Identifier, PatchDocument, region |
list_resources | data_accessors_list_only | SELECT | region |
get_resource | data_accessors | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 }}';
Lists all data_accessors in a region.
SELECT
region,
application_id,
data_accessor_id
FROM awscc.qbusiness.data_accessors_list_only
WHERE
region = '{{ region }}';
INSERT example
Use the following StackQL query and manifest file to create a new data_accessor resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ 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
;
/*+ create */
INSERT INTO awscc.qbusiness.data_accessors (
ActionConfigurations,
ApplicationId,
AuthenticationDetail,
DisplayName,
Principal,
Tags,
region
)
SELECT
'{{ action_configurations }}',
'{{ application_id }}',
'{{ authentication_detail }}',
'{{ display_name }}',
'{{ principal }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: data_accessor
props:
- name: action_configurations
value:
- action: '{{ action }}'
filter_configuration:
document_attribute_filter:
and_all_filters:
- null
or_all_filters:
- null
not_filter: null
equals_to:
name: '{{ name }}'
value: null
contains_all: null
contains_any: null
greater_than: null
greater_than_or_equals: null
less_than: null
less_than_or_equals: null
- name: application_id
value: '{{ application_id }}'
- name: authentication_detail
value:
authentication_type: '{{ authentication_type }}'
authentication_configuration: null
external_ids:
- '{{ external_ids[0] }}'
- name: display_name
value: '{{ display_name }}'
- name: principal
value: '{{ principal }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
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:
| Parameter | Description |
|---|---|
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:
- Create
- Read
- Update
- Delete
- List
qbusiness:CreateDataAccessor,
qbusiness:GetDataAccessor,
qbusiness:ListTagsForResource,
qbusiness:CreateDataAccessorWithTti,
qbusiness:TagResource,
sso:CreateApplication,
sso:PutApplicationAuthenticationMethod,
sso:PutApplicationGrant,
sso:PutApplicationAccessScope,
sso:DescribeTrustedTokenIssuer
qbusiness:GetDataAccessor,
qbusiness:ListTagsForResource
qbusiness:GetDataAccessor,
qbusiness:ListTagsForResource,
qbusiness:TagResource,
qbusiness:UntagResource,
qbusiness:UpdateDataAccessor,
sso:PutApplicationAuthenticationMethod,
sso:PutApplicationGrant,
sso:PutApplicationAccessScope,
sso:DescribeTrustedTokenIssuer,
sso:UpdateApplication
qbusiness:DeleteDataAccessor,
qbusiness:GetDataAccessor,
sso:DeleteApplication
qbusiness:ListDataAccessors