startDBInstance method

Future<StartDBInstanceResult> startDBInstance({
  1. required String dBInstanceIdentifier,
})

Starts an Amazon RDS DB instance that was stopped using the AWS console, the stop-db-instance AWS CLI command, or the StopDBInstance action.

For more information, see Starting an Amazon RDS DB instance That Was Previously Stopped in the Amazon RDS User Guide.

May throw DBInstanceNotFoundFault. May throw InvalidDBInstanceStateFault. May throw InsufficientDBInstanceCapacityFault. May throw DBSubnetGroupNotFoundFault. May throw DBSubnetGroupDoesNotCoverEnoughAZs. May throw InvalidDBClusterStateFault. May throw InvalidSubnet. May throw InvalidVPCNetworkStateFault. May throw DBClusterNotFoundFault. May throw AuthorizationNotFoundFault. May throw KMSKeyNotAccessibleFault.

Parameter dBInstanceIdentifier : The user-supplied instance identifier.

Implementation

Future<StartDBInstanceResult> startDBInstance({
  required String dBInstanceIdentifier,
}) async {
  ArgumentError.checkNotNull(dBInstanceIdentifier, 'dBInstanceIdentifier');
  final $request = <String, dynamic>{};
  $request['DBInstanceIdentifier'] = dBInstanceIdentifier;
  final $result = await _protocol.send(
    $request,
    action: 'StartDBInstance',
    version: '2014-10-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['StartDBInstanceMessage'],
    shapes: shapes,
    resultWrapper: 'StartDBInstanceResult',
  );
  return StartDBInstanceResult.fromXml($result);
}