describeSubscription method
Provides details about the AWS Shield Advanced subscription for an account.
May throw InternalErrorException. May throw ResourceNotFoundException.
Implementation
Future<DescribeSubscriptionResponse> describeSubscription() async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSShield_20160616.DescribeSubscription'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
);
return DescribeSubscriptionResponse.fromJson(jsonResponse.body);
}