Smaws_Client_AppStream.CreateEntitlementCreates 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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `EntitlementAlreadyExistsException of
Types.entitlement_already_exists_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `OperationNotPermittedException of Types.operation_not_permitted_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_entitlement_request ->
(Types.create_entitlement_result,
[> Smaws_Lib.Protocols.AwsJson.error
| `EntitlementAlreadyExistsException of
Types.entitlement_already_exists_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `OperationNotPermittedException of
Types.operation_not_permitted_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_entitlement_request ->
(Types.create_entitlement_result Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `EntitlementAlreadyExistsException of
Types.entitlement_already_exists_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `OperationNotPermittedException of
Types.operation_not_permitted_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result