getMobileSdkRelease method

Future<GetMobileSdkReleaseResponse> getMobileSdkRelease({
  1. required Platform platform,
  2. required String releaseVersion,
})

Retrieves information for the specified mobile SDK release, including release notes and tags.

The mobile SDK is not generally available. Customers who have access to the mobile SDK can use it to establish and manage WAF tokens for use in HTTP(S) requests from a mobile device to WAF. For more information, see WAF client application integration in the WAF Developer Guide.

May throw WAFInternalErrorException. May throw WAFInvalidOperationException. May throw WAFInvalidParameterException. May throw WAFNonexistentItemException.

Parameter platform : The device platform.

Parameter releaseVersion : The release version. For the latest available version, specify LATEST.

Implementation

Future<GetMobileSdkReleaseResponse> getMobileSdkRelease({
  required Platform platform,
  required String releaseVersion,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSWAF_20190729.GetMobileSdkRelease'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Platform': platform.value,
      'ReleaseVersion': releaseVersion,
    },
  );

  return GetMobileSdkReleaseResponse.fromJson(jsonResponse.body);
}