update_role_alias
¶
update_role_alias(
role_alias: RoleAlias,
*,
config_overrides: Optional[IoTClientConfig] = None,
role_arn: Optional[RoleArn] = None,
credential_duration_seconds: Optional[CredentialDurationSeconds] = None,
) -> UpdateRoleAliasResponse
Updates a role alias.
Requires permission to access the UpdateRoleAlias action.
The value of credentialDurationSeconds must be less than or equal to the maximum session duration of the IAM role that the role alias references. For more information, see Modifying a role maximum session duration (Amazon Web Services API) from the Amazon Web Services Identity and Access Management User Guide.
Parameters:
-
role_alias(RoleAlias) –The role alias to update.
-
role_arn(Optional[RoleArn], default:None) –The role ARN.
-
credential_duration_seconds(Optional[CredentialDurationSeconds], default:None) –The number of seconds the credential will be valid.
This value must be less than or equal to the maximum session duration of the IAM role that the role alias references.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/io_t.py
18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 | |