update_profile
¶
update_profile(
profile_id: Uuid,
*,
config_overrides: Optional[RolesAnywhereClientConfig] = None,
name: Optional[ResourceName] = None,
session_policy: Optional[str] = None,
role_arns: Optional[RoleArnList] = None,
managed_policy_arns: Optional[ManagedPolicyList] = None,
duration_seconds: Optional[int] = None,
accept_role_session_name: Optional[bool] = None,
) -> ProfileDetailResponse
Updates a profile, a list of the roles that IAM Roles Anywhere service is trusted to assume. You use profiles to intersect permissions with IAM managed policies.
Required permissions: rolesanywhere:UpdateProfile.
Parameters:
-
profile_id(Uuid) –The unique identifier of the profile.
-
name(Optional[ResourceName], default:None) –The name of the profile.
-
session_policy(Optional[str], default:None) –A session policy that applies to the trust boundary of the vended session credentials.
-
role_arns(Optional[RoleArnList], default:None) –A list of IAM roles that this profile can assume in a temporary credential request.
-
managed_policy_arns(Optional[ManagedPolicyList], default:None) –A list of managed policy ARNs that apply to the vended session credentials.
-
duration_seconds(Optional[int], default:None) –Used to determine how long sessions vended using this profile are valid for. See the
Expirationsection of the CreateSession API documentation page for more details. In requests, if this value is not provided, the default value will be 3600. -
accept_role_session_name(Optional[bool], default:None) –Used to determine if a custom role session name will be accepted in a temporary credential request.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ResourceNotFoundException–The resource could not be found.
-
ValidationException–Validation exception error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_rolesanywhere/_services/roles_anywhere.py
1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 | |