Skip to main content

policy_store_alias

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

Overview

Namepolicy_store_alias
TypeResource
Idaws.verifiedpermissions.policy_store_alias

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
alias_arnstringThe Amazon Resource Name (ARN) of the policy store alias. (pattern: <code>arn:[^:]:[^:]:[^:]:[^:]:.*</code>)
alias_namestringThe name of the policy store alias. (pattern: <code>[a-zA-Z0-9-/_]*</code>)
created_atstring (date-time)The date and time the policy store alias was created.
policy_store_idstringThe ID of the policy store associated with the alias. (pattern: <code>[a-zA-Z0-9-/_]*</code>)
statestringThe state of the policy store alias. Policy Store Aliases in the Active state can be used normally. When a policy store alias is deleted, it enters the PendingDeletion state. Policy Store Aliases in the PendingDeletion cannot be used, and creating a policy store alias with the same alias name will fail. (Active, PendingDeletion)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_policy_store_aliasselectregionRetrieves details about the specified policy store alias.
create_policy_store_aliasinsertregion, aliasName, policyStoreIdCreates a policy store alias for the specified policy store. A policy store alias is an alternative identifier that you can use to reference a policy store in API operations. This operation is idempotent. If multiple CreatePolicyStoreAlias requests are made where the aliasName and policyStoreId fields are the same between the requests, subsequent requests will be ignored. For each duplicate CreatePolicyStoreAlias request, a Success response will be returned and a new policy store alias will not be created. Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to propagate through the service and be visible in the results of other Verified Permissions operations.
delete_policy_store_aliasdeleteregionDeletes the specified policy store alias. This operation is idempotent. If you specify a policy store alias that does not exist, the request response will still return a successful HTTP 200 status code. By default, when a policy store alias is deleted, it enters the PendingDeletion state. When a policy store alias is in the PendingDeletion state, new policy store aliases cannot be created with the same name. If the policy store alias is used in an API that has a policyStoreId field, the operation will fail with a ResourceNotFound exception. To immediately delete a policy store alias and bypass the PendingDeletion state, set the deletionMode parameter to HardDelete. Verified Permissions is eventually consistent. If you hard delete a policy store alias and then immediately recreate it to be associated with a different policy store, requests that reference this alias may continue to be evaluated against the previously associated policy store for a short period of time.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves details about the specified policy store alias.

SELECT
alias_arn,
alias_name,
created_at,
policy_store_id,
state
FROM aws.verifiedpermissions.policy_store_alias
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a policy store alias for the specified policy store. A policy store alias is an alternative identifier that you can use to reference a policy store in API operations. This operation is idempotent. If multiple CreatePolicyStoreAlias requests are made where the aliasName and policyStoreId fields are the same between the requests, subsequent requests will be ignored. For each duplicate CreatePolicyStoreAlias request, a Success response will be returned and a new policy store alias will not be created. Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to propagate through the service and be visible in the results of other Verified Permissions operations.

INSERT INTO aws.verifiedpermissions.policy_store_alias (
aliasName,
policyStoreId,
region
)
SELECT
'{{ aliasName }}' /* required */,
'{{ policyStoreId }}' /* required */,
'{{ region }}'
RETURNING
alias_arn,
alias_name,
created_at,
policy_store_id
;

DELETE examples

Deletes the specified policy store alias. This operation is idempotent. If you specify a policy store alias that does not exist, the request response will still return a successful HTTP 200 status code. By default, when a policy store alias is deleted, it enters the PendingDeletion state. When a policy store alias is in the PendingDeletion state, new policy store aliases cannot be created with the same name. If the policy store alias is used in an API that has a policyStoreId field, the operation will fail with a ResourceNotFound exception. To immediately delete a policy store alias and bypass the PendingDeletion state, set the deletionMode parameter to HardDelete. Verified Permissions is eventually consistent. If you hard delete a policy store alias and then immediately recreate it to be associated with a different policy store, requests that reference this alias may continue to be evaluated against the previously associated policy store for a short period of time.

DELETE FROM aws.verifiedpermissions.policy_store_alias
WHERE region = '{{ region }}' --required
;