associate_member_to_farm
¶
associate_member_to_farm(
farm_id: FarmId,
principal_type: DeadlinePrincipalType,
identity_store_id: IdentityStoreId,
membership_level: MembershipLevel,
principal_id: IdentityCenterPrincipalId,
*,
config_overrides: Optional[deadlineClientConfig] = None,
identity_center_region: Optional[Region] = None,
) -> AssociateMemberToFarmResponse
Assigns a farm membership level to a member.
Parameters:
-
farm_id(FarmId) –The ID of the farm to associate with the member.
-
principal_type(DeadlinePrincipalType) –The principal type of the member to associate with the farm.
-
identity_store_id(IdentityStoreId) –The identity store ID of the member to associate with the farm.
-
membership_level(MembershipLevel) –The principal's membership level for the associated farm.
-
principal_id(IdentityCenterPrincipalId) –The member's principal ID to associate with the farm.
-
identity_center_region(Optional[Region], default:None) –The Region of the IAM Identity Center instance. If not provided, the service defaults to the Region of the farm.
Raises:
-
AccessDeniedException–You don't have permission to perform the action.
-
InternalServerErrorException–Deadline Cloud can't process your request right now. Try again later.
-
ResourceNotFoundException–The requested resource can't be found.
-
ServiceQuotaExceededException–You exceeded your service quota. Service quotas, also referred to as limits, are the maximum number of service resources or operations for your Amazon Web Services account.
-
ThrottlingException–Your request exceeded a request rate quota.
-
ValidationException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_deadline/_services/deadline.py
2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 | |