getSubscriptionState method

Future<GetSubscriptionStateResponse> getSubscriptionState()

Returns the SubscriptionState, either Active or Inactive.

May throw InternalErrorException.

Implementation

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

  return GetSubscriptionStateResponse.fromJson(jsonResponse.body);
}