remove_role_from_db_cluster
¶
remove_role_from_db_cluster(
*,
config_overrides: Optional[RDSClientConfig] = 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.
>>> 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/rds.py
13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 | |