Skip to main content

entitlements

Creates, updates, deletes or gets an entitlement resource or lists entitlements in a region

Overview

Nameentitlements
TypeResource
DescriptionResource Type definition for AWS::AppStream::Entitlement
Idaws.appstream.entitlements

Fields

NameDatatypeDescription
namestring
stack_namestring
descriptionstring
app_visibilitystring
attributesarray
created_timestring
last_modified_timestring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, StackName, AppVisibility, Attributes, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual entitlement.

SELECT
region,
name,
stack_name,
description,
app_visibility,
attributes,
created_time,
last_modified_time
FROM aws.appstream.entitlements
WHERE region = 'us-east-1' AND data__Identifier = '<StackName>|<Name>';

INSERT example

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

/*+ create */
INSERT INTO aws.appstream.entitlements (
Name,
StackName,
AppVisibility,
Attributes,
region
)
SELECT
'{{ Name }}',
'{{ StackName }}',
'{{ AppVisibility }}',
'{{ Attributes }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.appstream.entitlements
WHERE data__Identifier = '<StackName|Name>'
AND region = 'us-east-1';

Permissions

To operate on the entitlements resource, the following permissions are required:

Create

appstream:CreateEntitlement

Read

appstream:DescribeEntitlements

Update

appstream:UpdateEntitlement

Delete

appstream:DeleteEntitlement