| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AppStream.CreateEntitlement
Description
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. Amazon AppStream 2.0 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.
Synopsis
- data CreateEntitlement = CreateEntitlement' {}
- newCreateEntitlement :: Text -> Text -> AppVisibility -> NonEmpty EntitlementAttribute -> CreateEntitlement
- createEntitlement_description :: Lens' CreateEntitlement (Maybe Text)
- createEntitlement_name :: Lens' CreateEntitlement Text
- createEntitlement_stackName :: Lens' CreateEntitlement Text
- createEntitlement_appVisibility :: Lens' CreateEntitlement AppVisibility
- createEntitlement_attributes :: Lens' CreateEntitlement (NonEmpty EntitlementAttribute)
- data CreateEntitlementResponse = CreateEntitlementResponse' {}
- newCreateEntitlementResponse :: Int -> CreateEntitlementResponse
- createEntitlementResponse_entitlement :: Lens' CreateEntitlementResponse (Maybe Entitlement)
- createEntitlementResponse_httpStatus :: Lens' CreateEntitlementResponse Int
Creating a Request
data CreateEntitlement Source #
See: newCreateEntitlement smart constructor.
Constructors
| CreateEntitlement' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> AppVisibility | |
| -> NonEmpty EntitlementAttribute | |
| -> CreateEntitlement |
Create a value of CreateEntitlement with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateEntitlement, createEntitlement_description - The description of the entitlement.
CreateEntitlement, createEntitlement_name - The name of the entitlement.
CreateEntitlement, createEntitlement_stackName - The name of the stack with which the entitlement is associated.
CreateEntitlement, createEntitlement_appVisibility - Specifies whether all or selected apps are entitled.
CreateEntitlement, createEntitlement_attributes - The attributes of the entitlement.
Request Lenses
createEntitlement_description :: Lens' CreateEntitlement (Maybe Text) Source #
The description of the entitlement.
createEntitlement_name :: Lens' CreateEntitlement Text Source #
The name of the entitlement.
createEntitlement_stackName :: Lens' CreateEntitlement Text Source #
The name of the stack with which the entitlement is associated.
createEntitlement_appVisibility :: Lens' CreateEntitlement AppVisibility Source #
Specifies whether all or selected apps are entitled.
createEntitlement_attributes :: Lens' CreateEntitlement (NonEmpty EntitlementAttribute) Source #
The attributes of the entitlement.
Destructuring the Response
data CreateEntitlementResponse Source #
See: newCreateEntitlementResponse smart constructor.
Constructors
| CreateEntitlementResponse' | |
Fields
| |
Instances
newCreateEntitlementResponse Source #
Create a value of CreateEntitlementResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:entitlement:CreateEntitlementResponse', createEntitlementResponse_entitlement - The entitlement.
$sel:httpStatus:CreateEntitlementResponse', createEntitlementResponse_httpStatus - The response's http status code.
Response Lenses
createEntitlementResponse_entitlement :: Lens' CreateEntitlementResponse (Maybe Entitlement) Source #
The entitlement.
createEntitlementResponse_httpStatus :: Lens' CreateEntitlementResponse Int Source #
The response's http status code.