createDBSubnetGroup method
May throw DBSubnetGroupAlreadyExistsFault. May throw DBSubnetGroupQuotaExceededFault. May throw DBSubnetQuotaExceededFault. May throw DBSubnetGroupDoesNotCoverEnoughAZs. May throw InvalidSubnet.
Implementation
Future<CreateDBSubnetGroupResult> createDBSubnetGroup({
required String dBSubnetGroupDescription,
required String dBSubnetGroupName,
required List<String> subnetIds,
}) async {
ArgumentError.checkNotNull(
dBSubnetGroupDescription, 'dBSubnetGroupDescription');
ArgumentError.checkNotNull(dBSubnetGroupName, 'dBSubnetGroupName');
ArgumentError.checkNotNull(subnetIds, 'subnetIds');
final $request = <String, dynamic>{};
$request['DBSubnetGroupDescription'] = dBSubnetGroupDescription;
$request['DBSubnetGroupName'] = dBSubnetGroupName;
$request['SubnetIds'] = subnetIds;
final $result = await _protocol.send(
$request,
action: 'CreateDBSubnetGroup',
version: '2013-01-10',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['CreateDBSubnetGroupMessage'],
shapes: shapes,
resultWrapper: 'CreateDBSubnetGroupResult',
);
return CreateDBSubnetGroupResult.fromXml($result);
}