describeUserProfiles method

Future<DescribeUserProfilesResult> describeUserProfiles({
  1. List<String>? iamUserArns,
})

Describe specified users.

Required Permissions: To use this action, an IAM user must have an attached policy that explicitly grants permissions. For more information about user permissions, see Managing User Permissions.

May throw ValidationException. May throw ResourceNotFoundException.

Parameter iamUserArns : An array of IAM or federated user ARNs that identify the users to be described.

Implementation

Future<DescribeUserProfilesResult> describeUserProfiles({
  List<String>? iamUserArns,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'OpsWorks_20130218.DescribeUserProfiles'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (iamUserArns != null) 'IamUserArns': iamUserArns,
    },
  );

  return DescribeUserProfilesResult.fromJson(jsonResponse.body);
}