Skip to main content

custom_permissions

Creates, updates, deletes or gets a custom_permission resource or lists custom_permissions in a region

Overview

Namecustom_permissions
TypeResource
DescriptionDefinition of the AWS::QuickSight::CustomPermissions Resource Type.
Idawscc.quicksight.custom_permissions

Fields

NameDatatypeDescription
arnstring
aws_account_idstring
capabilitiesobject
custom_permissions_namestring
tagsarray
regionstringAWS region.

For more information, see AWS::QuickSight::CustomPermissions.

Methods

NameResourceAccessible byRequired Params
create_resourcecustom_permissionsINSERTAwsAccountId, CustomPermissionsName, region
delete_resourcecustom_permissionsDELETEIdentifier, region
update_resourcecustom_permissionsUPDATEIdentifier, PatchDocument, region
list_resourcescustom_permissions_list_onlySELECTregion
get_resourcecustom_permissionsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual custom_permission.

SELECT
region,
arn,
aws_account_id,
capabilities,
custom_permissions_name,
tags
FROM awscc.quicksight.custom_permissions
WHERE
region = '{{ region }}' AND
Identifier = '{{ aws_account_id }}|{{ custom_permissions_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.quicksight.custom_permissions (
AwsAccountId,
CustomPermissionsName,
region
)
SELECT
'{{ aws_account_id }}',
'{{ custom_permissions_name }}',
'{{ 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 custom_permission resource, using stack-deploy.

/*+ update */
UPDATE awscc.quicksight.custom_permissions
SET PatchDocument = string('{{ {
"Capabilities": capabilities,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ aws_account_id }}|{{ custom_permissions_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.quicksight.custom_permissions
WHERE
Identifier = '{{ aws_account_id }}|{{ custom_permissions_name }}' 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 custom_permissions resource, the following permissions are required:

quicksight:CreateCustomPermissions,
quicksight:TagResource