describeUserProfile method

Future<DescribeUserProfileResult> describeUserProfile({
  1. required String userArn,
})

Describes a user in AWS CodeStar and the user attributes across all projects.

May throw UserProfileNotFoundException. May throw ValidationException.

Parameter userArn : The Amazon Resource Name (ARN) of the user.

Implementation

Future<DescribeUserProfileResult> describeUserProfile({
  required String userArn,
}) async {
  ArgumentError.checkNotNull(userArn, 'userArn');
  _s.validateStringLength(
    'userArn',
    userArn,
    32,
    95,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'CodeStar_20170419.DescribeUserProfile'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'userArn': userArn,
    },
  );

  return DescribeUserProfileResult.fromJson(jsonResponse.body);
}