getLicenseConfiguration method

Future<GetLicenseConfigurationResponse> getLicenseConfiguration({
  1. required String licenseConfigurationArn,
})

Gets detailed information about the specified license configuration.

May throw InvalidParameterValueException. May throw ServerInternalException. May throw AuthorizationException. May throw AccessDeniedException. May throw RateLimitExceededException.

Parameter licenseConfigurationArn : Amazon Resource Name (ARN) of the license configuration.

Implementation

Future<GetLicenseConfigurationResponse> getLicenseConfiguration({
  required String licenseConfigurationArn,
}) async {
  ArgumentError.checkNotNull(
      licenseConfigurationArn, 'licenseConfigurationArn');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSLicenseManager.GetLicenseConfiguration'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'LicenseConfigurationArn': licenseConfigurationArn,
    },
  );

  return GetLicenseConfigurationResponse.fromJson(jsonResponse.body);
}