Skip to main content

approval_policies

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

Overview

Nameapproval_policies
TypeResource
Idaws.quicksight.approval_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
actionsarrayThe list of governed actions that trigger the approval workflow.
applicable_toobjectThe scoping configuration that determines which principals an approval policy applies to.
approval_groupsarrayThe list of group ARNs whose members can approve requests.
asset_typesarrayThe list of asset types that the approval policy applies to.
created_atstring (date-time)The date and time that the approval policy was created.
descriptionstringA description of the approval policy.
namestringThe name of the approval policy.
policy_arnstringThe Amazon Resource Name (ARN) of the approval policy.
policy_idstringThe unique identifier of the approval policy. (pattern: <code>[a-zA-Z0-9-_]+</code>)
updated_atstring (date-time)The date and time that the approval policy was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_approval_policyselectpolicy_id, regionDescribes an approval policy in Quick Sight.
list_approval_policiesselectregionnext-token, max-resultsLists all approval policies in the specified Quick Sight account. The results are paginated. If the response includes a NextToken value, pass it in a subsequent call to retrieve the next set of results.
create_approval_policyinsertregion, PolicyId, AssetTypes, ApplicableTo, ApprovalGroupsCreates an approval policy in Quick Sight.
update_approval_policyupdatepolicy_id, regionUpdates an approval policy in Quick Sight.
delete_approval_policydeletepolicy_id, regionDeletes an approval policy in Quick Sight.

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
policy_idstringThe unique identifier of the approval policy to delete.
regionstringAWS region (default: us-east-1)
max-resultsintegerThe maximum number of results to return in a single call. If you don't specify a value, the service returns a default number of results. Use the NextToken value in the response to retrieve additional results.
next-tokenstringThe token for the next set of results, or null if there are no more results.

SELECT examples

Describes an approval policy in Quick Sight.

SELECT
actions,
applicable_to,
approval_groups,
asset_types,
created_at,
description,
name,
policy_arn,
policy_id,
updated_at
FROM aws.quicksight.approval_policies
WHERE policy_id = '{{ policy_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an approval policy in Quick Sight.

INSERT INTO aws.quicksight.approval_policies (
PolicyId,
Name,
Description,
Actions,
AssetTypes,
ApplicableTo,
ApprovalGroups,
region
)
SELECT
'{{ PolicyId }}' /* required */,
'{{ Name }}',
'{{ Description }}',
'{{ Actions }}',
'{{ AssetTypes }}' /* required */,
'{{ ApplicableTo }}' /* required */,
'{{ ApprovalGroups }}' /* required */,
'{{ region }}'
RETURNING
policy
;

UPDATE examples

Updates an approval policy in Quick Sight.

UPDATE aws.quicksight.approval_policies
SET
Name = '{{ Name }}',
Description = '{{ Description }}',
Actions = '{{ Actions }}',
AssetTypes = '{{ AssetTypes }}',
ApplicableTo = '{{ ApplicableTo }}',
ApprovalGroups = '{{ ApprovalGroups }}'
WHERE
policy_id = '{{ policy_id }}' --required
AND region = '{{ region }}' --required
RETURNING
policy;

DELETE examples

Deletes an approval policy in Quick Sight.

DELETE FROM aws.quicksight.approval_policies
WHERE policy_id = '{{ policy_id }}' --required
AND region = '{{ region }}' --required
;