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
12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 | |