add_role_to_db_instance¶
Operation¶
add_role_to_db_instance
async
¶
add_role_to_db_instance(input: AddRoleToDBInstanceInput, plugins: list[Plugin] | None = None) -> AddRoleToDBInstanceOutput
Associates an Amazon Web Services Identity and Access Management (IAM) role with a DB instance.
Note
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.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
AddRoleToDBInstanceInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
AddRoleToDBInstanceOutput
|
An instance of |
Input¶
AddRoleToDBInstanceInput
dataclass
¶
Bases: _SerdeShape
Dataclass for AddRoleToDBInstanceInput structure.
Attributes¶
db_instance_identifier
class-attribute
instance-attribute
¶
db_instance_identifier: str | None = ...
The name of the DB instance to associate the IAM role with.
Output¶
AddRoleToDBInstanceOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for AddRoleToDBInstanceOutput structure.