removeRoleFromDBInstance method
Disassociates an AWS Identity and Access Management (IAM) role from a DB instance.
May throw DBInstanceNotFoundFault. May throw DBInstanceRoleNotFoundFault. May throw InvalidDBInstanceStateFault.
Parameter dBInstanceIdentifier
:
The name of the DB instance to disassociate the IAM role from.
Parameter featureName
:
The name of the feature for the DB instance that the IAM role is to be
disassociated from. For the list of supported feature names, see
DBEngineVersion
.
Parameter roleArn
:
The Amazon Resource Name (ARN) of the IAM role to disassociate from the DB
instance, for example,
arn:aws:iam::123456789012:role/AccessRole
.
Implementation
Future<void> removeRoleFromDBInstance({
required String dBInstanceIdentifier,
required String featureName,
required String roleArn,
}) async {
ArgumentError.checkNotNull(dBInstanceIdentifier, 'dBInstanceIdentifier');
ArgumentError.checkNotNull(featureName, 'featureName');
ArgumentError.checkNotNull(roleArn, 'roleArn');
final $request = <String, dynamic>{};
$request['DBInstanceIdentifier'] = dBInstanceIdentifier;
$request['FeatureName'] = featureName;
$request['RoleArn'] = roleArn;
await _protocol.send(
$request,
action: 'RemoveRoleFromDBInstance',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['RemoveRoleFromDBInstanceMessage'],
shapes: shapes,
);
}