transferInputDevice method
Start an input device transfer to another AWS account. After you make the request, the other account must accept or reject the transfer.
May throw BadGatewayException.
May throw BadRequestException.
May throw ConflictException.
May throw ForbiddenException.
May throw GatewayTimeoutException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw TooManyRequestsException.
May throw UnprocessableEntityException.
Parameter inputDeviceId :
The unique ID of this input device. For example, hd-123456789abcdef.
Parameter targetCustomerId :
The AWS account ID (12 digits) for the recipient of the device transfer.
Parameter targetRegion :
The target AWS region to transfer the device.
Parameter transferMessage :
An optional message for the recipient. Maximum 280 characters.
Implementation
Future<void> transferInputDevice({
required String inputDeviceId,
String? targetCustomerId,
String? targetRegion,
String? transferMessage,
}) async {
final $payload = <String, dynamic>{
if (targetCustomerId != null) 'targetCustomerId': targetCustomerId,
if (targetRegion != null) 'targetRegion': targetRegion,
if (transferMessage != null) 'transferMessage': transferMessage,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/prod/inputDevices/${Uri.encodeComponent(inputDeviceId)}/transfer',
exceptionFnMap: _exceptionFns,
);
}