Skip to main content

entitlements

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

Overview

Nameentitlements
TypeResource
Idaws.account_access.entitlements

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_arnstringThe ARN of the application that the entitlement belongs to. (pattern: <code>arn:[a-z0-9-]+:account-access:[a-z0-9]+(-[a-z0-9]+)*:[0-9]{12}:application/[a-zA-Z0-9-]+</code>)
created_atstring (date-time)The date and time when the entitlement was created.
entitlementobjectThe entitlement details, including the principal, IAM role, and target account.
entitlement_idstringThe unique identifier of the entitlement.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_entitlementselectapplicationArn, entitlement_id, regionRetrieves details about a specific entitlement for an account access manager application, including the principal, IAM role, and target account.
list_entitlementsselectregionLists the entitlements for a specified account access manager application. You can filter results by principal, IAM role, or account. Use pagination to ensure that the operation returns quickly and successfully.
create_entitlementinsertregion, applicationArn, entitlementCreates an entitlement (assignment) in account access manager. An entitlement (assignment) grants a principal (IAM Identity Center user or group) permission to assume a specified IAM role in an Amazon Web Services account. This operation is idempotent.
delete_entitlementdeleteapplicationArn, entitlement_id, regionDeletes an entitlement from an account access manager application. This operation is idempotent; deleting an entitlement that has already been deleted does not return an error.

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
applicationArnstringSpecifies the ARN of the application that the entitlement belongs to.
entitlement_idstringSpecifies the unique identifier of the entitlement to delete.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves details about a specific entitlement for an account access manager application, including the principal, IAM role, and target account.

SELECT
application_arn,
created_at,
entitlement,
entitlement_id
FROM aws.account_access.entitlements
WHERE applicationArn = '{{ applicationArn }}' -- required
AND entitlement_id = '{{ entitlement_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an entitlement (assignment) in account access manager. An entitlement (assignment) grants a principal (IAM Identity Center user or group) permission to assume a specified IAM role in an Amazon Web Services account. This operation is idempotent.

INSERT INTO aws.account_access.entitlements (
applicationArn,
entitlement,
region
)
SELECT
'{{ applicationArn }}' /* required */,
'{{ entitlement }}' /* required */,
'{{ region }}'
RETURNING
entitlement_id
;

DELETE examples

Deletes an entitlement from an account access manager application. This operation is idempotent; deleting an entitlement that has already been deleted does not return an error.

DELETE FROM aws.account_access.entitlements
WHERE applicationArn = '{{ applicationArn }}' --required
AND entitlement_id = '{{ entitlement_id }}' --required
AND region = '{{ region }}' --required
;