associate_member_to_farm
async
¶
associate_member_to_farm(
farm_id: FarmId,
principal_type: DeadlinePrincipalType,
identity_store_id: IdentityStoreId,
membership_level: MembershipLevel,
principal_id: IdentityCenterPrincipalId,
*,
config_overrides: Optional[AsyncdeadlineClientConfig] = 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/async_deadline.py
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 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 | |