deleteResourcePermission method
Removes permissions associated with the target database.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter resourceArn :
The Amazon Resource Name (ARN) of the resource.
Parameter actionType :
Delete or restore the permissions on the target database.
Parameter sourceResourceArn :
The Amazon Resource Name (ARN) of the source resource.
Implementation
Future<DeleteResourcePermissionOutput> deleteResourcePermission({
required String resourceArn,
PermissionActionType? actionType,
String? sourceResourceArn,
}) async {
final $payload = <String, dynamic>{
'ResourceArn': resourceArn,
if (actionType != null) 'ActionType': actionType.value,
if (sourceResourceArn != null) 'SourceResourceArn': sourceResourceArn,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/delete-resource-permission',
exceptionFnMap: _exceptionFns,
);
return DeleteResourcePermissionOutput.fromJson(response);
}