removeRoleFromDBCluster method
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.
May throw DBClusterNotFoundFault.
May throw DBClusterRoleNotFoundFault.
May throw InvalidDBClusterStateFault.
Parameter dBClusterIdentifier :
The name of the DB cluster to disassociate the IAM role from.
Parameter roleArn :
The Amazon Resource Name (ARN) of the IAM role to disassociate from the
Aurora DB cluster, for example
arn:aws:iam::123456789012:role/AuroraAccessRole.
Parameter featureName :
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.
Implementation
Future<void> removeRoleFromDBCluster({
required String dBClusterIdentifier,
required String roleArn,
String? featureName,
}) async {
final $request = <String, String>{
'DBClusterIdentifier': dBClusterIdentifier,
'RoleArn': roleArn,
if (featureName != null) 'FeatureName': featureName,
};
await _protocol.send(
$request,
action: 'RemoveRoleFromDBCluster',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
);
}