describeProfile method

Future<DescribeProfileResponse> describeProfile({
  1. required String profileId,
})

Returns the details of the profile that's specified by the ProfileId.

May throw InternalServiceError. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ServiceUnavailableException.

Parameter profileId : The identifier of the profile that you want described.

Implementation

Future<DescribeProfileResponse> describeProfile({
  required String profileId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'TransferService.DescribeProfile'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ProfileId': profileId,
    },
  );

  return DescribeProfileResponse.fromJson(jsonResponse.body);
}