create_entitlement
¶
create_entitlement(
*,
config_overrides: Optional[AppStreamClientConfig] = None,
name: Optional[Name] = None,
stack_name: Optional[Name] = None,
description: Optional[Description] = None,
app_visibility: Optional[AppVisibility] = None,
attributes: Optional[EntitlementAttributeList] = None,
) -> CreateEntitlementResult
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.
Parameters:
-
name(Optional[Name], default:None) –The name of the entitlement.
-
stack_name(Optional[Name], default:None) –The name of the stack with which the entitlement is associated.
-
description(Optional[Description], default:None) –The description of the entitlement.
-
app_visibility(Optional[AppVisibility], default:None) –Specifies whether all or selected apps are entitled.
-
attributes(Optional[EntitlementAttributeList], default:None) –The attributes of the entitlement.
Raises:
-
EntitlementAlreadyExistsException–The entitlement already exists.
-
LimitExceededException–The requested limit exceeds the permitted limit for an account.
-
OperationNotPermittedException–The attempted operation is not permitted.
-
ResourceNotFoundException–The specified resource was not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appstream/_services/app_stream.py
1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 | |