add_role_to_db_instance¶
Operation¶
add_role_to_db_instance
async
¶
add_role_to_db_instance(request: AddRoleToDBInstanceInput | AddRoleToDBInstanceInputDict, /, *, plugins: list[Plugin] | None = None) -> AddRoleToDBInstanceOutput
add_role_to_db_instance(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[AddRoleToDBInstanceInputDict]) -> 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 |
|---|---|---|---|
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¶
Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.
Model¶
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.
Dictionaries¶
AddRoleToDBInstanceInputDict
¶
Bases: TypedDict
Dictionary form of AddRoleToDBInstanceInput.
Attributes¶
db_instance_identifier
instance-attribute
¶
The name of the DB instance to associate the IAM role with.
feature_name
instance-attribute
¶
The name of the feature for the DB instance that the IAM role is to be associated with. For information about supported feature names, see DBEngineVersion.
Output¶
AddRoleToDBInstanceOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for AddRoleToDBInstanceOutput structure.