Skip to main content

entitlements

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

Overview

Nameentitlements
TypeResource
Idaws.appstream.entitlements

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
entitlementsarrayThe entitlements.
next_tokenstringThe pagination token used to retrieve the next page of results for this operation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_entitlementsselectregionRetrieves a list that describes one of more entitlements.
create_entitlementinsertregion, Name, StackName, AppVisibility, AttributesCreates a new entitlement. Entitlements control access to specific applications within a stack, based on user attributes. Entitlements apply to SAML 2.0 federated user identities. WorkSpaces Applications user pool and streaming URL users are entitled to all applications in a stack. Entitlements don't apply to the desktop stream view application, or to applications managed by a dynamic app provider using the Dynamic Application Framework.
associate_application_to_entitlementupdateregion, StackName, EntitlementName, ApplicationIdentifierAssociates an application to entitle.
update_entitlementupdateregion, Name, StackNameUpdates the specified entitlement.
delete_entitlementdeleteregionDeletes the specified entitlement.
disassociate_application_from_entitlementexecregion, StackName, EntitlementName, ApplicationIdentifierDeletes the specified application from the specified entitlement.

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 a list that describes one of more entitlements.

SELECT
entitlements,
next_token
FROM aws.appstream.entitlements
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new entitlement. Entitlements control access to specific applications within a stack, based on user attributes. Entitlements apply to SAML 2.0 federated user identities. WorkSpaces Applications user pool and streaming URL users are entitled to all applications in a stack. Entitlements don't apply to the desktop stream view application, or to applications managed by a dynamic app provider using the Dynamic Application Framework.

INSERT INTO aws.appstream.entitlements (
Name,
StackName,
Description,
AppVisibility,
Attributes,
region
)
SELECT
'{{ Name }}' /* required */,
'{{ StackName }}' /* required */,
'{{ Description }}',
'{{ AppVisibility }}' /* required */,
'{{ Attributes }}' /* required */,
'{{ region }}'
RETURNING
entitlement
;

UPDATE examples

Associates an application to entitle.

UPDATE aws.appstream.entitlements
SET
StackName = '{{ StackName }}',
EntitlementName = '{{ EntitlementName }}',
ApplicationIdentifier = '{{ ApplicationIdentifier }}'
WHERE
region = '{{ region }}' --required
AND StackName = '{{ StackName }}' --required
AND EntitlementName = '{{ EntitlementName }}' --required
AND ApplicationIdentifier = '{{ ApplicationIdentifier }}' --required;

DELETE examples

Deletes the specified entitlement.

DELETE FROM aws.appstream.entitlements
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Deletes the specified application from the specified entitlement.

EXEC aws.appstream.entitlements.disassociate_application_from_entitlement
@region='{{ region }}' --required
@@json=
'{
"StackName": "{{ StackName }}",
"EntitlementName": "{{ EntitlementName }}",
"ApplicationIdentifier": "{{ ApplicationIdentifier }}"
}'
;