update_role_alias
async
¶
update_role_alias(
role_alias: RoleAlias,
*,
config_overrides: Optional[AsyncIoTClientConfig] = 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/async_io_t.py
18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 | |