Smaws_Client_RDS.AddRoleToDBInstanceAssociates an Amazon Web Services Identity and Access Management (IAM) role with a DB instance.
To add a role to a DB instance, the status of the DB instance must be available.
This command doesn't apply to RDS Custom.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `DBInstanceNotFoundFault of Types.db_instance_not_found_fault
| `DBInstanceRoleAlreadyExistsFault of
Types.db_instance_role_already_exists_fault
| `DBInstanceRoleQuotaExceededFault of
Types.db_instance_role_quota_exceeded_fault
| `InvalidDBInstanceStateFault of Types.invalid_db_instance_state_fault ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.add_role_to_db_instance_message ->
(Smaws_Lib.Smithy_api.Types.unit_,
[> Smaws_Lib.Protocols.AwsQuery.error
| `DBInstanceNotFoundFault of Types.db_instance_not_found_fault
| `DBInstanceRoleAlreadyExistsFault of
Types.db_instance_role_already_exists_fault
| `DBInstanceRoleQuotaExceededFault of
Types.db_instance_role_quota_exceeded_fault
| `InvalidDBInstanceStateFault of Types.invalid_db_instance_state_fault ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.add_role_to_db_instance_message ->
(Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `DBInstanceNotFoundFault of Types.db_instance_not_found_fault
| `DBInstanceRoleAlreadyExistsFault of
Types.db_instance_role_already_exists_fault
| `DBInstanceRoleQuotaExceededFault of
Types.db_instance_role_quota_exceeded_fault
| `InvalidDBInstanceStateFault of Types.invalid_db_instance_state_fault ]
* Smaws_Lib.Response.metadata)
Stdlib.result