update_profile
async
¶
update_profile(
profile_id: ProfileIdentifier,
*,
config_overrides: Optional[AsyncRolesAnywhereClientConfig] = 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,
alias_name: Optional[AliasName] = None,
tip_configuration: Optional[TipConfiguration] = 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(ProfileIdentifier) –The profile to act on. You can specify one of the following:
-
The profile ID.
-
The profile ARN.
-
The alias ARN of the profile.
An ARN must be for a profile in your account and Region.
-
-
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.
-
alias_name(Optional[AliasName], default:None) –The alias for the profile.
You can use this parameter in the following ways:
-
To set or change the alias, specify the new alias name. After the change, the previous alias ARN no longer identifies the resource. You can then assign the previous alias to another resource of the same type. A change can take a short time to take effect for requests that use an alias ARN.
-
To remove the alias, specify an empty string.
-
To keep the current alias, omit this parameter.
An alias name contains 1 to 256 characters. It must begin with a letter (A-Z or a-z). It can contain only letters (A-Z and a-z), numbers (0-9), underscores (_), hyphens (-), and forward slashes (/). A forward slash can appear only between two other characters, so an alias name can't end with a forward slash or contain two in a row. Alias names that begin with
aws/, in any combination of uppercase and lowercase letters, are reserved. Alias names are case sensitive.The alias name must be unique among resources of the same type in your account and Region. If another resource of the same type already has the alias, the request fails with a
ValidationException. An invalid or reserved alias name also causes aValidationException. -
-
tip_configuration(Optional[TipConfiguration], default:None) –The trusted identity propagation (TIP) settings for the profile. The settings that you specify replace the current settings, and a field that you omit returns to its default. If you omit this parameter, the TIP settings don't change.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ResourceNotFoundException–The resource could not be found.
-
ServiceUnavailableException–The request has failed due to a temporary failure of the service.
-
ValidationException–Validation exception error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_rolesanywhere/_services/async_roles_anywhere.py
1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 | |