create_role_alias
async
¶
create_role_alias(
role_alias: RoleAlias,
role_arn: RoleArn,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
credential_duration_seconds: Optional[CredentialDurationSeconds] = None,
tags: Optional[TagList] = None,
) -> CreateRoleAliasResponse
Creates a role alias.
Requires permission to access the CreateRoleAlias 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 that points to a role ARN. This allows you to change the role without having to update the device.
-
role_arn(RoleArn) –The role ARN.
-
credential_duration_seconds(Optional[CredentialDurationSeconds], default:None) –How long (in seconds) the credentials will be valid. The default value is 3,600 seconds.
This value must be less than or equal to the maximum session duration of the IAM role that the role alias references.
-
tags(Optional[TagList], default:None) –Metadata which can be used to manage the role alias.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–A limit has been exceeded.
-
ResourceAlreadyExistsException–The resource already exists.
-
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
3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 | |