updateVTLDeviceType method
Updates the type of medium changer in a tape gateway. When you activate a tape gateway, you select a medium changer type for the tape gateway. This operation enables you to select a different type of medium changer after a tape gateway is activated. This operation is only supported in the tape gateway type.
May throw InvalidGatewayRequestException. May throw InternalServerError.
Parameter deviceType
:
The type of medium changer you want to select.
Valid Values: STK-L700
| AWS-Gateway-VTL
|
IBM-03584L32-0402
Parameter vTLDeviceARN
:
The Amazon Resource Name (ARN) of the medium changer you want to select.
Implementation
Future<UpdateVTLDeviceTypeOutput> updateVTLDeviceType({
required String deviceType,
required String vTLDeviceARN,
}) async {
ArgumentError.checkNotNull(deviceType, 'deviceType');
_s.validateStringLength(
'deviceType',
deviceType,
2,
50,
isRequired: true,
);
ArgumentError.checkNotNull(vTLDeviceARN, 'vTLDeviceARN');
_s.validateStringLength(
'vTLDeviceARN',
vTLDeviceARN,
50,
500,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'StorageGateway_20130630.UpdateVTLDeviceType'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DeviceType': deviceType,
'VTLDeviceARN': vTLDeviceARN,
},
);
return UpdateVTLDeviceTypeOutput.fromJson(jsonResponse.body);
}