remove_role_from_db_cluster
async
¶
remove_role_from_db_cluster(
*,
config_overrides: Optional[AsyncRDSClientConfig] = None,
db_cluster_identifier: Optional[String] = None,
role_arn: Optional[IAMRoleArn] = None,
feature_name: Optional[String] = None,
) -> None
Removes the asssociation of an Amazon Web Services Identity and Access Management (IAM) role from a DB cluster.
For more information on Amazon Aurora DB clusters, see What is Amazon Aurora? in the Amazon Aurora User Guide.
For more information on Multi-AZ DB clusters, see Multi-AZ DB cluster deployments in the Amazon RDS User Guide.
Parameters:
-
db_cluster_identifier(Optional[String], default:None) –The name of the DB cluster to disassociate the IAM role from.
-
role_arn(Optional[IAMRoleArn], default:None) –The Amazon Resource Name (ARN) of the IAM role to disassociate from the Aurora DB cluster, for example
arn:aws:iam::123456789012:role/AuroraAccessRole. -
feature_name(Optional[String], default:None) –The name of the feature for the DB cluster that the IAM role is to be disassociated from. For information about supported feature names, see DBEngineVersion.
Raises:
-
DBClusterNotFoundFault–DBClusterIdentifierdoesn't refer to an existing DB cluster. -
DBClusterRoleNotFoundFault–The specified IAM role Amazon Resource Name (ARN) isn't associated with the specified DB cluster.
-
InvalidDBClusterStateFault–The requested operation can't be performed while the cluster is in this state.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To disassociate an Identity and Access Management (IAM) role from a DB cluster The following example removes a role from a DB cluster.
>>> await client.remove_role_from_db_cluster(db_cluster_identifier='mydbcluster', role_arn='arn:aws:iam::123456789012:role/RDSLoadFromS3')
Source code in docs_src/capo_rds/_services/async_rds.py
13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 | |