isVpcPeered method

Future<IsVpcPeeredResult> isVpcPeered()

Returns a Boolean value indicating whether your Lightsail VPC is peered.

May throw ServiceException. May throw InvalidInputException. May throw NotFoundException. May throw OperationFailureException. May throw AccessDeniedException. May throw AccountSetupInProgressException. May throw UnauthenticatedException.

Implementation

Future<IsVpcPeeredResult> isVpcPeered() async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Lightsail_20161128.IsVpcPeered'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
  );

  return IsVpcPeeredResult.fromJson(jsonResponse.body);
}